This commit is contained in:
Chromatic
2026-04-21 15:42:56 +00:00
parent 5c6ec06f45
commit 4a6485da4e
58 changed files with 5359 additions and 24 deletions
+15
View 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