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
appmap-0.62.1 ./node_modules/semver/internal/parse-options.js