Upgrade TypeScript to 9.2.0
This commit is contained in:
parent
40a75182e7
commit
5f644f971e
2873 changed files with 320828 additions and 210965 deletions
12
node_modules/semver/functions/cmp.js
generated
vendored
12
node_modules/semver/functions/cmp.js
generated
vendored
|
|
@ -8,17 +8,21 @@ const lte = require('./lte')
|
|||
const cmp = (a, op, b, loose) => {
|
||||
switch (op) {
|
||||
case '===':
|
||||
if (typeof a === 'object')
|
||||
if (typeof a === 'object') {
|
||||
a = a.version
|
||||
if (typeof b === 'object')
|
||||
}
|
||||
if (typeof b === 'object') {
|
||||
b = b.version
|
||||
}
|
||||
return a === b
|
||||
|
||||
case '!==':
|
||||
if (typeof a === 'object')
|
||||
if (typeof a === 'object') {
|
||||
a = a.version
|
||||
if (typeof b === 'object')
|
||||
}
|
||||
if (typeof b === 'object') {
|
||||
b = b.version
|
||||
}
|
||||
return a !== b
|
||||
|
||||
case '':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue