1 | // just pre-load all the stuff that index.js lazily exports
|
---|
2 | const internalRe = require('./internal/re')
|
---|
3 | module.exports = {
|
---|
4 | re: internalRe.re,
|
---|
5 | src: internalRe.src,
|
---|
6 | tokens: internalRe.t,
|
---|
7 | SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,
|
---|
8 | SemVer: require('./classes/semver'),
|
---|
9 | compareIdentifiers: require('./internal/identifiers').compareIdentifiers,
|
---|
10 | rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,
|
---|
11 | parse: require('./functions/parse'),
|
---|
12 | valid: require('./functions/valid'),
|
---|
13 | clean: require('./functions/clean'),
|
---|
14 | inc: require('./functions/inc'),
|
---|
15 | diff: require('./functions/diff'),
|
---|
16 | major: require('./functions/major'),
|
---|
17 | minor: require('./functions/minor'),
|
---|
18 | patch: require('./functions/patch'),
|
---|
19 | prerelease: require('./functions/prerelease'),
|
---|
20 | compare: require('./functions/compare'),
|
---|
21 | rcompare: require('./functions/rcompare'),
|
---|
22 | compareLoose: require('./functions/compare-loose'),
|
---|
23 | compareBuild: require('./functions/compare-build'),
|
---|
24 | sort: require('./functions/sort'),
|
---|
25 | rsort: require('./functions/rsort'),
|
---|
26 | gt: require('./functions/gt'),
|
---|
27 | lt: require('./functions/lt'),
|
---|
28 | eq: require('./functions/eq'),
|
---|
29 | neq: require('./functions/neq'),
|
---|
30 | gte: require('./functions/gte'),
|
---|
31 | lte: require('./functions/lte'),
|
---|
32 | cmp: require('./functions/cmp'),
|
---|
33 | coerce: require('./functions/coerce'),
|
---|
34 | Comparator: require('./classes/comparator'),
|
---|
35 | Range: require('./classes/range'),
|
---|
36 | satisfies: require('./functions/satisfies'),
|
---|
37 | toComparators: require('./ranges/to-comparators'),
|
---|
38 | maxSatisfying: require('./ranges/max-satisfying'),
|
---|
39 | minSatisfying: require('./ranges/min-satisfying'),
|
---|
40 | minVersion: require('./ranges/min-version'),
|
---|
41 | validRange: require('./ranges/valid'),
|
---|
42 | outside: require('./ranges/outside'),
|
---|
43 | gtr: require('./ranges/gtr'),
|
---|
44 | ltr: require('./ranges/ltr'),
|
---|
45 | intersects: require('./ranges/intersects'),
|
---|
46 | simplifyRange: require('./ranges/simplify'),
|
---|
47 | subset: require('./ranges/subset'),
|
---|
48 | }
|
---|