@datapos/datapos-development 0.3.254 → 0.3.257

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,7 +64,7 @@ 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. We do not include unlicensed dependencies. Used to support development activity and not released as part of the production release. Check if you clone.
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. We do not include unlicensed dependencies. Used to support development activity and not released as part of the production release. Check if you clone. We use `license-report`, `license-report-check` and `license-report-recursive` to identify dependency licenses.
68
68
 
69
69
  <!-- DEPENDENCY_LICENSES_START -->
70
70
 
@@ -112,3 +112,104 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
112
112
  This project is licensed under the MIT License, allowing free use, modification, and distribution.
113
113
 
114
114
  [MIT](./LICENSE) © 2026 Data Positioning Pty Ltd
115
+
116
+ ## Review License Reporting
117
+
118
+ Here’s a step-by-step license compliance checklist for Node.js projects that combines automated tooling like license-report with manual verification. This is designed to make sure your MIT project remains compliant when using third-party dependencies.
119
+
120
+ Node.js License Compliance Checklist
121
+ Step 1: Generate initial license report
122
+
123
+ Run your tool, e.g., license-report:
124
+
125
+ npx license-report --json > licenses.json
126
+
127
+ Save the output for review.
128
+
129
+ This gives a first-pass list of all dependencies and their declared licenses.
130
+
131
+ Step 2: Identify potential issues
132
+
133
+ For each dependency in the report, check for:
134
+
135
+ Flag What it means Action
136
+ No license declared No license field in package.json Check for LICENSE file in repo. If none, contact author or replace dependency.
137
+ Custom/proprietary license License not recognized Manually review the license text and confirm compatibility.
138
+ Copyleft license (GPL, LGPL) May require release of modifications If LGPL, ensure linking rules are followed. GPL may restrict distribution.
139
+ License mismatch License field differs from LICENSE file Trust LICENSE file; update your report accordingly.
140
+ Step 3: Verify actual license text
141
+
142
+ Check the dependency’s repository for a LICENSE file.
143
+
144
+ Confirm that the license text matches the package.json declaration.
145
+
146
+ For multi-license projects, note which license applies to the code you are using.
147
+
148
+ Step 4: Document all licenses
149
+
150
+ Create a ThirdPartyLicenses.md or LICENSES/ folder in your project.
151
+
152
+ For each dependency, include:
153
+
154
+ Dependency name and version
155
+
156
+ License type (from LICENSE file)
157
+
158
+ URL to repository or package
159
+
160
+ Any copyleft obligations (e.g., “LGPL: modifications must remain LGPL”)
161
+
162
+ Example (ThirdPartyLicenses.md):
163
+
164
+ # Third-Party Dependencies
165
+
166
+ ## LibraryA 1.2.3
167
+
168
+ - License: Apache-2.0
169
+ - Repository: https://github.com/user/libraryA
170
+ - License text: LICENSES/LibraryA.txt
171
+
172
+ ## LibraryB 4.5.6
173
+
174
+ - License: BSD-2-Clause
175
+ - Repository: https://github.com/user/libraryB
176
+ - License text: LICENSES/LibraryB.txt
177
+
178
+ ## LibraryC 0.1.2
179
+
180
+ - License: LGPL-3.0-only
181
+ - Repository: https://github.com/user/libraryC
182
+ - License text: LICENSES/LibraryC.txt
183
+ - Note: If you modify this library, modifications must remain LGPL-3.0-only
184
+
185
+ Step 5: Include license texts
186
+
187
+ Copy the full license text into your project for each dependency.
188
+
189
+ Put each in LICENSES/LibraryName.txt or combine into ThirdPartyLicenses.md.
190
+
191
+ Make it easily accessible to end users.
192
+
193
+ Step 6: Audit before release
194
+
195
+ Review all dependencies: no missing licenses.
196
+
197
+ Confirm compliance with copyleft licenses.
198
+
199
+ Ensure your own MIT license only covers your code.
200
+
201
+ Update ThirdPartyLicenses.md whenever dependencies are added/updated.
202
+
203
+ Step 7: Automate for future
204
+
205
+ Use CI scripts to regenerate license report on npm install or release.
206
+
207
+ Fail the build if any dependency has “no license” or an incompatible license.
208
+
209
+ Optional tools:
210
+
211
+ license-checker (Node.js)
212
+
213
+ npm-license-crawler
214
+
215
+ fossology (more comprehensive scanning)
@@ -7751,7 +7751,7 @@ async function ip() {
7751
7751
  if (i === "app")
7752
7752
  se("7️⃣ Register module"), await Rh();
7753
7753
  else if (i === "engine")
7754
- se("7️⃣ Register module"), await ys(), await vs("datapos-engine-eu");
7754
+ se("7️⃣ Register module"), await ys(), await vs(`datapos-engine-eu/${s}`);
7755
7755
  else if (s === void 0)
7756
7756
  se("7️⃣ Registration NOT required.");
7757
7757
  else {
@@ -7759,14 +7759,14 @@ async function ip() {
7759
7759
  const a = t.id.slice(Math.max(0, t.id.lastIndexOf("-") + 1));
7760
7760
  await vs(`datapos-engine-eu/${s}/${a}`);
7761
7761
  }
7762
- await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]), Fe(`Project version '${e.version}' released.`);
7762
+ i === "connector" || i === "context" || i === "dev" || i === "presenter" || i === "shared" || i === "tool" ? await Ee("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]) : se(`7️⃣ Publishing NOT required for package type '${i}''.`), Fe(`Project version '${e.version}' released.`);
7763
7763
  } catch (e) {
7764
7764
  console.error("❌ Error releasing project.", e), process.exit(1);
7765
7765
  }
7766
7766
  }
7767
7767
  function Dh(e) {
7768
7768
  const t = e.name ?? "";
7769
- return t === "datapos-app" ? "app" : t === "datapos-engine" ? "engine" : t.includes("datapos-connector") ? "connector" : t.includes("datapos-context") ? "context" : t.includes("datapos-presenter") ? "presenter" : t.includes("datapos-tool") ? "tool" : "other";
7769
+ return t === "datapos-app" ? "app" : t === "datapos-api" ? "api" : t === "datapos-engine" ? "engine" : t.includes("datapos-connector") ? "connector" : t.includes("datapos-context") ? "context" : t.includes("datapos-presenter") ? "presenter" : t.includes("datapos-tool") ? "tool" : "other";
7770
7770
  }
7771
7771
  async function sp() {
7772
7772
  try {
@@ -7837,6 +7837,8 @@ function Bh(e) {
7837
7837
  }
7838
7838
  function $h(e) {
7839
7839
  switch (e) {
7840
+ case "engine":
7841
+ return "engine";
7840
7842
  case "connector":
7841
7843
  return "connectors";
7842
7844
  case "context":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.254",
3
+ "version": "0.3.257",
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>",