@datapos/datapos-development 0.3.215 → 0.3.217

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
@@ -64,9 +64,10 @@ The OWASP Dependency Check Report identifies known vulnerabilities in project de
64
64
 
65
65
  ### Dependency Licenses
66
66
 
67
- The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. If a dependence has no license then it is treated as ?????
67
+ The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. If a dependence has no license then it is treated as ????? Used to support development activity and nor released as part of the production release. Check if you clone.
68
68
 
69
69
  <!-- DEPENDENCY_LICENSES_START -->
70
+
70
71
  | Name | Type | Installed | Latest | Latest Modified |
71
72
  | :---------------------- | :----------: | :-------: | :-----: | :----------------------- |
72
73
  | @datapos/datapos-shared | MIT | 0.3.255 | 0.3.255 | 2025-11-29T17:16:07.774Z |
@@ -75,6 +76,7 @@ The following table lists top-level production and peer dependencies. All these
75
76
  | acorn-walk | MIT | 8.3.4 | 8.3.4 | 2024-09-09T08:40:59.131Z |
76
77
  | dotenv | BSD-2-Clause | 17.2.3 | 17.2.3 | 2025-09-29T23:22:21.769Z |
77
78
  | zod | MIT | 4.1.13 | 4.1.13 | 2025-11-24T02:38:31.522Z |
79
+
78
80
  <!-- DEPENDENCY_LICENSES_END -->
79
81
 
80
82
  ### Bundle Analysis Report
@@ -93,10 +95,9 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
93
95
  | audit | alt+ctrl+shift+a | Audit the project's dependencies for known security vulnerabilities. |
94
96
  | build | alt+ctrl+shift+b | Build the package using Vite. Output to '/dist' directory. |
95
97
  | check | alt+ctrl+shift+c | Identify outdated dependencies using npm `outdated` and `npm-check-updates` with option to install latest versions. Also runs `retire` scanner. |
96
- | document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [LICENSES.json](./LICENSES.json). |
98
+ | document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [licenses.json](./licenses.json). |
97
99
  | format | alt+ctrl+shift+f | Use `prettier` to enforce formatting style rules. |
98
100
  | lint | alt+ctrl+shift+l | Use `eslint` to check the code for potential errors and enforces coding style rules. |
99
- | publish | alt+ctrl+shift+p | Publish the package to `npm`. |
100
101
  | release | alt+ctrl+shift+r | Bump version, build library, synchronise with `GitHub` and publish to `npm`. |
101
102
  | sync:withGitHub | alt+ctrl+shift+s | Synchronise local repository with the main GitHub repository. |
102
103
  | test | alt+ctrl+shift+t | ❌ Not implemented. |
@@ -105,7 +106,6 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
105
106
  ## TODO
106
107
 
107
108
  1. Enhance `uploadDirectoryToR2`to batch upload files so more efficient and performant.
108
- 1. Implement zod to validate config schemas.
109
109
 
110
110
  ## License
111
111
 
@@ -7700,13 +7700,13 @@ async function Bh() {
7700
7700
  console.error("❌ Error building artifact.", e), process.exit(1);
7701
7701
  }
7702
7702
  }
7703
- async function $h() {
7703
+ async function $h(e = !1) {
7704
7704
  try {
7705
7705
  ze("Release Artifact");
7706
- const e = await Kt("package.json");
7707
- Ae("Bump artifact version"), await _r(e), await Ce("vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ce("npm", ["publish", "--access", "public"]), Fe(`Version ${e.version} of artifact released.`);
7708
- } catch (e) {
7709
- console.error("❌ Error releasing artifact.", e), process.exit(1);
7706
+ const t = await Kt("package.json");
7707
+ await _r(t), await Ce("vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${t.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ce("npm", ["publish", "--access", "public"]), Fe(`Version ${t.version} of artifact released.`);
7708
+ } catch (t) {
7709
+ console.error("❌ Error releasing artifact.", t), process.exit(1);
7710
7710
  }
7711
7711
  }
7712
7712
  async function Uh() {
@@ -7722,15 +7722,11 @@ function Zh() {
7722
7722
  console.log("Test artifact...");
7723
7723
  }
7724
7724
  async function _r(e, t = "./") {
7725
- try {
7726
- if (e.version == null)
7727
- e.version = "0.0.001", console.warn(`⚠️ Version initialised to ${e.version}.`), await ms(`${t}package.json`, e);
7728
- else {
7729
- const i = e.version, s = e.version.split(".");
7730
- e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
7731
- }
7732
- } catch (i) {
7733
- console.error("❌ Error bumping artifact version.", i);
7725
+ if (Ae("Bump artifact version"), e.version == null)
7726
+ e.version = "0.0.001", console.warn(`⚠️ Version initialised to ${e.version}.`), await ms(`${t}package.json`, e);
7727
+ else {
7728
+ const i = e.version, s = e.version.split(".");
7729
+ e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
7734
7730
  }
7735
7731
  }
7736
7732
  const Lh = ["critical", "high", "moderate", "low", "unknown"];
@@ -2,7 +2,7 @@
2
2
  * Manage artifact operation.
3
3
  */
4
4
  declare function buildArtifact(): Promise<void>;
5
- declare function releaseArtifact(): Promise<void>;
5
+ declare function releaseArtifact(sendDeployNotice?: boolean): Promise<void>;
6
6
  declare function syncArtifactWithGitHub(): Promise<void>;
7
7
  declare function testArtifact(): void;
8
8
  export { buildArtifact, releaseArtifact, syncArtifactWithGitHub, testArtifact };
@@ -9,6 +9,6 @@ declare function logStepHeader(text: string): void;
9
9
  declare function readJSONFile<T>(path: string): Promise<T>;
10
10
  declare function readTextFile(path: string): Promise<string>;
11
11
  declare function spawnCommand(command: string, arguments_?: string[], ignoreErrors?: boolean): Promise<void>;
12
- declare function writeJSONFile(path: string, data: Record<string, unknown>): Promise<void>;
12
+ declare function writeJSONFile(path: string, data: object): Promise<void>;
13
13
  declare function writeTextFile(path: string, data: string): Promise<void>;
14
14
  export { determineConnectorUsageId, execCommand, extractOperationsFromSource, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, spawnCommand, writeJSONFile, writeTextFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.215",
3
+ "version": "0.3.217",
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>",