(t)
| 958 | return this.version; |
| 959 | } |
| 960 | compare(t) { |
| 961 | if ( |
| 962 | (e("SemVer.compare", this.version, this.options, t), |
| 963 | !(t instanceof s)) |
| 964 | ) { |
| 965 | if ("string" == typeof t && t === this.version) return 0; |
| 966 | t = new s(t, this.options); |
| 967 | } |
| 968 | return t.version === this.version |
| 969 | ? 0 |
| 970 | : this.compareMain(t) || this.comparePre(t); |
| 971 | } |
| 972 | compareMain(e) { |
| 973 | return ( |
| 974 | e instanceof s || (e = new s(e, this.options)), |
no test coverage detected