constants.js 467 B

1234567891011121314151617
  1. // Note: this is the semver.org version of the spec that it implements
  2. // Not necessarily the package version of this code.
  3. const SEMVER_SPEC_VERSION = '2.0.0'
  4. const MAX_LENGTH = 256
  5. const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  6. /* istanbul ignore next */ 9007199254740991
  7. // Max safe segment length for coercion.
  8. const MAX_SAFE_COMPONENT_LENGTH = 16
  9. module.exports = {
  10. SEMVER_SPEC_VERSION,
  11. MAX_LENGTH,
  12. MAX_SAFE_INTEGER,
  13. MAX_SAFE_COMPONENT_LENGTH,
  14. }