@blogmcp/sdk 0.3.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/client-types.d.ts +7 -1
- package/dist/core/client.d.ts +25 -1
- package/dist/core/client.js +38 -34
- package/dist/core/consultation-adapter.d.ts +90 -0
- package/dist/core/consultation-adapter.js +200 -0
- package/dist/core/consultations.d.ts +108 -0
- package/dist/core/consultations.js +95 -0
- package/dist/core/errors.d.ts +52 -0
- package/dist/core/errors.js +73 -0
- package/dist/core/index.d.ts +7 -1
- package/dist/core/index.js +80 -64
- package/dist/core/queries.d.ts +16 -1
- package/dist/core/queries.js +198 -61
- package/dist/core/review/format.d.ts +30 -0
- package/dist/core/review/format.js +78 -0
- package/dist/core/review/index.d.ts +6 -0
- package/dist/core/review/index.js +9 -0
- package/dist/core/review/types.d.ts +176 -0
- package/dist/core/review/types.js +9 -0
- package/dist/core/server-only.d.ts +12 -0
- package/dist/core/server-only.js +11 -0
- package/dist/core/types.d.ts +295 -0
- package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +12 -11
- package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +16 -16
- package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/registry.js +21 -22
- package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +2 -2
- package/dist/packages/tripmap-core/dist/attribution.js +121 -6
- package/dist/packages/tripmap-core/dist/css.js +68 -16
- package/dist/packages/tripmap-core/dist/detail.js +10 -9
- package/dist/packages/tripmap-core/dist/engine.js +285 -247
- package/dist/packages/tripmap-core/dist/export.js +48 -46
- package/dist/packages/tripmap-core/dist/filmstrip.js +30 -17
- package/dist/packages/tripmap-core/dist/framing.js +30 -30
- package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
- package/dist/packages/tripmap-core/dist/heading.js +8 -0
- package/dist/packages/tripmap-core/dist/href.js +18 -0
- package/dist/packages/tripmap-core/dist/index.js +32 -24
- package/dist/packages/tripmap-core/dist/lightbox.js +31 -29
- package/dist/packages/tripmap-core/dist/line.js +6 -6
- package/dist/packages/tripmap-core/dist/markers.js +47 -43
- package/dist/packages/tripmap-core/dist/nodes.js +56 -43
- package/dist/packages/tripmap-core/dist/playback.js +17 -17
- package/dist/packages/tripmap-core/dist/preload.js +14 -14
- package/dist/packages/tripmap-core/dist/theme.js +21 -21
- package/dist/{node_modules → packages/tripmap-core/node_modules}/maplibre-gl/dist/maplibre-gl.js +1890 -1720
- package/dist/{node_modules → packages/tripmap-core/node_modules}/pmtiles/dist/esm/index.js +1 -1
- package/dist/react/KbMdxContent.js +7 -8
- package/dist/vue/components/KbMdxContent.vue2.js +6 -7
- package/package.json +8 -3
- package/src/core/client-types.ts +13 -2
- package/src/core/client.ts +40 -5
- package/src/core/consultation-adapter.ts +408 -0
- package/src/core/consultations.ts +224 -0
- package/src/core/errors.ts +145 -0
- package/src/core/index.ts +68 -0
- package/src/core/queries.ts +167 -3
- package/src/core/review/format.ts +138 -0
- package/src/core/review/index.ts +22 -0
- package/src/core/review/types.ts +168 -0
- package/src/core/server-only.ts +20 -0
- package/src/core/types.ts +337 -0
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/index.js +0 -2
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -2
- package/dist/_virtual/re.js +0 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +0 -8
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +0 -60
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -662
- package/dist/node_modules/semver/classes/comparator.js +0 -56
- package/dist/node_modules/semver/classes/range.js +0 -148
- package/dist/node_modules/semver/classes/semver.js +0 -169
- package/dist/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/semver/functions/cmp.js +0 -39
- package/dist/node_modules/semver/functions/coerce.js +0 -33
- package/dist/node_modules/semver/functions/compare-build.js +0 -14
- package/dist/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/semver/functions/diff.js +0 -24
- package/dist/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/semver/functions/inc.js +0 -21
- package/dist/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/semver/functions/parse.js +0 -21
- package/dist/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/semver/index.js +0 -97
- package/dist/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/semver/internal/identifiers.js +0 -18
- package/dist/node_modules/semver/internal/lrucache.js +0 -32
- package/dist/node_modules/semver/internal/parse-options.js +0 -10
- package/dist/node_modules/semver/internal/re.js +0 -32
- package/dist/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/semver/ranges/intersects.js +0 -11
- package/dist/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/semver/ranges/max-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-version.js +0 -42
- package/dist/node_modules/semver/ranges/outside.js +0 -44
- package/dist/node_modules/semver/ranges/simplify.js +0 -24
- package/dist/node_modules/semver/ranges/subset.js +0 -94
- package/dist/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/semver/ranges/valid.js +0 -17
- package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +0 -389
- package/dist/packages/mdx-schema/dist/metadata/index.js +0 -526
- package/dist/packages/mdx-schema/dist/prepareProps.js +0 -46
- package/dist/packages/mdx-schema/dist/styles/index.js +0 -141
- package/dist/packages/mdx-schema/dist/tripmap.js +0 -88
- package/dist/packages/mdx-schema/dist/types/index.js +0 -26
- package/dist/packages/sanitize/dist/html.js +0 -89
- /package/dist/{node_modules → packages/tripmap-core/node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __require as t } from "./parse.js";
|
|
2
|
-
var r, s;
|
|
3
|
-
function i() {
|
|
4
|
-
if (s) return r;
|
|
5
|
-
s = 1;
|
|
6
|
-
const a = t();
|
|
7
|
-
return r = (l, n) => {
|
|
8
|
-
const e = a(l, n);
|
|
9
|
-
return e && e.prerelease.length ? e.prerelease : null;
|
|
10
|
-
}, r;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
i as __require
|
|
14
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __require as u } from "../classes/range.js";
|
|
2
|
-
var r, s;
|
|
3
|
-
function c() {
|
|
4
|
-
if (s) return r;
|
|
5
|
-
s = 1;
|
|
6
|
-
const i = u();
|
|
7
|
-
return r = (t, e, a) => {
|
|
8
|
-
try {
|
|
9
|
-
e = new i(e, a);
|
|
10
|
-
} catch {
|
|
11
|
-
return !1;
|
|
12
|
-
}
|
|
13
|
-
return e.test(t);
|
|
14
|
-
}, r;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
c as __require
|
|
18
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { __require as w } from "./internal/re.js";
|
|
2
|
-
import { __require as z } from "./internal/constants.js";
|
|
3
|
-
import { __require as F } from "./classes/semver.js";
|
|
4
|
-
import { __require as H } from "./internal/identifiers.js";
|
|
5
|
-
import { __require as J } from "./functions/parse.js";
|
|
6
|
-
import { __require as K } from "./functions/valid.js";
|
|
7
|
-
import { __require as Q } from "./functions/clean.js";
|
|
8
|
-
import { __require as U } from "./functions/inc.js";
|
|
9
|
-
import { __require as W } from "./functions/diff.js";
|
|
10
|
-
import { __require as X } from "./functions/major.js";
|
|
11
|
-
import { __require as Z } from "./functions/minor.js";
|
|
12
|
-
import { __require as rr } from "./functions/patch.js";
|
|
13
|
-
import { __require as er } from "./functions/prerelease.js";
|
|
14
|
-
import { __require as ir } from "./functions/compare.js";
|
|
15
|
-
import { __require as or } from "./functions/rcompare.js";
|
|
16
|
-
import { __require as tr } from "./functions/compare-loose.js";
|
|
17
|
-
import { __require as sr } from "./functions/compare-build.js";
|
|
18
|
-
import { __require as mr } from "./functions/sort.js";
|
|
19
|
-
import { __require as ar } from "./functions/rsort.js";
|
|
20
|
-
import { __require as ur } from "./functions/gt.js";
|
|
21
|
-
import { __require as _r } from "./functions/lt.js";
|
|
22
|
-
import { __require as qr } from "./functions/eq.js";
|
|
23
|
-
import { __require as nr } from "./functions/neq.js";
|
|
24
|
-
import { __require as cr } from "./functions/gte.js";
|
|
25
|
-
import { __require as pr } from "./functions/lte.js";
|
|
26
|
-
import { __require as fr } from "./functions/cmp.js";
|
|
27
|
-
import { __require as Sr } from "./functions/coerce.js";
|
|
28
|
-
import { __require as Er } from "./classes/comparator.js";
|
|
29
|
-
import { __require as dr } from "./classes/range.js";
|
|
30
|
-
import { __require as lr } from "./functions/satisfies.js";
|
|
31
|
-
import { __require as Rr } from "./ranges/to-comparators.js";
|
|
32
|
-
import { __require as Cr } from "./ranges/max-satisfying.js";
|
|
33
|
-
import { __require as gr } from "./ranges/min-satisfying.js";
|
|
34
|
-
import { __require as Ir } from "./ranges/min-version.js";
|
|
35
|
-
import { __require as Vr } from "./ranges/valid.js";
|
|
36
|
-
import { __require as vr } from "./ranges/outside.js";
|
|
37
|
-
import { __require as Lr } from "./ranges/gtr.js";
|
|
38
|
-
import { __require as Mr } from "./ranges/ltr.js";
|
|
39
|
-
import { __require as Pr } from "./ranges/intersects.js";
|
|
40
|
-
import { __require as yr } from "./ranges/simplify.js";
|
|
41
|
-
import { __require as hr } from "./ranges/subset.js";
|
|
42
|
-
var e, t;
|
|
43
|
-
function de() {
|
|
44
|
-
if (t) return e;
|
|
45
|
-
t = 1;
|
|
46
|
-
const r = w(), i = z(), s = F(), o = H(), m = J(), a = K(), u = Q(), _ = U(), q = W(), n = X(), c = Z(), p = rr(), f = er(), S = ir(), E = or(), d = tr(), l = sr(), R = mr(), C = ar(), g = ur(), I = _r(), V = qr(), v = nr(), L = cr(), M = pr(), P = fr(), y = Sr(), h = Er(), x = dr(), G = lr(), N = Rr(), O = Cr(), T = gr(), b = Ir(), j = Vr(), A = vr(), B = Lr(), Y = Mr(), $ = Pr(), k = yr(), D = hr();
|
|
47
|
-
return e = {
|
|
48
|
-
parse: m,
|
|
49
|
-
valid: a,
|
|
50
|
-
clean: u,
|
|
51
|
-
inc: _,
|
|
52
|
-
diff: q,
|
|
53
|
-
major: n,
|
|
54
|
-
minor: c,
|
|
55
|
-
patch: p,
|
|
56
|
-
prerelease: f,
|
|
57
|
-
compare: S,
|
|
58
|
-
rcompare: E,
|
|
59
|
-
compareLoose: d,
|
|
60
|
-
compareBuild: l,
|
|
61
|
-
sort: R,
|
|
62
|
-
rsort: C,
|
|
63
|
-
gt: g,
|
|
64
|
-
lt: I,
|
|
65
|
-
eq: V,
|
|
66
|
-
neq: v,
|
|
67
|
-
gte: L,
|
|
68
|
-
lte: M,
|
|
69
|
-
cmp: P,
|
|
70
|
-
coerce: y,
|
|
71
|
-
Comparator: h,
|
|
72
|
-
Range: x,
|
|
73
|
-
satisfies: G,
|
|
74
|
-
toComparators: N,
|
|
75
|
-
maxSatisfying: O,
|
|
76
|
-
minSatisfying: T,
|
|
77
|
-
minVersion: b,
|
|
78
|
-
validRange: j,
|
|
79
|
-
outside: A,
|
|
80
|
-
gtr: B,
|
|
81
|
-
ltr: Y,
|
|
82
|
-
intersects: $,
|
|
83
|
-
simplifyRange: k,
|
|
84
|
-
subset: D,
|
|
85
|
-
SemVer: s,
|
|
86
|
-
re: r.re,
|
|
87
|
-
src: r.src,
|
|
88
|
-
tokens: r.t,
|
|
89
|
-
SEMVER_SPEC_VERSION: i.SEMVER_SPEC_VERSION,
|
|
90
|
-
RELEASE_TYPES: i.RELEASE_TYPES,
|
|
91
|
-
compareIdentifiers: o.compareIdentifiers,
|
|
92
|
-
rcompareIdentifiers: o.rcompareIdentifiers
|
|
93
|
-
}, e;
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
de as __require
|
|
97
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var E, _;
|
|
2
|
-
function A() {
|
|
3
|
-
if (_) return E;
|
|
4
|
-
_ = 1;
|
|
5
|
-
const n = "2.0.0", r = 256, t = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
6
|
-
9007199254740991, e = 16, o = r - 6;
|
|
7
|
-
return E = {
|
|
8
|
-
MAX_LENGTH: r,
|
|
9
|
-
MAX_SAFE_COMPONENT_LENGTH: e,
|
|
10
|
-
MAX_SAFE_BUILD_LENGTH: o,
|
|
11
|
-
MAX_SAFE_INTEGER: t,
|
|
12
|
-
RELEASE_TYPES: [
|
|
13
|
-
"major",
|
|
14
|
-
"premajor",
|
|
15
|
-
"minor",
|
|
16
|
-
"preminor",
|
|
17
|
-
"patch",
|
|
18
|
-
"prepatch",
|
|
19
|
-
"prerelease"
|
|
20
|
-
],
|
|
21
|
-
SEMVER_SPEC_VERSION: n,
|
|
22
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
23
|
-
FLAG_LOOSE: 2
|
|
24
|
-
}, E;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
A as __require
|
|
28
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var i, f;
|
|
2
|
-
function c() {
|
|
3
|
-
if (f) return i;
|
|
4
|
-
f = 1;
|
|
5
|
-
const s = /^[0-9]+$/, u = (e, r) => {
|
|
6
|
-
if (typeof e == "number" && typeof r == "number")
|
|
7
|
-
return e === r ? 0 : e < r ? -1 : 1;
|
|
8
|
-
const t = s.test(e), n = s.test(r);
|
|
9
|
-
return t && n && (e = +e, r = +r), e === r ? 0 : t && !n ? -1 : n && !t ? 1 : e < r ? -1 : 1;
|
|
10
|
-
};
|
|
11
|
-
return i = {
|
|
12
|
-
compareIdentifiers: u,
|
|
13
|
-
rcompareIdentifiers: (e, r) => u(r, e)
|
|
14
|
-
}, i;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
c as __require
|
|
18
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var s, i;
|
|
2
|
-
function u() {
|
|
3
|
-
if (i) return s;
|
|
4
|
-
i = 1;
|
|
5
|
-
class r {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
8
|
-
}
|
|
9
|
-
get(e) {
|
|
10
|
-
const t = this.map.get(e);
|
|
11
|
-
if (t !== void 0)
|
|
12
|
-
return this.map.delete(e), this.map.set(e, t), t;
|
|
13
|
-
}
|
|
14
|
-
delete(e) {
|
|
15
|
-
return this.map.delete(e);
|
|
16
|
-
}
|
|
17
|
-
set(e, t) {
|
|
18
|
-
if (!this.delete(e) && t !== void 0) {
|
|
19
|
-
if (this.map.size >= this.max) {
|
|
20
|
-
const a = this.map.keys().next().value;
|
|
21
|
-
this.delete(a);
|
|
22
|
-
}
|
|
23
|
-
this.map.set(e, t);
|
|
24
|
-
}
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return s = r, s;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
u as __require
|
|
32
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __module as T } from "../../../_virtual/re.js";
|
|
2
|
-
import { __require as X } from "./constants.js";
|
|
3
|
-
import { __require as c } from "./debug.js";
|
|
4
|
-
var D;
|
|
5
|
-
function f() {
|
|
6
|
-
return D ? T.exports : (D = 1, (function(C, N) {
|
|
7
|
-
const {
|
|
8
|
-
MAX_SAFE_COMPONENT_LENGTH: e,
|
|
9
|
-
MAX_SAFE_BUILD_LENGTH: r,
|
|
10
|
-
MAX_LENGTH: P
|
|
11
|
-
} = X(), F = c();
|
|
12
|
-
N = C.exports = {};
|
|
13
|
-
const t = N.re = [], G = N.safeRe = [], E = N.src = [], n = N.safeSrc = [], I = N.t = {};
|
|
14
|
-
let U = 0;
|
|
15
|
-
const S = "[a-zA-Z0-9-]", M = [
|
|
16
|
-
["\\s", 1],
|
|
17
|
-
["\\d", P],
|
|
18
|
-
[S, r]
|
|
19
|
-
], o = (O) => {
|
|
20
|
-
for (const [L, A] of M)
|
|
21
|
-
O = O.split(`${L}*`).join(`${L}{0,${A}}`).split(`${L}+`).join(`${L}{1,${A}}`);
|
|
22
|
-
return O;
|
|
23
|
-
}, R = (O, L, A) => {
|
|
24
|
-
const s = o(L), $ = U++;
|
|
25
|
-
F(O, $, L), I[O] = $, E[$] = L, n[$] = s, t[$] = new RegExp(L, A ? "g" : void 0), G[$] = new RegExp(s, A ? "g" : void 0);
|
|
26
|
-
};
|
|
27
|
-
R("NUMERICIDENTIFIER", "0|[1-9]\\d*"), R("NUMERICIDENTIFIERLOOSE", "\\d+"), R("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${S}*`), R("MAINVERSION", `(${E[I.NUMERICIDENTIFIER]})\\.(${E[I.NUMERICIDENTIFIER]})\\.(${E[I.NUMERICIDENTIFIER]})`), R("MAINVERSIONLOOSE", `(${E[I.NUMERICIDENTIFIERLOOSE]})\\.(${E[I.NUMERICIDENTIFIERLOOSE]})\\.(${E[I.NUMERICIDENTIFIERLOOSE]})`), R("PRERELEASEIDENTIFIER", `(?:${E[I.NONNUMERICIDENTIFIER]}|${E[I.NUMERICIDENTIFIER]})`), R("PRERELEASEIDENTIFIERLOOSE", `(?:${E[I.NONNUMERICIDENTIFIER]}|${E[I.NUMERICIDENTIFIERLOOSE]})`), R("PRERELEASE", `(?:-(${E[I.PRERELEASEIDENTIFIER]}(?:\\.${E[I.PRERELEASEIDENTIFIER]})*))`), R("PRERELEASELOOSE", `(?:-?(${E[I.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${E[I.PRERELEASEIDENTIFIERLOOSE]})*))`), R("BUILDIDENTIFIER", `${S}+`), R("BUILD", `(?:\\+(${E[I.BUILDIDENTIFIER]}(?:\\.${E[I.BUILDIDENTIFIER]})*))`), R("FULLPLAIN", `v?${E[I.MAINVERSION]}${E[I.PRERELEASE]}?${E[I.BUILD]}?`), R("FULL", `^${E[I.FULLPLAIN]}$`), R("LOOSEPLAIN", `[v=\\s]*${E[I.MAINVERSIONLOOSE]}${E[I.PRERELEASELOOSE]}?${E[I.BUILD]}?`), R("LOOSE", `^${E[I.LOOSEPLAIN]}$`), R("GTLT", "((?:<|>)?=?)"), R("XRANGEIDENTIFIERLOOSE", `${E[I.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), R("XRANGEIDENTIFIER", `${E[I.NUMERICIDENTIFIER]}|x|X|\\*`), R("XRANGEPLAIN", `[v=\\s]*(${E[I.XRANGEIDENTIFIER]})(?:\\.(${E[I.XRANGEIDENTIFIER]})(?:\\.(${E[I.XRANGEIDENTIFIER]})(?:${E[I.PRERELEASE]})?${E[I.BUILD]}?)?)?`), R("XRANGEPLAINLOOSE", `[v=\\s]*(${E[I.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[I.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[I.XRANGEIDENTIFIERLOOSE]})(?:${E[I.PRERELEASELOOSE]})?${E[I.BUILD]}?)?)?`), R("XRANGE", `^${E[I.GTLT]}\\s*${E[I.XRANGEPLAIN]}$`), R("XRANGELOOSE", `^${E[I.GTLT]}\\s*${E[I.XRANGEPLAINLOOSE]}$`), R("COERCEPLAIN", `(^|[^\\d])(\\d{1,${e}})(?:\\.(\\d{1,${e}}))?(?:\\.(\\d{1,${e}}))?`), R("COERCE", `${E[I.COERCEPLAIN]}(?:$|[^\\d])`), R("COERCEFULL", E[I.COERCEPLAIN] + `(?:${E[I.PRERELEASE]})?(?:${E[I.BUILD]})?(?:$|[^\\d])`), R("COERCERTL", E[I.COERCE], !0), R("COERCERTLFULL", E[I.COERCEFULL], !0), R("LONETILDE", "(?:~>?)"), R("TILDETRIM", `(\\s*)${E[I.LONETILDE]}\\s+`, !0), N.tildeTrimReplace = "$1~", R("TILDE", `^${E[I.LONETILDE]}${E[I.XRANGEPLAIN]}$`), R("TILDELOOSE", `^${E[I.LONETILDE]}${E[I.XRANGEPLAINLOOSE]}$`), R("LONECARET", "(?:\\^)"), R("CARETTRIM", `(\\s*)${E[I.LONECARET]}\\s+`, !0), N.caretTrimReplace = "$1^", R("CARET", `^${E[I.LONECARET]}${E[I.XRANGEPLAIN]}$`), R("CARETLOOSE", `^${E[I.LONECARET]}${E[I.XRANGEPLAINLOOSE]}$`), R("COMPARATORLOOSE", `^${E[I.GTLT]}\\s*(${E[I.LOOSEPLAIN]})$|^$`), R("COMPARATOR", `^${E[I.GTLT]}\\s*(${E[I.FULLPLAIN]})$|^$`), R("COMPARATORTRIM", `(\\s*)${E[I.GTLT]}\\s*(${E[I.LOOSEPLAIN]}|${E[I.XRANGEPLAIN]})`, !0), N.comparatorTrimReplace = "$1$2$3", R("HYPHENRANGE", `^\\s*(${E[I.XRANGEPLAIN]})\\s+-\\s+(${E[I.XRANGEPLAIN]})\\s*$`), R("HYPHENRANGELOOSE", `^\\s*(${E[I.XRANGEPLAINLOOSE]})\\s+-\\s+(${E[I.XRANGEPLAINLOOSE]})\\s*$`), R("STAR", "(<|>)?=?\\s*\\*"), R("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), R("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
28
|
-
})(T, T.exports), T.exports);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
f as __require
|
|
32
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __require as o } from "../classes/semver.js";
|
|
2
|
-
import { __require as c } from "../classes/range.js";
|
|
3
|
-
var a, u;
|
|
4
|
-
function q() {
|
|
5
|
-
if (u) return a;
|
|
6
|
-
u = 1;
|
|
7
|
-
const f = o(), m = c();
|
|
8
|
-
return a = (s, l, i) => {
|
|
9
|
-
let r = null, n = null, t = null;
|
|
10
|
-
try {
|
|
11
|
-
t = new m(l, i);
|
|
12
|
-
} catch {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return s.forEach((e) => {
|
|
16
|
-
t.test(e) && (!r || n.compare(e) === -1) && (r = e, n = new f(r, i));
|
|
17
|
-
}), r;
|
|
18
|
-
}, a;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
q as __require
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __require as o } from "../classes/semver.js";
|
|
2
|
-
import { __require as c } from "../classes/range.js";
|
|
3
|
-
var i, u;
|
|
4
|
-
function _() {
|
|
5
|
-
if (u) return i;
|
|
6
|
-
u = 1;
|
|
7
|
-
const f = o(), m = c();
|
|
8
|
-
return i = (s, l, n) => {
|
|
9
|
-
let r = null, t = null, a = null;
|
|
10
|
-
try {
|
|
11
|
-
a = new m(l, n);
|
|
12
|
-
} catch {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return s.forEach((e) => {
|
|
16
|
-
a.test(e) && (!r || t.compare(e) === 1) && (r = e, t = new f(r, n));
|
|
17
|
-
}), r;
|
|
18
|
-
}, i;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
_ as __require
|
|
22
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __require as p } from "../classes/semver.js";
|
|
2
|
-
import { __require as q } from "../classes/range.js";
|
|
3
|
-
import { __require as _ } from "../functions/gt.js";
|
|
4
|
-
var u, c;
|
|
5
|
-
function d() {
|
|
6
|
-
if (c) return u;
|
|
7
|
-
c = 1;
|
|
8
|
-
const n = p(), f = q(), a = _();
|
|
9
|
-
return u = (r, l) => {
|
|
10
|
-
r = new f(r, l);
|
|
11
|
-
let e = new n("0.0.0");
|
|
12
|
-
if (r.test(e) || (e = new n("0.0.0-0"), r.test(e)))
|
|
13
|
-
return e;
|
|
14
|
-
e = null;
|
|
15
|
-
for (let s = 0; s < r.set.length; ++s) {
|
|
16
|
-
const m = r.set[s];
|
|
17
|
-
let i = null;
|
|
18
|
-
m.forEach((o) => {
|
|
19
|
-
const t = new n(o.semver.version);
|
|
20
|
-
switch (o.operator) {
|
|
21
|
-
case ">":
|
|
22
|
-
t.prerelease.length === 0 ? t.patch++ : t.prerelease.push(0), t.raw = t.format();
|
|
23
|
-
/* fallthrough */
|
|
24
|
-
case "":
|
|
25
|
-
case ">=":
|
|
26
|
-
(!i || a(t, i)) && (i = t);
|
|
27
|
-
break;
|
|
28
|
-
case "<":
|
|
29
|
-
case "<=":
|
|
30
|
-
break;
|
|
31
|
-
/* istanbul ignore next */
|
|
32
|
-
default:
|
|
33
|
-
throw new Error(`Unexpected operation: ${o.operator}`);
|
|
34
|
-
}
|
|
35
|
-
}), i && (!e || a(e, i)) && (e = i);
|
|
36
|
-
}
|
|
37
|
-
return e && r.test(e) ? e : null;
|
|
38
|
-
}, u;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
d as __require
|
|
42
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __require as C } from "../classes/semver.js";
|
|
2
|
-
import { __require as E } from "../classes/comparator.js";
|
|
3
|
-
import { __require as G } from "../classes/range.js";
|
|
4
|
-
import { __require as L } from "../functions/satisfies.js";
|
|
5
|
-
import { __require as O } from "../functions/gt.js";
|
|
6
|
-
import { __require as x } from "../functions/lt.js";
|
|
7
|
-
import { __require as y } from "../functions/lte.js";
|
|
8
|
-
import { __require as A } from "../functions/gte.js";
|
|
9
|
-
var q, d;
|
|
10
|
-
function F() {
|
|
11
|
-
if (d) return q;
|
|
12
|
-
d = 1;
|
|
13
|
-
const h = C(), _ = E(), { ANY: v } = _, w = G(), g = L(), c = O(), p = x(), R = y(), S = A();
|
|
14
|
-
return q = (s, i, b, u) => {
|
|
15
|
-
s = new h(s, u), i = new w(i, u);
|
|
16
|
-
let m, a, o, f, l;
|
|
17
|
-
switch (b) {
|
|
18
|
-
case ">":
|
|
19
|
-
m = c, a = R, o = p, f = ">", l = ">=";
|
|
20
|
-
break;
|
|
21
|
-
case "<":
|
|
22
|
-
m = p, a = S, o = c, f = "<", l = "<=";
|
|
23
|
-
break;
|
|
24
|
-
default:
|
|
25
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
26
|
-
}
|
|
27
|
-
if (g(s, i, u))
|
|
28
|
-
return !1;
|
|
29
|
-
for (let n = 0; n < i.set.length; ++n) {
|
|
30
|
-
const k = i.set[n];
|
|
31
|
-
let t = null, e = null;
|
|
32
|
-
if (k.forEach((r) => {
|
|
33
|
-
r.semver === v && (r = new _(">=0.0.0")), t = t || r, e = e || r, m(r.semver, t.semver, u) ? t = r : o(r.semver, e.semver, u) && (e = r);
|
|
34
|
-
}), t.operator === f || t.operator === l || (!e.operator || e.operator === f) && a(s, e.semver))
|
|
35
|
-
return !1;
|
|
36
|
-
if (e.operator === l && o(s, e.semver))
|
|
37
|
-
return !1;
|
|
38
|
-
}
|
|
39
|
-
return !0;
|
|
40
|
-
}, q;
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
F as __require
|
|
44
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __require as d } from "../functions/satisfies.js";
|
|
2
|
-
import { __require as _ } from "../functions/compare.js";
|
|
3
|
-
var u, c;
|
|
4
|
-
function S() {
|
|
5
|
-
if (c) return u;
|
|
6
|
-
c = 1;
|
|
7
|
-
const m = d(), a = _();
|
|
8
|
-
return u = (h, t, f) => {
|
|
9
|
-
const n = [];
|
|
10
|
-
let s = null, l = null;
|
|
11
|
-
const o = h.sort((i, e) => a(i, e, f));
|
|
12
|
-
for (const i of o)
|
|
13
|
-
m(i, t, f) ? (l = i, s || (s = i)) : (l && n.push([s, l]), l = null, s = null);
|
|
14
|
-
s && n.push([s, null]);
|
|
15
|
-
const r = [];
|
|
16
|
-
for (const [i, e] of n)
|
|
17
|
-
i === e ? r.push(i) : !e && i === o[0] ? r.push("*") : e ? i === o[0] ? r.push(`<=${e}`) : r.push(`${i} - ${e}`) : r.push(`>=${i}`);
|
|
18
|
-
const p = r.join(" || "), q = typeof t.raw == "string" ? t.raw : String(t);
|
|
19
|
-
return p.length < q.length ? p : t;
|
|
20
|
-
}, u;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
S as __require
|
|
24
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { __require as L } from "../classes/range.js";
|
|
2
|
-
import { __require as N } from "../classes/comparator.js";
|
|
3
|
-
import { __require as V } from "../functions/satisfies.js";
|
|
4
|
-
import { __require as x } from "../functions/compare.js";
|
|
5
|
-
var S, D;
|
|
6
|
-
function k() {
|
|
7
|
-
if (D) return S;
|
|
8
|
-
D = 1;
|
|
9
|
-
const _ = L(), m = N(), { ANY: c } = m, u = V(), p = x(), j = (t, r, s = {}) => {
|
|
10
|
-
if (t === r)
|
|
11
|
-
return !0;
|
|
12
|
-
t = new _(t, s), r = new _(r, s);
|
|
13
|
-
let o = !1;
|
|
14
|
-
e: for (const l of t.set) {
|
|
15
|
-
for (const n of r.set) {
|
|
16
|
-
const f = R(l, n, s);
|
|
17
|
-
if (o = o || f !== null, f)
|
|
18
|
-
continue e;
|
|
19
|
-
}
|
|
20
|
-
if (o)
|
|
21
|
-
return !1;
|
|
22
|
-
}
|
|
23
|
-
return !0;
|
|
24
|
-
}, C = [new m(">=0.0.0-0")], w = [new m(">=0.0.0")], R = (t, r, s) => {
|
|
25
|
-
if (t === r)
|
|
26
|
-
return !0;
|
|
27
|
-
if (t.length === 1 && t[0].semver === c) {
|
|
28
|
-
if (r.length === 1 && r[0].semver === c)
|
|
29
|
-
return !0;
|
|
30
|
-
s.includePrerelease ? t = C : t = w;
|
|
31
|
-
}
|
|
32
|
-
if (r.length === 1 && r[0].semver === c) {
|
|
33
|
-
if (s.includePrerelease)
|
|
34
|
-
return !0;
|
|
35
|
-
r = w;
|
|
36
|
-
}
|
|
37
|
-
const o = /* @__PURE__ */ new Set();
|
|
38
|
-
let l, n;
|
|
39
|
-
for (const e of t)
|
|
40
|
-
e.operator === ">" || e.operator === ">=" ? l = P(l, e, s) : e.operator === "<" || e.operator === "<=" ? n = T(n, e, s) : o.add(e.semver);
|
|
41
|
-
if (o.size > 1)
|
|
42
|
-
return null;
|
|
43
|
-
let f;
|
|
44
|
-
if (l && n) {
|
|
45
|
-
if (f = p(l.semver, n.semver, s), f > 0)
|
|
46
|
-
return null;
|
|
47
|
-
if (f === 0 && (l.operator !== ">=" || n.operator !== "<="))
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
for (const e of o) {
|
|
51
|
-
if (l && !u(e, String(l), s) || n && !u(e, String(n), s))
|
|
52
|
-
return null;
|
|
53
|
-
for (const G of r)
|
|
54
|
-
if (!u(e, String(G), s))
|
|
55
|
-
return !1;
|
|
56
|
-
return !0;
|
|
57
|
-
}
|
|
58
|
-
let v, h, g, q, a = n && !s.includePrerelease && n.semver.prerelease.length ? n.semver : !1, i = l && !s.includePrerelease && l.semver.prerelease.length ? l.semver : !1;
|
|
59
|
-
a && a.prerelease.length === 1 && n.operator === "<" && a.prerelease[0] === 0 && (a = !1);
|
|
60
|
-
for (const e of r) {
|
|
61
|
-
if (q = q || e.operator === ">" || e.operator === ">=", g = g || e.operator === "<" || e.operator === "<=", l) {
|
|
62
|
-
if (i && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === i.major && e.semver.minor === i.minor && e.semver.patch === i.patch && (i = !1), e.operator === ">" || e.operator === ">=") {
|
|
63
|
-
if (v = P(l, e, s), v === e && v !== l)
|
|
64
|
-
return !1;
|
|
65
|
-
} else if (l.operator === ">=" && !u(l.semver, String(e), s))
|
|
66
|
-
return !1;
|
|
67
|
-
}
|
|
68
|
-
if (n) {
|
|
69
|
-
if (a && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === a.major && e.semver.minor === a.minor && e.semver.patch === a.patch && (a = !1), e.operator === "<" || e.operator === "<=") {
|
|
70
|
-
if (h = T(n, e, s), h === e && h !== n)
|
|
71
|
-
return !1;
|
|
72
|
-
} else if (n.operator === "<=" && !u(n.semver, String(e), s))
|
|
73
|
-
return !1;
|
|
74
|
-
}
|
|
75
|
-
if (!e.operator && (n || l) && f !== 0)
|
|
76
|
-
return !1;
|
|
77
|
-
}
|
|
78
|
-
return !(l && g && !n && f !== 0 || n && q && !l && f !== 0 || i || a);
|
|
79
|
-
}, P = (t, r, s) => {
|
|
80
|
-
if (!t)
|
|
81
|
-
return r;
|
|
82
|
-
const o = p(t.semver, r.semver, s);
|
|
83
|
-
return o > 0 ? t : o < 0 || r.operator === ">" && t.operator === ">=" ? r : t;
|
|
84
|
-
}, T = (t, r, s) => {
|
|
85
|
-
if (!t)
|
|
86
|
-
return r;
|
|
87
|
-
const o = p(t.semver, r.semver, s);
|
|
88
|
-
return o < 0 ? t : o > 0 || r.operator === "<" && t.operator === "<=" ? r : t;
|
|
89
|
-
};
|
|
90
|
-
return S = j, S;
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
k as __require
|
|
94
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __require as m } from "../classes/range.js";
|
|
2
|
-
var r, o;
|
|
3
|
-
function u() {
|
|
4
|
-
if (o) return r;
|
|
5
|
-
o = 1;
|
|
6
|
-
const a = m();
|
|
7
|
-
return r = (e, t) => new a(e, t).set.map((s) => s.map((i) => i.value).join(" ").trim().split(" ")), r;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
u as __require
|
|
11
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __require as t } from "../classes/range.js";
|
|
2
|
-
var r, e;
|
|
3
|
-
function o() {
|
|
4
|
-
if (e) return r;
|
|
5
|
-
e = 1;
|
|
6
|
-
const a = t();
|
|
7
|
-
return r = (n, i) => {
|
|
8
|
-
try {
|
|
9
|
-
return new a(n, i).range || "*";
|
|
10
|
-
} catch {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
}, r;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
o as __require
|
|
17
|
-
};
|