Sha256: e7633192e95455d51e72617d01a00974dc359e29ff8f2239fe28639aafc7b6f2

Contents?: true

Size: 401 Bytes

Versions: 41

Compression:

Stored size: 401 Bytes

Contents

// 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((options, k) => {
    options[k] = true
    return options
  }, {})
module.exports = parseOptions

Version data entries

41 entries across 34 versions & 3 rubygems

Version Path
decidim-0.27.1 packages/webpacker/node_modules/semver/internal/parse-options.js
decidim-0.26.4 packages/webpacker/node_modules/semver/internal/parse-options.js
decidim-0.27.0 packages/webpacker/node_modules/semver/internal/parse-options.js
decidim-0.26.3 packages/webpacker/node_modules/semver/internal/parse-options.js
decidim-0.27.0.rc2 packages/webpacker/node_modules/semver/internal/parse-options.js
decidim-0.27.0.rc1 packages/webpacker/node_modules/semver/internal/parse-options.js
appmap-0.72.2 ./node_modules/semver/internal/parse-options.js
appmap-0.72.1 ./node_modules/semver/internal/parse-options.js
appmap-0.72.0 ./node_modules/semver/internal/parse-options.js
appmap-0.71.0 ./node_modules/semver/internal/parse-options.js
disco_app-0.16.1 test/dummy/node_modules/sass-loader/node_modules/semver/internal/parse-options.js
disco_app-0.16.1 test/dummy/node_modules/@npmcli/fs/node_modules/semver/internal/parse-options.js
appmap-0.70.2 ./node_modules/semver/internal/parse-options.js
appmap-0.70.1 ./node_modules/semver/internal/parse-options.js
appmap-0.70.0 ./node_modules/semver/internal/parse-options.js
appmap-0.69.0 ./node_modules/semver/internal/parse-options.js
appmap-0.68.2 ./node_modules/semver/internal/parse-options.js
appmap-0.68.1 ./node_modules/semver/internal/parse-options.js
disco_app-0.15.2 test/dummy/node_modules/@npmcli/fs/node_modules/semver/internal/parse-options.js
disco_app-0.15.2 test/dummy/node_modules/sass-loader/node_modules/semver/internal/parse-options.js