This commit is contained in:
parent
55470c090d
commit
6947a1adba
1260 changed files with 111297 additions and 0 deletions
11
@capacitor/cli/node_modules/semver/ranges/valid.js
generated
vendored
Normal file
11
@capacitor/cli/node_modules/semver/ranges/valid.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
const Range = require('../classes/range')
|
||||
const validRange = (range, options) => {
|
||||
try {
|
||||
// Return '*' instead of '' so that truthiness works.
|
||||
// This will throw if it's invalid anyway
|
||||
return new Range(range, options).range || '*'
|
||||
} catch (er) {
|
||||
return null
|
||||
}
|
||||
}
|
||||
module.exports = validRange
|
Loading…
Add table
Add a link
Reference in a new issue