Sha256: 481b04e12442738b4621d07fad8ee5b87bff5bab69830458731fa91611035972

Contents?: true

Size: 324 Bytes

Versions: 127

Compression:

Stored size: 324 Bytes

Contents

// 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

Version data entries

127 entries across 53 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.61 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/vue-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/vue-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/vue-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js