ts-node-client 3.3.2 → 3.3.3

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/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
10
 
11
+ ## 3.3.3 - 2024-04-01
12
+
13
+ ### Fixed
14
+ * package-lock.json parser will fix sub-dependencies names
15
+
16
+
11
17
  ## 3.3.2 - 2024-03-29
12
18
 
13
19
  ### Changed
@@ -146,9 +146,9 @@ Scanner.prototype.walk = function walk(npmDependency, level, root) {
146
146
 
147
147
  printDependency(npmDependency, level);
148
148
  if (npmDependency.name) {
149
- let pkg = root && root.packages && root.packages[`node_modules/${npmDependency.name}`];
149
+ let pkg = root && root.packages && root.packages[`node_modules/${npmDependency.fullName || npmDependency.name}`];
150
150
  if (!pkg) {
151
- pkg = root && root.packages && root.packages[''];
151
+ pkg = root && root.packages && root.packages[''];
152
152
  }
153
153
  let repository = npmDependency.repository && npmDependency.repository.url;
154
154
  if (!repository) {
@@ -177,7 +177,8 @@ Scanner.prototype.walk = function walk(npmDependency, level, root) {
177
177
  const childDependency = npmDependency.packages[val];
178
178
  if (childDependency) {
179
179
  const parts = val.split('node_modules/');
180
- childDependency.name = parts.length > 1 ? parts.slice(1).join('node_modules/') : parts[0];
180
+ childDependency.name = parts.length > 1 ? parts[parts.length-1] : parts[0];
181
+ childDependency.fullName = parts.length > 1 ? parts.slice(1).join('node_modules/') : parts[0];
181
182
  }
182
183
  checkForChild(self, opts, dependency, childDependency, val, level, root);
183
184
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-node-client",
3
3
  "description": "npm / node module to transfer dependency information to TrustSource server.",
4
- "version": "3.3.2",
4
+ "version": "3.3.3",
5
5
  "homepage": "https://app.trustsource.io/",
6
6
  "author": {
7
7
  "name": "Oleksandr Dmukhovskyi",