Files
react-native-devtools-frontend/node_modules/semver/internal/parse-options.js
T
Nikolay Vitkov 17794eed93 Update TypeScript to v5.7.3
https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/
Some changes to the ArrayBuffer types was needed. And TypeScript started
"panicking" if we included a bundle multiple times, so updated the
BUILD.gn files.

Bug: none
Change-Id: I3277c191c83ea773ef88765ff89a4f4103b5757c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6210862
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-30 03:58:33 -08: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