This commit is contained in:
15
vscode-server-linux-x64-web/node_modules/semver/internal/parse-options.js
generated
vendored
Normal file
15
vscode-server-linux-x64-web/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
|
Reference in New Issue
Block a user