Sha256: 7fc0f13440bef81f8a7fb4591f8ebaa8f2c219319d63e669e514710417d10806

Contents?: true

Size: 317 Bytes

Versions: 127

Compression:

Stored size: 317 Bytes

Contents

const SemVer = require('../classes/semver')
const parse = (version, options, throwErrors = false) => {
  if (version instanceof SemVer) {
    return version
  }
  try {
    return new SemVer(version, options)
  } catch (er) {
    if (!throwErrors) {
      return null
    }
    throw er
  }
}

module.exports = parse

Version data entries

127 entries across 53 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.61 node_modules/semver/functions/parse.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/functions/parse.js
immosquare-cleaner-0.1.60 node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.60 node_modules/vue-eslint-parser/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.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/functions/parse.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.59 node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.59 node_modules/vue-eslint-parser/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.58 node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.58 node_modules/vue-eslint-parser/node_modules/semver/functions/parse.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/functions/parse.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/functions/parse.js