mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-12 03:16:42 +00:00
chore: update dependencies (#38)
This commit is contained in:
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 '':
|
||||
|
||||
Reference in New Issue
Block a user