@datapos/datapos-development 0.3.442 → 0.3.444
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.
|
@@ -180,11 +180,11 @@ function He(e, t) {
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
// @__NO_SIDE_EFFECTS__
|
|
183
|
-
function
|
|
183
|
+
function le(e, t) {
|
|
184
184
|
return {
|
|
185
185
|
kind: "schema",
|
|
186
186
|
type: "nullable",
|
|
187
|
-
reference:
|
|
187
|
+
reference: le,
|
|
188
188
|
expects: `(${e.expects} | null)`,
|
|
189
189
|
async: !1,
|
|
190
190
|
wrapped: e,
|
|
@@ -271,11 +271,11 @@ function ve(e, t) {
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
// @__NO_SIDE_EFFECTS__
|
|
274
|
-
function
|
|
274
|
+
function me(e, t) {
|
|
275
275
|
return {
|
|
276
276
|
kind: "schema",
|
|
277
277
|
type: "optional",
|
|
278
|
-
reference:
|
|
278
|
+
reference: me,
|
|
279
279
|
expects: `(${e.expects} | undefined)`,
|
|
280
280
|
async: !1,
|
|
281
281
|
wrapped: e,
|
|
@@ -411,10 +411,10 @@ const Se = (e) => /* @__PURE__ */ Si(e.map((t) => /* @__PURE__ */ He(t))), Rs =
|
|
|
411
411
|
"en-us": /* @__PURE__ */ V(),
|
|
412
412
|
"es-es": /* @__PURE__ */ V()
|
|
413
413
|
}), tt = /* @__PURE__ */ ve({
|
|
414
|
-
"en-au": /* @__PURE__ */
|
|
415
|
-
"en-gb": /* @__PURE__ */
|
|
416
|
-
"en-us": /* @__PURE__ */
|
|
417
|
-
"es-es": /* @__PURE__ */
|
|
414
|
+
"en-au": /* @__PURE__ */ me(/* @__PURE__ */ V()),
|
|
415
|
+
"en-gb": /* @__PURE__ */ me(/* @__PURE__ */ V()),
|
|
416
|
+
"en-us": /* @__PURE__ */ me(/* @__PURE__ */ V()),
|
|
417
|
+
"es-es": /* @__PURE__ */ me(/* @__PURE__ */ V())
|
|
418
418
|
}), Ms = Se(["amber", "green", "red", "other"]), Ds = Se([
|
|
419
419
|
"alpha",
|
|
420
420
|
"beta",
|
|
@@ -459,18 +459,18 @@ const Vs = /* @__PURE__ */ ve({
|
|
|
459
459
|
id: /* @__PURE__ */ V(),
|
|
460
460
|
label: tt,
|
|
461
461
|
description: tt,
|
|
462
|
-
firstCreatedAt: /* @__PURE__ */
|
|
463
|
-
icon: /* @__PURE__ */
|
|
464
|
-
iconDark: /* @__PURE__ */
|
|
465
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
466
|
-
status: /* @__PURE__ */
|
|
462
|
+
firstCreatedAt: /* @__PURE__ */ me(/* @__PURE__ */ De()),
|
|
463
|
+
icon: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
464
|
+
iconDark: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
465
|
+
lastUpdatedAt: /* @__PURE__ */ le(/* @__PURE__ */ De()),
|
|
466
|
+
status: /* @__PURE__ */ le(Vs),
|
|
467
467
|
statusId: Ds
|
|
468
468
|
}, Ci = /* @__PURE__ */ ve({
|
|
469
469
|
id: /* @__PURE__ */ V(),
|
|
470
470
|
label: tt,
|
|
471
471
|
description: tt,
|
|
472
|
-
icon: /* @__PURE__ */
|
|
473
|
-
iconDark: /* @__PURE__ */
|
|
472
|
+
icon: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
473
|
+
iconDark: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
474
474
|
order: /* @__PURE__ */ De(),
|
|
475
475
|
path: /* @__PURE__ */ V()
|
|
476
476
|
});
|
|
@@ -480,15 +480,15 @@ const qt = {
|
|
|
480
480
|
version: /* @__PURE__ */ V()
|
|
481
481
|
}, js = Se(["apiKey", "disabled", "oAuth2", "none"]), Fs = /* @__PURE__ */ ve({
|
|
482
482
|
authMethodId: js,
|
|
483
|
-
activeConnectionCount: /* @__PURE__ */
|
|
484
|
-
canDescribe: /* @__PURE__ */
|
|
485
|
-
id: /* @__PURE__ */
|
|
486
|
-
label: /* @__PURE__ */
|
|
487
|
-
maxConnectionCount: /* @__PURE__ */
|
|
488
|
-
params: /* @__PURE__ */
|
|
483
|
+
activeConnectionCount: /* @__PURE__ */ me(/* @__PURE__ */ De()),
|
|
484
|
+
canDescribe: /* @__PURE__ */ me(/* @__PURE__ */ Pi()),
|
|
485
|
+
id: /* @__PURE__ */ me(/* @__PURE__ */ V()),
|
|
486
|
+
label: /* @__PURE__ */ me(Rs),
|
|
487
|
+
maxConnectionCount: /* @__PURE__ */ le(/* @__PURE__ */ De()),
|
|
488
|
+
params: /* @__PURE__ */ me(/* @__PURE__ */ Re(/* @__PURE__ */ $t(/* @__PURE__ */ V(), /* @__PURE__ */ V())))
|
|
489
489
|
}), Bs = Se(["application", "curatedDataset", "database", "fileStore"]), Us = Se([
|
|
490
490
|
"abortOperation",
|
|
491
|
-
"
|
|
491
|
+
"auditObjectContent",
|
|
492
492
|
"authenticateConnection",
|
|
493
493
|
"createObject",
|
|
494
494
|
"describeConnection",
|
|
@@ -508,14 +508,14 @@ const qt = {
|
|
|
508
508
|
}), Hs = /* @__PURE__ */ ve({
|
|
509
509
|
...qt,
|
|
510
510
|
typeId: /* @__PURE__ */ He("connector"),
|
|
511
|
-
category: /* @__PURE__ */
|
|
511
|
+
category: /* @__PURE__ */ le(qs),
|
|
512
512
|
categoryId: Bs,
|
|
513
513
|
implementations: /* @__PURE__ */ $t(/* @__PURE__ */ V(), Fs),
|
|
514
514
|
operations: /* @__PURE__ */ Re(Us),
|
|
515
515
|
usageId: $s,
|
|
516
|
-
vendorAccountURL: /* @__PURE__ */
|
|
517
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
518
|
-
vendorHomeURL: /* @__PURE__ */
|
|
516
|
+
vendorAccountURL: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
517
|
+
vendorDocumentationURL: /* @__PURE__ */ le(/* @__PURE__ */ V()),
|
|
518
|
+
vendorHomeURL: /* @__PURE__ */ le(/* @__PURE__ */ V())
|
|
519
519
|
}), Gs = Se(["list"]), Ks = /* @__PURE__ */ ve({
|
|
520
520
|
...Ti,
|
|
521
521
|
typeId: /* @__PURE__ */ He("contextModelGroup"),
|
|
@@ -2774,7 +2774,7 @@ C.regexp_eatDecimalEscape = function(e) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
return !1;
|
|
2776
2776
|
};
|
|
2777
|
-
var Yi = 0, Ee = 1,
|
|
2777
|
+
var Yi = 0, Ee = 1, ce = 2;
|
|
2778
2778
|
C.regexp_eatCharacterClassEscape = function(e) {
|
|
2779
2779
|
var t = e.current();
|
|
2780
2780
|
if (Ar(t))
|
|
@@ -2790,7 +2790,7 @@ C.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2790
2790
|
125
|
|
2791
2791
|
/* } */
|
|
2792
2792
|
))
|
|
2793
|
-
return s && a ===
|
|
2793
|
+
return s && a === ce && e.raise("Invalid property name"), a;
|
|
2794
2794
|
e.raise("Invalid property name");
|
|
2795
2795
|
}
|
|
2796
2796
|
return Yi;
|
|
@@ -2823,7 +2823,7 @@ C.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
2823
2823
|
if (e.unicodeProperties.binary.test(t))
|
|
2824
2824
|
return Ee;
|
|
2825
2825
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
2826
|
-
return
|
|
2826
|
+
return ce;
|
|
2827
2827
|
e.raise("Invalid property name");
|
|
2828
2828
|
};
|
|
2829
2829
|
C.regexp_eatUnicodePropertyName = function(e) {
|
|
@@ -2859,7 +2859,7 @@ C.regexp_eatCharacterClass = function(e) {
|
|
|
2859
2859
|
return e.eat(
|
|
2860
2860
|
93
|
|
2861
2861
|
/* ] */
|
|
2862
|
-
) || e.raise("Unterminated character class"), t && s ===
|
|
2862
|
+
) || e.raise("Unterminated character class"), t && s === ce && e.raise("Negated character class may contain strings"), !0;
|
|
2863
2863
|
}
|
|
2864
2864
|
return !1;
|
|
2865
2865
|
};
|
|
@@ -2920,13 +2920,13 @@ C.regexp_eatClassEscape = function(e) {
|
|
|
2920
2920
|
C.regexp_classSetExpression = function(e) {
|
|
2921
2921
|
var t = Ee, s;
|
|
2922
2922
|
if (!this.regexp_eatClassSetRange(e)) if (s = this.regexp_eatClassSetOperand(e)) {
|
|
2923
|
-
s ===
|
|
2923
|
+
s === ce && (t = ce);
|
|
2924
2924
|
for (var a = e.pos; e.eatChars(
|
|
2925
2925
|
[38, 38]
|
|
2926
2926
|
/* && */
|
|
2927
2927
|
); ) {
|
|
2928
2928
|
if (e.current() !== 38 && (s = this.regexp_eatClassSetOperand(e))) {
|
|
2929
|
-
s !==
|
|
2929
|
+
s !== ce && (t = Ee);
|
|
2930
2930
|
continue;
|
|
2931
2931
|
}
|
|
2932
2932
|
e.raise("Invalid character in character class");
|
|
@@ -2946,7 +2946,7 @@ C.regexp_classSetExpression = function(e) {
|
|
|
2946
2946
|
if (!this.regexp_eatClassSetRange(e)) {
|
|
2947
2947
|
if (s = this.regexp_eatClassSetOperand(e), !s)
|
|
2948
2948
|
return t;
|
|
2949
|
-
s ===
|
|
2949
|
+
s === ce && (t = ce);
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
2952
|
C.regexp_eatClassSetRange = function(e) {
|
|
@@ -2981,7 +2981,7 @@ C.regexp_eatNestedClass = function(e) {
|
|
|
2981
2981
|
93
|
|
2982
2982
|
/* ] */
|
|
2983
2983
|
))
|
|
2984
|
-
return s && a ===
|
|
2984
|
+
return s && a === ce && e.raise("Negated character class may contain strings"), a;
|
|
2985
2985
|
e.pos = t;
|
|
2986
2986
|
}
|
|
2987
2987
|
if (e.eat(
|
|
@@ -3022,13 +3022,13 @@ C.regexp_classStringDisjunctionContents = function(e) {
|
|
|
3022
3022
|
124
|
|
3023
3023
|
/* | */
|
|
3024
3024
|
); )
|
|
3025
|
-
this.regexp_classString(e) ===
|
|
3025
|
+
this.regexp_classString(e) === ce && (t = ce);
|
|
3026
3026
|
return t;
|
|
3027
3027
|
};
|
|
3028
3028
|
C.regexp_classString = function(e) {
|
|
3029
3029
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
3030
3030
|
t++;
|
|
3031
|
-
return t === 1 ? Ee :
|
|
3031
|
+
return t === 1 ? Ee : ce;
|
|
3032
3032
|
};
|
|
3033
3033
|
C.regexp_eatClassSetCharacter = function(e) {
|
|
3034
3034
|
var t = e.pos;
|
|
@@ -5641,7 +5641,7 @@ function Jt(e) {
|
|
|
5641
5641
|
v && v !== "constructor" && p.accessibility !== "private" && a.push(v);
|
|
5642
5642
|
}), a;
|
|
5643
5643
|
}
|
|
5644
|
-
async function
|
|
5644
|
+
async function pe(e, t, s = [], a) {
|
|
5645
5645
|
const n = `${t} ${s.join(" ")}`;
|
|
5646
5646
|
e !== void 0 && W(`${e} - exec(${n})`);
|
|
5647
5647
|
const { stdout: p, stderr: f } = await Xr(n);
|
|
@@ -5740,7 +5740,7 @@ async function vi(e, t) {
|
|
|
5740
5740
|
const x = `${n}/${v.name}`, o = p ? `${p}/${v.name}` : v.name;
|
|
5741
5741
|
if (v.isDirectory()) continue;
|
|
5742
5742
|
const S = `${t}_${s}/${o}`.replaceAll("\\", "/"), I = v.name.endsWith(".css") ? "text/css" : "application/octet-stream", B = v.name.endsWith(".js") ? "application/javascript" : I;
|
|
5743
|
-
console.info(`⚙️ Uploading '${o}' → '${S}'...`), await
|
|
5743
|
+
console.info(`⚙️ Uploading '${o}' → '${S}'...`), await pe(void 0, `wrangler r2 object put "${S}" --file="${x}" --content-type ${B} --jurisdiction=eu --remote`);
|
|
5744
5744
|
}
|
|
5745
5745
|
}
|
|
5746
5746
|
await a("dist");
|
|
@@ -5782,7 +5782,7 @@ async function Ca() {
|
|
|
5782
5782
|
default:
|
|
5783
5783
|
t = await ia("2️⃣", e);
|
|
5784
5784
|
}
|
|
5785
|
-
if (await xe("3️⃣ Bundle project", "vite", ["build"]), await
|
|
5785
|
+
if (await xe("3️⃣ Bundle project", "vite", ["build"]), await pe("4️⃣ Stage changes", "git", ["add", "."]), await pe("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await pe("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), s.typeId === "app")
|
|
5786
5786
|
W("7️⃣ Register module"), await Zr();
|
|
5787
5787
|
else if (s.typeId === "engine")
|
|
5788
5788
|
W("7️⃣ Register module"), await vi(e, `datapos-engine-eu/${s.uploadGroupName}`), await xi(t);
|
|
@@ -5812,7 +5812,7 @@ async function ka() {
|
|
|
5812
5812
|
try {
|
|
5813
5813
|
ke("Synchronise Project with GitHub");
|
|
5814
5814
|
const e = await J("package.json");
|
|
5815
|
-
W("Bump project version"), await hs("1️⃣", e), await
|
|
5815
|
+
W("Bump project version"), await hs("1️⃣", e), await pe("2️⃣ Stage changes", "git", ["add", "."]), await pe("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await pe("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), _e(`Project version '${e.version}' synchronised with GitHub.`);
|
|
5816
5816
|
} catch (e) {
|
|
5817
5817
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
5818
5818
|
}
|
|
@@ -5935,17 +5935,17 @@ async function Ia(e = [], t = !0) {
|
|
|
5935
5935
|
try {
|
|
5936
5936
|
ke("Document Dependencies");
|
|
5937
5937
|
const s = e.flatMap((n) => ["--allowed", `'${n}'`]), a = gi(new bs(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
5938
|
-
await
|
|
5938
|
+
await pe(
|
|
5939
5939
|
"1️⃣ Generate 'licenses.json' file",
|
|
5940
5940
|
"license-report",
|
|
5941
5941
|
["--config", `'${a}'`, "--only=prod,peer", "--output=json"],
|
|
5942
5942
|
"licenses/licenses.json"
|
|
5943
|
-
), await
|
|
5943
|
+
), await pe("2️⃣ Check 'licenses.json' file", "license-report-check", ["--source", "licenses/licenses.json", "--output=table", ...s]), t ? (await pe(
|
|
5944
5944
|
"3️⃣ Generate 'licenseTree.json' file",
|
|
5945
5945
|
"license-report-recursive",
|
|
5946
5946
|
["--only=prod,peer", "--output=tree", "--recurse", "--department.value=n/a", "--licensePeriod.value=n/a", "--material.value=n/a", "--relatedTo.value=n/a"],
|
|
5947
5947
|
"licenses/licenseTree.json"
|
|
5948
|
-
), await
|
|
5948
|
+
), await pe("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (W("3️⃣ Skip 'licenses/licenseTree.json' file generate"), W("4️⃣ Skip 'licenses/licenseTree.json' file check")), await Qr("licenses/downloads"), await pe("5️⃣ Download license files", "license-downloader", [
|
|
5949
5949
|
"--source",
|
|
5950
5950
|
"licenses/licenses.json",
|
|
5951
5951
|
"--licDir",
|