UNPKG

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