@datapos/datapos-development 0.3.213 → 0.3.217
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 +4 -4
- package/dist/datapos-development.es.js +199 -192
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/operations/manageArtifact.d.ts +3 -2
- package/dist/types/src/operations/test.d.ts +2 -0
- package/dist/types/src/operations/updateDataPosDependencies.d.ts +5 -0
- package/dist/types/src/utilities.d.ts +1 -1
- package/package.json +3 -4
- package/dist/types/src/operations/update.d.ts +0 -0
package/README.md
CHANGED
|
@@ -64,9 +64,10 @@ The OWASP Dependency Check Report identifies known vulnerabilities in project de
|
|
|
64
64
|
|
|
65
65
|
### Dependency Licenses
|
|
66
66
|
|
|
67
|
-
The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. If a dependence has no license then it is treated as ?????
|
|
67
|
+
The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. If a dependence has no license then it is treated as ????? Used to support development activity and nor released as part of the production release. Check if you clone.
|
|
68
68
|
|
|
69
69
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
70
|
+
|
|
70
71
|
| Name | Type | Installed | Latest | Latest Modified |
|
|
71
72
|
| :---------------------- | :----------: | :-------: | :-----: | :----------------------- |
|
|
72
73
|
| @datapos/datapos-shared | MIT | 0.3.255 | 0.3.255 | 2025-11-29T17:16:07.774Z |
|
|
@@ -75,6 +76,7 @@ The following table lists top-level production and peer dependencies. All these
|
|
|
75
76
|
| acorn-walk | MIT | 8.3.4 | 8.3.4 | 2024-09-09T08:40:59.131Z |
|
|
76
77
|
| dotenv | BSD-2-Clause | 17.2.3 | 17.2.3 | 2025-09-29T23:22:21.769Z |
|
|
77
78
|
| zod | MIT | 4.1.13 | 4.1.13 | 2025-11-24T02:38:31.522Z |
|
|
79
|
+
|
|
78
80
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
79
81
|
|
|
80
82
|
### Bundle Analysis Report
|
|
@@ -93,10 +95,9 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
|
|
|
93
95
|
| audit | alt+ctrl+shift+a | Audit the project's dependencies for known security vulnerabilities. |
|
|
94
96
|
| build | alt+ctrl+shift+b | Build the package using Vite. Output to '/dist' directory. |
|
|
95
97
|
| check | alt+ctrl+shift+c | Identify outdated dependencies using npm `outdated` and `npm-check-updates` with option to install latest versions. Also runs `retire` scanner. |
|
|
96
|
-
| document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [
|
|
98
|
+
| document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [licenses.json](./licenses.json). |
|
|
97
99
|
| format | alt+ctrl+shift+f | Use `prettier` to enforce formatting style rules. |
|
|
98
100
|
| lint | alt+ctrl+shift+l | Use `eslint` to check the code for potential errors and enforces coding style rules. |
|
|
99
|
-
| publish | alt+ctrl+shift+p | Publish the package to `npm`. |
|
|
100
101
|
| release | alt+ctrl+shift+r | Bump version, build library, synchronise with `GitHub` and publish to `npm`. |
|
|
101
102
|
| sync:withGitHub | alt+ctrl+shift+s | Synchronise local repository with the main GitHub repository. |
|
|
102
103
|
| test | alt+ctrl+shift+t | ❌ Not implemented. |
|
|
@@ -105,7 +106,6 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
|
|
|
105
106
|
## TODO
|
|
106
107
|
|
|
107
108
|
1. Enhance `uploadDirectoryToR2`to batch upload files so more efficient and performant.
|
|
108
|
-
1. Implement zod to validate config schemas.
|
|
109
109
|
|
|
110
110
|
## License
|
|
111
111
|
|
|
@@ -41,7 +41,7 @@ class xs extends Error {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
const gs = {};
|
|
44
|
-
function
|
|
44
|
+
function Ue(e) {
|
|
45
45
|
return gs;
|
|
46
46
|
}
|
|
47
47
|
function Rr(e) {
|
|
@@ -145,7 +145,7 @@ const zr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
|
145
145
|
function rt(e) {
|
|
146
146
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function He(e, t, i) {
|
|
149
149
|
const s = new e._zod.constr(t ?? e._zod.def);
|
|
150
150
|
return (!t || i?.parent) && (s._zod.parent = e), s;
|
|
151
151
|
}
|
|
@@ -185,7 +185,7 @@ function Br(e, t) {
|
|
|
185
185
|
},
|
|
186
186
|
checks: []
|
|
187
187
|
});
|
|
188
|
-
return
|
|
188
|
+
return He(e, s);
|
|
189
189
|
}
|
|
190
190
|
function $r(e, t) {
|
|
191
191
|
const i = e._zod.def, s = Je(e._zod.def, {
|
|
@@ -200,7 +200,7 @@ function $r(e, t) {
|
|
|
200
200
|
},
|
|
201
201
|
checks: []
|
|
202
202
|
});
|
|
203
|
-
return
|
|
203
|
+
return He(e, s);
|
|
204
204
|
}
|
|
205
205
|
function Ur(e, t) {
|
|
206
206
|
if (!st(t))
|
|
@@ -215,7 +215,7 @@ function Ur(e, t) {
|
|
|
215
215
|
},
|
|
216
216
|
checks: []
|
|
217
217
|
});
|
|
218
|
-
return
|
|
218
|
+
return He(e, s);
|
|
219
219
|
}
|
|
220
220
|
function Zr(e, t) {
|
|
221
221
|
if (!st(t))
|
|
@@ -228,7 +228,7 @@ function Zr(e, t) {
|
|
|
228
228
|
},
|
|
229
229
|
checks: e._zod.def.checks
|
|
230
230
|
};
|
|
231
|
-
return
|
|
231
|
+
return He(e, i);
|
|
232
232
|
}
|
|
233
233
|
function qr(e, t) {
|
|
234
234
|
const i = Je(e._zod.def, {
|
|
@@ -242,7 +242,7 @@ function qr(e, t) {
|
|
|
242
242
|
checks: []
|
|
243
243
|
// delete existing checks
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return He(e, i);
|
|
246
246
|
}
|
|
247
247
|
function Hr(e, t, i) {
|
|
248
248
|
const s = Je(t._zod.def, {
|
|
@@ -267,7 +267,7 @@ function Hr(e, t, i) {
|
|
|
267
267
|
},
|
|
268
268
|
checks: []
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return He(t, s);
|
|
271
271
|
}
|
|
272
272
|
function Wr(e, t, i) {
|
|
273
273
|
const s = Je(t._zod.def, {
|
|
@@ -292,7 +292,7 @@ function Wr(e, t, i) {
|
|
|
292
292
|
},
|
|
293
293
|
checks: []
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return He(t, s);
|
|
296
296
|
}
|
|
297
297
|
function et(e, t = 0) {
|
|
298
298
|
if (e.aborted === !0)
|
|
@@ -311,7 +311,7 @@ function tt(e, t) {
|
|
|
311
311
|
function Pt(e) {
|
|
312
312
|
return typeof e == "string" ? e : e?.message;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ze(e, t, i) {
|
|
315
315
|
const s = { ...e, path: e.path ?? [] };
|
|
316
316
|
if (!e.message) {
|
|
317
317
|
const a = Pt(e.inst?._zod.def?.error?.(e)) ?? Pt(t?.error?.(e)) ?? Pt(i.customError?.(e)) ?? Pt(i.localeError?.(e)) ?? "Invalid input";
|
|
@@ -375,7 +375,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
375
375
|
if (h instanceof Promise)
|
|
376
376
|
throw new it();
|
|
377
377
|
if (h.issues.length) {
|
|
378
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
378
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ze(y, o, Ue())));
|
|
379
379
|
throw bs(d, a?.callee), d;
|
|
380
380
|
}
|
|
381
381
|
return h.value;
|
|
@@ -383,7 +383,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
383
383
|
const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
384
384
|
let h = t._zod.run({ value: i, issues: [] }, o);
|
|
385
385
|
if (h instanceof Promise && (h = await h), h.issues.length) {
|
|
386
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
386
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ze(y, o, Ue())));
|
|
387
387
|
throw bs(d, a?.callee), d;
|
|
388
388
|
}
|
|
389
389
|
return h.value;
|
|
@@ -393,14 +393,14 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
393
393
|
throw new it();
|
|
394
394
|
return o.issues.length ? {
|
|
395
395
|
success: !1,
|
|
396
|
-
error: new (e ?? Ss)(o.issues.map((h) =>
|
|
396
|
+
error: new (e ?? Ss)(o.issues.map((h) => Ze(h, a, Ue())))
|
|
397
397
|
} : { success: !0, data: o.value };
|
|
398
398
|
}, Jr = /* @__PURE__ */ jt(Ts), Bt = (e) => async (t, i, s) => {
|
|
399
399
|
const a = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
400
400
|
let o = t._zod.run({ value: i, issues: [] }, a);
|
|
401
401
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
402
402
|
success: !1,
|
|
403
|
-
error: new e(o.issues.map((h) =>
|
|
403
|
+
error: new e(o.issues.map((h) => Ze(h, a, Ue())))
|
|
404
404
|
} : { success: !0, data: o.value };
|
|
405
405
|
}, Xr = /* @__PURE__ */ Bt(Ts), Qr = (e) => (t, i, s) => {
|
|
406
406
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
@@ -1179,13 +1179,13 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1179
1179
|
return `shape[${ge}]._zod.run({ value: input[${ge}], issues: [] }, ctx)`;
|
|
1180
1180
|
};
|
|
1181
1181
|
M.write("const input = payload.value;");
|
|
1182
|
-
const
|
|
1182
|
+
const Le = /* @__PURE__ */ Object.create(null);
|
|
1183
1183
|
let R = 0;
|
|
1184
1184
|
for (const de of U.keys)
|
|
1185
|
-
|
|
1185
|
+
Le[de] = `key_${R++}`;
|
|
1186
1186
|
M.write("const newResult = {};");
|
|
1187
1187
|
for (const de of U.keys) {
|
|
1188
|
-
const ge =
|
|
1188
|
+
const ge = Le[de], Ke = Ri(de);
|
|
1189
1189
|
M.write(`const ${ge} = ${he(de)};`), M.write(`
|
|
1190
1190
|
if (${ge}.issues.length) {
|
|
1191
1191
|
payload.issues = payload.issues.concat(${ge}.issues.map(iss => ({
|
|
@@ -1232,7 +1232,7 @@ function zi(e, t, i, s) {
|
|
|
1232
1232
|
code: "invalid_union",
|
|
1233
1233
|
input: t.value,
|
|
1234
1234
|
inst: i,
|
|
1235
|
-
errors: e.map((o) => o.issues.map((h) =>
|
|
1235
|
+
errors: e.map((o) => o.issues.map((h) => Ze(h, s, Ue())))
|
|
1236
1236
|
}), t);
|
|
1237
1237
|
}
|
|
1238
1238
|
const Pn = /* @__PURE__ */ w("$ZodUnion", (e, t) => {
|
|
@@ -1357,7 +1357,7 @@ const Cn = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
1357
1357
|
i.issues.push({
|
|
1358
1358
|
code: "invalid_key",
|
|
1359
1359
|
origin: "record",
|
|
1360
|
-
issues: d.issues.map((u) =>
|
|
1360
|
+
issues: d.issues.map((u) => Ze(u, s, Ue())),
|
|
1361
1361
|
input: h,
|
|
1362
1362
|
path: [h],
|
|
1363
1363
|
inst: e
|
|
@@ -1467,13 +1467,13 @@ const Vn = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
|
1467
1467
|
return a instanceof Promise ? a.then((o) => (i.value = o.value, o.issues.length && (i.value = t.catchValue({
|
|
1468
1468
|
...i,
|
|
1469
1469
|
error: {
|
|
1470
|
-
issues: o.issues.map((h) =>
|
|
1470
|
+
issues: o.issues.map((h) => Ze(h, s, Ue()))
|
|
1471
1471
|
},
|
|
1472
1472
|
input: i.value
|
|
1473
1473
|
}), i.issues = []), i)) : (i.value = a.value, a.issues.length && (i.value = t.catchValue({
|
|
1474
1474
|
...i,
|
|
1475
1475
|
error: {
|
|
1476
|
-
issues: a.issues.map((o) =>
|
|
1476
|
+
issues: a.issues.map((o) => Ze(o, s, Ue()))
|
|
1477
1477
|
},
|
|
1478
1478
|
input: i.value
|
|
1479
1479
|
}), i.issues = []), i);
|
|
@@ -2059,7 +2059,7 @@ const Uo = (e, t) => {
|
|
|
2059
2059
|
...t.checks ?? [],
|
|
2060
2060
|
...i.map((s) => typeof s == "function" ? { _zod: { check: s, def: { check: "custom" }, onattach: [] } } : s)
|
|
2061
2061
|
]
|
|
2062
|
-
})), e.clone = (i, s) =>
|
|
2062
|
+
})), e.clone = (i, s) => He(e, i, s), e.brand = () => e, e.register = (i, s) => (i.add(e, s), e), e.parse = (i, s) => Zo(e, i, s, { callee: e.parse }), e.safeParse = (i, s) => Ho(e, i, s), e.parseAsync = async (i, s) => qo(e, i, s, { callee: e.parseAsync }), e.safeParseAsync = async (i, s) => Wo(e, i, s), e.spa = e.safeParseAsync, e.encode = (i, s) => Ko(e, i, s), e.decode = (i, s) => Go(e, i, s), e.encodeAsync = async (i, s) => Jo(e, i, s), e.decodeAsync = async (i, s) => Xo(e, i, s), e.safeEncode = (i, s) => Qo(e, i, s), e.safeDecode = (i, s) => Yo(e, i, s), e.safeEncodeAsync = async (i, s) => eu(e, i, s), e.safeDecodeAsync = async (i, s) => tu(e, i, s), e.refine = (i, s) => e.check(Ku(i, s)), e.superRefine = (i) => e.check(Gu(i)), e.overwrite = (i) => e.check(xt(i)), e.optional = () => Qi(e), e.nullable = () => Yi(e), e.nullish = () => Qi(Yi(e)), e.nonoptional = (i) => Bu(e, i), e.array = () => qe(e), e.or = (i) => se([e, i]), e.and = (i) => Iu(e, i), e.transform = (i) => es(e, Ru(i)), e.default = (i) => zu(e, i), e.prefault = (i) => ju(e, i), e.catch = (i) => Uu(e, i), e.pipe = (i) => es(e, i), e.readonly = () => Hu(e), e.describe = (i) => {
|
|
2063
2063
|
const s = e.clone();
|
|
2064
2064
|
return Ct.add(s, { description: i }), s;
|
|
2065
2065
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2127,7 +2127,7 @@ const Y = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
|
2127
2127
|
const i = e._zod.bag;
|
|
2128
2128
|
e.minValue = Math.max(i.minimum ?? Number.NEGATIVE_INFINITY, i.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(i.maximum ?? Number.POSITIVE_INFINITY, i.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (i.format ?? "").includes("int") || Number.isSafeInteger(i.multipleOf ?? 0.5), e.isFinite = !0, e.format = i.format ?? null;
|
|
2129
2129
|
});
|
|
2130
|
-
function
|
|
2130
|
+
function Oe(e) {
|
|
2131
2131
|
return yo(zs, e);
|
|
2132
2132
|
}
|
|
2133
2133
|
const bu = /* @__PURE__ */ w("ZodNumberFormat", (e, t) => {
|
|
@@ -2157,13 +2157,13 @@ function _u(e) {
|
|
|
2157
2157
|
const Pu = /* @__PURE__ */ w("ZodArray", (e, t) => {
|
|
2158
2158
|
Sn.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, s) => e.check(Ot(i, s)), e.nonempty = (i) => e.check(Ot(1, i)), e.max = (i, s) => e.check(Rs(i, s)), e.length = (i, s) => e.check(Ds(i, s)), e.unwrap = () => e.element;
|
|
2159
2159
|
});
|
|
2160
|
-
function
|
|
2160
|
+
function qe(e, t) {
|
|
2161
2161
|
return No(Pu, e, t);
|
|
2162
2162
|
}
|
|
2163
2163
|
const Au = /* @__PURE__ */ w("ZodObject", (e, t) => {
|
|
2164
2164
|
_n.init(e, t), ee.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => Lu(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.strict = () => e.clone({ ...e._zod.def, catchall: _u() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Ur(e, i), e.safeExtend = (i) => Zr(e, i), e.merge = (i) => qr(e, i), e.pick = (i) => Br(e, i), e.omit = (i) => $r(e, i), e.partial = (...i) => Hr(Fs, e, i[0]), e.required = (...i) => Wr(js, e, i[0]);
|
|
2165
2165
|
});
|
|
2166
|
-
function
|
|
2166
|
+
function Ee(e, t) {
|
|
2167
2167
|
const i = {
|
|
2168
2168
|
type: "object",
|
|
2169
2169
|
shape: e ?? {},
|
|
@@ -2404,32 +2404,32 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2404
2404
|
g("presenter"),
|
|
2405
2405
|
g("presenterPresentation"),
|
|
2406
2406
|
g("tool")
|
|
2407
|
-
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc =
|
|
2407
|
+
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc = Ee({
|
|
2408
2408
|
id: L(),
|
|
2409
2409
|
color: Ju,
|
|
2410
2410
|
label: L()
|
|
2411
|
-
}), ic =
|
|
2411
|
+
}), ic = Ee({
|
|
2412
2412
|
id: L(),
|
|
2413
2413
|
label: xe(L(), L()),
|
|
2414
2414
|
description: xe(L(), L()),
|
|
2415
|
-
firstCreatedAt:
|
|
2415
|
+
firstCreatedAt: Oe().optional(),
|
|
2416
2416
|
icon: L().optional(),
|
|
2417
2417
|
iconDark: L().optional(),
|
|
2418
|
-
lastUpdatedAt:
|
|
2418
|
+
lastUpdatedAt: Oe().optional(),
|
|
2419
2419
|
status: tc.nullable().optional(),
|
|
2420
2420
|
statusId: Xu,
|
|
2421
2421
|
typeId: Qu
|
|
2422
|
-
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc =
|
|
2422
|
+
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc = Ee({
|
|
2423
2423
|
id: L(),
|
|
2424
2424
|
label: L()
|
|
2425
|
-
}), ac =
|
|
2426
|
-
activeConnectionCount:
|
|
2425
|
+
}), ac = Ee({
|
|
2426
|
+
activeConnectionCount: Oe().optional(),
|
|
2427
2427
|
canDescribe: wu().optional(),
|
|
2428
2428
|
id: L().optional(),
|
|
2429
2429
|
authMethodId: se([g("apiKey"), g("disabled"), g("oAuth2"), g("none")]),
|
|
2430
2430
|
label: ec.optional(),
|
|
2431
|
-
maxConnectionCount:
|
|
2432
|
-
params:
|
|
2431
|
+
maxConnectionCount: Oe().optional(),
|
|
2432
|
+
params: qe(xe(L(), L())).optional()
|
|
2433
2433
|
}), nc = se([g("application"), g("curatedDataset"), g("database"), g("fileStore")]), oc = se([
|
|
2434
2434
|
g("abortOperation"),
|
|
2435
2435
|
g("authenticateConnection"),
|
|
@@ -2450,7 +2450,7 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2450
2450
|
category: rc.optional(),
|
|
2451
2451
|
categoryId: nc,
|
|
2452
2452
|
implementations: xe(L(), ac),
|
|
2453
|
-
operations:
|
|
2453
|
+
operations: qe(oc),
|
|
2454
2454
|
typeId: g("connector"),
|
|
2455
2455
|
usageId: uc,
|
|
2456
2456
|
vendorAccountURL: L().nullable().optional(),
|
|
@@ -2490,19 +2490,19 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2490
2490
|
g("presenter"),
|
|
2491
2491
|
g("presenterPresentation"),
|
|
2492
2492
|
g("tool")
|
|
2493
|
-
]), ts =
|
|
2493
|
+
]), ts = Oe(), dc = Ee({
|
|
2494
2494
|
id: L(),
|
|
2495
2495
|
color: pc,
|
|
2496
2496
|
label: L()
|
|
2497
|
-
}), mc =
|
|
2497
|
+
}), mc = Ee({
|
|
2498
2498
|
id: L(),
|
|
2499
2499
|
label: xe(L(), L()),
|
|
2500
2500
|
description: xe(L(), L()),
|
|
2501
2501
|
icon: L().optional(),
|
|
2502
2502
|
iconDark: L().optional(),
|
|
2503
|
-
order:
|
|
2503
|
+
order: Oe(),
|
|
2504
2504
|
path: L()
|
|
2505
|
-
}), Bs =
|
|
2505
|
+
}), Bs = Ee({
|
|
2506
2506
|
id: L(),
|
|
2507
2507
|
label: xe(L(), L()),
|
|
2508
2508
|
description: xe(L(), L()),
|
|
@@ -2517,25 +2517,25 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2517
2517
|
typeId: yc,
|
|
2518
2518
|
version: L()
|
|
2519
2519
|
}), xc = Bs.extend({
|
|
2520
|
-
modelRefs:
|
|
2521
|
-
order:
|
|
2520
|
+
modelRefs: qe(mc),
|
|
2521
|
+
order: Oe()
|
|
2522
2522
|
}), gc = g("list"), bc = vc.extend({
|
|
2523
|
-
models:
|
|
2524
|
-
operations:
|
|
2523
|
+
models: qe(xc),
|
|
2524
|
+
operations: qe(gc),
|
|
2525
2525
|
typeId: g("context")
|
|
2526
|
-
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), is =
|
|
2526
|
+
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), is = Oe(), Tc = Ee({
|
|
2527
2527
|
id: L(),
|
|
2528
2528
|
color: kc,
|
|
2529
2529
|
label: L()
|
|
2530
|
-
}), _c =
|
|
2530
|
+
}), _c = Ee({
|
|
2531
2531
|
id: L(),
|
|
2532
2532
|
label: xe(L(), L()),
|
|
2533
2533
|
description: xe(L(), L()),
|
|
2534
2534
|
icon: L().optional(),
|
|
2535
2535
|
iconDark: L().optional(),
|
|
2536
|
-
order:
|
|
2536
|
+
order: Oe(),
|
|
2537
2537
|
path: L()
|
|
2538
|
-
}), Pc =
|
|
2538
|
+
}), Pc = Ee({
|
|
2539
2539
|
id: L(),
|
|
2540
2540
|
label: xe(L(), L()),
|
|
2541
2541
|
description: xe(L(), L()),
|
|
@@ -2550,8 +2550,8 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2550
2550
|
typeId: Ac,
|
|
2551
2551
|
version: L()
|
|
2552
2552
|
}), Ec = se([g("list"), g("render"), g("setColorMode")]), Ic = Cc.extend({
|
|
2553
|
-
presentations:
|
|
2554
|
-
operations:
|
|
2553
|
+
presentations: qe(_c),
|
|
2554
|
+
operations: qe(Ec),
|
|
2555
2555
|
typeId: g("presenter")
|
|
2556
2556
|
});
|
|
2557
2557
|
var Nc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], $s = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Lc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Us = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ei = {
|
|
@@ -2577,7 +2577,7 @@ function ui(e, t) {
|
|
|
2577
2577
|
function Pe(e, t) {
|
|
2578
2578
|
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Rc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Me(e, t) {
|
|
2581
2581
|
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Dc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s) || ui(e, Nc);
|
|
2582
2582
|
}
|
|
2583
2583
|
var z = function(t, i) {
|
|
@@ -2701,10 +2701,10 @@ var ki = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ae = /(?:\s|\/\/.*|\/\
|
|
|
2701
2701
|
}), ss = Array.isArray || (function(e) {
|
|
2702
2702
|
return zc.call(e) === "[object Array]";
|
|
2703
2703
|
}), rs = /* @__PURE__ */ Object.create(null);
|
|
2704
|
-
function
|
|
2704
|
+
function $e(e) {
|
|
2705
2705
|
return rs[e] || (rs[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Re(e) {
|
|
2708
2708
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
2709
2709
|
}
|
|
2710
2710
|
var Fc = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, nt = function(t, i) {
|
|
@@ -2850,27 +2850,27 @@ function _i(e, t) {
|
|
|
2850
2850
|
return ut | (e ? Si : 0) | (t ? Ws : 0);
|
|
2851
2851
|
}
|
|
2852
2852
|
var Rt = 0, Pi = 1, Ve = 2, Js = 3, Xs = 4, Qs = 5, X = function(t, i, s) {
|
|
2853
|
-
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords =
|
|
2853
|
+
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords = $e(Oc[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
2854
2854
|
var a = "";
|
|
2855
|
-
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords =
|
|
2855
|
+
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords = $e(a);
|
|
2856
2856
|
var o = (a ? a + " " : "") + ei.strict;
|
|
2857
|
-
this.reservedWordsStrict =
|
|
2857
|
+
this.reservedWordsStrict = $e(o), this.reservedWordsStrictBind = $e(o + " " + ei.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
2858
2858
|
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ue).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = p.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(vt), this.regexpState = null, this.privateNameStack = [];
|
|
2859
|
-
},
|
|
2859
|
+
}, Ie = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
2860
2860
|
X.prototype.parse = function() {
|
|
2861
2861
|
var t = this.options.program || this.startNode();
|
|
2862
2862
|
return this.nextToken(), this.parseTopLevel(t);
|
|
2863
2863
|
};
|
|
2864
|
-
|
|
2864
|
+
Ie.inFunction.get = function() {
|
|
2865
2865
|
return (this.currentVarScope().flags & ut) > 0;
|
|
2866
2866
|
};
|
|
2867
|
-
|
|
2867
|
+
Ie.inGenerator.get = function() {
|
|
2868
2868
|
return (this.currentVarScope().flags & Ws) > 0;
|
|
2869
2869
|
};
|
|
2870
|
-
|
|
2870
|
+
Ie.inAsync.get = function() {
|
|
2871
2871
|
return (this.currentVarScope().flags & Si) > 0;
|
|
2872
2872
|
};
|
|
2873
|
-
|
|
2873
|
+
Ie.canAwait.get = function() {
|
|
2874
2874
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2875
2875
|
var t = this.scopeStack[e], i = t.flags;
|
|
2876
2876
|
if (i & (Qe | bt))
|
|
@@ -2880,17 +2880,17 @@ Ee.canAwait.get = function() {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
2882
2882
|
};
|
|
2883
|
-
|
|
2883
|
+
Ie.allowSuper.get = function() {
|
|
2884
2884
|
var e = this.currentThisScope(), t = e.flags;
|
|
2885
2885
|
return (t & Ut) > 0 || this.options.allowSuperOutsideMethod;
|
|
2886
2886
|
};
|
|
2887
|
-
|
|
2887
|
+
Ie.allowDirectSuper.get = function() {
|
|
2888
2888
|
return (this.currentThisScope().flags & Gs) > 0;
|
|
2889
2889
|
};
|
|
2890
|
-
|
|
2890
|
+
Ie.treatFunctionsAsVar.get = function() {
|
|
2891
2891
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
2892
2892
|
};
|
|
2893
|
-
|
|
2893
|
+
Ie.allowNewDotTarget.get = function() {
|
|
2894
2894
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2895
2895
|
var t = this.scopeStack[e], i = t.flags;
|
|
2896
2896
|
if (i & (Qe | bt) || i & ut && !(i & Ti))
|
|
@@ -2898,7 +2898,7 @@ Ee.allowNewDotTarget.get = function() {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
return !1;
|
|
2900
2900
|
};
|
|
2901
|
-
|
|
2901
|
+
Ie.inClassStaticBlock.get = function() {
|
|
2902
2902
|
return (this.currentVarScope().flags & Qe) > 0;
|
|
2903
2903
|
};
|
|
2904
2904
|
X.extend = function() {
|
|
@@ -2917,7 +2917,7 @@ X.parseExpressionAt = function(t, i, s) {
|
|
|
2917
2917
|
X.tokenizer = function(t, i) {
|
|
2918
2918
|
return new this(i, t);
|
|
2919
2919
|
};
|
|
2920
|
-
Object.defineProperties(X.prototype,
|
|
2920
|
+
Object.defineProperties(X.prototype, Ie);
|
|
2921
2921
|
var ce = X.prototype, $c = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
2922
2922
|
ce.strictDirective = function(e) {
|
|
2923
2923
|
if (this.options.ecmaVersion < 5)
|
|
@@ -3018,7 +3018,7 @@ E.isLet = function(e) {
|
|
|
3018
3018
|
if (s === 123 || s > 55295 && s < 56320)
|
|
3019
3019
|
return !0;
|
|
3020
3020
|
if (Pe(s, !0)) {
|
|
3021
|
-
for (var a = i + 1;
|
|
3021
|
+
for (var a = i + 1; Me(s = this.input.charCodeAt(a), !0); )
|
|
3022
3022
|
++a;
|
|
3023
3023
|
if (s === 92 || s > 55295 && s < 56320)
|
|
3024
3024
|
return !0;
|
|
@@ -3033,7 +3033,7 @@ E.isAsyncFunction = function() {
|
|
|
3033
3033
|
return !1;
|
|
3034
3034
|
ae.lastIndex = this.pos;
|
|
3035
3035
|
var e = ae.exec(this.input), t = this.pos + e[0].length, i;
|
|
3036
|
-
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
3036
|
+
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Me(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
3037
3037
|
};
|
|
3038
3038
|
E.isUsingKeyword = function(e, t) {
|
|
3039
3039
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
@@ -3044,7 +3044,7 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3044
3044
|
return !1;
|
|
3045
3045
|
if (e) {
|
|
3046
3046
|
var a = s + 5, o;
|
|
3047
|
-
if (this.input.slice(s, a) !== "using" || a === this.input.length ||
|
|
3047
|
+
if (this.input.slice(s, a) !== "using" || a === this.input.length || Me(o = this.input.charCodeAt(a)) || o > 55295 && o < 56320)
|
|
3048
3048
|
return !1;
|
|
3049
3049
|
ae.lastIndex = a;
|
|
3050
3050
|
var h = ae.exec(this.input);
|
|
@@ -3053,7 +3053,7 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
if (t) {
|
|
3055
3055
|
var d = s + 2, y;
|
|
3056
|
-
if (this.input.slice(s, d) === "of" && (d === this.input.length || !
|
|
3056
|
+
if (this.input.slice(s, d) === "of" && (d === this.input.length || !Me(y = this.input.charCodeAt(d)) && !(y > 55295 && y < 56320)))
|
|
3057
3057
|
return !1;
|
|
3058
3058
|
}
|
|
3059
3059
|
var u = this.input.charCodeAt(s);
|
|
@@ -3893,12 +3893,12 @@ D.parseSubscript = function(e, t, i, s, a, o, h) {
|
|
|
3893
3893
|
} else if (!s && this.eat(p.parenL)) {
|
|
3894
3894
|
var P = new qt(), M = this.yieldPos, U = this.awaitPos, he = this.awaitIdentPos;
|
|
3895
3895
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
3896
|
-
var
|
|
3896
|
+
var Le = this.parseExprList(p.parenR, this.options.ecmaVersion >= 8, !1, P);
|
|
3897
3897
|
if (a && !y && this.shouldParseAsyncArrow())
|
|
3898
|
-
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i,
|
|
3898
|
+
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i, Le, h);
|
|
3899
3899
|
this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, this.awaitIdentPos = he || this.awaitIdentPos;
|
|
3900
3900
|
var R = this.startNodeAt(t, i);
|
|
3901
|
-
R.callee = e, R.arguments =
|
|
3901
|
+
R.callee = e, R.arguments = Le, d && (R.optional = y), e = this.finishNode(R, "CallExpression");
|
|
3902
3902
|
} else if (this.type === p.backQuote) {
|
|
3903
3903
|
(y || o) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
3904
3904
|
var re = this.startNodeAt(t, i);
|
|
@@ -4012,10 +4012,10 @@ D.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
4012
4012
|
break;
|
|
4013
4013
|
} else
|
|
4014
4014
|
y.push(this.parseMaybeAssign(!1, P, this.parseParenItem));
|
|
4015
|
-
var
|
|
4015
|
+
var Le = this.lastTokEnd, R = this.lastTokEndLoc;
|
|
4016
4016
|
if (this.expect(p.parenR), e && this.shouldParseArrow(y) && this.eat(p.arrow))
|
|
4017
4017
|
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = M, this.awaitPos = U, this.parseParenArrowList(i, s, y, t);
|
|
4018
|
-
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression",
|
|
4018
|
+
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression", Le, R)) : a = y[0];
|
|
4019
4019
|
} else
|
|
4020
4020
|
a = this.parseParenExpression();
|
|
4021
4021
|
if (this.options.preserveParens) {
|
|
@@ -4199,19 +4199,19 @@ Vt.curPosition = function() {
|
|
|
4199
4199
|
if (this.options.locations)
|
|
4200
4200
|
return new nt(this.curLine, this.pos - this.lineStart);
|
|
4201
4201
|
};
|
|
4202
|
-
var
|
|
4202
|
+
var We = X.prototype, Wc = function(t) {
|
|
4203
4203
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
4204
4204
|
};
|
|
4205
|
-
|
|
4205
|
+
We.enterScope = function(e) {
|
|
4206
4206
|
this.scopeStack.push(new Wc(e));
|
|
4207
4207
|
};
|
|
4208
|
-
|
|
4208
|
+
We.exitScope = function() {
|
|
4209
4209
|
this.scopeStack.pop();
|
|
4210
4210
|
};
|
|
4211
|
-
|
|
4211
|
+
We.treatFunctionsAsVarInScope = function(e) {
|
|
4212
4212
|
return e.flags & ut || !this.inModule && e.flags & vt;
|
|
4213
4213
|
};
|
|
4214
|
-
|
|
4214
|
+
We.declareName = function(e, t, i) {
|
|
4215
4215
|
var s = !1;
|
|
4216
4216
|
if (t === Ve) {
|
|
4217
4217
|
var a = this.currentScope();
|
|
@@ -4234,20 +4234,20 @@ qe.declareName = function(e, t, i) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
4236
4236
|
};
|
|
4237
|
-
|
|
4237
|
+
We.checkLocalExport = function(e) {
|
|
4238
4238
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
4239
4239
|
};
|
|
4240
|
-
|
|
4240
|
+
We.currentScope = function() {
|
|
4241
4241
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
4242
4242
|
};
|
|
4243
|
-
|
|
4243
|
+
We.currentVarScope = function() {
|
|
4244
4244
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4245
4245
|
var t = this.scopeStack[e];
|
|
4246
4246
|
if (t.flags & (Zt | bt | Qe))
|
|
4247
4247
|
return t;
|
|
4248
4248
|
}
|
|
4249
4249
|
};
|
|
4250
|
-
|
|
4250
|
+
We.currentThisScope = function() {
|
|
4251
4251
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4252
4252
|
var t = this.scopeStack[e];
|
|
4253
4253
|
if (t.flags & (Zt | bt | Qe) && !(t.flags & Ti))
|
|
@@ -4302,11 +4302,11 @@ var Kc = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4302
4302
|
}, lr = {};
|
|
4303
4303
|
function th(e) {
|
|
4304
4304
|
var t = lr[e] = {
|
|
4305
|
-
binary:
|
|
4306
|
-
binaryOfStrings:
|
|
4305
|
+
binary: $e(Jc[e] + " " + ns),
|
|
4306
|
+
binaryOfStrings: $e(Qc[e]),
|
|
4307
4307
|
nonBinary: {
|
|
4308
|
-
General_Category:
|
|
4309
|
-
Script:
|
|
4308
|
+
General_Category: $e(ns),
|
|
4309
|
+
Script: $e(eh[e])
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
4312
4312
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
@@ -4328,17 +4328,17 @@ zt.prototype.separatedFrom = function(t) {
|
|
|
4328
4328
|
zt.prototype.sibling = function() {
|
|
4329
4329
|
return new zt(this.parent, this.base);
|
|
4330
4330
|
};
|
|
4331
|
-
var
|
|
4331
|
+
var Ne = function(t) {
|
|
4332
4332
|
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = lr[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
4333
4333
|
};
|
|
4334
|
-
|
|
4334
|
+
Ne.prototype.reset = function(t, i, s) {
|
|
4335
4335
|
var a = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
|
|
4336
4336
|
this.start = t | 0, this.source = i + "", this.flags = s, a && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = o && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = o && this.parser.options.ecmaVersion >= 9);
|
|
4337
4337
|
};
|
|
4338
|
-
|
|
4338
|
+
Ne.prototype.raise = function(t) {
|
|
4339
4339
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
|
|
4340
4340
|
};
|
|
4341
|
-
|
|
4341
|
+
Ne.prototype.at = function(t, i) {
|
|
4342
4342
|
i === void 0 && (i = !1);
|
|
4343
4343
|
var s = this.source, a = s.length;
|
|
4344
4344
|
if (t >= a)
|
|
@@ -4349,7 +4349,7 @@ Ie.prototype.at = function(t, i) {
|
|
|
4349
4349
|
var h = s.charCodeAt(t + 1);
|
|
4350
4350
|
return h >= 56320 && h <= 57343 ? (o << 10) + h - 56613888 : o;
|
|
4351
4351
|
};
|
|
4352
|
-
|
|
4352
|
+
Ne.prototype.nextIndex = function(t, i) {
|
|
4353
4353
|
i === void 0 && (i = !1);
|
|
4354
4354
|
var s = this.source, a = s.length;
|
|
4355
4355
|
if (t >= a)
|
|
@@ -4357,19 +4357,19 @@ Ie.prototype.nextIndex = function(t, i) {
|
|
|
4357
4357
|
var o = s.charCodeAt(t), h;
|
|
4358
4358
|
return !(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= a || (h = s.charCodeAt(t + 1)) < 56320 || h > 57343 ? t + 1 : t + 2;
|
|
4359
4359
|
};
|
|
4360
|
-
|
|
4360
|
+
Ne.prototype.current = function(t) {
|
|
4361
4361
|
return t === void 0 && (t = !1), this.at(this.pos, t);
|
|
4362
4362
|
};
|
|
4363
|
-
|
|
4363
|
+
Ne.prototype.lookahead = function(t) {
|
|
4364
4364
|
return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
|
|
4365
4365
|
};
|
|
4366
|
-
|
|
4366
|
+
Ne.prototype.advance = function(t) {
|
|
4367
4367
|
t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
|
|
4368
4368
|
};
|
|
4369
|
-
|
|
4369
|
+
Ne.prototype.eat = function(t, i) {
|
|
4370
4370
|
return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
|
|
4371
4371
|
};
|
|
4372
|
-
|
|
4372
|
+
Ne.prototype.eatChars = function(t, i) {
|
|
4373
4373
|
i === void 0 && (i = !1);
|
|
4374
4374
|
for (var s = this.pos, a = 0, o = t; a < o.length; a += 1) {
|
|
4375
4375
|
var h = o[a], d = this.at(s, i);
|
|
@@ -4595,7 +4595,7 @@ A.regexp_eatCapturingGroup = function(e) {
|
|
|
4595
4595
|
};
|
|
4596
4596
|
A.regexp_eatModifiers = function(e) {
|
|
4597
4597
|
for (var t = "", i = 0; (i = e.current()) !== -1 && rh(i); )
|
|
4598
|
-
t +=
|
|
4598
|
+
t += Re(i), e.advance();
|
|
4599
4599
|
return t;
|
|
4600
4600
|
};
|
|
4601
4601
|
function rh(e) {
|
|
@@ -4660,8 +4660,8 @@ A.regexp_eatGroupName = function(e) {
|
|
|
4660
4660
|
};
|
|
4661
4661
|
A.regexp_eatRegExpIdentifierName = function(e) {
|
|
4662
4662
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
4663
|
-
for (e.lastStringValue +=
|
|
4664
|
-
e.lastStringValue +=
|
|
4663
|
+
for (e.lastStringValue += Re(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
|
|
4664
|
+
e.lastStringValue += Re(e.lastIntValue);
|
|
4665
4665
|
return !0;
|
|
4666
4666
|
}
|
|
4667
4667
|
return !1;
|
|
@@ -4678,7 +4678,7 @@ A.regexp_eatRegExpIdentifierPart = function(e) {
|
|
|
4678
4678
|
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), nh(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
4679
4679
|
};
|
|
4680
4680
|
function nh(e) {
|
|
4681
|
-
return
|
|
4681
|
+
return Me(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
4682
4682
|
}
|
|
4683
4683
|
A.regexp_eatAtomEscape = function(e) {
|
|
4684
4684
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -4796,11 +4796,11 @@ A.regexp_eatDecimalEscape = function(e) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
return !1;
|
|
4798
4798
|
};
|
|
4799
|
-
var mr = 0,
|
|
4799
|
+
var mr = 0, De = 1, we = 2;
|
|
4800
4800
|
A.regexp_eatCharacterClassEscape = function(e) {
|
|
4801
4801
|
var t = e.current();
|
|
4802
4802
|
if (uh(t))
|
|
4803
|
-
return e.lastIntValue = -1, e.advance(),
|
|
4803
|
+
return e.lastIntValue = -1, e.advance(), De;
|
|
4804
4804
|
var i = !1;
|
|
4805
4805
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
4806
4806
|
e.lastIntValue = -1, e.advance();
|
|
@@ -4829,7 +4829,7 @@ A.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
4829
4829
|
var i = e.lastStringValue;
|
|
4830
4830
|
if (this.regexp_eatUnicodePropertyValue(e)) {
|
|
4831
4831
|
var s = e.lastStringValue;
|
|
4832
|
-
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s),
|
|
4832
|
+
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), De;
|
|
4833
4833
|
}
|
|
4834
4834
|
}
|
|
4835
4835
|
if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
|
|
@@ -4843,7 +4843,7 @@ A.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
|
4843
4843
|
};
|
|
4844
4844
|
A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
4845
4845
|
if (e.unicodeProperties.binary.test(t))
|
|
4846
|
-
return
|
|
4846
|
+
return De;
|
|
4847
4847
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
4848
4848
|
return we;
|
|
4849
4849
|
e.raise("Invalid property name");
|
|
@@ -4851,7 +4851,7 @@ A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
4851
4851
|
A.regexp_eatUnicodePropertyName = function(e) {
|
|
4852
4852
|
var t = 0;
|
|
4853
4853
|
for (e.lastStringValue = ""; yr(t = e.current()); )
|
|
4854
|
-
e.lastStringValue +=
|
|
4854
|
+
e.lastStringValue += Re(t), e.advance();
|
|
4855
4855
|
return e.lastStringValue !== "";
|
|
4856
4856
|
};
|
|
4857
4857
|
function yr(e) {
|
|
@@ -4860,7 +4860,7 @@ function yr(e) {
|
|
|
4860
4860
|
A.regexp_eatUnicodePropertyValue = function(e) {
|
|
4861
4861
|
var t = 0;
|
|
4862
4862
|
for (e.lastStringValue = ""; ch(t = e.current()); )
|
|
4863
|
-
e.lastStringValue +=
|
|
4863
|
+
e.lastStringValue += Re(t), e.advance();
|
|
4864
4864
|
return e.lastStringValue !== "";
|
|
4865
4865
|
};
|
|
4866
4866
|
function ch(e) {
|
|
@@ -4886,7 +4886,7 @@ A.regexp_eatCharacterClass = function(e) {
|
|
|
4886
4886
|
return !1;
|
|
4887
4887
|
};
|
|
4888
4888
|
A.regexp_classContents = function(e) {
|
|
4889
|
-
return e.current() === 93 ?
|
|
4889
|
+
return e.current() === 93 ? De : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), De);
|
|
4890
4890
|
};
|
|
4891
4891
|
A.regexp_nonEmptyClassRanges = function(e) {
|
|
4892
4892
|
for (; this.regexp_eatClassAtom(e); ) {
|
|
@@ -4940,7 +4940,7 @@ A.regexp_eatClassEscape = function(e) {
|
|
|
4940
4940
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
4941
4941
|
};
|
|
4942
4942
|
A.regexp_classSetExpression = function(e) {
|
|
4943
|
-
var t =
|
|
4943
|
+
var t = De, i;
|
|
4944
4944
|
if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
|
|
4945
4945
|
i === we && (t = we);
|
|
4946
4946
|
for (var s = e.pos; e.eatChars(
|
|
@@ -4948,7 +4948,7 @@ A.regexp_classSetExpression = function(e) {
|
|
|
4948
4948
|
/* && */
|
|
4949
4949
|
); ) {
|
|
4950
4950
|
if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
|
|
4951
|
-
i !== we && (t =
|
|
4951
|
+
i !== we && (t = De);
|
|
4952
4952
|
continue;
|
|
4953
4953
|
}
|
|
4954
4954
|
e.raise("Invalid character in character class");
|
|
@@ -4987,7 +4987,7 @@ A.regexp_eatClassSetRange = function(e) {
|
|
|
4987
4987
|
return !1;
|
|
4988
4988
|
};
|
|
4989
4989
|
A.regexp_eatClassSetOperand = function(e) {
|
|
4990
|
-
return this.regexp_eatClassSetCharacter(e) ?
|
|
4990
|
+
return this.regexp_eatClassSetCharacter(e) ? De : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
|
|
4991
4991
|
};
|
|
4992
4992
|
A.regexp_eatNestedClass = function(e) {
|
|
4993
4993
|
var t = e.pos;
|
|
@@ -5050,7 +5050,7 @@ A.regexp_classStringDisjunctionContents = function(e) {
|
|
|
5050
5050
|
A.regexp_classString = function(e) {
|
|
5051
5051
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
5052
5052
|
t++;
|
|
5053
|
-
return t === 1 ?
|
|
5053
|
+
return t === 1 ? De : we;
|
|
5054
5054
|
};
|
|
5055
5055
|
A.regexp_eatClassSetCharacter = function(e) {
|
|
5056
5056
|
var t = e.pos;
|
|
@@ -5317,7 +5317,7 @@ F.readToken_numberSign = function() {
|
|
|
5317
5317
|
var e = this.options.ecmaVersion, t = 35;
|
|
5318
5318
|
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Pe(t, !0) || t === 92))
|
|
5319
5319
|
return this.finishToken(p.privateId, this.readWord1());
|
|
5320
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5320
|
+
this.raise(this.pos, "Unexpected character '" + Re(t) + "'");
|
|
5321
5321
|
};
|
|
5322
5322
|
F.getTokenFromCode = function(e) {
|
|
5323
5323
|
switch (e) {
|
|
@@ -5404,7 +5404,7 @@ F.getTokenFromCode = function(e) {
|
|
|
5404
5404
|
case 35:
|
|
5405
5405
|
return this.readToken_numberSign();
|
|
5406
5406
|
}
|
|
5407
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5407
|
+
this.raise(this.pos, "Unexpected character '" + Re(e) + "'");
|
|
5408
5408
|
};
|
|
5409
5409
|
F.finishOp = function(e, t) {
|
|
5410
5410
|
var i = this.input.slice(this.pos, this.pos + t);
|
|
@@ -5431,7 +5431,7 @@ F.readRegexp = function() {
|
|
|
5431
5431
|
++this.pos;
|
|
5432
5432
|
var o = this.pos, h = this.readWord1();
|
|
5433
5433
|
this.containsEsc && this.unexpected(o);
|
|
5434
|
-
var d = this.regexpState || (this.regexpState = new
|
|
5434
|
+
var d = this.regexpState || (this.regexpState = new Ne(this));
|
|
5435
5435
|
d.reset(i, a, h), this.validateRegExpFlags(d), this.validateRegExpPattern(d);
|
|
5436
5436
|
var y = null;
|
|
5437
5437
|
try {
|
|
@@ -5581,7 +5581,7 @@ F.readEscapedChar = function(e) {
|
|
|
5581
5581
|
return String.fromCharCode(this.readHexChar(2));
|
|
5582
5582
|
// 'x'
|
|
5583
5583
|
case 117:
|
|
5584
|
-
return
|
|
5584
|
+
return Re(this.readCodePoint());
|
|
5585
5585
|
// 'u'
|
|
5586
5586
|
case 116:
|
|
5587
5587
|
return " ";
|
|
@@ -5631,14 +5631,14 @@ F.readWord1 = function() {
|
|
|
5631
5631
|
this.containsEsc = !1;
|
|
5632
5632
|
for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
5633
5633
|
var a = this.fullCharCodeAtPos();
|
|
5634
|
-
if (
|
|
5634
|
+
if (Me(a, s))
|
|
5635
5635
|
this.pos += a <= 65535 ? 1 : 2;
|
|
5636
5636
|
else if (a === 92) {
|
|
5637
5637
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
5638
5638
|
var o = this.pos;
|
|
5639
5639
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
5640
5640
|
var h = this.readCodePoint();
|
|
5641
|
-
(t ? Pe :
|
|
5641
|
+
(t ? Pe : Me)(h, s) || this.invalidStringToken(o, "Invalid Unicode escape"), e += Re(h), i = this.pos;
|
|
5642
5642
|
} else
|
|
5643
5643
|
break;
|
|
5644
5644
|
t = !1;
|
|
@@ -5663,7 +5663,7 @@ X.acorn = {
|
|
|
5663
5663
|
keywordTypes: at,
|
|
5664
5664
|
TokContext: oe,
|
|
5665
5665
|
tokContexts: H,
|
|
5666
|
-
isIdentifierChar:
|
|
5666
|
+
isIdentifierChar: Me,
|
|
5667
5667
|
isIdentifierStart: Pe,
|
|
5668
5668
|
Token: Wt,
|
|
5669
5669
|
isNewLine: Xe,
|
|
@@ -5691,7 +5691,7 @@ const vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5691
5691
|
TokenType: z,
|
|
5692
5692
|
defaultOptions: Mt,
|
|
5693
5693
|
getLineInfo: wi,
|
|
5694
|
-
isIdentifierChar:
|
|
5694
|
+
isIdentifierChar: Me,
|
|
5695
5695
|
isIdentifierStart: Pe,
|
|
5696
5696
|
isNewLine: Xe,
|
|
5697
5697
|
keywordTypes: at,
|
|
@@ -5871,7 +5871,7 @@ function ds(e) {
|
|
|
5871
5871
|
function Ch(e) {
|
|
5872
5872
|
var t = {}, i = t.dts, s = i !== void 0 && i, a = t.allowSatisfies, o = a !== void 0 && a;
|
|
5873
5873
|
return function(h) {
|
|
5874
|
-
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts,
|
|
5874
|
+
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts, Le = d.isIdentifierChar, R = y.tokTypes, re = y.tokContexts, de = y.keywordsRegExp, ge = y.tokenIsLiteralPropertyName, Ke = y.tokenIsTemplate, Ar = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, St = y.tokenIsKeywordOrIdentifier, Cr = y.tokenIsTSTypeOperator;
|
|
5875
5875
|
function Er(_, pe, ne) {
|
|
5876
5876
|
ne === void 0 && (ne = _.length);
|
|
5877
5877
|
for (var te = pe; te < ne; te++) {
|
|
@@ -6183,7 +6183,7 @@ function Ch(e) {
|
|
|
6183
6183
|
var c = r + n.length;
|
|
6184
6184
|
if (this.input.slice(r, c) === n) {
|
|
6185
6185
|
var l = this.input.charCodeAt(c);
|
|
6186
|
-
return !(
|
|
6186
|
+
return !(Le(l) || (64512 & l) == 55296);
|
|
6187
6187
|
}
|
|
6188
6188
|
return !1;
|
|
6189
6189
|
}, f.isAbstractConstructorSignature = function() {
|
|
@@ -7227,11 +7227,11 @@ function Ch(e) {
|
|
|
7227
7227
|
}
|
|
7228
7228
|
if (!((l = V) != null && l.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(r, n, c);
|
|
7229
7229
|
N && !this.compareLookaheadState(N, this.getCurLookaheadState()) || (N = this.cloneCurLookaheadState());
|
|
7230
|
-
var me = this.tryParse(function(
|
|
7230
|
+
var me = this.tryParse(function(je) {
|
|
7231
7231
|
var ht, pt;
|
|
7232
7232
|
G = W.tsParseTypeParameters();
|
|
7233
|
-
var
|
|
7234
|
-
return (
|
|
7233
|
+
var Be = W.parseMaybeAssignOrigin(r, n, c);
|
|
7234
|
+
return (Be.type !== "ArrowFunctionExpression" || (ht = Be.extra) != null && ht.parenthesized) && je(), ((pt = G) == null ? void 0 : pt.params.length) !== 0 && W.resetStartLocationFromNode(Be, G), Be.typeParameters = G, Be;
|
|
7235
7235
|
}, N);
|
|
7236
7236
|
if (!me.error && !me.aborted) return G && this.reportReservedArrowTypeParam(G), me.node;
|
|
7237
7237
|
if (!V && (fs(!0), !(C = this.tryParse(function() {
|
|
@@ -7381,8 +7381,8 @@ function Ch(e) {
|
|
|
7381
7381
|
N.length && !C || this.unexpected(this.lastTokStart), b && this.unexpected(b), this.checkExpressionErrors(G, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = J || this.awaitPos, N.length > 1 ? ((c = this.startNodeAt(k, T)).expressions = N, this.finishNodeAt(c, "SequenceExpression", ie, me)) : c = N[0];
|
|
7382
7382
|
} else c = this.parseParenExpression();
|
|
7383
7383
|
if (this.options.preserveParens) {
|
|
7384
|
-
var
|
|
7385
|
-
return
|
|
7384
|
+
var je = this.startNodeAt(l, m);
|
|
7385
|
+
return je.expression = c, this.finishNode(je, "ParenthesizedExpression");
|
|
7386
7386
|
}
|
|
7387
7387
|
return c;
|
|
7388
7388
|
}, f.parseTaggedTemplateExpression = function(r, n, c, l) {
|
|
@@ -7453,12 +7453,12 @@ function Ch(e) {
|
|
|
7453
7453
|
} else if (!l && this.eat(u.parenL)) {
|
|
7454
7454
|
var me = this.maybeInArrowParameters;
|
|
7455
7455
|
this.maybeInArrowParameters = !0;
|
|
7456
|
-
var
|
|
7456
|
+
var je = new ft(), ht = this.yieldPos, pt = this.awaitPos, Be = this.awaitIdentPos;
|
|
7457
7457
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
7458
|
-
var Ei = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1,
|
|
7459
|
-
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(
|
|
7458
|
+
var Ei = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, je);
|
|
7459
|
+
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(je, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ht, this.awaitPos = pt, this.awaitIdentPos = Be, r = this.parseSubscriptAsyncArrow(n, c, Ei, x);
|
|
7460
7460
|
else {
|
|
7461
|
-
this.checkExpressionErrors(
|
|
7461
|
+
this.checkExpressionErrors(je, !0), this.yieldPos = ht || this.yieldPos, this.awaitPos = pt || this.awaitPos, this.awaitIdentPos = Be || this.awaitIdentPos;
|
|
7462
7462
|
var Tt = this.startNodeAt(n, c);
|
|
7463
7463
|
Tt.callee = r, Tt.arguments = Ei, G && (Tt.optional = W), r = this.finishNode(Tt, "CallExpression");
|
|
7464
7464
|
}
|
|
@@ -7647,12 +7647,12 @@ async function _e(e, t = [], i) {
|
|
|
7647
7647
|
async function Nh() {
|
|
7648
7648
|
Ae("Load environment variables"), (await import("dotenv")).config();
|
|
7649
7649
|
}
|
|
7650
|
-
function
|
|
7650
|
+
function ze(e) {
|
|
7651
7651
|
const t = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(e.length + 10);
|
|
7652
7652
|
console.info(`
|
|
7653
7653
|
${t}${s}`), console.info(`🚀 ${e}`), console.info(`${s}${i}`);
|
|
7654
7654
|
}
|
|
7655
|
-
function
|
|
7655
|
+
function Fe(e) {
|
|
7656
7656
|
console.info(`
|
|
7657
7657
|
✅ ${e}
|
|
7658
7658
|
`);
|
|
@@ -7667,7 +7667,7 @@ async function Kt(e) {
|
|
|
7667
7667
|
async function li(e) {
|
|
7668
7668
|
return Ae(`Load text file '${e}'`), await $.readFile(e, "utf8");
|
|
7669
7669
|
}
|
|
7670
|
-
async function
|
|
7670
|
+
async function Ce(e, t = [], i = !1) {
|
|
7671
7671
|
return Ae(`Spawn command: ${e} ${t.join(" ")}`), new Promise((s, a) => {
|
|
7672
7672
|
Nr(e, t, { stdio: "inherit" }).on("close", (h) => {
|
|
7673
7673
|
h === 0 || i ? s() : a(new Error(`${e} exited with code ${h}`));
|
|
@@ -7695,52 +7695,51 @@ async function Tr(e, t) {
|
|
|
7695
7695
|
}
|
|
7696
7696
|
async function Bh() {
|
|
7697
7697
|
try {
|
|
7698
|
-
|
|
7698
|
+
ze("Build Artifact"), await Ce("vite", ["build"]), Fe("Artifact build complete.");
|
|
7699
7699
|
} catch (e) {
|
|
7700
7700
|
console.error("❌ Error building artifact.", e), process.exit(1);
|
|
7701
7701
|
}
|
|
7702
7702
|
}
|
|
7703
|
-
async function $h() {
|
|
7703
|
+
async function $h(e = !1) {
|
|
7704
7704
|
try {
|
|
7705
|
-
|
|
7706
|
-
const
|
|
7707
|
-
|
|
7708
|
-
} catch (
|
|
7709
|
-
console.error("❌ Error releasing artifact.",
|
|
7705
|
+
ze("Release Artifact");
|
|
7706
|
+
const t = await Kt("package.json");
|
|
7707
|
+
await _r(t), await Ce("vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${t.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ce("npm", ["publish", "--access", "public"]), Fe(`Version ${t.version} of artifact released.`);
|
|
7708
|
+
} catch (t) {
|
|
7709
|
+
console.error("❌ Error releasing artifact.", t), process.exit(1);
|
|
7710
7710
|
}
|
|
7711
7711
|
}
|
|
7712
7712
|
async function Uh() {
|
|
7713
7713
|
try {
|
|
7714
|
-
|
|
7714
|
+
ze("Synchronising Artifact with GitHub");
|
|
7715
7715
|
const e = await Kt("package.json");
|
|
7716
|
-
Ae("Bump artifact version"), await _r(e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]),
|
|
7716
|
+
Ae("Bump artifact version"), await _r(e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), Fe(`Version ${e.version} of artifact synchronised with GitHub.`);
|
|
7717
7717
|
} catch (e) {
|
|
7718
7718
|
console.error("❌ Error synchronising artifact with GitHub.", e), process.exit(1);
|
|
7719
7719
|
}
|
|
7720
7720
|
}
|
|
7721
|
+
function Zh() {
|
|
7722
|
+
console.log("Test artifact...");
|
|
7723
|
+
}
|
|
7721
7724
|
async function _r(e, t = "./") {
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7728
|
-
}
|
|
7729
|
-
} catch (i) {
|
|
7730
|
-
console.error("❌ Error bumping artifact version.", i);
|
|
7725
|
+
if (Ae("Bump artifact version"), e.version == null)
|
|
7726
|
+
e.version = "0.0.001", console.warn(`⚠️ Version initialised to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7727
|
+
else {
|
|
7728
|
+
const i = e.version, s = e.version.split(".");
|
|
7729
|
+
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7731
7730
|
}
|
|
7732
7731
|
}
|
|
7733
7732
|
const Lh = ["critical", "high", "moderate", "low", "unknown"];
|
|
7734
|
-
async function
|
|
7733
|
+
async function qh() {
|
|
7735
7734
|
try {
|
|
7736
|
-
|
|
7735
|
+
ze("Audit Dependencies"), await Nh(), await Ce("owasp-dependency-check", [
|
|
7737
7736
|
"--project",
|
|
7738
7737
|
"@datapos/datapos-development",
|
|
7739
7738
|
"--enableRetired",
|
|
7740
7739
|
"--nodePackageSkipDevDependencies",
|
|
7741
7740
|
"--nvdApiKey",
|
|
7742
7741
|
process.env.NVD_API_KEY ?? ""
|
|
7743
|
-
]), Ae("Insert OWASP Badge(s) into 'README.md'"), await Oh(), await
|
|
7742
|
+
]), Ae("Insert OWASP Badge(s) into 'README.md'"), await Oh(), await Ce("npm", ["audit"]), Fe("Dependency auditing complete.");
|
|
7744
7743
|
} catch (e) {
|
|
7745
7744
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
7746
7745
|
}
|
|
@@ -7789,16 +7788,16 @@ async function Mh(e) {
|
|
|
7789
7788
|
}
|
|
7790
7789
|
return s;
|
|
7791
7790
|
}
|
|
7792
|
-
async function
|
|
7791
|
+
async function Hh() {
|
|
7793
7792
|
try {
|
|
7794
|
-
|
|
7793
|
+
ze("Check Dependencies"), await Ce("npm", ["outdated"], !0), await Ce("npm-check-updates", ["-i"]), Fe("Dependency checking complete.");
|
|
7795
7794
|
} catch (e) {
|
|
7796
7795
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
7797
7796
|
}
|
|
7798
7797
|
}
|
|
7799
|
-
async function
|
|
7798
|
+
async function Wh(e) {
|
|
7800
7799
|
try {
|
|
7801
|
-
|
|
7800
|
+
ze("Document Dependencies");
|
|
7802
7801
|
const t = e.flatMap((i) => ["--allowed", i]);
|
|
7803
7802
|
await _e(
|
|
7804
7803
|
"license-report",
|
|
@@ -7808,7 +7807,7 @@ async function Hh(e) {
|
|
|
7808
7807
|
"license-report-recursive",
|
|
7809
7808
|
["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7810
7809
|
"licenseTree.json"
|
|
7811
|
-
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), Ae("Insert licenses into 'README.md'"), await Rh(),
|
|
7810
|
+
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), Ae("Insert licenses into 'README.md'"), await Rh(), Fe("Document dependencies complete.");
|
|
7812
7811
|
} catch (t) {
|
|
7813
7812
|
console.error("❌ Error documenting dependencies.", t), process.exit(1);
|
|
7814
7813
|
}
|
|
@@ -7829,22 +7828,32 @@ async function Rh() {
|
|
|
7829
7828
|
console.error("❌ Error inserting dependency license information into 'README.md'.", i);
|
|
7830
7829
|
}
|
|
7831
7830
|
}
|
|
7832
|
-
async function
|
|
7831
|
+
async function Kh() {
|
|
7833
7832
|
try {
|
|
7834
|
-
|
|
7833
|
+
ze("Format Code"), await Ce("prettier", ["--write", "src/"]), Fe("Code formatting complete.");
|
|
7835
7834
|
} catch (e) {
|
|
7836
7835
|
console.error("❌ Error formatting code.", e), process.exit(1);
|
|
7837
7836
|
}
|
|
7838
7837
|
}
|
|
7839
|
-
async function
|
|
7838
|
+
async function Gh() {
|
|
7840
7839
|
try {
|
|
7841
|
-
|
|
7840
|
+
ze("Lint Code"), await Ce("eslint", ["."]), Fe("Code linting complete.");
|
|
7842
7841
|
} catch (e) {
|
|
7843
7842
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
7844
7843
|
}
|
|
7845
7844
|
}
|
|
7845
|
+
async function Jh(e) {
|
|
7846
|
+
try {
|
|
7847
|
+
ze("Update datapos Dependencies");
|
|
7848
|
+
for (const t of e)
|
|
7849
|
+
await Ce("npm", ["install", `@datapos/datapos-${t}@latest`]);
|
|
7850
|
+
Fe("Updating datapos dependencies complete.");
|
|
7851
|
+
} catch (t) {
|
|
7852
|
+
console.error("❌ Error updating datapos dependencies.", t), process.exit(1);
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7846
7855
|
const Pr = vs(ys);
|
|
7847
|
-
async function
|
|
7856
|
+
async function Xh() {
|
|
7848
7857
|
try {
|
|
7849
7858
|
console.info("🚀 Building configuration...");
|
|
7850
7859
|
const e = JSON.parse(await $.readFile("package.json", "utf8")), t = JSON.parse(await $.readFile("config.json", "utf8"));
|
|
@@ -7853,7 +7862,7 @@ async function Gh() {
|
|
|
7853
7862
|
console.error("❌ Error building configuration.", e);
|
|
7854
7863
|
}
|
|
7855
7864
|
}
|
|
7856
|
-
async function
|
|
7865
|
+
async function Qh() {
|
|
7857
7866
|
try {
|
|
7858
7867
|
console.info("🚀 Building connector configuration...");
|
|
7859
7868
|
const [e, t, i] = await Promise.all([
|
|
@@ -7873,7 +7882,7 @@ async function Jh() {
|
|
|
7873
7882
|
console.error("❌ Error building connector configuration.", e);
|
|
7874
7883
|
}
|
|
7875
7884
|
}
|
|
7876
|
-
async function
|
|
7885
|
+
async function Yh() {
|
|
7877
7886
|
try {
|
|
7878
7887
|
console.info("🚀 Building context configuration...");
|
|
7879
7888
|
const [e, t, i] = await Promise.all([
|
|
@@ -7893,7 +7902,7 @@ async function Xh() {
|
|
|
7893
7902
|
console.error("❌ Error building context configuration.", e);
|
|
7894
7903
|
}
|
|
7895
7904
|
}
|
|
7896
|
-
async function
|
|
7905
|
+
async function ep() {
|
|
7897
7906
|
try {
|
|
7898
7907
|
console.info("🚀 Building presenter configuration...");
|
|
7899
7908
|
const [e, t, i] = await Promise.all([
|
|
@@ -7913,7 +7922,7 @@ async function Qh() {
|
|
|
7913
7922
|
console.error("❌ Error building context configuration.", e);
|
|
7914
7923
|
}
|
|
7915
7924
|
}
|
|
7916
|
-
async function
|
|
7925
|
+
async function tp(e) {
|
|
7917
7926
|
try {
|
|
7918
7927
|
console.info(`🚀 Building public directory index for identifier '${e}'...`);
|
|
7919
7928
|
const t = {};
|
|
@@ -7947,10 +7956,7 @@ async function Yh(e) {
|
|
|
7947
7956
|
console.error("❌ Error building public directory index.", t);
|
|
7948
7957
|
}
|
|
7949
7958
|
}
|
|
7950
|
-
function
|
|
7951
|
-
console.error(`❌ ${e} script not implemented.`);
|
|
7952
|
-
}
|
|
7953
|
-
async function tp() {
|
|
7959
|
+
async function ip() {
|
|
7954
7960
|
try {
|
|
7955
7961
|
console.info("🚀 Sending deployment notice...");
|
|
7956
7962
|
const e = JSON.parse(await $.readFile("config.json", "utf8")), t = {
|
|
@@ -7964,7 +7970,7 @@ async function tp() {
|
|
|
7964
7970
|
console.error("❌ Error sending deployment notice.", e);
|
|
7965
7971
|
}
|
|
7966
7972
|
}
|
|
7967
|
-
async function
|
|
7973
|
+
async function sp(e, t) {
|
|
7968
7974
|
try {
|
|
7969
7975
|
console.info("🚀 Uploading directory to R2....");
|
|
7970
7976
|
async function i(a, o, h) {
|
|
@@ -7986,7 +7992,7 @@ async function ip(e, t) {
|
|
|
7986
7992
|
console.error("❌ Error uploading directory to R2.", i);
|
|
7987
7993
|
}
|
|
7988
7994
|
}
|
|
7989
|
-
async function
|
|
7995
|
+
async function rp() {
|
|
7990
7996
|
try {
|
|
7991
7997
|
console.info("🚀 Uploading module configuration....");
|
|
7992
7998
|
const e = JSON.parse(await $.readFile("config.json", "utf8")), t = e.id, i = {
|
|
@@ -8000,7 +8006,7 @@ async function sp() {
|
|
|
8000
8006
|
console.error("❌ Error uploading module configuration.", e);
|
|
8001
8007
|
}
|
|
8002
8008
|
}
|
|
8003
|
-
async function
|
|
8009
|
+
async function ap(e) {
|
|
8004
8010
|
try {
|
|
8005
8011
|
console.info("🚀 Uploading module to R2...");
|
|
8006
8012
|
const i = `v${JSON.parse(await $.readFile("package.json", "utf8")).version}`;
|
|
@@ -8021,22 +8027,23 @@ async function rp(e) {
|
|
|
8021
8027
|
}
|
|
8022
8028
|
}
|
|
8023
8029
|
export {
|
|
8024
|
-
|
|
8030
|
+
qh as auditDependencies,
|
|
8025
8031
|
Bh as buildArtifact,
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
Kh as lintCode,
|
|
8032
|
+
Xh as buildConfig,
|
|
8033
|
+
Qh as buildConnectorConfig,
|
|
8034
|
+
Yh as buildContextConfig,
|
|
8035
|
+
ep as buildPresenterConfig,
|
|
8036
|
+
tp as buildPublicDirectoryIndex,
|
|
8037
|
+
Hh as checkDependencies,
|
|
8038
|
+
Wh as documentDependencies,
|
|
8039
|
+
Kh as formatCode,
|
|
8040
|
+
Gh as lintCode,
|
|
8036
8041
|
$h as releaseArtifact,
|
|
8037
|
-
|
|
8042
|
+
ip as sendDeploymentNotice,
|
|
8038
8043
|
Uh as syncArtifactWithGitHub,
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8044
|
+
Zh as testArtifact,
|
|
8045
|
+
Jh as updateDataPosDependencies,
|
|
8046
|
+
sp as uploadDirectoryToR2,
|
|
8047
|
+
rp as uploadModuleConfigToDO,
|
|
8048
|
+
ap as uploadModuleToR2
|
|
8042
8049
|
};
|
|
@@ -6,15 +6,15 @@ declare function buildConnectorConfig(): Promise<void>;
|
|
|
6
6
|
declare function buildContextConfig(): Promise<void>;
|
|
7
7
|
declare function buildPresenterConfig(): Promise<void>;
|
|
8
8
|
declare function buildPublicDirectoryIndex(id: string): Promise<void>;
|
|
9
|
-
declare function echoScriptNotImplemented(name: string): void;
|
|
10
9
|
declare function sendDeploymentNotice(): Promise<void>;
|
|
11
10
|
declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
|
|
12
11
|
declare function uploadModuleConfigToDO(): Promise<void>;
|
|
13
12
|
declare function uploadModuleToR2(uploadDirectoryPath: string): Promise<void>;
|
|
14
|
-
export { buildConfig, buildConnectorConfig, buildContextConfig, buildPresenterConfig, buildPublicDirectoryIndex,
|
|
15
|
-
export { buildArtifact, releaseArtifact, syncArtifactWithGitHub } from './operations/manageArtifact';
|
|
13
|
+
export { buildConfig, buildConnectorConfig, buildContextConfig, buildPresenterConfig, buildPublicDirectoryIndex, sendDeploymentNotice, uploadDirectoryToR2, uploadModuleConfigToDO, uploadModuleToR2 };
|
|
14
|
+
export { buildArtifact, releaseArtifact, syncArtifactWithGitHub, testArtifact } from './operations/manageArtifact';
|
|
16
15
|
export { auditDependencies } from './operations/auditDependencies';
|
|
17
16
|
export { checkDependencies } from './operations/checkDependencies';
|
|
18
17
|
export { documentDependencies } from './operations/documentDependencies';
|
|
19
18
|
export { formatCode } from './operations/formatCode';
|
|
20
19
|
export { lintCode } from './operations/lintCode';
|
|
20
|
+
export { updateDataPosDependencies } from './operations/updateDataPosDependencies';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Manage artifact operation.
|
|
3
3
|
*/
|
|
4
4
|
declare function buildArtifact(): Promise<void>;
|
|
5
|
-
declare function releaseArtifact(): Promise<void>;
|
|
5
|
+
declare function releaseArtifact(sendDeployNotice?: boolean): Promise<void>;
|
|
6
6
|
declare function syncArtifactWithGitHub(): Promise<void>;
|
|
7
|
-
|
|
7
|
+
declare function testArtifact(): void;
|
|
8
|
+
export { buildArtifact, releaseArtifact, syncArtifactWithGitHub, testArtifact };
|
|
@@ -9,6 +9,6 @@ declare function logStepHeader(text: string): void;
|
|
|
9
9
|
declare function readJSONFile<T>(path: string): Promise<T>;
|
|
10
10
|
declare function readTextFile(path: string): Promise<string>;
|
|
11
11
|
declare function spawnCommand(command: string, arguments_?: string[], ignoreErrors?: boolean): Promise<void>;
|
|
12
|
-
declare function writeJSONFile(path: string, data:
|
|
12
|
+
declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
13
13
|
declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
14
14
|
export { determineConnectorUsageId, execCommand, extractOperationsFromSource, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, spawnCommand, writeJSONFile, writeTextFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.217",
|
|
4
4
|
"description": "A library of utilities for managing the Data Positioning repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -67,9 +67,8 @@
|
|
|
67
67
|
"lint": "node -e \"import('./dist/datapos-development.es.js').then(m => m.lintCode())\"",
|
|
68
68
|
"release": "node -e \"import('./dist/datapos-development.es.js').then(m => m.releaseArtifact())\"",
|
|
69
69
|
"sync": "node -e \"import('./dist/datapos-development.es.js').then(m => m.syncArtifactWithGitHub())\"",
|
|
70
|
-
"test": "
|
|
71
|
-
"update:dataPosDeps": "
|
|
72
|
-
"_update:sharedDep": "npm install @datapos/datapos-shared@latest"
|
|
70
|
+
"test": "node -e \"import('./dist/datapos-development.es.js').then(m => m.testArtifact())\"",
|
|
71
|
+
"update:dataPosDeps": "node -e \"import('./dist/datapos-development.es.js').then(m => m.updateDataPosDependencies(['shared']))\""
|
|
73
72
|
},
|
|
74
73
|
"engines": {
|
|
75
74
|
"node": ">=22.0.0",
|
|
File without changes
|