@datapos/datapos-development 0.3.246 → 0.3.250

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Data Positioning Development Library
2
2
 
3
3
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=data-positioning_datapos-development&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=data-positioning_datapos-development)
4
- <span><!-- OWASP_BADGES_START -->[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/test-lib/dependency-check-reports/dependency-check-report.html)<!-- OWASP_BADGES_END --></span>
4
+ <span><!-- OWASP_BADGES_START -->[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/datapos-development/dependency-check-reports/dependency-check-report.html)<!-- OWASP_BADGES_END --></span>
5
5
  [![npm version](https://img.shields.io/npm/v/@datapos/datapos-development.svg)](https://www.npmjs.com/package/@datapos/datapos-development)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
7
7
 
@@ -7700,7 +7700,6 @@ async function Mh() {
7700
7700
  if (!i.ok) throw new Error(await i.text());
7701
7701
  }
7702
7702
  async function ys() {
7703
- console.info("🚀 Uploading module configuration....");
7704
7703
  const e = await Ce("config.json"), t = e.id, i = {
7705
7704
  body: JSON.stringify(e),
7706
7705
  headers: { "Content-Type": "application/json" },
@@ -7728,41 +7727,41 @@ async function Yh() {
7728
7727
  console.error("❌ Error building project.", e), process.exit(1);
7729
7728
  }
7730
7729
  }
7731
- async function ep(e = !1) {
7730
+ async function ep() {
7732
7731
  try {
7733
7732
  Le("Release Project");
7734
- const t = await Ce("package.json"), i = await Ce("config.json");
7735
- await Pr("1️⃣", t);
7736
- const s = Rh(t);
7737
- switch (s) {
7733
+ const e = await Ce("package.json"), t = await Ce("config.json");
7734
+ await Pr("1️⃣", e);
7735
+ const i = Rh(e);
7736
+ switch (i) {
7738
7737
  case "connector":
7739
- await zh("2️⃣", t);
7738
+ await zh("2️⃣", e);
7740
7739
  break;
7741
7740
  case "context":
7742
- await Vh("2️⃣", t);
7741
+ await Vh("2️⃣", e);
7743
7742
  break;
7744
7743
  case "presenter":
7745
- await jh("2️⃣", t);
7744
+ await jh("2️⃣", e);
7746
7745
  break;
7747
7746
  default:
7748
- await Dh("2️⃣", t);
7747
+ await Dh("2️⃣", e);
7749
7748
  }
7750
- await Ee("3️⃣ Bundle project", "vite", ["build"]), await Te("4️⃣ Stage changes", "git", ["add", "."]), await Te("5️⃣ Commit changes", "git", ["commit", "-m", `"v${t.version}"`]), await Te("6️⃣ Push changes", "git", ["push", "origin", "main:main"]);
7751
- const a = Bh(s);
7752
- if (s === "app")
7749
+ await Ee("3️⃣ Bundle project", "vite", ["build"]), await Te("4️⃣ Stage changes", "git", ["add", "."]), await Te("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await Te("6️⃣ Push changes", "git", ["push", "origin", "main:main"]);
7750
+ const s = Bh(i);
7751
+ if (i === "app")
7753
7752
  oe("7️⃣ Register module"), await Mh();
7754
- else if (s === "engine")
7753
+ else if (i === "engine")
7755
7754
  oe("7️⃣ Register module"), await ys(), await vs("datapos-engine-eu");
7756
- else if (a === void 0)
7757
- oe("7️⃣ Registration not required.");
7755
+ else if (s === void 0)
7756
+ oe("7️⃣ Registration NOT required.");
7758
7757
  else {
7759
7758
  oe("7️⃣ Register module"), await ys();
7760
- const o = i.id.slice(Math.max(0, i.id.lastIndexOf("-") + 1));
7761
- await vs(`datapos-engine-eu/${a}/${o}`);
7759
+ const a = t.id.slice(Math.max(0, t.id.lastIndexOf("-") + 1));
7760
+ await vs(`datapos-engine-eu/${s}/${a}`);
7762
7761
  }
7763
- await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${t.version}' released.`);
7764
- } catch (t) {
7765
- console.error("❌ Error releasing project.", t), process.exit(1);
7762
+ await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${e.version}' released.`);
7763
+ } catch (e) {
7764
+ console.error("❌ Error releasing project.", e), process.exit(1);
7766
7765
  }
7767
7766
  }
7768
7767
  function Rh(e) {
@@ -7953,7 +7952,7 @@ async function np() {
7953
7952
  }
7954
7953
  async function op() {
7955
7954
  try {
7956
- Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", ["."]), Fe("Code linted.");
7955
+ Le("Lint Code"), await Ee("1️⃣ Lint", "eslint", []), Fe("Code linted.");
7957
7956
  } catch (e) {
7958
7957
  console.error("❌ Error linting code.", e), process.exit(1);
7959
7958
  }
@@ -2,7 +2,7 @@
2
2
  * Manage project operation.
3
3
  */
4
4
  declare function buildProject(): Promise<void>;
5
- declare function releaseProject(sendDeployNotice?: boolean): Promise<void>;
5
+ declare function releaseProject(): Promise<void>;
6
6
  declare function syncProjectWithGitHub(): Promise<void>;
7
7
  declare function testProject(): void;
8
8
  export { buildProject, releaseProject, syncProjectWithGitHub, testProject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.246",
3
+ "version": "0.3.250",
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>",