ts-node-client 3.3.1 → 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.
@@ -1,20 +1,25 @@
1
1
  # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
2
  # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
 
4
- name: Publish Package to npmjs
4
+ name: Publish package to npmjs.org
5
5
 
6
- on: [push, pull_request]
6
+ on:
7
+ push:
8
+ branches:
9
+ - 'main'
10
+ pull_request:
11
+ branches:
12
+ - 'main'
7
13
 
8
14
  jobs:
9
15
  publish:
10
16
 
11
- if: github.ref == 'refs/heads/main'
12
17
  runs-on: ubuntu-latest
13
18
 
14
19
  strategy:
15
20
  matrix:
16
21
  include:
17
- - node-version: 16.x
22
+ - node-version: 20.x
18
23
 
19
24
  steps:
20
25
  - uses: actions/checkout@v3
@@ -23,8 +28,6 @@ jobs:
23
28
  with:
24
29
  node-version: ${{ matrix.node-version }}
25
30
  registry-url: 'https://registry.npmjs.org'
26
- - name: Install yarn
27
- run: npm install --global yarn
28
31
  - name: Install dependencies
29
32
  run: yarn
30
33
  - run: yarn publish
@@ -1,4 +1,4 @@
1
- name: Scan dependencies
1
+ name: Scan and upload to trustsource.io
2
2
 
3
3
  on:
4
4
  push:
@@ -22,8 +22,6 @@ jobs:
22
22
  with:
23
23
  node-version: ${{ matrix.node-version }}
24
24
  registry-url: 'https://registry.npmjs.org'
25
- - name: Install yarn
26
- run: npm install --global yarn
27
25
  - name: Install dependencies
28
26
  run: yarn
29
27
  - name: Scan dependencies
package/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@ 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
+
17
+ ## 3.3.2 - 2024-03-29
18
+
19
+ ### Changed
20
+ * update GithubActions to node 20.x
21
+
22
+
11
23
  ## 3.3.1 - 2024-03-29
12
24
 
13
25
  ### 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.1",
4
+ "version": "3.3.3",
5
5
  "homepage": "https://app.trustsource.io/",
6
6
  "author": {
7
7
  "name": "Oleksandr Dmukhovskyi",