This commit is contained in:
parent
55470c090d
commit
6947a1adba
1260 changed files with 111297 additions and 0 deletions
15
@capacitor/cli/node_modules/semver/internal/parse-options.js
generated
vendored
Normal file
15
@capacitor/cli/node_modules/semver/internal/parse-options.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// parse out just the options we care about
|
||||
const looseOption = Object.freeze({ loose: true })
|
||||
const emptyOpts = Object.freeze({ })
|
||||
const parseOptions = options => {
|
||||
if (!options) {
|
||||
return emptyOpts
|
||||
}
|
||||
|
||||
if (typeof options !== 'object') {
|
||||
return looseOption
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
module.exports = parseOptions
|
Loading…
Add table
Add a link
Reference in a new issue