@shopify/create-app 4.0.0 → 4.2.0
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/README.md +2 -2
- package/dist/{acorn-B7Z74OJ7.js → acorn-7AGUHU7X.js} +3 -3
- package/dist/{analytics-XUVDQAYG.js → analytics-DXTA2BTW.js} +13 -13
- package/dist/{analytics-XLT3JDGP.js → analytics-VN37446T.js} +13 -13
- package/dist/angular-WQAMH4CA.js +3117 -0
- package/dist/{babel-CJ53QMMG.js → babel-ANYZPGZG.js} +3 -3
- package/dist/{chunk-UX6FRPFM.js → chunk-325YJ3GA.js} +588 -347
- package/dist/{chunk-JUV7D377.js → chunk-6ZCMRIIK.js} +4 -4
- package/dist/{chunk-6OOTYTVB.js → chunk-7FVFOTP5.js} +218 -109
- package/dist/{chunk-YUPQUA3D.js → chunk-AJMNFS2U.js} +138 -138
- package/dist/{chunk-QN5KFM2B.js → chunk-BGBNK6AD.js} +2 -2
- package/dist/{chunk-CE4S2SGM.js → chunk-CJMNB2EJ.js} +232 -151
- package/dist/{chunk-4CS37CS5.js → chunk-EYELFNC7.js} +29 -33
- package/dist/{chunk-DNF3EUMN.js → chunk-F6LQTIYO.js} +8 -5
- package/dist/{chunk-YIHECXVH.js → chunk-HDGI2UBV.js} +60 -86
- package/dist/{chunk-ANIFE3UR.js → chunk-IEVOZUJ7.js} +2 -2
- package/dist/{chunk-37G3KLO2.js → chunk-KAVGZDPZ.js} +3 -3
- package/dist/{chunk-UMSYG5WJ.js → chunk-M2UQMZTP.js} +24 -17
- package/dist/{chunk-IGDZPTDH.js → chunk-RWI7QPAN.js} +8 -8
- package/dist/{chunk-LNOZTAML.js → chunk-RXMZPVTQ.js} +559 -898
- package/dist/{chunk-DHAC6KEL.js → chunk-S2C3LKO2.js} +30 -29
- package/dist/{chunk-DWGHKWV5.js → chunk-SAVFAAHX.js} +20 -20
- package/dist/{chunk-QMXFPY46.js → chunk-W3I47I43.js} +3 -3
- package/dist/{chunk-STHW3YIX.js → chunk-ZPFFIMXV.js} +10894 -2147
- package/dist/{conf-store-RAVX2WFV.js → conf-store-A3JOFSUU.js} +7 -7
- package/dist/{custom-oclif-loader-354VAVF4.js → custom-oclif-loader-5SWH4GTV.js} +3 -3
- package/dist/{deprecations-2QTB3736.js → deprecations-2ELX7ROT.js} +9 -9
- package/dist/{devtools-4EY2MEDN.js → devtools-FXOPST2H.js} +2 -2
- package/dist/dist-U3FLPMJE.js +510 -0
- package/dist/{environments-LTWWRWCC.js → environments-XMNHPGBO.js} +10 -10
- package/dist/{error-handler-KHJE653Z.js → error-handler-YHPBH53J.js} +13 -13
- package/dist/{estree-UBDGCTT2.js → estree-E53K34OK.js} +4 -4
- package/dist/{flow-FUOSTAYW.js → flow-LFBHZSUI.js} +3 -3
- package/dist/{fs-XENRLBMU.js → fs-O3X2BDXD.js} +3 -3
- package/dist/{glimmer-XBFG6K3P.js → glimmer-CVQMANCJ.js} +3 -3
- package/dist/{graphql-C5WOGPMM.js → graphql-ZOTIIZAG.js} +3 -3
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +6 -6
- package/dist/{html-QRIT6TOU.js → html-WQ23J64T.js} +924 -830
- package/dist/index.js +5847 -4583
- package/dist/index.test.js +7251 -8136
- package/dist/{is-global-KZMSAFQT.js → is-global-ET3YL7TT.js} +3 -3
- package/dist/{is-wsl-YAJ3DFN7.js → is-wsl-BJRAPRQU.js} +6 -5
- package/dist/{latest-version-3PFKLJZM.js → latest-version-KKU2QQZW.js} +2 -2
- package/dist/{lib-HWIFANCM.js → lib-QBGNJ3PZ.js} +3 -3
- package/dist/{local-NQALOHJX.js → local-QWRI6OFV.js} +2 -4
- package/dist/{markdown-M5KQ3F3U.js → markdown-OIW6O7KK.js} +4 -4
- package/dist/{meriyah-QX42RF3Q.js → meriyah-KMVSYB54.js} +3 -3
- package/dist/{metadata-FXCUDE5I.js → metadata-VZBMAQQC.js} +3 -3
- package/dist/{node-package-manager-7R7HDW4R.js → node-package-manager-W33EW2VU.js} +11 -11
- package/dist/{notifications-system-7QMDSL5Y.js → notifications-system-ZFKFHX3O.js} +14 -14
- package/dist/{output-PQSQ7U45.js → output-5PDIDYKG.js} +3 -3
- package/dist/{postcss-4PDU7IQT.js → postcss-WSM6XINW.js} +7 -5
- package/dist/{prettier-UAG5TKE4.js → prettier-3LMT6EEA.js} +2 -2
- package/dist/{system-W4MMMHEV.js → system-X6HCVR7P.js} +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{typescript-LCSPQIRD.js → typescript-Q4XZM2A4.js} +3 -3
- package/dist/{ui-2FROV2IT.js → ui-IN56X5S4.js} +9 -9
- package/dist/{upgrade-FAUZ7VAF.js → upgrade-OAFAJX4I.js} +15 -15
- package/dist/{version-HKPHVW5M.js → version-D3H6OPFX.js} +10 -10
- package/dist/{version-T73ZLUJK.js → version-QYHHSKFX.js} +2 -2
- package/dist/{yaml-VGESS2QB.js → yaml-NI5GGQLI.js} +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/dist/angular-IKHE4H7C.js +0 -2771
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
setCurrentSessionId,
|
|
18
18
|
setSessions,
|
|
19
19
|
timeIntervalToMilliseconds
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-AJMNFS2U.js";
|
|
21
|
+
import "./chunk-6ZCMRIIK.js";
|
|
22
|
+
import "./chunk-325YJ3GA.js";
|
|
23
23
|
import "./chunk-X2WZCKNE.js";
|
|
24
24
|
import "./chunk-G2ZZKGSV.js";
|
|
25
25
|
import "./chunk-OO33NRTL.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-7FVFOTP5.js";
|
|
27
|
+
import "./chunk-RXMZPVTQ.js";
|
|
28
|
+
import "./chunk-EYELFNC7.js";
|
|
29
29
|
import "./chunk-DJW2W7VA.js";
|
|
30
30
|
import "./chunk-ACS6S42W.js";
|
|
31
31
|
import "./chunk-AROS7RI6.js";
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
setSessions,
|
|
52
52
|
timeIntervalToMilliseconds
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=conf-store-
|
|
54
|
+
//# sourceMappingURL=conf-store-A3JOFSUU.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_lib
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-325YJ3GA.js";
|
|
4
4
|
import "./chunk-X2WZCKNE.js";
|
|
5
5
|
import "./chunk-G2ZZKGSV.js";
|
|
6
6
|
import "./chunk-OO33NRTL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7FVFOTP5.js";
|
|
8
8
|
import "./chunk-DJW2W7VA.js";
|
|
9
9
|
import {
|
|
10
10
|
__toESM,
|
|
@@ -51,4 +51,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
51
51
|
export {
|
|
52
52
|
ShopifyConfig
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
54
|
+
//# sourceMappingURL=custom-oclif-loader-5SWH4GTV.js.map
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-JCETIRLI.js";
|
|
4
4
|
import {
|
|
5
5
|
renderWarning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HDGI2UBV.js";
|
|
7
|
+
import "./chunk-KAVGZDPZ.js";
|
|
8
|
+
import "./chunk-6ZCMRIIK.js";
|
|
9
|
+
import "./chunk-325YJ3GA.js";
|
|
10
10
|
import "./chunk-X2WZCKNE.js";
|
|
11
11
|
import "./chunk-G2ZZKGSV.js";
|
|
12
12
|
import "./chunk-OO33NRTL.js";
|
|
13
13
|
import "./chunk-PES3XMQM.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7FVFOTP5.js";
|
|
15
|
+
import "./chunk-BGBNK6AD.js";
|
|
16
|
+
import "./chunk-RXMZPVTQ.js";
|
|
17
|
+
import "./chunk-EYELFNC7.js";
|
|
18
18
|
import "./chunk-DJW2W7VA.js";
|
|
19
19
|
import "./chunk-ACS6S42W.js";
|
|
20
20
|
import "./chunk-AROS7RI6.js";
|
|
@@ -52,4 +52,4 @@ function renderUpgradeWarning(upgradeByDate, forThemes) {
|
|
|
52
52
|
export {
|
|
53
53
|
postrun
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=deprecations-
|
|
55
|
+
//# sourceMappingURL=deprecations-2ELX7ROT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
wrapper_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJMNB2EJ.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -70,4 +70,4 @@ customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
|
70
70
|
import devtools from "react-devtools-core";
|
|
71
71
|
devtools.initialize();
|
|
72
72
|
devtools.connectToDevTools();
|
|
73
|
-
//# sourceMappingURL=devtools-
|
|
73
|
+
//# sourceMappingURL=devtools-FXOPST2H.js.map
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_cjs_shims
|
|
3
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.js
|
|
6
|
+
init_cjs_shims();
|
|
7
|
+
var $ = Object.defineProperty, C = (s) => {
|
|
8
|
+
throw TypeError(s);
|
|
9
|
+
}, D = (s, n, t) => n in s ? $(s, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[n] = t, O = (s, n, t) => D(s, typeof n != "symbol" ? n + "" : n, t), q = (s, n, t) => n.has(s) || C("Cannot " + t), d = (s, n, t) => (q(s, n, "read from private field"), t ? t.call(s) : n.get(s)), k = (s, n, t) => n.has(s) ? C("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, t), f = (s, n, t, e) => (q(s, n, "write to private field"), e ? e.call(s, t) : n.set(s, t), t), F = (s, n, t, e) => ({
|
|
10
|
+
set _(r) {
|
|
11
|
+
f(s, n, r, t);
|
|
12
|
+
},
|
|
13
|
+
get _() {
|
|
14
|
+
return d(s, n, e);
|
|
15
|
+
}
|
|
16
|
+
}), M = class {
|
|
17
|
+
constructor(n) {
|
|
18
|
+
O(this, "value"), O(this, "next"), this.value = n;
|
|
19
|
+
}
|
|
20
|
+
}, m, w, E, g = class {
|
|
21
|
+
constructor() {
|
|
22
|
+
k(this, m), k(this, w), k(this, E), this.clear();
|
|
23
|
+
}
|
|
24
|
+
enqueue(n) {
|
|
25
|
+
let t = new M(n);
|
|
26
|
+
d(this, m) ? (d(this, w).next = t, f(this, w, t)) : (f(this, m, t), f(this, w, t)), F(this, E)._++;
|
|
27
|
+
}
|
|
28
|
+
dequeue() {
|
|
29
|
+
let n = d(this, m);
|
|
30
|
+
if (n)
|
|
31
|
+
return f(this, m, d(this, m).next), F(this, E)._--, n.value;
|
|
32
|
+
}
|
|
33
|
+
clear() {
|
|
34
|
+
f(this, m, void 0), f(this, w, void 0), f(this, E, 0);
|
|
35
|
+
}
|
|
36
|
+
get size() {
|
|
37
|
+
return d(this, E);
|
|
38
|
+
}
|
|
39
|
+
*[Symbol.iterator]() {
|
|
40
|
+
let n = d(this, m);
|
|
41
|
+
for (; n; )
|
|
42
|
+
yield n.value, n = n.next;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
m = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
46
|
+
function y(s) {
|
|
47
|
+
if (!((Number.isInteger(s) || s === Number.POSITIVE_INFINITY) && s > 0))
|
|
48
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
49
|
+
let n = new g(), t = 0, e = () => {
|
|
50
|
+
t--, n.size > 0 && n.dequeue()();
|
|
51
|
+
}, r = async (h, p, a) => {
|
|
52
|
+
t++;
|
|
53
|
+
let l = (async () => h(...a))();
|
|
54
|
+
p(l);
|
|
55
|
+
try {
|
|
56
|
+
await l;
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
e();
|
|
60
|
+
}, i = (h, p, a) => {
|
|
61
|
+
n.enqueue(r.bind(void 0, h, p, a)), (async () => (await Promise.resolve(), t < s && n.size > 0 && n.dequeue()()))();
|
|
62
|
+
}, c = (h, ...p) => new Promise((a) => {
|
|
63
|
+
i(h, a, p);
|
|
64
|
+
});
|
|
65
|
+
return Object.defineProperties(c, {
|
|
66
|
+
activeCount: {
|
|
67
|
+
get: () => t
|
|
68
|
+
},
|
|
69
|
+
pendingCount: {
|
|
70
|
+
get: () => n.size
|
|
71
|
+
},
|
|
72
|
+
clearQueue: {
|
|
73
|
+
value: () => {
|
|
74
|
+
n.clear();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}), c;
|
|
78
|
+
}
|
|
79
|
+
function o(s, n = null) {
|
|
80
|
+
let t = new Event(s);
|
|
81
|
+
return n && Object.defineProperty(t, "task", {
|
|
82
|
+
value: n,
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
writable: !1,
|
|
85
|
+
configurable: !1
|
|
86
|
+
}), t;
|
|
87
|
+
}
|
|
88
|
+
var G = {
|
|
89
|
+
1: 12.71,
|
|
90
|
+
2: 4.303,
|
|
91
|
+
3: 3.182,
|
|
92
|
+
4: 2.776,
|
|
93
|
+
5: 2.571,
|
|
94
|
+
6: 2.447,
|
|
95
|
+
7: 2.365,
|
|
96
|
+
8: 2.306,
|
|
97
|
+
9: 2.262,
|
|
98
|
+
10: 2.228,
|
|
99
|
+
11: 2.201,
|
|
100
|
+
12: 2.179,
|
|
101
|
+
13: 2.16,
|
|
102
|
+
14: 2.145,
|
|
103
|
+
15: 2.131,
|
|
104
|
+
16: 2.12,
|
|
105
|
+
17: 2.11,
|
|
106
|
+
18: 2.101,
|
|
107
|
+
19: 2.093,
|
|
108
|
+
20: 2.086,
|
|
109
|
+
21: 2.08,
|
|
110
|
+
22: 2.074,
|
|
111
|
+
23: 2.069,
|
|
112
|
+
24: 2.064,
|
|
113
|
+
25: 2.06,
|
|
114
|
+
26: 2.056,
|
|
115
|
+
27: 2.052,
|
|
116
|
+
28: 2.048,
|
|
117
|
+
29: 2.045,
|
|
118
|
+
30: 2.042,
|
|
119
|
+
31: 2.0399,
|
|
120
|
+
32: 2.0378,
|
|
121
|
+
33: 2.0357,
|
|
122
|
+
34: 2.0336,
|
|
123
|
+
35: 2.0315,
|
|
124
|
+
36: 2.0294,
|
|
125
|
+
37: 2.0273,
|
|
126
|
+
38: 2.0252,
|
|
127
|
+
39: 2.0231,
|
|
128
|
+
40: 2.021,
|
|
129
|
+
41: 2.0198,
|
|
130
|
+
42: 2.0186,
|
|
131
|
+
43: 2.0174,
|
|
132
|
+
44: 2.0162,
|
|
133
|
+
45: 2.015,
|
|
134
|
+
46: 2.0138,
|
|
135
|
+
47: 2.0126,
|
|
136
|
+
48: 2.0114,
|
|
137
|
+
49: 2.0102,
|
|
138
|
+
50: 2.009,
|
|
139
|
+
51: 2.0081,
|
|
140
|
+
52: 2.0072,
|
|
141
|
+
53: 2.0063,
|
|
142
|
+
54: 2.0054,
|
|
143
|
+
55: 2.0045,
|
|
144
|
+
56: 2.0036,
|
|
145
|
+
57: 2.0027,
|
|
146
|
+
58: 2.0018,
|
|
147
|
+
59: 2.0009,
|
|
148
|
+
60: 2,
|
|
149
|
+
61: 1.9995,
|
|
150
|
+
62: 1.999,
|
|
151
|
+
63: 1.9985,
|
|
152
|
+
64: 1.998,
|
|
153
|
+
65: 1.9975,
|
|
154
|
+
66: 1.997,
|
|
155
|
+
67: 1.9965,
|
|
156
|
+
68: 1.996,
|
|
157
|
+
69: 1.9955,
|
|
158
|
+
70: 1.995,
|
|
159
|
+
71: 1.9945,
|
|
160
|
+
72: 1.994,
|
|
161
|
+
73: 1.9935,
|
|
162
|
+
74: 1.993,
|
|
163
|
+
75: 1.9925,
|
|
164
|
+
76: 1.992,
|
|
165
|
+
77: 1.9915,
|
|
166
|
+
78: 1.991,
|
|
167
|
+
79: 1.9905,
|
|
168
|
+
80: 1.99,
|
|
169
|
+
81: 1.9897,
|
|
170
|
+
82: 1.9894,
|
|
171
|
+
83: 1.9891,
|
|
172
|
+
84: 1.9888,
|
|
173
|
+
85: 1.9885,
|
|
174
|
+
86: 1.9882,
|
|
175
|
+
87: 1.9879,
|
|
176
|
+
88: 1.9876,
|
|
177
|
+
89: 1.9873,
|
|
178
|
+
90: 1.987,
|
|
179
|
+
91: 1.9867,
|
|
180
|
+
92: 1.9864,
|
|
181
|
+
93: 1.9861,
|
|
182
|
+
94: 1.9858,
|
|
183
|
+
95: 1.9855,
|
|
184
|
+
96: 1.9852,
|
|
185
|
+
97: 1.9849,
|
|
186
|
+
98: 1.9846,
|
|
187
|
+
99: 1.9843,
|
|
188
|
+
100: 1.984,
|
|
189
|
+
101: 1.9838,
|
|
190
|
+
102: 1.9836,
|
|
191
|
+
103: 1.9834,
|
|
192
|
+
104: 1.9832,
|
|
193
|
+
105: 1.983,
|
|
194
|
+
106: 1.9828,
|
|
195
|
+
107: 1.9826,
|
|
196
|
+
108: 1.9824,
|
|
197
|
+
109: 1.9822,
|
|
198
|
+
110: 1.982,
|
|
199
|
+
111: 1.9818,
|
|
200
|
+
112: 1.9816,
|
|
201
|
+
113: 1.9814,
|
|
202
|
+
114: 1.9812,
|
|
203
|
+
115: 1.9819,
|
|
204
|
+
116: 1.9808,
|
|
205
|
+
117: 1.9806,
|
|
206
|
+
118: 1.9804,
|
|
207
|
+
119: 1.9802,
|
|
208
|
+
120: 1.98,
|
|
209
|
+
infinity: 1.96
|
|
210
|
+
}, N = G, J = (s) => s / 1e6, U = () => J(Number(process.hrtime.bigint())), B = () => performance.now();
|
|
211
|
+
function W(s) {
|
|
212
|
+
return s !== null && typeof s == "object" && typeof s.then == "function";
|
|
213
|
+
}
|
|
214
|
+
var S = (s, n) => s.reduce((e, r) => e + (r - n) ** 2, 0) / (s.length - 1) || 0, X = (async () => {
|
|
215
|
+
}).constructor, Z = (s) => s.constructor === X, z = async (s) => {
|
|
216
|
+
if (Z(s.fn))
|
|
217
|
+
return !0;
|
|
218
|
+
try {
|
|
219
|
+
if (s.opts.beforeEach != null)
|
|
220
|
+
try {
|
|
221
|
+
await s.opts.beforeEach.call(s);
|
|
222
|
+
} catch {
|
|
223
|
+
}
|
|
224
|
+
let n = s.fn(), t = W(n);
|
|
225
|
+
if (t)
|
|
226
|
+
try {
|
|
227
|
+
await n;
|
|
228
|
+
} catch {
|
|
229
|
+
}
|
|
230
|
+
if (s.opts.afterEach != null)
|
|
231
|
+
try {
|
|
232
|
+
await s.opts.afterEach.call(s);
|
|
233
|
+
} catch {
|
|
234
|
+
}
|
|
235
|
+
return t;
|
|
236
|
+
} catch {
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
}, b = class extends EventTarget {
|
|
240
|
+
constructor(t, e, r, i = {}) {
|
|
241
|
+
super(), this.runs = 0, this.bench = t, this.name = e, this.fn = r, this.opts = i;
|
|
242
|
+
}
|
|
243
|
+
async loop(t, e) {
|
|
244
|
+
var T;
|
|
245
|
+
let r = this.bench.concurrency === "task", { threshold: i } = this.bench, c = 0, h = [];
|
|
246
|
+
if (this.opts.beforeAll != null)
|
|
247
|
+
try {
|
|
248
|
+
await this.opts.beforeAll.call(this);
|
|
249
|
+
} catch (u) {
|
|
250
|
+
return { error: u };
|
|
251
|
+
}
|
|
252
|
+
let p = await z(this), a = async () => {
|
|
253
|
+
this.opts.beforeEach != null && await this.opts.beforeEach.call(this);
|
|
254
|
+
let u = 0;
|
|
255
|
+
if (p) {
|
|
256
|
+
let v = this.bench.now();
|
|
257
|
+
await this.fn.call(this), u = this.bench.now() - v;
|
|
258
|
+
} else {
|
|
259
|
+
let v = this.bench.now();
|
|
260
|
+
this.fn.call(this), u = this.bench.now() - v;
|
|
261
|
+
}
|
|
262
|
+
h.push(u), c += u, this.opts.afterEach != null && await this.opts.afterEach.call(this);
|
|
263
|
+
}, l = y(i);
|
|
264
|
+
try {
|
|
265
|
+
let u = [];
|
|
266
|
+
for (; (c < t || h.length + l.activeCount + l.pendingCount < e) && !((T = this.bench.signal) != null && T.aborted); )
|
|
267
|
+
r ? u.push(l(a)) : await a();
|
|
268
|
+
u.length && await Promise.all(u);
|
|
269
|
+
} catch (u) {
|
|
270
|
+
return { error: u };
|
|
271
|
+
}
|
|
272
|
+
if (this.opts.afterAll != null)
|
|
273
|
+
try {
|
|
274
|
+
await this.opts.afterAll.call(this);
|
|
275
|
+
} catch (u) {
|
|
276
|
+
return { error: u };
|
|
277
|
+
}
|
|
278
|
+
return { samples: h };
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* run the current task and write the results in `Task.result` object
|
|
282
|
+
*/
|
|
283
|
+
async run() {
|
|
284
|
+
var r, i;
|
|
285
|
+
if ((r = this.result) != null && r.error)
|
|
286
|
+
return this;
|
|
287
|
+
this.dispatchEvent(o("start", this)), await this.bench.setup(this, "run");
|
|
288
|
+
let { samples: t, error: e } = await this.loop(this.bench.time, this.bench.iterations);
|
|
289
|
+
if (this.bench.teardown(this, "run"), t) {
|
|
290
|
+
let c = t.reduce((L, A) => L + A, 0);
|
|
291
|
+
this.runs = t.length, t.sort((L, A) => L - A);
|
|
292
|
+
let h = c / this.runs, p = 1e3 / h, a = t.length, l = a - 1, T = t[0], u = t[l], v = c / t.length || 0, P = S(t, v), R = Math.sqrt(P), I = R / Math.sqrt(a), _ = N[String(Math.round(l) || 1)] || N.infinity, K = I * _, j = K / v * 100, H = t[Math.ceil(a * 0.75) - 1], V = t[Math.ceil(a * 0.99) - 1], Q = t[Math.ceil(a * 0.995) - 1], Y = t[Math.ceil(a * 0.999) - 1];
|
|
293
|
+
if ((i = this.bench.signal) != null && i.aborted)
|
|
294
|
+
return this;
|
|
295
|
+
this.setResult({
|
|
296
|
+
totalTime: c,
|
|
297
|
+
min: T,
|
|
298
|
+
max: u,
|
|
299
|
+
hz: p,
|
|
300
|
+
period: h,
|
|
301
|
+
samples: t,
|
|
302
|
+
mean: v,
|
|
303
|
+
variance: P,
|
|
304
|
+
sd: R,
|
|
305
|
+
sem: I,
|
|
306
|
+
df: l,
|
|
307
|
+
critical: _,
|
|
308
|
+
moe: K,
|
|
309
|
+
rme: j,
|
|
310
|
+
p75: H,
|
|
311
|
+
p99: V,
|
|
312
|
+
p995: Q,
|
|
313
|
+
p999: Y
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
if (e) {
|
|
317
|
+
if (this.setResult({ error: e }), this.bench.throws)
|
|
318
|
+
throw e;
|
|
319
|
+
this.dispatchEvent(o("error", this)), this.bench.dispatchEvent(o("error", this));
|
|
320
|
+
}
|
|
321
|
+
return this.dispatchEvent(o("cycle", this)), this.bench.dispatchEvent(o("cycle", this)), this.dispatchEvent(o("complete", this)), this;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* warmup the current task
|
|
325
|
+
*/
|
|
326
|
+
async warmup() {
|
|
327
|
+
var e;
|
|
328
|
+
if ((e = this.result) != null && e.error)
|
|
329
|
+
return;
|
|
330
|
+
this.dispatchEvent(o("warmup", this)), await this.bench.setup(this, "warmup");
|
|
331
|
+
let { error: t } = await this.loop(this.bench.warmupTime, this.bench.warmupIterations);
|
|
332
|
+
if (this.bench.teardown(this, "warmup"), t && (this.setResult({ error: t }), this.bench.throws))
|
|
333
|
+
throw t;
|
|
334
|
+
}
|
|
335
|
+
addEventListener(t, e, r) {
|
|
336
|
+
super.addEventListener(t, e, r);
|
|
337
|
+
}
|
|
338
|
+
removeEventListener(t, e, r) {
|
|
339
|
+
super.removeEventListener(t, e, r);
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* change the result object values
|
|
343
|
+
*/
|
|
344
|
+
setResult(t) {
|
|
345
|
+
this.result = { ...this.result, ...t }, Object.freeze(this.result);
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* reset the task to make the `Task.runs` a zero-value and remove the `Task.result`
|
|
349
|
+
* object
|
|
350
|
+
*/
|
|
351
|
+
reset() {
|
|
352
|
+
this.dispatchEvent(o("reset", this)), this.runs = 0, this.result = void 0;
|
|
353
|
+
}
|
|
354
|
+
}, x = class extends EventTarget {
|
|
355
|
+
constructor(t = {}) {
|
|
356
|
+
var e, r, i, c, h, p, a, l;
|
|
357
|
+
super(), this._tasks = /* @__PURE__ */ new Map(), this._todos = /* @__PURE__ */ new Map(), this.concurrency = null, this.threshold = 1 / 0, this.warmupTime = 100, this.warmupIterations = 5, this.time = 500, this.iterations = 10, this.now = B, this.now = (e = t.now) != null ? e : this.now, this.warmupTime = (r = t.warmupTime) != null ? r : this.warmupTime, this.warmupIterations = (i = t.warmupIterations) != null ? i : this.warmupIterations, this.time = (c = t.time) != null ? c : this.time, this.iterations = (h = t.iterations) != null ? h : this.iterations, this.signal = t.signal, this.throws = (p = t.throws) != null ? p : !1, this.setup = (a = t.setup) != null ? a : () => {
|
|
358
|
+
}, this.teardown = (l = t.teardown) != null ? l : () => {
|
|
359
|
+
}, this.signal && this.signal.addEventListener(
|
|
360
|
+
"abort",
|
|
361
|
+
() => {
|
|
362
|
+
this.dispatchEvent(o("abort"));
|
|
363
|
+
},
|
|
364
|
+
{ once: !0 }
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
runTask(t) {
|
|
368
|
+
var e;
|
|
369
|
+
return (e = this.signal) != null && e.aborted ? t : t.run();
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* run the added tasks that were registered using the
|
|
373
|
+
* {@link add} method.
|
|
374
|
+
* Note: This method does not do any warmup. Call {@link warmup} for that.
|
|
375
|
+
*/
|
|
376
|
+
async run() {
|
|
377
|
+
if (this.concurrency === "bench")
|
|
378
|
+
return this.runConcurrently(this.threshold, this.concurrency);
|
|
379
|
+
this.dispatchEvent(o("start"));
|
|
380
|
+
let t = [];
|
|
381
|
+
for (let e of [...this._tasks.values()])
|
|
382
|
+
t.push(await this.runTask(e));
|
|
383
|
+
return this.dispatchEvent(o("complete")), t;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* See Bench.{@link concurrency}
|
|
387
|
+
*/
|
|
388
|
+
async runConcurrently(t = 1 / 0, e = "bench") {
|
|
389
|
+
if (this.threshold = t, this.concurrency = e, e === "task")
|
|
390
|
+
return this.run();
|
|
391
|
+
this.dispatchEvent(o("start"));
|
|
392
|
+
let r = y(t), i = [];
|
|
393
|
+
for (let h of [...this._tasks.values()])
|
|
394
|
+
i.push(r(() => this.runTask(h)));
|
|
395
|
+
let c = await Promise.all(i);
|
|
396
|
+
return this.dispatchEvent(o("complete")), c;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* warmup the benchmark tasks.
|
|
400
|
+
* This is not run by default by the {@link run} method.
|
|
401
|
+
*/
|
|
402
|
+
async warmup() {
|
|
403
|
+
if (this.concurrency === "bench") {
|
|
404
|
+
await this.warmupConcurrently(this.threshold, this.concurrency);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
this.dispatchEvent(o("warmup"));
|
|
408
|
+
for (let [, t] of this._tasks)
|
|
409
|
+
await t.warmup();
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* warmup the benchmark tasks concurrently.
|
|
413
|
+
* This is not run by default by the {@link runConcurrently} method.
|
|
414
|
+
*/
|
|
415
|
+
async warmupConcurrently(t = 1 / 0, e = "bench") {
|
|
416
|
+
if (this.threshold = t, this.concurrency = e, e === "task") {
|
|
417
|
+
await this.warmup();
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
this.dispatchEvent(o("warmup"));
|
|
421
|
+
let r = y(t), i = [];
|
|
422
|
+
for (let [, c] of this._tasks)
|
|
423
|
+
i.push(r(() => c.warmup()));
|
|
424
|
+
await Promise.all(i);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* reset each task and remove its result
|
|
428
|
+
*/
|
|
429
|
+
reset() {
|
|
430
|
+
this.dispatchEvent(o("reset")), this._tasks.forEach((t) => {
|
|
431
|
+
t.reset();
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* add a benchmark task to the task map
|
|
436
|
+
*/
|
|
437
|
+
add(t, e, r = {}) {
|
|
438
|
+
let i = new b(this, t, e, r);
|
|
439
|
+
return this._tasks.set(t, i), this.dispatchEvent(o("add", i)), this;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* add a benchmark todo to the todo map
|
|
443
|
+
*/
|
|
444
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
445
|
+
todo(t, e = () => {
|
|
446
|
+
}, r = {}) {
|
|
447
|
+
let i = new b(this, t, e, r);
|
|
448
|
+
return this._todos.set(t, i), this.dispatchEvent(o("todo", i)), this;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* remove a benchmark task from the task map
|
|
452
|
+
*/
|
|
453
|
+
remove(t) {
|
|
454
|
+
let e = this.getTask(t);
|
|
455
|
+
return e && (this.dispatchEvent(o("remove", e)), this._tasks.delete(t)), this;
|
|
456
|
+
}
|
|
457
|
+
addEventListener(t, e, r) {
|
|
458
|
+
super.addEventListener(t, e, r);
|
|
459
|
+
}
|
|
460
|
+
removeEventListener(t, e, r) {
|
|
461
|
+
super.removeEventListener(t, e, r);
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* table of the tasks results
|
|
465
|
+
*/
|
|
466
|
+
table(t) {
|
|
467
|
+
return this.tasks.map((e) => {
|
|
468
|
+
if (e.result) {
|
|
469
|
+
if (e.result.error)
|
|
470
|
+
throw e.result.error;
|
|
471
|
+
return t?.(e) || {
|
|
472
|
+
"Task Name": e.name,
|
|
473
|
+
"ops/sec": e.result.error ? "NaN" : parseInt(e.result.hz.toString(), 10).toLocaleString(),
|
|
474
|
+
"Average Time (ns)": e.result.error ? "NaN" : e.result.mean * 1e3 * 1e3,
|
|
475
|
+
Margin: e.result.error ? "NaN" : `\xB1${e.result.rme.toFixed(2)}%`,
|
|
476
|
+
Samples: e.result.error ? "NaN" : e.result.samples.length
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return null;
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* (getter) tasks results as an array
|
|
484
|
+
*/
|
|
485
|
+
get results() {
|
|
486
|
+
return [...this._tasks.values()].map((t) => t.result);
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* (getter) tasks as an array
|
|
490
|
+
*/
|
|
491
|
+
get tasks() {
|
|
492
|
+
return [...this._tasks.values()];
|
|
493
|
+
}
|
|
494
|
+
get todos() {
|
|
495
|
+
return [...this._todos.values()];
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* get a task based on the task name
|
|
499
|
+
*/
|
|
500
|
+
getTask(t) {
|
|
501
|
+
return this._tasks.get(t);
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
export {
|
|
505
|
+
x as Bench,
|
|
506
|
+
b as Task,
|
|
507
|
+
U as hrtimeNow,
|
|
508
|
+
B as now
|
|
509
|
+
};
|
|
510
|
+
//# sourceMappingURL=dist-U3FLPMJE.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
environmentFilePath,
|
|
3
3
|
loadEnvironment
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-F6LQTIYO.js";
|
|
5
|
+
import "./chunk-HDGI2UBV.js";
|
|
6
|
+
import "./chunk-KAVGZDPZ.js";
|
|
7
|
+
import "./chunk-6ZCMRIIK.js";
|
|
8
|
+
import "./chunk-325YJ3GA.js";
|
|
9
9
|
import "./chunk-X2WZCKNE.js";
|
|
10
10
|
import "./chunk-G2ZZKGSV.js";
|
|
11
11
|
import "./chunk-OO33NRTL.js";
|
|
12
12
|
import "./chunk-PES3XMQM.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7FVFOTP5.js";
|
|
14
|
+
import "./chunk-BGBNK6AD.js";
|
|
15
|
+
import "./chunk-RXMZPVTQ.js";
|
|
16
|
+
import "./chunk-EYELFNC7.js";
|
|
17
17
|
import "./chunk-DJW2W7VA.js";
|
|
18
18
|
import "./chunk-ACS6S42W.js";
|
|
19
19
|
import "./chunk-AROS7RI6.js";
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
environmentFilePath,
|
|
24
24
|
loadEnvironment
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=environments-
|
|
26
|
+
//# sourceMappingURL=environments-XMNHPGBO.js.map
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZPFFIMXV.js";
|
|
8
8
|
import "./chunk-JCETIRLI.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RWI7QPAN.js";
|
|
10
|
+
import "./chunk-IEVOZUJ7.js";
|
|
11
11
|
import "./chunk-VBBBCVMH.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-AJMNFS2U.js";
|
|
13
|
+
import "./chunk-HDGI2UBV.js";
|
|
14
|
+
import "./chunk-KAVGZDPZ.js";
|
|
15
|
+
import "./chunk-6ZCMRIIK.js";
|
|
16
|
+
import "./chunk-325YJ3GA.js";
|
|
17
17
|
import "./chunk-X2WZCKNE.js";
|
|
18
18
|
import "./chunk-G2ZZKGSV.js";
|
|
19
19
|
import "./chunk-OO33NRTL.js";
|
|
20
20
|
import "./chunk-PES3XMQM.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7FVFOTP5.js";
|
|
22
|
+
import "./chunk-BGBNK6AD.js";
|
|
23
|
+
import "./chunk-RXMZPVTQ.js";
|
|
24
|
+
import "./chunk-EYELFNC7.js";
|
|
25
25
|
import "./chunk-DJW2W7VA.js";
|
|
26
26
|
import "./chunk-ACS6S42W.js";
|
|
27
27
|
import "./chunk-AROS7RI6.js";
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
35
35
|
sendErrorToBugsnag
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=error-handler-
|
|
37
|
+
//# sourceMappingURL=error-handler-YHPBH53J.js.map
|