@datapos/datapos-development 0.3.193 → 0.3.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datapos-development.es.js +35 -29
- package/package.json +1 -1
|
@@ -7617,7 +7617,7 @@ const Vc = st([g("amber"), g("green"), g("red"), g("other")]), Fc = st([
|
|
|
7617
7617
|
operations: jt(vh),
|
|
7618
7618
|
typeId: g("presenter")
|
|
7619
7619
|
}), gh = ["critical", "high", "moderate", "low", "unknown"], Si = Sr(br);
|
|
7620
|
-
async function
|
|
7620
|
+
async function Ah() {
|
|
7621
7621
|
try {
|
|
7622
7622
|
console.info("🚀 Building configuration...");
|
|
7623
7623
|
const t = JSON.parse(await F.readFile("package.json", "utf8")), e = JSON.parse(await F.readFile("config.json", "utf8"));
|
|
@@ -7626,7 +7626,7 @@ async function Ph() {
|
|
|
7626
7626
|
console.error("❌ Error building configuration.", t);
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
|
-
async function
|
|
7629
|
+
async function Ch(t) {
|
|
7630
7630
|
try {
|
|
7631
7631
|
console.info(`🚀 Building public directory index for identifier '${t}'...`);
|
|
7632
7632
|
const e = {};
|
|
@@ -7660,7 +7660,7 @@ async function Ah(t) {
|
|
|
7660
7660
|
console.error("❌ Error building public directory index.", e);
|
|
7661
7661
|
}
|
|
7662
7662
|
}
|
|
7663
|
-
async function
|
|
7663
|
+
async function Eh() {
|
|
7664
7664
|
try {
|
|
7665
7665
|
console.info("🚀 Building connector configuration...");
|
|
7666
7666
|
const [t, e, i] = await Promise.all([
|
|
@@ -7680,7 +7680,7 @@ async function Ch() {
|
|
|
7680
7680
|
console.error("❌ Error building connector configuration.", t);
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
|
-
async function
|
|
7683
|
+
async function Ih() {
|
|
7684
7684
|
try {
|
|
7685
7685
|
console.info("🚀 Building context configuration...");
|
|
7686
7686
|
const [t, e, i] = await Promise.all([
|
|
@@ -7700,7 +7700,7 @@ async function Eh() {
|
|
|
7700
7700
|
console.error("❌ Error building context configuration.", t);
|
|
7701
7701
|
}
|
|
7702
7702
|
}
|
|
7703
|
-
async function
|
|
7703
|
+
async function Nh() {
|
|
7704
7704
|
try {
|
|
7705
7705
|
console.info("🚀 Building presenter configuration...");
|
|
7706
7706
|
const [t, e, i] = await Promise.all([
|
|
@@ -7720,7 +7720,7 @@ async function Ih() {
|
|
|
7720
7720
|
console.error("❌ Error building context configuration.", t);
|
|
7721
7721
|
}
|
|
7722
7722
|
}
|
|
7723
|
-
async function
|
|
7723
|
+
async function Lh(t = "./") {
|
|
7724
7724
|
try {
|
|
7725
7725
|
console.info("🚀 Bumping version...");
|
|
7726
7726
|
const e = JSON.parse(await F.readFile(`${t}package.json`, "utf8"));
|
|
@@ -7734,10 +7734,10 @@ async function Nh(t = "./") {
|
|
|
7734
7734
|
console.error("❌ Error bumping package version.", e);
|
|
7735
7735
|
}
|
|
7736
7736
|
}
|
|
7737
|
-
function
|
|
7737
|
+
function Oh(t) {
|
|
7738
7738
|
console.error(`❌ ${t} script not implemented.`);
|
|
7739
7739
|
}
|
|
7740
|
-
async function
|
|
7740
|
+
async function Mh() {
|
|
7741
7741
|
const t = "<!-- DEPENDENCY_LICENSES_START -->", e = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
7742
7742
|
try {
|
|
7743
7743
|
const s = (await F.readFile("./licenses.md", "utf8")).trim(), a = await F.readFile("./README.md", "utf8"), o = a.indexOf(t), h = a.indexOf(e);
|
|
@@ -7753,7 +7753,7 @@ async function Oh() {
|
|
|
7753
7753
|
console.error("❌ Error updating readme file.", i);
|
|
7754
7754
|
}
|
|
7755
7755
|
}
|
|
7756
|
-
async function
|
|
7756
|
+
async function Rh() {
|
|
7757
7757
|
const t = "<!-- OWASP_BADGE_START -->", e = "<!-- OWASP_BADGE_END -->";
|
|
7758
7758
|
try {
|
|
7759
7759
|
const i = JSON.parse(await F.readFile("./dependency-check-reports/dependency-check-report.json", "utf8")), s = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
|
|
@@ -7778,7 +7778,7 @@ async function Mh() {
|
|
|
7778
7778
|
console.error("❌ Error updating README with OWASP badges:", i);
|
|
7779
7779
|
}
|
|
7780
7780
|
}
|
|
7781
|
-
async function
|
|
7781
|
+
async function Dh() {
|
|
7782
7782
|
try {
|
|
7783
7783
|
console.info("🚀 Sending deployment notice...");
|
|
7784
7784
|
const t = JSON.parse(await F.readFile("config.json", "utf8")), e = {
|
|
@@ -7792,16 +7792,16 @@ async function Rh() {
|
|
|
7792
7792
|
console.error("❌ Error sending deployment notice.", t);
|
|
7793
7793
|
}
|
|
7794
7794
|
}
|
|
7795
|
-
async function
|
|
7795
|
+
async function zh() {
|
|
7796
7796
|
try {
|
|
7797
|
-
console.info("🚀 Synchronising with GitHub....");
|
|
7797
|
+
console.info("🚀 Synchronising with GitHub...."), Sh("Synchronising with GitHub....");
|
|
7798
7798
|
const t = JSON.parse(await F.readFile("package.json", "utf8"));
|
|
7799
7799
|
await Ye("git add ."), await Ye(`git commit -m "v${t.version}"`), await Ye("git push origin main:main"), console.info(`✅ Synchronised version ${t.version} with GitHub.`);
|
|
7800
7800
|
} catch (t) {
|
|
7801
7801
|
console.error("❌ Error synchronising with GitHub.", t), process.exit(1);
|
|
7802
7802
|
}
|
|
7803
7803
|
}
|
|
7804
|
-
async function
|
|
7804
|
+
async function Vh(t, e) {
|
|
7805
7805
|
try {
|
|
7806
7806
|
console.info("🚀 Uploading directory to R2....");
|
|
7807
7807
|
async function i(a, o, h) {
|
|
@@ -7823,7 +7823,7 @@ async function zh(t, e) {
|
|
|
7823
7823
|
console.error("❌ Error uploading directory to R2.", i);
|
|
7824
7824
|
}
|
|
7825
7825
|
}
|
|
7826
|
-
async function
|
|
7826
|
+
async function Fh() {
|
|
7827
7827
|
try {
|
|
7828
7828
|
console.info("🚀 Uploading module configuration....");
|
|
7829
7829
|
const t = JSON.parse(await F.readFile("config.json", "utf8")), e = t.id, i = {
|
|
@@ -7837,7 +7837,7 @@ async function Vh() {
|
|
|
7837
7837
|
console.error("❌ Error uploading module configuration.", t);
|
|
7838
7838
|
}
|
|
7839
7839
|
}
|
|
7840
|
-
async function
|
|
7840
|
+
async function jh(t) {
|
|
7841
7841
|
try {
|
|
7842
7842
|
console.info("🚀 Uploading module to R2...");
|
|
7843
7843
|
const i = `v${JSON.parse(await F.readFile("package.json", "utf8")).version}`;
|
|
@@ -7901,6 +7901,12 @@ async function Ye(t) {
|
|
|
7901
7901
|
const { stdout: e, stderr: i } = await Si(t);
|
|
7902
7902
|
e.trim() && console.log(e.trim()), i.trim() && console.error(i.trim());
|
|
7903
7903
|
}
|
|
7904
|
+
function Sh(t) {
|
|
7905
|
+
const e = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(t.length + 10);
|
|
7906
|
+
console.info(`
|
|
7907
|
+
${e}${s}`), console.info(` 🚀 ${t}`), console.info(`${s}${i}
|
|
7908
|
+
`);
|
|
7909
|
+
}
|
|
7904
7910
|
function oi(t, e) {
|
|
7905
7911
|
e(t);
|
|
7906
7912
|
for (const [i, s] of Object.entries(t)) {
|
|
@@ -7915,18 +7921,18 @@ function oi(t, e) {
|
|
|
7915
7921
|
}
|
|
7916
7922
|
}
|
|
7917
7923
|
export {
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7924
|
+
Ah as buildConfig,
|
|
7925
|
+
Eh as buildConnectorConfig,
|
|
7926
|
+
Ih as buildContextConfig,
|
|
7927
|
+
Nh as buildPresenterConfig,
|
|
7928
|
+
Ch as buildPublicDirectoryIndex,
|
|
7929
|
+
Lh as bumpVersion,
|
|
7930
|
+
Oh as echoScriptNotImplemented,
|
|
7931
|
+
Mh as insertLicensesIntoReadme,
|
|
7932
|
+
Rh as insertOWASPDependencyCheckBadgeIntoReadme,
|
|
7933
|
+
Dh as sendDeploymentNotice,
|
|
7934
|
+
zh as syncWithGitHub,
|
|
7935
|
+
Vh as uploadDirectoryToR2,
|
|
7936
|
+
Fh as uploadModuleConfigToDO,
|
|
7937
|
+
jh as uploadModuleToR2
|
|
7932
7938
|
};
|
package/package.json
CHANGED