mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-14 12:26:44 +00:00
chore: migrate code to ESM (#73)
This commit is contained in:
11
node_modules/semver/internal/parse-options.js
generated
vendored
11
node_modules/semver/internal/parse-options.js
generated
vendored
@@ -1,11 +0,0 @@
|
||||
// parse out just the options we care about so we always get a consistent
|
||||
// obj with keys in a consistent order.
|
||||
const opts = ['includePrerelease', 'loose', 'rtl']
|
||||
const parseOptions = options =>
|
||||
!options ? {}
|
||||
: typeof options !== 'object' ? { loose: true }
|
||||
: opts.filter(k => options[k]).reduce((o, k) => {
|
||||
o[k] = true
|
||||
return o
|
||||
}, {})
|
||||
module.exports = parseOptions
|
||||
Reference in New Issue
Block a user