@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.
@@ -1,8 +1,8 @@
1
- import { exec as b } from "node:child_process";
1
+ import { exec as h } from "node:child_process";
2
2
  import { promises as t } from "node:fs";
3
- import { nanoid as h } from "nanoid";
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 = $(b);
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 C(e) {
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: h(), lastModifiedAt: f.mtimeMs, name: c, size: f.size, typeId: "object" };
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 k() {
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: "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" }
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}%20vulnerability:-${g}-${m.color}`;
132
+ const m = s[u], y = `https://img.shields.io/badge/OWASP%20${m.label}%20vulnerabilities-${g}-${m.color}`;
133
133
  r.push(`[![OWASP ${m.label}](${y})](./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 U(e) {
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
- k as buildConnectorConfig,
229
+ C as buildConnectorConfig,
230
230
  J as buildContextConfig,
231
231
  R as buildPresenterConfig,
232
- C as buildPublicDirectoryIndex,
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
- U as uploadModuleToR2
241
+ W as uploadModuleToR2
242
242
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.125",
3
+ "version": "0.3.126",
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>",