Files
action/node_modules/semver/internal/parse-options.js
T
Chromatic 4a6485da4e v16.4.0
2026-04-21 15:42:56 +00: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