@dpuse/dpuse-development 1.0.149 → 1.0.152
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/.github/workflows/publish.yml +21 -19
- package/README.md +17 -18
- package/dist/{apiReference-Bg5HYM1L.js → apiReference-aFk9cwH0.js} +1 -1
- package/dist/{apiReference-Bg5HYM1L.js.map → apiReference-aFk9cwH0.js.map} +1 -1
- package/dist/dpuse-development.es.js +418 -450
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/{utilities-DH1goyH8.js → utilities-BJfQ3vEr.js} +169 -72
- package/dist/utilities-BJfQ3vEr.js.map +1 -0
- package/package.json +6 -6
- package/dist/types/src/actions/releaseProject.d.ts +0 -2
- package/dist/utilities-DH1goyH8.js.map +0 -1
|
@@ -5,7 +5,6 @@ export { documentProject } from './actions/documentProject';
|
|
|
5
5
|
export { formatCode } from './actions/formatCode';
|
|
6
6
|
export { lintCode } from './actions/lintCode';
|
|
7
7
|
export { publishProject } from './actions/publishProject';
|
|
8
|
-
export { releaseProject } from './actions/releaseProject';
|
|
9
8
|
export { syncProjectWithGitHub } from './actions/syncProjectWithGitHub';
|
|
10
9
|
export { testProject } from './actions/testProject';
|
|
11
10
|
export { triggerGitHubRelease } from './actions/triggerGitHubRelease';
|
|
@@ -472,7 +472,101 @@ var D = /* @__PURE__ */ C({
|
|
|
472
472
|
status: /* @__PURE__ */ y(ce),
|
|
473
473
|
statusId: /* @__PURE__ */ y(se)
|
|
474
474
|
};
|
|
475
|
-
({ ...A })
|
|
475
|
+
({ ...A });
|
|
476
|
+
var ue = [
|
|
477
|
+
{
|
|
478
|
+
id: "arrow",
|
|
479
|
+
isStructured: !1,
|
|
480
|
+
isTable: !1,
|
|
481
|
+
isText: !1,
|
|
482
|
+
supportId: "planned"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
id: "avro",
|
|
486
|
+
isStructured: !1,
|
|
487
|
+
isTable: !1,
|
|
488
|
+
isText: !1,
|
|
489
|
+
supportId: "planned"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
id: "dtv",
|
|
493
|
+
isStructured: !1,
|
|
494
|
+
isTable: !0,
|
|
495
|
+
isText: !0,
|
|
496
|
+
supportId: "supported"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
id: "json",
|
|
500
|
+
isStructured: !0,
|
|
501
|
+
isTable: !0,
|
|
502
|
+
isText: !0,
|
|
503
|
+
supportId: "supported"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
id: "jsonl",
|
|
507
|
+
isStructured: !0,
|
|
508
|
+
isTable: !0,
|
|
509
|
+
isText: !0,
|
|
510
|
+
supportId: "supported"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
id: "markdown",
|
|
514
|
+
isStructured: !1,
|
|
515
|
+
isTable: !1,
|
|
516
|
+
isText: !0,
|
|
517
|
+
supportId: "unsupported"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: "ods",
|
|
521
|
+
isStructured: !0,
|
|
522
|
+
isTable: !1,
|
|
523
|
+
isText: !1,
|
|
524
|
+
supportId: "planned"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
id: "parquet",
|
|
528
|
+
isStructured: !1,
|
|
529
|
+
isTable: !1,
|
|
530
|
+
isText: !1,
|
|
531
|
+
supportId: "planned"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
id: "sav",
|
|
535
|
+
isStructured: !1,
|
|
536
|
+
isTable: !1,
|
|
537
|
+
isText: !1,
|
|
538
|
+
supportId: "planned"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
id: "sqlite",
|
|
542
|
+
isStructured: !1,
|
|
543
|
+
isTable: !1,
|
|
544
|
+
isText: !1,
|
|
545
|
+
supportId: "planned"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: "xlsx",
|
|
549
|
+
isStructured: !0,
|
|
550
|
+
isTable: !1,
|
|
551
|
+
isText: !1,
|
|
552
|
+
supportId: "planned"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
id: "xml",
|
|
556
|
+
isStructured: !0,
|
|
557
|
+
isTable: !1,
|
|
558
|
+
isText: !1,
|
|
559
|
+
supportId: "planned"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
id: "unknown",
|
|
563
|
+
isStructured: !1,
|
|
564
|
+
isTable: !1,
|
|
565
|
+
isText: !1,
|
|
566
|
+
supportId: "unsupported"
|
|
567
|
+
}
|
|
568
|
+
];
|
|
569
|
+
O([
|
|
476
570
|
"app",
|
|
477
571
|
"engine",
|
|
478
572
|
"connector",
|
|
@@ -488,8 +582,7 @@ var j = {
|
|
|
488
582
|
version: /* @__PURE__ */ w()
|
|
489
583
|
};
|
|
490
584
|
({ ...j });
|
|
491
|
-
var
|
|
492
|
-
"abortOperation",
|
|
585
|
+
var de = O([
|
|
493
586
|
"auditObjectContent",
|
|
494
587
|
"closeStore",
|
|
495
588
|
"createObject",
|
|
@@ -499,30 +592,31 @@ var ue = O([
|
|
|
499
592
|
"getInfo",
|
|
500
593
|
"getReadableStream",
|
|
501
594
|
"getRecord",
|
|
595
|
+
"indexObjectStructure",
|
|
502
596
|
"listNodes",
|
|
597
|
+
"listObjectStructureEntries",
|
|
503
598
|
"loadObjectRecords",
|
|
504
599
|
"openStore",
|
|
505
600
|
"previewObject",
|
|
506
601
|
"queryRecords",
|
|
507
602
|
"removeRecords",
|
|
508
|
-
"retrieveChunks",
|
|
509
603
|
"retrieveRecords",
|
|
510
604
|
"upsertRecords"
|
|
511
|
-
]),
|
|
605
|
+
]), fe = O([
|
|
512
606
|
"application",
|
|
513
607
|
"curatedDataset",
|
|
514
608
|
"database",
|
|
515
609
|
"fileStore"
|
|
516
|
-
]),
|
|
610
|
+
]), pe = /* @__PURE__ */ C({ label: D }), me = O([
|
|
517
611
|
"apiEndpoint",
|
|
518
612
|
"file",
|
|
519
613
|
"table"
|
|
520
|
-
]),
|
|
614
|
+
]), he = O([
|
|
521
615
|
"bidirectional",
|
|
522
616
|
"destination",
|
|
523
617
|
"source",
|
|
524
618
|
"unknown"
|
|
525
|
-
]),
|
|
619
|
+
]), ge = /* @__PURE__ */ C({ label: D }), _e = /* @__PURE__ */ C({
|
|
526
620
|
authMethodId: O([
|
|
527
621
|
"apiKey",
|
|
528
622
|
"disabled",
|
|
@@ -535,17 +629,17 @@ var ue = O([
|
|
|
535
629
|
label: /* @__PURE__ */ x(D),
|
|
536
630
|
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
537
631
|
params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
538
|
-
}),
|
|
632
|
+
}), ve = /* @__PURE__ */ C({
|
|
539
633
|
...j,
|
|
540
634
|
typeId: /* @__PURE__ */ v("connector"),
|
|
541
|
-
actionNames: /* @__PURE__ */ g(
|
|
542
|
-
category: /* @__PURE__ */ y(
|
|
543
|
-
categoryId:
|
|
544
|
-
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(),
|
|
545
|
-
itemTypeId:
|
|
546
|
-
usage: /* @__PURE__ */ y(
|
|
547
|
-
usageId: /* @__PURE__ */ y(
|
|
548
|
-
}),
|
|
635
|
+
actionNames: /* @__PURE__ */ g(de),
|
|
636
|
+
category: /* @__PURE__ */ y(pe),
|
|
637
|
+
categoryId: fe,
|
|
638
|
+
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), _e),
|
|
639
|
+
itemTypeId: me,
|
|
640
|
+
usage: /* @__PURE__ */ y(ge),
|
|
641
|
+
usageId: /* @__PURE__ */ y(he)
|
|
642
|
+
}), M = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ re(/* @__PURE__ */ g(O([
|
|
549
643
|
"arrow",
|
|
550
644
|
"avro",
|
|
551
645
|
"dtv",
|
|
@@ -558,13 +652,14 @@ var ue = O([
|
|
|
558
652
|
"sqlite",
|
|
559
653
|
"xlsx",
|
|
560
654
|
"xml"
|
|
561
|
-
])), /* @__PURE__ */ m(1)) }),
|
|
655
|
+
])), /* @__PURE__ */ m(1)) }), N = /* @__PURE__ */ g(/* @__PURE__ */ w()), P = /* @__PURE__ */ C({
|
|
562
656
|
...j,
|
|
563
657
|
typeId: /* @__PURE__ */ v("tool"),
|
|
564
|
-
actionNames: /* @__PURE__ */ x(
|
|
565
|
-
parser: /* @__PURE__ */ x(
|
|
566
|
-
})
|
|
567
|
-
|
|
658
|
+
actionNames: /* @__PURE__ */ x(N),
|
|
659
|
+
parser: /* @__PURE__ */ x(M)
|
|
660
|
+
});
|
|
661
|
+
new Set(ue.filter(({ isStructured: e }) => e).map(({ id: e }) => e));
|
|
662
|
+
var F = {
|
|
568
663
|
auditObjectContent: "Audit Object Content",
|
|
569
664
|
closeStore: "Close Store",
|
|
570
665
|
createObject: "Create Object",
|
|
@@ -574,53 +669,55 @@ var ue = O([
|
|
|
574
669
|
getInfo: "Get Info",
|
|
575
670
|
getReadableStream: "Get Readable Stream",
|
|
576
671
|
getRecord: "Get Record",
|
|
672
|
+
indexObjectStructure: "Index Object Structure",
|
|
577
673
|
listNodes: "List Nodes",
|
|
674
|
+
listObjectStructureEntries: "List Object Structure Entries",
|
|
578
675
|
loadObjectRecords: "Load Object Records",
|
|
579
676
|
openStore: "Open Store",
|
|
580
677
|
previewObject: "Preview Object",
|
|
581
678
|
queryRecords: "Query Records",
|
|
582
679
|
removeRecords: "Remove Records",
|
|
583
|
-
retrieveChunks: "Retrieve Chunks",
|
|
584
680
|
retrieveRecords: "Retrieve Records",
|
|
585
681
|
upsertRecords: "Upsert Records"
|
|
586
|
-
},
|
|
682
|
+
}, ye = /* @__PURE__ */ new Set([
|
|
587
683
|
"createObject",
|
|
588
684
|
"dropObject",
|
|
589
685
|
"loadObjectRecords",
|
|
590
686
|
"removeRecords",
|
|
591
687
|
"upsertRecords"
|
|
592
|
-
]),
|
|
688
|
+
]), be = /* @__PURE__ */ new Set([
|
|
593
689
|
"auditObjectContent",
|
|
594
690
|
"findObject",
|
|
595
691
|
"getInfo",
|
|
596
692
|
"getReadableStream",
|
|
597
693
|
"getRecord",
|
|
694
|
+
"indexObjectStructure",
|
|
598
695
|
"listNodes",
|
|
696
|
+
"listObjectStructureEntries",
|
|
599
697
|
"previewObject",
|
|
600
698
|
"queryRecords",
|
|
601
|
-
"retrieveChunks",
|
|
602
699
|
"retrieveRecords"
|
|
603
700
|
]);
|
|
604
701
|
function I(e) {
|
|
605
702
|
let t = !1, n = !1;
|
|
606
|
-
for (let r of e)
|
|
703
|
+
for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
|
|
607
704
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
608
705
|
}
|
|
609
|
-
function
|
|
706
|
+
function xe(e) {
|
|
610
707
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
611
708
|
n += "|:----|:-------:|\n";
|
|
612
|
-
for (let e of Object.keys(
|
|
709
|
+
for (let e of Object.keys(F)) n += `| ${F[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
613
710
|
return n;
|
|
614
711
|
}
|
|
615
712
|
O(["list"]), { ...j };
|
|
616
|
-
var
|
|
713
|
+
var Se = O([
|
|
617
714
|
"list",
|
|
618
715
|
"render",
|
|
619
716
|
"setColorMode"
|
|
620
|
-
]),
|
|
717
|
+
]), Ce = /* @__PURE__ */ C({
|
|
621
718
|
...j,
|
|
622
719
|
typeId: /* @__PURE__ */ v("presenter"),
|
|
623
|
-
actionNames: /* @__PURE__ */ g(
|
|
720
|
+
actionNames: /* @__PURE__ */ g(Se),
|
|
624
721
|
presentations: /* @__PURE__ */ g(le)
|
|
625
722
|
}), L = /* @__PURE__ */ new Map([
|
|
626
723
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
@@ -644,23 +741,23 @@ var xe = O([
|
|
|
644
741
|
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
645
742
|
["xml", "application/xml"]
|
|
646
743
|
]);
|
|
647
|
-
function
|
|
744
|
+
function we(e) {
|
|
648
745
|
if (!e) return;
|
|
649
|
-
let t =
|
|
746
|
+
let t = De(e);
|
|
650
747
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
651
748
|
}
|
|
652
|
-
function
|
|
749
|
+
function Te(e) {
|
|
653
750
|
return e != null && L.has(e.toLowerCase());
|
|
654
751
|
}
|
|
655
|
-
function
|
|
752
|
+
function Ee(e) {
|
|
656
753
|
return (e == null ? void 0 : L.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
657
754
|
}
|
|
658
|
-
function
|
|
755
|
+
function De(e) {
|
|
659
756
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
660
757
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
661
758
|
}
|
|
662
759
|
// src/utilities/index.ts
|
|
663
|
-
var
|
|
760
|
+
var Oe = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), R = "code-health-reports/fallow", ke = `${R}/badge.json`, Ae = `${R}/index.md`, z = "<!-- CONTRIBUTING_LICENSE_END -->", B = "<!-- CONTRIBUTING_LICENSE_START -->", je = "<!-- GOVERNANCE_END -->", Me = "<!-- GOVERNANCE_START -->", V = "<!-- QUALITY_SECURITY_END -->", H = "<!-- QUALITY_SECURITY_START -->", Ne = "rust/Cargo.toml", Pe = [
|
|
664
761
|
{
|
|
665
762
|
idPrefix: "dpuse-app",
|
|
666
763
|
typeId: "app",
|
|
@@ -745,8 +842,8 @@ var De = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-con
|
|
|
745
842
|
publishedTo: "github",
|
|
746
843
|
uploadGroupName: void 0
|
|
747
844
|
}
|
|
748
|
-
],
|
|
749
|
-
async function
|
|
845
|
+
], Fe = n(r);
|
|
846
|
+
async function Ie(n, r) {
|
|
750
847
|
n !== void 0 && J(`${n} - clear(${r})`);
|
|
751
848
|
let i;
|
|
752
849
|
try {
|
|
@@ -767,15 +864,15 @@ async function Fe(n, r) {
|
|
|
767
864
|
}
|
|
768
865
|
}));
|
|
769
866
|
}
|
|
770
|
-
async function
|
|
867
|
+
async function Le(t, n) {
|
|
771
868
|
return e.readdir(t, n);
|
|
772
869
|
}
|
|
773
|
-
async function
|
|
870
|
+
async function Re(t, n, r, i) {
|
|
774
871
|
t !== void 0 && J(`${t} - exec(${n} ${r.join(" ")})`);
|
|
775
|
-
let { stdout: a, stderr: o } = await
|
|
872
|
+
let { stdout: a, stderr: o } = await Fe(n, r);
|
|
776
873
|
i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
|
|
777
874
|
}
|
|
778
|
-
async function
|
|
875
|
+
async function ze(e, t, n, r = !1, a = !1) {
|
|
779
876
|
return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
780
877
|
i(t, n, {
|
|
781
878
|
shell: a,
|
|
@@ -785,7 +882,7 @@ async function Re(e, t, n, r = !1, a = !1) {
|
|
|
785
882
|
});
|
|
786
883
|
});
|
|
787
884
|
}
|
|
788
|
-
async function
|
|
885
|
+
async function Be(e, t, n) {
|
|
789
886
|
return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, r) => {
|
|
790
887
|
let a = i(t, n, {
|
|
791
888
|
shell: !1,
|
|
@@ -802,7 +899,7 @@ async function ze(e, t, n) {
|
|
|
802
899
|
});
|
|
803
900
|
});
|
|
804
901
|
}
|
|
805
|
-
async function
|
|
902
|
+
async function Ve(n, r, a, o, s = !1) {
|
|
806
903
|
return J(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
|
|
807
904
|
let l = i(r, a, {
|
|
808
905
|
shell: !1,
|
|
@@ -825,8 +922,8 @@ async function Be(n, r, a, o, s = !1) {
|
|
|
825
922
|
});
|
|
826
923
|
});
|
|
827
924
|
}
|
|
828
|
-
async function
|
|
829
|
-
let e = await W("./README.md"), t = e.indexOf(
|
|
925
|
+
async function He() {
|
|
926
|
+
let e = await W("./README.md"), t = e.indexOf(Me), n = e.indexOf(je);
|
|
830
927
|
if (t === -1 || n === -1) return;
|
|
831
928
|
let r = `${H}\n${V}\n\n${B}\n${z}`;
|
|
832
929
|
await q("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
|
|
@@ -845,36 +942,36 @@ async function G(t) {
|
|
|
845
942
|
throw e;
|
|
846
943
|
}
|
|
847
944
|
}
|
|
848
|
-
function
|
|
945
|
+
function Ue(e) {
|
|
849
946
|
let t = e.slice(e.lastIndexOf("/") + 1);
|
|
850
947
|
if (t === "LICENSE") return "text/plain";
|
|
851
|
-
let n =
|
|
852
|
-
return
|
|
948
|
+
let n = we(t);
|
|
949
|
+
return Te(n) || console.warn(`⚠️ No content type for '${e}', so it is treated as 'application/octet-stream'. Add its extension to dpuse-shared.`), Ee(n);
|
|
853
950
|
}
|
|
854
951
|
async function K(n, r) {
|
|
855
952
|
await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
|
|
856
953
|
}
|
|
857
|
-
async function
|
|
858
|
-
await q("README.md",
|
|
954
|
+
async function We(e, t, n) {
|
|
955
|
+
await q("README.md", et(await W("./README.md"), e, t, n));
|
|
859
956
|
}
|
|
860
957
|
async function q(t, n) {
|
|
861
958
|
await e.writeFile(t, n, "utf-8");
|
|
862
959
|
}
|
|
863
|
-
function
|
|
960
|
+
function Ge(e) {
|
|
864
961
|
console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}[0m`);
|
|
865
962
|
}
|
|
866
|
-
function
|
|
963
|
+
function Ke(e) {
|
|
867
964
|
console.info(`✅ ${e}`);
|
|
868
965
|
}
|
|
869
966
|
function J(e) {
|
|
870
967
|
console.info(e);
|
|
871
968
|
}
|
|
872
|
-
function
|
|
873
|
-
let t =
|
|
969
|
+
function qe(e) {
|
|
970
|
+
let t = Pe.find((t) => e.startsWith(t.idPrefix));
|
|
874
971
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
875
972
|
return t;
|
|
876
973
|
}
|
|
877
|
-
function
|
|
974
|
+
function Je(e, t) {
|
|
878
975
|
let n = e.repository, r = typeof n == "string" ? n : n?.url;
|
|
879
976
|
if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
|
|
880
977
|
let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
|
|
@@ -884,18 +981,18 @@ function qe(e, t) {
|
|
|
884
981
|
repository: a[2]
|
|
885
982
|
};
|
|
886
983
|
}
|
|
887
|
-
async function
|
|
984
|
+
async function Y(t) {
|
|
888
985
|
return await e.stat(t);
|
|
889
986
|
}
|
|
890
|
-
async function
|
|
987
|
+
async function Ye(e, t, n) {
|
|
891
988
|
switch (n.typeId) {
|
|
892
|
-
case "connector": return await
|
|
893
|
-
case "presenter": return await
|
|
894
|
-
case "tool": return await
|
|
989
|
+
case "connector": return await Ze(e, t);
|
|
990
|
+
case "presenter": return await Qe(e, t);
|
|
991
|
+
case "tool": return await $e(e, t);
|
|
895
992
|
default: return await Z(e, t);
|
|
896
993
|
}
|
|
897
994
|
}
|
|
898
|
-
async function
|
|
995
|
+
async function Xe(e, t, n = "./") {
|
|
899
996
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
900
997
|
else {
|
|
901
998
|
let e = t.version, n = t.version.split(".");
|
|
@@ -909,21 +1006,21 @@ async function X(e) {
|
|
|
909
1006
|
};
|
|
910
1007
|
return i(n), r;
|
|
911
1008
|
}
|
|
912
|
-
async function
|
|
1009
|
+
async function Ze(e, t) {
|
|
913
1010
|
J(`${e} Build connector project configuration`);
|
|
914
|
-
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(
|
|
1011
|
+
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(ve, n);
|
|
915
1012
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
916
1013
|
let a = await X(r);
|
|
917
1014
|
return await Q(t, n, a, I(a));
|
|
918
1015
|
}
|
|
919
|
-
async function
|
|
1016
|
+
async function Qe(e, t) {
|
|
920
1017
|
J(`${e} Build presenter project configuration`);
|
|
921
|
-
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(
|
|
1018
|
+
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(Ce, n);
|
|
922
1019
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
923
1020
|
return await Q(t, n, await X(r));
|
|
924
1021
|
}
|
|
925
|
-
async function
|
|
926
|
-
let n = await Z(e, t), r = /* @__PURE__ */ s(
|
|
1022
|
+
async function $e(e, t) {
|
|
1023
|
+
let n = await Z(e, t), r = /* @__PURE__ */ s(P.entries.parser, n.parser);
|
|
927
1024
|
if (!r.success) throw console.error("❌ The 'parser' configuration is invalid:"), console.table(r.issues), Error("Configuration is invalid");
|
|
928
1025
|
return await Q(t, n, await X(await W("src/index.ts")));
|
|
929
1026
|
}
|
|
@@ -943,10 +1040,10 @@ function $(e) {
|
|
|
943
1040
|
], n = Object.entries(e), r = t.flatMap((e) => n.filter(([t]) => t === e)), i = n.filter(([e]) => !t.includes(e)).toSorted(([e], [t]) => e.localeCompare(t, "en", { sensitivity: "base" }));
|
|
944
1041
|
return Object.fromEntries([...r, ...i]);
|
|
945
1042
|
}
|
|
946
|
-
function
|
|
1043
|
+
function et(e, t, n, r) {
|
|
947
1044
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
948
1045
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
949
1046
|
let o = t.trim();
|
|
950
1047
|
return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
|
|
951
1048
|
}
|
|
952
|
-
export {
|
|
1049
|
+
export { We as A, G as C, Be as D, ze as E, I as M, xe as N, Ve as O, W as S, Ue as T, Ge as _, R as a, He as b, H as c, Xe as d, Ie as f, Y as g, qe as h, ke as i, q as j, K as k, Ne as l, Le as m, B as n, Ae as o, Re as p, Oe as r, V as s, z as t, Ye as u, Ke as v, Je as w, U as x, J as y };
|