@datapos/datapos-development 0.3.125 → 0.3.126
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 +16 -16
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { exec as
|
|
1
|
+
import { exec as h } from "node:child_process";
|
|
2
2
|
import { promises as t } from "node:fs";
|
|
3
|
-
import { nanoid as
|
|
3
|
+
import { nanoid as b } from "nanoid";
|
|
4
4
|
import { promisify as $ } from "node:util";
|
|
5
|
-
const v = ["createObject", "dropObject", "removeRecords", "upsertRecords"], O = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], w = $(
|
|
5
|
+
const v = ["createObject", "dropObject", "removeRecords", "upsertRecords"], O = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], w = $(h);
|
|
6
6
|
async function j() {
|
|
7
7
|
try {
|
|
8
8
|
console.info("🚀 Building configuration...");
|
|
@@ -12,7 +12,7 @@ async function j() {
|
|
|
12
12
|
console.error("❌ Error building configuration.", e);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
async function
|
|
15
|
+
async function k(e) {
|
|
16
16
|
try {
|
|
17
17
|
console.info(`🚀 Building public directory index for identifier '${e}'...`);
|
|
18
18
|
const o = {};
|
|
@@ -28,7 +28,7 @@ async function C(e) {
|
|
|
28
28
|
const p = await t.readdir(l), u = { childCount: p.length, name: `${c}`, typeId: "folder" };
|
|
29
29
|
d.push(u), await i(l, p);
|
|
30
30
|
} else {
|
|
31
|
-
const p = { id:
|
|
31
|
+
const p = { id: b(), lastModifiedAt: f.mtimeMs, name: c, size: f.size, typeId: "object" };
|
|
32
32
|
d.push(p);
|
|
33
33
|
}
|
|
34
34
|
} catch (f) {
|
|
@@ -46,7 +46,7 @@ async function C(e) {
|
|
|
46
46
|
console.error("❌ Error building public directory index.", o);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
async function
|
|
49
|
+
async function C() {
|
|
50
50
|
try {
|
|
51
51
|
console.info("🚀 Building connector configuration...");
|
|
52
52
|
const e = JSON.parse(await t.readFile("package.json", "utf8")), o = JSON.parse(await t.readFile("config.json", "utf8")), i = await t.readFile("src/index.ts", "utf8");
|
|
@@ -121,15 +121,15 @@ async function I() {
|
|
|
121
121
|
m in n ? n[m]++ : n.unknown++;
|
|
122
122
|
}
|
|
123
123
|
const s = {
|
|
124
|
-
critical: { color: "red", label: "
|
|
125
|
-
high: { color: "orange", label: "
|
|
126
|
-
moderate: { color: "yellow", label: "
|
|
127
|
-
low: { color: "green", label: "
|
|
128
|
-
unknown: { color: "lightgrey", label: "
|
|
124
|
+
critical: { color: "red", label: "critical" },
|
|
125
|
+
high: { color: "orange", label: "high" },
|
|
126
|
+
moderate: { color: "yellow", label: "moderate" },
|
|
127
|
+
low: { color: "green", label: "low" },
|
|
128
|
+
unknown: { color: "lightgrey", label: "unknown" }
|
|
129
129
|
}, r = [];
|
|
130
130
|
for (const [u, g] of Object.entries(n)) {
|
|
131
131
|
if (g === 0) continue;
|
|
132
|
-
const m = s[u], y = `https://img.shields.io/badge/OWASP%20${m.label}%
|
|
132
|
+
const m = s[u], y = `https://img.shields.io/badge/OWASP%20${m.label}%20vulnerabilities-${g}-${m.color}`;
|
|
133
133
|
r.push(`[](./dependency-check-reports/dependency-check-report.html)`);
|
|
134
134
|
}
|
|
135
135
|
const d = Object.values(n).reduce((u, g) => u + g, 0);
|
|
@@ -203,7 +203,7 @@ async function _() {
|
|
|
203
203
|
console.error("❌ Error uploading module configuration.", e);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
async function
|
|
206
|
+
async function W(e) {
|
|
207
207
|
try {
|
|
208
208
|
console.info("🚀 Uploading module to R2...");
|
|
209
209
|
const i = `v${JSON.parse(await t.readFile("package.json", "utf8")).version}`;
|
|
@@ -226,10 +226,10 @@ async function U(e) {
|
|
|
226
226
|
}
|
|
227
227
|
export {
|
|
228
228
|
j as buildConfig,
|
|
229
|
-
|
|
229
|
+
C as buildConnectorConfig,
|
|
230
230
|
J as buildContextConfig,
|
|
231
231
|
R as buildPresenterConfig,
|
|
232
|
-
|
|
232
|
+
k as buildPublicDirectoryIndex,
|
|
233
233
|
A as bumpVersion,
|
|
234
234
|
F as echoScriptNotImplemented,
|
|
235
235
|
D as insertLicensesIntoReadme,
|
|
@@ -238,5 +238,5 @@ export {
|
|
|
238
238
|
M as syncWithGitHub,
|
|
239
239
|
T as uploadDirectoryToR2,
|
|
240
240
|
_ as uploadModuleConfigToDO,
|
|
241
|
-
|
|
241
|
+
W as uploadModuleToR2
|
|
242
242
|
};
|
package/package.json
CHANGED