Frontend/25_01_07/mai/node_modules/semver/internal/parse-options.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

16 lines
324 B
JavaScript

// 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