1 |
|
2 |
|
3 |
|
4 | import semverParse = require("./functions/parse");
|
5 | import semverValid = require("./functions/valid");
|
6 | import semverClean = require("./functions/clean");
|
7 | import semverInc = require("./functions/inc");
|
8 | import semverDiff = require("./functions/diff");
|
9 | import semverMajor = require("./functions/major");
|
10 | import semverMinor = require("./functions/minor");
|
11 | import semverPatch = require("./functions/patch");
|
12 | import semverPrerelease = require("./functions/prerelease");
|
13 | import semverCompare = require("./functions/compare");
|
14 | import semverRcompare = require("./functions/rcompare");
|
15 | import semverCompareLoose = require("./functions/compare-loose");
|
16 | import semverCompareBuild = require("./functions/compare-build");
|
17 | import semverSort = require("./functions/sort");
|
18 | import semverRsort = require("./functions/rsort");
|
19 |
|
20 | export {
|
21 | semverClean as clean,
|
22 | semverCompare as compare,
|
23 | semverCompareBuild as compareBuild,
|
24 | semverCompareLoose as compareLoose,
|
25 | semverDiff as diff,
|
26 | semverInc as inc,
|
27 | semverMajor as major,
|
28 | semverMinor as minor,
|
29 | semverParse as parse,
|
30 | semverPatch as patch,
|
31 | semverPrerelease as prerelease,
|
32 | semverRcompare as rcompare,
|
33 | semverRsort as rsort,
|
34 | semverSort as sort,
|
35 | semverValid as valid,
|
36 | };
|
37 |
|
38 |
|
39 | import semverGt = require("./functions/gt");
|
40 | import semverLt = require("./functions/lt");
|
41 | import semverEq = require("./functions/eq");
|
42 | import semverNeq = require("./functions/neq");
|
43 | import semverGte = require("./functions/gte");
|
44 | import semverLte = require("./functions/lte");
|
45 | import semverCmp = require("./functions/cmp");
|
46 | import semverCoerce = require("./functions/coerce");
|
47 |
|
48 | export {
|
49 | semverCmp as cmp,
|
50 | semverCoerce as coerce,
|
51 | semverEq as eq,
|
52 | semverGt as gt,
|
53 | semverGte as gte,
|
54 | semverLt as lt,
|
55 | semverLte as lte,
|
56 | semverNeq as neq,
|
57 | };
|
58 |
|
59 |
|
60 | import semverSatisfies = require("./functions/satisfies");
|
61 | import semverMaxSatisfying = require("./ranges/max-satisfying");
|
62 | import semverMinSatisfying = require("./ranges/min-satisfying");
|
63 | import semverToComparators = require("./ranges/to-comparators");
|
64 | import semverMinVersion = require("./ranges/min-version");
|
65 | import semverValidRange = require("./ranges/valid");
|
66 | import semverOutside = require("./ranges/outside");
|
67 | import semverGtr = require("./ranges/gtr");
|
68 | import semverLtr = require("./ranges/ltr");
|
69 | import semverIntersects = require("./ranges/intersects");
|
70 | import simplify = require("./ranges/simplify");
|
71 | import rangeSubset = require("./ranges/subset");
|
72 |
|
73 | export {
|
74 | rangeSubset as subset,
|
75 | semverGtr as gtr,
|
76 | semverIntersects as intersects,
|
77 | semverLtr as ltr,
|
78 | semverMaxSatisfying as maxSatisfying,
|
79 | semverMinSatisfying as minSatisfying,
|
80 | semverMinVersion as minVersion,
|
81 | semverOutside as outside,
|
82 | semverSatisfies as satisfies,
|
83 | semverToComparators as toComparators,
|
84 | semverValidRange as validRange,
|
85 | simplify as simplifyRange,
|
86 | };
|
87 |
|
88 |
|
89 | import SemVer = require("./classes/semver");
|
90 | import Range = require("./classes/range");
|
91 | import Comparator = require("./classes/comparator");
|
92 |
|
93 | export { Comparator, Range, SemVer };
|
94 |
|
95 |
|
96 | import identifiers = require("./internals/identifiers");
|
97 | export import compareIdentifiers = identifiers.compareIdentifiers;
|
98 | export import rcompareIdentifiers = identifiers.rcompareIdentifiers;
|
99 |
|
100 | export const SEMVER_SPEC_VERSION: "2.0.0";
|
101 |
|
102 | export const RELEASE_TYPES: ReleaseType[];
|
103 |
|
104 | export type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease";
|
105 |
|
106 | export interface Options {
|
107 | loose?: boolean | undefined;
|
108 | }
|
109 |
|
110 | export interface RangeOptions extends Options {
|
111 | includePrerelease?: boolean | undefined;
|
112 | }
|
113 | export interface CoerceOptions extends Options {
|
114 | includePrerelease?: boolean | undefined;
|
115 | |
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | rtl?: boolean | undefined;
|
127 | }
|
128 |
|
129 | export type Operator = "===" | "!==" | "" | "=" | "==" | "!=" | ">" | ">=" | "<" | "<=";
|