@jam-comments/server-utilities 1.0.4 → 1.0.5
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/index.es.js +62 -57
- package/dist/index.umd.js +5 -5
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
const
|
|
1
|
+
const V = () => {
|
|
2
|
+
var u, h;
|
|
3
|
+
return typeof process > "u" ? !1 : ((u = process.env) == null ? void 0 : u.NODE_ENV) === "production" || ((h = process.env) == null ? void 0 : h.JAM_COMMENTS_ENV) == "production";
|
|
4
|
+
}, K = () => {
|
|
2
5
|
var u;
|
|
3
6
|
return typeof process < "u" && ((u = process.env) == null ? void 0 : u.JAM_COMMENTS_BASE_URL) ? process.env.JAM_COMMENTS_BASE_URL : "https://go.jamcomments.com";
|
|
4
|
-
},
|
|
7
|
+
}, ue = (u, h = fetch) => async ({
|
|
5
8
|
path: a,
|
|
6
9
|
domain: g,
|
|
7
10
|
apiKey: e
|
|
@@ -9,7 +12,9 @@ const K = () => {
|
|
|
9
12
|
const o = new URLSearchParams({
|
|
10
13
|
path: a || "/",
|
|
11
14
|
domain: g
|
|
12
|
-
})
|
|
15
|
+
});
|
|
16
|
+
V() || o.set("stub", "true");
|
|
17
|
+
const t = `${K()}/api/markup?${o}`, n = await h(t, {
|
|
13
18
|
method: "GET",
|
|
14
19
|
headers: {
|
|
15
20
|
Authorization: `Bearer ${e}`,
|
|
@@ -23,7 +28,7 @@ const K = () => {
|
|
|
23
28
|
throw `JamComments request failed! Status code: ${n.status}, message: ${n.statusText}, request URL: ${t}`;
|
|
24
29
|
return await n.text();
|
|
25
30
|
};
|
|
26
|
-
var
|
|
31
|
+
var L = { exports: {} }, j, q;
|
|
27
32
|
function Y() {
|
|
28
33
|
return q || (q = 1, j = {
|
|
29
34
|
aliceblue: [240, 248, 255],
|
|
@@ -176,10 +181,10 @@ function Y() {
|
|
|
176
181
|
yellowgreen: [154, 205, 50]
|
|
177
182
|
}), j;
|
|
178
183
|
}
|
|
179
|
-
var
|
|
184
|
+
var E, _;
|
|
180
185
|
function U() {
|
|
181
186
|
if (_)
|
|
182
|
-
return
|
|
187
|
+
return E;
|
|
183
188
|
_ = 1;
|
|
184
189
|
const u = Y(), h = {};
|
|
185
190
|
for (const e of Object.keys(u))
|
|
@@ -201,7 +206,7 @@ function U() {
|
|
|
201
206
|
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
202
207
|
gray: { channels: 1, labels: ["gray"] }
|
|
203
208
|
};
|
|
204
|
-
|
|
209
|
+
E = a;
|
|
205
210
|
for (const e of Object.keys(a)) {
|
|
206
211
|
if (!("channels" in a[e]))
|
|
207
212
|
throw new Error("missing channels property: " + e);
|
|
@@ -478,10 +483,10 @@ function U() {
|
|
|
478
483
|
return "000000".substring(n.length) + n;
|
|
479
484
|
}, a.rgb.gray = function(e) {
|
|
480
485
|
return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
|
|
481
|
-
},
|
|
486
|
+
}, E;
|
|
482
487
|
}
|
|
483
488
|
var O, I;
|
|
484
|
-
function
|
|
489
|
+
function H() {
|
|
485
490
|
if (I)
|
|
486
491
|
return O;
|
|
487
492
|
I = 1;
|
|
@@ -527,12 +532,12 @@ function V() {
|
|
|
527
532
|
return n;
|
|
528
533
|
}, O;
|
|
529
534
|
}
|
|
530
|
-
var
|
|
531
|
-
function
|
|
535
|
+
var B, N;
|
|
536
|
+
function Q() {
|
|
532
537
|
if (N)
|
|
533
|
-
return
|
|
538
|
+
return B;
|
|
534
539
|
N = 1;
|
|
535
|
-
const u = U(), h =
|
|
540
|
+
const u = U(), h = H(), a = {}, g = Object.keys(u);
|
|
536
541
|
function e(t) {
|
|
537
542
|
const n = function(...r) {
|
|
538
543
|
const s = r[0];
|
|
@@ -561,7 +566,7 @@ function H() {
|
|
|
561
566
|
const l = n[s];
|
|
562
567
|
a[t][s] = o(l), a[t][s].raw = e(l);
|
|
563
568
|
});
|
|
564
|
-
}),
|
|
569
|
+
}), B = a, B;
|
|
565
570
|
}
|
|
566
571
|
(function(u) {
|
|
567
572
|
const h = (l, c) => (...i) => `\x1B[${l(...i) + c}m`, a = (l, c) => (...i) => {
|
|
@@ -586,7 +591,7 @@ function H() {
|
|
|
586
591
|
};
|
|
587
592
|
let n;
|
|
588
593
|
const r = (l, c, i, f) => {
|
|
589
|
-
n === void 0 && (n =
|
|
594
|
+
n === void 0 && (n = Q());
|
|
590
595
|
const b = f ? 10 : 0, d = {};
|
|
591
596
|
for (const [m, p] of Object.entries(n)) {
|
|
592
597
|
const y = m === "ansi16" ? "ansi" : m;
|
|
@@ -664,12 +669,12 @@ function H() {
|
|
|
664
669
|
enumerable: !0,
|
|
665
670
|
get: s
|
|
666
671
|
});
|
|
667
|
-
})(
|
|
668
|
-
var
|
|
672
|
+
})(L);
|
|
673
|
+
var Z = {
|
|
669
674
|
stdout: !1,
|
|
670
675
|
stderr: !1
|
|
671
676
|
};
|
|
672
|
-
const
|
|
677
|
+
const ee = (u, h, a) => {
|
|
673
678
|
let g = u.indexOf(h);
|
|
674
679
|
if (g === -1)
|
|
675
680
|
return u;
|
|
@@ -679,7 +684,7 @@ const Z = (u, h, a) => {
|
|
|
679
684
|
t += u.substr(o, g - o) + h + a, o = g + e, g = u.indexOf(h, o);
|
|
680
685
|
while (g !== -1);
|
|
681
686
|
return t += u.substr(o), t;
|
|
682
|
-
},
|
|
687
|
+
}, te = (u, h, a, g) => {
|
|
683
688
|
let e = 0, o = "";
|
|
684
689
|
do {
|
|
685
690
|
const t = u[g - 1] === "\r";
|
|
@@ -690,11 +695,11 @@ const Z = (u, h, a) => {
|
|
|
690
695
|
} while (g !== -1);
|
|
691
696
|
return o += u.substr(e), o;
|
|
692
697
|
};
|
|
693
|
-
var
|
|
694
|
-
stringReplaceAll:
|
|
695
|
-
stringEncaseCRLFWithFirstIndex:
|
|
698
|
+
var ne = {
|
|
699
|
+
stringReplaceAll: ee,
|
|
700
|
+
stringEncaseCRLFWithFirstIndex: te
|
|
696
701
|
}, S, z;
|
|
697
|
-
function
|
|
702
|
+
function re() {
|
|
698
703
|
if (z)
|
|
699
704
|
return S;
|
|
700
705
|
z = 1;
|
|
@@ -764,8 +769,8 @@ function ne() {
|
|
|
764
769
|
if (d)
|
|
765
770
|
f.push(o(d));
|
|
766
771
|
else if (p) {
|
|
767
|
-
const
|
|
768
|
-
f = [], i.push(c.length === 0 ?
|
|
772
|
+
const F = f.join("");
|
|
773
|
+
f = [], i.push(c.length === 0 ? F : r(s, c)(F)), c.push({ inverse: m, styles: n(p) });
|
|
769
774
|
} else if (y) {
|
|
770
775
|
if (c.length === 0)
|
|
771
776
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
@@ -779,38 +784,38 @@ function ne() {
|
|
|
779
784
|
return i.join("");
|
|
780
785
|
}, S;
|
|
781
786
|
}
|
|
782
|
-
const w =
|
|
783
|
-
stringReplaceAll:
|
|
784
|
-
stringEncaseCRLFWithFirstIndex:
|
|
785
|
-
} =
|
|
787
|
+
const w = L.exports, { stdout: $, stderr: P } = Z, {
|
|
788
|
+
stringReplaceAll: oe,
|
|
789
|
+
stringEncaseCRLFWithFirstIndex: se
|
|
790
|
+
} = ne, { isArray: k } = Array, G = [
|
|
786
791
|
"ansi",
|
|
787
792
|
"ansi",
|
|
788
793
|
"ansi256",
|
|
789
794
|
"ansi16m"
|
|
790
|
-
], v = /* @__PURE__ */ Object.create(null),
|
|
795
|
+
], v = /* @__PURE__ */ Object.create(null), le = (u, h = {}) => {
|
|
791
796
|
if (h.level && !(Number.isInteger(h.level) && h.level >= 0 && h.level <= 3))
|
|
792
797
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
793
798
|
const a = $ ? $.level : 0;
|
|
794
799
|
u.level = h.level === void 0 ? a : h.level;
|
|
795
800
|
};
|
|
796
|
-
class
|
|
801
|
+
class ce {
|
|
797
802
|
constructor(h) {
|
|
798
803
|
return J(h);
|
|
799
804
|
}
|
|
800
805
|
}
|
|
801
806
|
const J = (u) => {
|
|
802
807
|
const h = {};
|
|
803
|
-
return
|
|
808
|
+
return le(h, u), h.template = (...a) => X(h.template, ...a), Object.setPrototypeOf(h, M.prototype), Object.setPrototypeOf(h.template, h), h.template.constructor = () => {
|
|
804
809
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
805
|
-
}, h.template.Instance =
|
|
810
|
+
}, h.template.Instance = ce, h.template;
|
|
806
811
|
};
|
|
807
|
-
function
|
|
812
|
+
function M(u) {
|
|
808
813
|
return J(u);
|
|
809
814
|
}
|
|
810
815
|
for (const [u, h] of Object.entries(w))
|
|
811
816
|
v[u] = {
|
|
812
817
|
get() {
|
|
813
|
-
const a = C(this,
|
|
818
|
+
const a = C(this, R(h.open, h.close, this._styler), this._isEmpty);
|
|
814
819
|
return Object.defineProperty(this, u, { value: a }), a;
|
|
815
820
|
}
|
|
816
821
|
};
|
|
@@ -826,7 +831,7 @@ for (const u of W)
|
|
|
826
831
|
get() {
|
|
827
832
|
const { level: h } = this;
|
|
828
833
|
return function(...a) {
|
|
829
|
-
const g =
|
|
834
|
+
const g = R(w.color[G[h]][u](...a), w.color.close, this._styler);
|
|
830
835
|
return C(this, g, this._isEmpty);
|
|
831
836
|
};
|
|
832
837
|
}
|
|
@@ -837,13 +842,13 @@ for (const u of W) {
|
|
|
837
842
|
get() {
|
|
838
843
|
const { level: a } = this;
|
|
839
844
|
return function(...g) {
|
|
840
|
-
const e =
|
|
845
|
+
const e = R(w.bgColor[G[a]][u](...g), w.bgColor.close, this._styler);
|
|
841
846
|
return C(this, e, this._isEmpty);
|
|
842
847
|
};
|
|
843
848
|
}
|
|
844
849
|
};
|
|
845
850
|
}
|
|
846
|
-
const
|
|
851
|
+
const ae = Object.defineProperties(() => {
|
|
847
852
|
}, {
|
|
848
853
|
...v,
|
|
849
854
|
level: {
|
|
@@ -855,7 +860,7 @@ const ce = Object.defineProperties(() => {
|
|
|
855
860
|
this._generator.level = u;
|
|
856
861
|
}
|
|
857
862
|
}
|
|
858
|
-
}),
|
|
863
|
+
}), R = (u, h, a) => {
|
|
859
864
|
let g, e;
|
|
860
865
|
return a === void 0 ? (g = u, e = h) : (g = a.openAll + u, e = h + a.closeAll), {
|
|
861
866
|
open: u,
|
|
@@ -865,9 +870,9 @@ const ce = Object.defineProperties(() => {
|
|
|
865
870
|
parent: a
|
|
866
871
|
};
|
|
867
872
|
}, C = (u, h, a) => {
|
|
868
|
-
const g = (...e) => k(e[0]) && k(e[0].raw) ?
|
|
869
|
-
return Object.setPrototypeOf(g,
|
|
870
|
-
},
|
|
873
|
+
const g = (...e) => k(e[0]) && k(e[0].raw) ? T(g, X(g, ...e)) : T(g, e.length === 1 ? "" + e[0] : e.join(" "));
|
|
874
|
+
return Object.setPrototypeOf(g, ae), g._generator = u, g._styler = h, g._isEmpty = a, g;
|
|
875
|
+
}, T = (u, h) => {
|
|
871
876
|
if (u.level <= 0 || !h)
|
|
872
877
|
return u._isEmpty ? "" : h;
|
|
873
878
|
let a = u._styler;
|
|
@@ -876,10 +881,10 @@ const ce = Object.defineProperties(() => {
|
|
|
876
881
|
const { openAll: g, closeAll: e } = a;
|
|
877
882
|
if (h.indexOf("\x1B") !== -1)
|
|
878
883
|
for (; a !== void 0; )
|
|
879
|
-
h =
|
|
884
|
+
h = oe(h, a.close, a.open), a = a.parent;
|
|
880
885
|
const o = h.indexOf(`
|
|
881
886
|
`);
|
|
882
|
-
return o !== -1 && (h =
|
|
887
|
+
return o !== -1 && (h = se(h, e, g, o)), g + h + e;
|
|
883
888
|
};
|
|
884
889
|
let A;
|
|
885
890
|
const X = (u, ...h) => {
|
|
@@ -892,21 +897,21 @@ const X = (u, ...h) => {
|
|
|
892
897
|
String(g[o - 1]).replace(/[{}\\]/g, "\\$&"),
|
|
893
898
|
String(a.raw[o])
|
|
894
899
|
);
|
|
895
|
-
return A === void 0 && (A =
|
|
900
|
+
return A === void 0 && (A = re()), A(u, e.join(""));
|
|
896
901
|
};
|
|
897
|
-
Object.defineProperties(
|
|
898
|
-
const
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
var
|
|
903
|
-
const
|
|
904
|
-
console.log(`${
|
|
905
|
-
},
|
|
902
|
+
Object.defineProperties(M.prototype, v);
|
|
903
|
+
const x = M();
|
|
904
|
+
x.supportsColor = $;
|
|
905
|
+
x.stderr = M({ level: P ? P.level : 0 });
|
|
906
|
+
x.stderr.supportsColor = P;
|
|
907
|
+
var ie = x;
|
|
908
|
+
const he = (u) => {
|
|
909
|
+
console.log(`${ie.magenta("JamComments:")} ${u}`);
|
|
910
|
+
}, fe = (u) => {
|
|
906
911
|
console.error(`JamComments: ${u}`);
|
|
907
912
|
};
|
|
908
913
|
export {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
914
|
+
he as log,
|
|
915
|
+
fe as logError,
|
|
916
|
+
ue as markupFetcher
|
|
912
917
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(m,k){typeof exports=="object"&&typeof module<"u"?k(exports):typeof define=="function"&&define.amd?define(["exports"],k):(m=typeof globalThis<"u"?globalThis:m||self,k(m.JamComments={}))})(this,function(m){"use strict";const k=()=>{var u;return typeof process<"u"&&((u=process.env)==null?void 0:u.JAM_COMMENTS_BASE_URL)?process.env.JAM_COMMENTS_BASE_URL:"https://go.jamcomments.com"},Y=(u,h=fetch)=>async({path:i,domain:g,apiKey:e})=>{const o=new URLSearchParams({path:i||"/",domain:g}),t=`${k()}/api/markup?${o}`,n=await h(t,{method:"GET",headers:{Authorization:`Bearer ${e}`,Accept:"application/json","X-Platform":u}});if(n.status===401)throw"JamComments: Unauthorized! Are your domain and API key set correctly?";if(!n.ok)throw`JamComments request failed! Status code: ${n.status}, message: ${n.statusText}, request URL: ${t}`;return await n.text()};var _={exports:{}},O,I;function V(){return I||(I=1,O={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),O}var B,N;function T(){if(N)return B;N=1;const u=V(),h={};for(const e of Object.keys(u))h[u[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};B=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:o,labels:t}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:o}),Object.defineProperty(i[e],"labels",{value:t})}i.rgb.hsl=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(o,t,n),s=Math.max(o,t,n),l=s-r;let c,a;s===r?c=0:o===s?c=(t-n)/l:t===s?c=2+(n-o)/l:n===s&&(c=4+(o-t)/l),c=Math.min(c*60,360),c<0&&(c+=360);const f=(r+s)/2;return s===r?a=0:f<=.5?a=l/(s+r):a=l/(2-s-r),[c,a*100,f*100]},i.rgb.hsv=function(e){let o,t,n,r,s;const l=e[0]/255,c=e[1]/255,a=e[2]/255,f=Math.max(l,c,a),d=f-Math.min(l,c,a),b=function(p){return(f-p)/6/d+1/2};return d===0?(r=0,s=0):(s=d/f,o=b(l),t=b(c),n=b(a),l===f?r=n-t:c===f?r=1/3+o-n:a===f&&(r=2/3+t-o),r<0?r+=1:r>1&&(r-=1)),[r*360,s*100,f*100]},i.rgb.hwb=function(e){const o=e[0],t=e[1];let n=e[2];const r=i.rgb.hsl(e)[0],s=1/255*Math.min(o,Math.min(t,n));return n=1-1/255*Math.max(o,Math.max(t,n)),[r,s*100,n*100]},i.rgb.cmyk=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(1-o,1-t,1-n),s=(1-o-r)/(1-r)||0,l=(1-t-r)/(1-r)||0,c=(1-n-r)/(1-r)||0;return[s*100,l*100,c*100,r*100]};function g(e,o){return(e[0]-o[0])**2+(e[1]-o[1])**2+(e[2]-o[2])**2}return i.rgb.keyword=function(e){const o=h[e];if(o)return o;let t=1/0,n;for(const r of Object.keys(u)){const s=u[r],l=g(e,s);l<t&&(t=l,n=r)}return n},i.keyword.rgb=function(e){return u[e]},i.rgb.xyz=function(e){let o=e[0]/255,t=e[1]/255,n=e[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const r=o*.4124+t*.3576+n*.1805,s=o*.2126+t*.7152+n*.0722,l=o*.0193+t*.1192+n*.9505;return[r*100,s*100,l*100]},i.rgb.lab=function(e){const o=i.rgb.xyz(e);let t=o[0],n=o[1],r=o[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const s=116*n-16,l=500*(t-n),c=200*(n-r);return[s,l,c]},i.hsl.rgb=function(e){const o=e[0]/360,t=e[1]/100,n=e[2]/100;let r,s,l;if(t===0)return l=n*255,[l,l,l];n<.5?r=n*(1+t):r=n+t-n*t;const c=2*n-r,a=[0,0,0];for(let f=0;f<3;f++)s=o+1/3*-(f-1),s<0&&s++,s>1&&s--,6*s<1?l=c+(r-c)*6*s:2*s<1?l=r:3*s<2?l=c+(r-c)*(2/3-s)*6:l=c,a[f]=l*255;return a},i.hsl.hsv=function(e){const o=e[0];let t=e[1]/100,n=e[2]/100,r=t;const s=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=s<=1?s:2-s;const l=(n+t)/2,c=n===0?2*r/(s+r):2*t/(n+t);return[o,c*100,l*100]},i.hsv.rgb=function(e){const o=e[0]/60,t=e[1]/100;let n=e[2]/100;const r=Math.floor(o)%6,s=o-Math.floor(o),l=255*n*(1-t),c=255*n*(1-t*s),a=255*n*(1-t*(1-s));switch(n*=255,r){case 0:return[n,a,l];case 1:return[c,n,l];case 2:return[l,n,a];case 3:return[l,c,n];case 4:return[a,l,n];case 5:return[n,l,c]}},i.hsv.hsl=function(e){const o=e[0],t=e[1]/100,n=e[2]/100,r=Math.max(n,.01);let s,l;l=(2-t)*n;const c=(2-t)*r;return s=t*r,s/=c<=1?c:2-c,s=s||0,l/=2,[o,s*100,l*100]},i.hwb.rgb=function(e){const o=e[0]/360;let t=e[1]/100,n=e[2]/100;const r=t+n;let s;r>1&&(t/=r,n/=r);const l=Math.floor(6*o),c=1-n;s=6*o-l,(l&1)!==0&&(s=1-s);const a=t+s*(c-t);let f,d,b;switch(l){default:case 6:case 0:f=c,d=a,b=t;break;case 1:f=a,d=c,b=t;break;case 2:f=t,d=c,b=a;break;case 3:f=t,d=a,b=c;break;case 4:f=a,d=t,b=c;break;case 5:f=c,d=t,b=a;break}return[f*255,d*255,b*255]},i.cmyk.rgb=function(e){const o=e[0]/100,t=e[1]/100,n=e[2]/100,r=e[3]/100,s=1-Math.min(1,o*(1-r)+r),l=1-Math.min(1,t*(1-r)+r),c=1-Math.min(1,n*(1-r)+r);return[s*255,l*255,c*255]},i.xyz.rgb=function(e){const o=e[0]/100,t=e[1]/100,n=e[2]/100;let r,s,l;return r=o*3.2406+t*-1.5372+n*-.4986,s=o*-.9689+t*1.8758+n*.0415,l=o*.0557+t*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[r*255,s*255,l*255]},i.xyz.lab=function(e){let o=e[0],t=e[1],n=e[2];o/=95.047,t/=100,n/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const r=116*t-16,s=500*(o-t),l=200*(t-n);return[r,s,l]},i.lab.xyz=function(e){const o=e[0],t=e[1],n=e[2];let r,s,l;s=(o+16)/116,r=t/500+s,l=s-n/200;const c=s**3,a=r**3,f=l**3;return s=c>.008856?c:(s-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,l=f>.008856?f:(l-16/116)/7.787,r*=95.047,s*=100,l*=108.883,[r,s,l]},i.lab.lch=function(e){const o=e[0],t=e[1],n=e[2];let r;r=Math.atan2(n,t)*360/2/Math.PI,r<0&&(r+=360);const l=Math.sqrt(t*t+n*n);return[o,l,r]},i.lch.lab=function(e){const o=e[0],t=e[1],r=e[2]/360*2*Math.PI,s=t*Math.cos(r),l=t*Math.sin(r);return[o,s,l]},i.rgb.ansi16=function(e,o=null){const[t,n,r]=e;let s=o===null?i.rgb.hsv(e)[2]:o;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return s===2&&(l+=60),l},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const o=e[0],t=e[1],n=e[2];return o===t&&t===n?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let o=e%10;if(o===0||o===7)return e>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const t=(~~(e>50)+1)*.5,n=(o&1)*t*255,r=(o>>1&1)*t*255,s=(o>>2&1)*t*255;return[n,r,s]},i.ansi256.rgb=function(e){if(e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let o;const t=Math.floor(e/36)/5*255,n=Math.floor((o=e%36)/6)/5*255,r=o%6/5*255;return[t,n,r]},i.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const o=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let t=o[0];o[0].length===3&&(t=t.split("").map(c=>c+c).join(""));const n=parseInt(t,16),r=n>>16&255,s=n>>8&255,l=n&255;return[r,s,l]},i.rgb.hcg=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.max(Math.max(o,t),n),s=Math.min(Math.min(o,t),n),l=r-s;let c,a;return l<1?c=s/(1-l):c=0,l<=0?a=0:r===o?a=(t-n)/l%6:r===t?a=2+(n-o)/l:a=4+(o-t)/l,a/=6,a%=1,[a*360,l*100,c*100]},i.hsl.hcg=function(e){const o=e[1]/100,t=e[2]/100,n=t<.5?2*o*t:2*o*(1-t);let r=0;return n<1&&(r=(t-.5*n)/(1-n)),[e[0],n*100,r*100]},i.hsv.hcg=function(e){const o=e[1]/100,t=e[2]/100,n=o*t;let r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],n*100,r*100]},i.hcg.rgb=function(e){const o=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];const r=[0,0,0],s=o%1*6,l=s%1,c=1-l;let a=0;switch(Math.floor(s)){case 0:r[0]=1,r[1]=l,r[2]=0;break;case 1:r[0]=c,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=l;break;case 3:r[0]=0,r[1]=c,r[2]=1;break;case 4:r[0]=l,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=c}return a=(1-t)*n,[(t*r[0]+a)*255,(t*r[1]+a)*255,(t*r[2]+a)*255]},i.hcg.hsv=function(e){const o=e[1]/100,t=e[2]/100,n=o+t*(1-o);let r=0;return n>0&&(r=o/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){const o=e[1]/100,n=e[2]/100*(1-o)+.5*o;let r=0;return n>0&&n<.5?r=o/(2*n):n>=.5&&n<1&&(r=o/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){const o=e[1]/100,t=e[2]/100,n=o+t*(1-o);return[e[0],(n-o)*100,(1-n)*100]},i.hwb.hcg=function(e){const o=e[1]/100,n=1-e[2]/100,r=n-o;let s=0;return r<1&&(s=(n-r)/(1-r)),[e[0],r*100,s*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const o=Math.round(e[0]/100*255)&255,n=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},B}var S,z;function H(){if(z)return S;z=1;const u=T();function h(){const o={},t=Object.keys(u);for(let n=t.length,r=0;r<n;r++)o[t[r]]={distance:-1,parent:null};return o}function i(o){const t=h(),n=[o];for(t[o].distance=0;n.length;){const r=n.pop(),s=Object.keys(u[r]);for(let l=s.length,c=0;c<l;c++){const a=s[c],f=t[a];f.distance===-1&&(f.distance=t[r].distance+1,f.parent=r,n.unshift(a))}}return t}function g(o,t){return function(n){return t(o(n))}}function e(o,t){const n=[t[o].parent,o];let r=u[t[o].parent][o],s=t[o].parent;for(;t[s].parent;)n.unshift(t[s].parent),r=g(u[t[s].parent][s],r),s=t[s].parent;return r.conversion=n,r}return S=function(o){const t=i(o),n={},r=Object.keys(t);for(let s=r.length,l=0;l<s;l++){const c=r[l];t[c].parent!==null&&(n[c]=e(c,t))}return n},S}var $,L;function Q(){if(L)return $;L=1;const u=T(),h=H(),i={},g=Object.keys(u);function e(t){const n=function(...r){const s=r[0];return s==null?s:(s.length>1&&(r=s),t(r))};return"conversion"in t&&(n.conversion=t.conversion),n}function o(t){const n=function(...r){const s=r[0];if(s==null)return s;s.length>1&&(r=s);const l=t(r);if(typeof l=="object")for(let c=l.length,a=0;a<c;a++)l[a]=Math.round(l[a]);return l};return"conversion"in t&&(n.conversion=t.conversion),n}return g.forEach(t=>{i[t]={},Object.defineProperty(i[t],"channels",{value:u[t].channels}),Object.defineProperty(i[t],"labels",{value:u[t].labels});const n=h(t);Object.keys(n).forEach(s=>{const l=n[s];i[t][s]=o(l),i[t][s].raw=e(l)})}),$=i,$}(function(u){const h=(l,c)=>(...a)=>`\x1B[${l(...a)+c}m`,i=(l,c)=>(...a)=>{const f=l(...a);return`\x1B[${38+c};5;${f}m`},g=(l,c)=>(...a)=>{const f=l(...a);return`\x1B[${38+c};2;${f[0]};${f[1]};${f[2]}m`},e=l=>l,o=(l,c,a)=>[l,c,a],t=(l,c,a)=>{Object.defineProperty(l,c,{get:()=>{const f=a();return Object.defineProperty(l,c,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})};let n;const r=(l,c,a,f)=>{n===void 0&&(n=Q());const d=f?10:0,b={};for(const[p,y]of Object.entries(n)){const w=p==="ansi16"?"ansi":p;p===c?b[w]=l(a,d):typeof y=="object"&&(b[w]=l(y[c],d))}return b};function s(){const l=new Map,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};c.color.gray=c.color.blackBright,c.bgColor.bgGray=c.bgColor.bgBlackBright,c.color.grey=c.color.blackBright,c.bgColor.bgGrey=c.bgColor.bgBlackBright;for(const[a,f]of Object.entries(c)){for(const[d,b]of Object.entries(f))c[d]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},f[d]=c[d],l.set(b[0],b[1]);Object.defineProperty(c,a,{value:f,enumerable:!1})}return Object.defineProperty(c,"codes",{value:l,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",t(c.color,"ansi",()=>r(h,"ansi16",e,!1)),t(c.color,"ansi256",()=>r(i,"ansi256",e,!1)),t(c.color,"ansi16m",()=>r(g,"rgb",o,!1)),t(c.bgColor,"ansi",()=>r(h,"ansi16",e,!0)),t(c.bgColor,"ansi256",()=>r(i,"ansi256",e,!0)),t(c.bgColor,"ansi16m",()=>r(g,"rgb",o,!0)),c}Object.defineProperty(u,"exports",{enumerable:!0,get:s})})(_);var Z={stdout:!1,stderr:!1},ee={stringReplaceAll:(u,h,i)=>{let g=u.indexOf(h);if(g===-1)return u;const e=h.length;let o=0,t="";do t+=u.substr(o,g-o)+h+i,o=g+e,g=u.indexOf(h,o);while(g!==-1);return t+=u.substr(o),t},stringEncaseCRLFWithFirstIndex:(u,h,i,g)=>{let e=0,o="";do{const t=u[g-1]==="\r";o+=u.substr(e,(t?g-1:g)-e)+h+(t?`\r
|
|
1
|
+
(function(m,k){typeof exports=="object"&&typeof module<"u"?k(exports):typeof define=="function"&&define.amd?define(["exports"],k):(m=typeof globalThis<"u"?globalThis:m||self,k(m.JamComments={}))})(this,function(m){"use strict";const k=()=>{var u,h;return typeof process>"u"?!1:((u=process.env)==null?void 0:u.NODE_ENV)==="production"||((h=process.env)==null?void 0:h.JAM_COMMENTS_ENV)=="production"},K=()=>{var u;return typeof process<"u"&&((u=process.env)==null?void 0:u.JAM_COMMENTS_BASE_URL)?process.env.JAM_COMMENTS_BASE_URL:"https://go.jamcomments.com"},Y=(u,h=fetch)=>async({path:i,domain:d,apiKey:e})=>{const o=new URLSearchParams({path:i||"/",domain:d});k()||o.set("stub","true");const t=`${K()}/api/markup?${o}`,n=await h(t,{method:"GET",headers:{Authorization:`Bearer ${e}`,Accept:"application/json","X-Platform":u}});if(n.status===401)throw"JamComments: Unauthorized! Are your domain and API key set correctly?";if(!n.ok)throw`JamComments request failed! Status code: ${n.status}, message: ${n.statusText}, request URL: ${t}`;return await n.text()};var _={exports:{}},O,I;function H(){return I||(I=1,O={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),O}var B,N;function T(){if(N)return B;N=1;const u=H(),h={};for(const e of Object.keys(u))h[u[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};B=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:o,labels:t}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:o}),Object.defineProperty(i[e],"labels",{value:t})}i.rgb.hsl=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(o,t,n),s=Math.max(o,t,n),l=s-r;let c,a;s===r?c=0:o===s?c=(t-n)/l:t===s?c=2+(n-o)/l:n===s&&(c=4+(o-t)/l),c=Math.min(c*60,360),c<0&&(c+=360);const f=(r+s)/2;return s===r?a=0:f<=.5?a=l/(s+r):a=l/(2-s-r),[c,a*100,f*100]},i.rgb.hsv=function(e){let o,t,n,r,s;const l=e[0]/255,c=e[1]/255,a=e[2]/255,f=Math.max(l,c,a),g=f-Math.min(l,c,a),b=function(p){return(f-p)/6/g+1/2};return g===0?(r=0,s=0):(s=g/f,o=b(l),t=b(c),n=b(a),l===f?r=n-t:c===f?r=1/3+o-n:a===f&&(r=2/3+t-o),r<0?r+=1:r>1&&(r-=1)),[r*360,s*100,f*100]},i.rgb.hwb=function(e){const o=e[0],t=e[1];let n=e[2];const r=i.rgb.hsl(e)[0],s=1/255*Math.min(o,Math.min(t,n));return n=1-1/255*Math.max(o,Math.max(t,n)),[r,s*100,n*100]},i.rgb.cmyk=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.min(1-o,1-t,1-n),s=(1-o-r)/(1-r)||0,l=(1-t-r)/(1-r)||0,c=(1-n-r)/(1-r)||0;return[s*100,l*100,c*100,r*100]};function d(e,o){return(e[0]-o[0])**2+(e[1]-o[1])**2+(e[2]-o[2])**2}return i.rgb.keyword=function(e){const o=h[e];if(o)return o;let t=1/0,n;for(const r of Object.keys(u)){const s=u[r],l=d(e,s);l<t&&(t=l,n=r)}return n},i.keyword.rgb=function(e){return u[e]},i.rgb.xyz=function(e){let o=e[0]/255,t=e[1]/255,n=e[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const r=o*.4124+t*.3576+n*.1805,s=o*.2126+t*.7152+n*.0722,l=o*.0193+t*.1192+n*.9505;return[r*100,s*100,l*100]},i.rgb.lab=function(e){const o=i.rgb.xyz(e);let t=o[0],n=o[1],r=o[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const s=116*n-16,l=500*(t-n),c=200*(n-r);return[s,l,c]},i.hsl.rgb=function(e){const o=e[0]/360,t=e[1]/100,n=e[2]/100;let r,s,l;if(t===0)return l=n*255,[l,l,l];n<.5?r=n*(1+t):r=n+t-n*t;const c=2*n-r,a=[0,0,0];for(let f=0;f<3;f++)s=o+1/3*-(f-1),s<0&&s++,s>1&&s--,6*s<1?l=c+(r-c)*6*s:2*s<1?l=r:3*s<2?l=c+(r-c)*(2/3-s)*6:l=c,a[f]=l*255;return a},i.hsl.hsv=function(e){const o=e[0];let t=e[1]/100,n=e[2]/100,r=t;const s=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=s<=1?s:2-s;const l=(n+t)/2,c=n===0?2*r/(s+r):2*t/(n+t);return[o,c*100,l*100]},i.hsv.rgb=function(e){const o=e[0]/60,t=e[1]/100;let n=e[2]/100;const r=Math.floor(o)%6,s=o-Math.floor(o),l=255*n*(1-t),c=255*n*(1-t*s),a=255*n*(1-t*(1-s));switch(n*=255,r){case 0:return[n,a,l];case 1:return[c,n,l];case 2:return[l,n,a];case 3:return[l,c,n];case 4:return[a,l,n];case 5:return[n,l,c]}},i.hsv.hsl=function(e){const o=e[0],t=e[1]/100,n=e[2]/100,r=Math.max(n,.01);let s,l;l=(2-t)*n;const c=(2-t)*r;return s=t*r,s/=c<=1?c:2-c,s=s||0,l/=2,[o,s*100,l*100]},i.hwb.rgb=function(e){const o=e[0]/360;let t=e[1]/100,n=e[2]/100;const r=t+n;let s;r>1&&(t/=r,n/=r);const l=Math.floor(6*o),c=1-n;s=6*o-l,(l&1)!==0&&(s=1-s);const a=t+s*(c-t);let f,g,b;switch(l){default:case 6:case 0:f=c,g=a,b=t;break;case 1:f=a,g=c,b=t;break;case 2:f=t,g=c,b=a;break;case 3:f=t,g=a,b=c;break;case 4:f=a,g=t,b=c;break;case 5:f=c,g=t,b=a;break}return[f*255,g*255,b*255]},i.cmyk.rgb=function(e){const o=e[0]/100,t=e[1]/100,n=e[2]/100,r=e[3]/100,s=1-Math.min(1,o*(1-r)+r),l=1-Math.min(1,t*(1-r)+r),c=1-Math.min(1,n*(1-r)+r);return[s*255,l*255,c*255]},i.xyz.rgb=function(e){const o=e[0]/100,t=e[1]/100,n=e[2]/100;let r,s,l;return r=o*3.2406+t*-1.5372+n*-.4986,s=o*-.9689+t*1.8758+n*.0415,l=o*.0557+t*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[r*255,s*255,l*255]},i.xyz.lab=function(e){let o=e[0],t=e[1],n=e[2];o/=95.047,t/=100,n/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const r=116*t-16,s=500*(o-t),l=200*(t-n);return[r,s,l]},i.lab.xyz=function(e){const o=e[0],t=e[1],n=e[2];let r,s,l;s=(o+16)/116,r=t/500+s,l=s-n/200;const c=s**3,a=r**3,f=l**3;return s=c>.008856?c:(s-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,l=f>.008856?f:(l-16/116)/7.787,r*=95.047,s*=100,l*=108.883,[r,s,l]},i.lab.lch=function(e){const o=e[0],t=e[1],n=e[2];let r;r=Math.atan2(n,t)*360/2/Math.PI,r<0&&(r+=360);const l=Math.sqrt(t*t+n*n);return[o,l,r]},i.lch.lab=function(e){const o=e[0],t=e[1],r=e[2]/360*2*Math.PI,s=t*Math.cos(r),l=t*Math.sin(r);return[o,s,l]},i.rgb.ansi16=function(e,o=null){const[t,n,r]=e;let s=o===null?i.rgb.hsv(e)[2]:o;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return s===2&&(l+=60),l},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const o=e[0],t=e[1],n=e[2];return o===t&&t===n?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let o=e%10;if(o===0||o===7)return e>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const t=(~~(e>50)+1)*.5,n=(o&1)*t*255,r=(o>>1&1)*t*255,s=(o>>2&1)*t*255;return[n,r,s]},i.ansi256.rgb=function(e){if(e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let o;const t=Math.floor(e/36)/5*255,n=Math.floor((o=e%36)/6)/5*255,r=o%6/5*255;return[t,n,r]},i.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const o=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let t=o[0];o[0].length===3&&(t=t.split("").map(c=>c+c).join(""));const n=parseInt(t,16),r=n>>16&255,s=n>>8&255,l=n&255;return[r,s,l]},i.rgb.hcg=function(e){const o=e[0]/255,t=e[1]/255,n=e[2]/255,r=Math.max(Math.max(o,t),n),s=Math.min(Math.min(o,t),n),l=r-s;let c,a;return l<1?c=s/(1-l):c=0,l<=0?a=0:r===o?a=(t-n)/l%6:r===t?a=2+(n-o)/l:a=4+(o-t)/l,a/=6,a%=1,[a*360,l*100,c*100]},i.hsl.hcg=function(e){const o=e[1]/100,t=e[2]/100,n=t<.5?2*o*t:2*o*(1-t);let r=0;return n<1&&(r=(t-.5*n)/(1-n)),[e[0],n*100,r*100]},i.hsv.hcg=function(e){const o=e[1]/100,t=e[2]/100,n=o*t;let r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],n*100,r*100]},i.hcg.rgb=function(e){const o=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];const r=[0,0,0],s=o%1*6,l=s%1,c=1-l;let a=0;switch(Math.floor(s)){case 0:r[0]=1,r[1]=l,r[2]=0;break;case 1:r[0]=c,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=l;break;case 3:r[0]=0,r[1]=c,r[2]=1;break;case 4:r[0]=l,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=c}return a=(1-t)*n,[(t*r[0]+a)*255,(t*r[1]+a)*255,(t*r[2]+a)*255]},i.hcg.hsv=function(e){const o=e[1]/100,t=e[2]/100,n=o+t*(1-o);let r=0;return n>0&&(r=o/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){const o=e[1]/100,n=e[2]/100*(1-o)+.5*o;let r=0;return n>0&&n<.5?r=o/(2*n):n>=.5&&n<1&&(r=o/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){const o=e[1]/100,t=e[2]/100,n=o+t*(1-o);return[e[0],(n-o)*100,(1-n)*100]},i.hwb.hcg=function(e){const o=e[1]/100,n=1-e[2]/100,r=n-o;let s=0;return r<1&&(s=(n-r)/(1-r)),[e[0],r*100,s*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const o=Math.round(e[0]/100*255)&255,n=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},B}var S,z;function Q(){if(z)return S;z=1;const u=T();function h(){const o={},t=Object.keys(u);for(let n=t.length,r=0;r<n;r++)o[t[r]]={distance:-1,parent:null};return o}function i(o){const t=h(),n=[o];for(t[o].distance=0;n.length;){const r=n.pop(),s=Object.keys(u[r]);for(let l=s.length,c=0;c<l;c++){const a=s[c],f=t[a];f.distance===-1&&(f.distance=t[r].distance+1,f.parent=r,n.unshift(a))}}return t}function d(o,t){return function(n){return t(o(n))}}function e(o,t){const n=[t[o].parent,o];let r=u[t[o].parent][o],s=t[o].parent;for(;t[s].parent;)n.unshift(t[s].parent),r=d(u[t[s].parent][s],r),s=t[s].parent;return r.conversion=n,r}return S=function(o){const t=i(o),n={},r=Object.keys(t);for(let s=r.length,l=0;l<s;l++){const c=r[l];t[c].parent!==null&&(n[c]=e(c,t))}return n},S}var A,L;function Z(){if(L)return A;L=1;const u=T(),h=Q(),i={},d=Object.keys(u);function e(t){const n=function(...r){const s=r[0];return s==null?s:(s.length>1&&(r=s),t(r))};return"conversion"in t&&(n.conversion=t.conversion),n}function o(t){const n=function(...r){const s=r[0];if(s==null)return s;s.length>1&&(r=s);const l=t(r);if(typeof l=="object")for(let c=l.length,a=0;a<c;a++)l[a]=Math.round(l[a]);return l};return"conversion"in t&&(n.conversion=t.conversion),n}return d.forEach(t=>{i[t]={},Object.defineProperty(i[t],"channels",{value:u[t].channels}),Object.defineProperty(i[t],"labels",{value:u[t].labels});const n=h(t);Object.keys(n).forEach(s=>{const l=n[s];i[t][s]=o(l),i[t][s].raw=e(l)})}),A=i,A}(function(u){const h=(l,c)=>(...a)=>`\x1B[${l(...a)+c}m`,i=(l,c)=>(...a)=>{const f=l(...a);return`\x1B[${38+c};5;${f}m`},d=(l,c)=>(...a)=>{const f=l(...a);return`\x1B[${38+c};2;${f[0]};${f[1]};${f[2]}m`},e=l=>l,o=(l,c,a)=>[l,c,a],t=(l,c,a)=>{Object.defineProperty(l,c,{get:()=>{const f=a();return Object.defineProperty(l,c,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})};let n;const r=(l,c,a,f)=>{n===void 0&&(n=Z());const g=f?10:0,b={};for(const[p,y]of Object.entries(n)){const w=p==="ansi16"?"ansi":p;p===c?b[w]=l(a,g):typeof y=="object"&&(b[w]=l(y[c],g))}return b};function s(){const l=new Map,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};c.color.gray=c.color.blackBright,c.bgColor.bgGray=c.bgColor.bgBlackBright,c.color.grey=c.color.blackBright,c.bgColor.bgGrey=c.bgColor.bgBlackBright;for(const[a,f]of Object.entries(c)){for(const[g,b]of Object.entries(f))c[g]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},f[g]=c[g],l.set(b[0],b[1]);Object.defineProperty(c,a,{value:f,enumerable:!1})}return Object.defineProperty(c,"codes",{value:l,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",t(c.color,"ansi",()=>r(h,"ansi16",e,!1)),t(c.color,"ansi256",()=>r(i,"ansi256",e,!1)),t(c.color,"ansi16m",()=>r(d,"rgb",o,!1)),t(c.bgColor,"ansi",()=>r(h,"ansi16",e,!0)),t(c.bgColor,"ansi256",()=>r(i,"ansi256",e,!0)),t(c.bgColor,"ansi16m",()=>r(d,"rgb",o,!0)),c}Object.defineProperty(u,"exports",{enumerable:!0,get:s})})(_);var ee={stdout:!1,stderr:!1},te={stringReplaceAll:(u,h,i)=>{let d=u.indexOf(h);if(d===-1)return u;const e=h.length;let o=0,t="";do t+=u.substr(o,d-o)+h+i,o=d+e,d=u.indexOf(h,o);while(d!==-1);return t+=u.substr(o),t},stringEncaseCRLFWithFirstIndex:(u,h,i,d)=>{let e=0,o="";do{const t=u[d-1]==="\r";o+=u.substr(e,(t?d-1:d)-e)+h+(t?`\r
|
|
2
2
|
`:`
|
|
3
|
-
`)+i,e=
|
|
4
|
-
`,e)}while(
|
|
5
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(s){const l=s[0]==="u",c=s[1]==="{";return l&&!c&&s.length===5||s[0]==="x"&&s.length===3?String.fromCharCode(parseInt(s.slice(1),16)):l&&c?String.fromCodePoint(parseInt(s.slice(2,-1),16)):e.get(s)||s}function t(s,l){const c=[],a=l.trim().split(/\s*,\s*/g);let f;for(const
|
|
6
|
-
`);return o!==-1&&(h=
|
|
3
|
+
`)+i,e=d+1,d=u.indexOf(`
|
|
4
|
+
`,e)}while(d!==-1);return o+=u.substr(e),o}},$,U;function ne(){if(U)return $;U=1;const u=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,h=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,d=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,e=new Map([["n",`
|
|
5
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(s){const l=s[0]==="u",c=s[1]==="{";return l&&!c&&s.length===5||s[0]==="x"&&s.length===3?String.fromCharCode(parseInt(s.slice(1),16)):l&&c?String.fromCodePoint(parseInt(s.slice(2,-1),16)):e.get(s)||s}function t(s,l){const c=[],a=l.trim().split(/\s*,\s*/g);let f;for(const g of a){const b=Number(g);if(!Number.isNaN(b))c.push(b);else if(f=g.match(i))c.push(f[2].replace(d,(p,y,w)=>y?o(y):w));else throw new Error(`Invalid Chalk template style argument: ${g} (in style '${s}')`)}return c}function n(s){h.lastIndex=0;const l=[];let c;for(;(c=h.exec(s))!==null;){const a=c[1];if(c[2]){const f=t(a,c[2]);l.push([a].concat(f))}else l.push([a])}return l}function r(s,l){const c={};for(const f of l)for(const g of f.styles)c[g[0]]=f.inverse?null:g.slice(1);let a=s;for(const[f,g]of Object.entries(c))if(!!Array.isArray(g)){if(!(f in a))throw new Error(`Unknown Chalk style: ${f}`);a=g.length>0?a[f](...g):a[f]}return a}return $=(s,l)=>{const c=[],a=[];let f=[];if(l.replace(u,(g,b,p,y,w,he)=>{if(b)f.push(o(b));else if(y){const V=f.join("");f=[],a.push(c.length===0?V:r(s,c)(V)),c.push({inverse:p,styles:n(y)})}else if(w){if(c.length===0)throw new Error("Found extraneous } in Chalk template literal");a.push(r(s,c)(f.join(""))),f=[],c.pop()}else f.push(he)}),a.push(f.join("")),c.length>0){const g=`Chalk template literal is missing ${c.length} closing bracket${c.length===1?"":"s"} (\`}\`)`;throw new Error(g)}return a.join("")},$}const M=_.exports,{stdout:F,stderr:R}=ee,{stringReplaceAll:re,stringEncaseCRLFWithFirstIndex:oe}=te,{isArray:C}=Array,G=["ansi","ansi","ansi256","ansi16m"],v=Object.create(null),se=(u,h={})=>{if(h.level&&!(Number.isInteger(h.level)&&h.level>=0&&h.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const i=F?F.level:0;u.level=h.level===void 0?i:h.level};class le{constructor(h){return J(h)}}const J=u=>{const h={};return se(h,u),h.template=(...i)=>D(h.template,...i),Object.setPrototypeOf(h,x.prototype),Object.setPrototypeOf(h.template,h),h.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},h.template.Instance=le,h.template};function x(u){return J(u)}for(const[u,h]of Object.entries(M))v[u]={get(){const i=j(this,P(h.open,h.close,this._styler),this._isEmpty);return Object.defineProperty(this,u,{value:i}),i}};v.visible={get(){const u=j(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:u}),u}};const W=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const u of W)v[u]={get(){const{level:h}=this;return function(...i){const d=P(M.color[G[h]][u](...i),M.color.close,this._styler);return j(this,d,this._isEmpty)}}};for(const u of W){const h="bg"+u[0].toUpperCase()+u.slice(1);v[h]={get(){const{level:i}=this;return function(...d){const e=P(M.bgColor[G[i]][u](...d),M.bgColor.close,this._styler);return j(this,e,this._isEmpty)}}}}const ce=Object.defineProperties(()=>{},{...v,level:{enumerable:!0,get(){return this._generator.level},set(u){this._generator.level=u}}}),P=(u,h,i)=>{let d,e;return i===void 0?(d=u,e=h):(d=i.openAll+u,e=h+i.closeAll),{open:u,close:h,openAll:d,closeAll:e,parent:i}},j=(u,h,i)=>{const d=(...e)=>C(e[0])&&C(e[0].raw)?X(d,D(d,...e)):X(d,e.length===1?""+e[0]:e.join(" "));return Object.setPrototypeOf(d,ce),d._generator=u,d._styler=h,d._isEmpty=i,d},X=(u,h)=>{if(u.level<=0||!h)return u._isEmpty?"":h;let i=u._styler;if(i===void 0)return h;const{openAll:d,closeAll:e}=i;if(h.indexOf("\x1B")!==-1)for(;i!==void 0;)h=re(h,i.close,i.open),i=i.parent;const o=h.indexOf(`
|
|
6
|
+
`);return o!==-1&&(h=oe(h,e,d,o)),d+h+e};let q;const D=(u,...h)=>{const[i]=h;if(!C(i)||!C(i.raw))return h.join(" ");const d=h.slice(1),e=[i.raw[0]];for(let o=1;o<i.length;o++)e.push(String(d[o-1]).replace(/[{}\\]/g,"\\$&"),String(i.raw[o]));return q===void 0&&(q=ne()),q(u,e.join(""))};Object.defineProperties(x.prototype,v);const E=x();E.supportsColor=F,E.stderr=x({level:R?R.level:0}),E.stderr.supportsColor=R;var ie=E;const ae=u=>{console.log(`${ie.magenta("JamComments:")} ${u}`)},ue=u=>{console.error(`JamComments: ${u}`)};m.log=ae,m.logError=ue,m.markupFetcher=Y,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jam-comments/server-utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Various JavaScript utilities for JamComments.",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://jamcomments.com",
|
|
25
25
|
"license": "GPL-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@jam-comments/server-utilities": "^1.0.
|
|
27
|
+
"@jam-comments/server-utilities": "^1.0.5",
|
|
28
28
|
"@jam-comments/shared-utilities": "^0.0.4",
|
|
29
29
|
"graphql-quest": "^1.1.2",
|
|
30
30
|
"typescript": "^4.9.3",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "94d1edbe4bf2e543bd9ddce05bc1106e69d88c1e"
|
|
42
42
|
}
|