ts-node-client 1.5.2 → 2.0.0

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,6 +1,5 @@
1
1
  # TrustSource ts-node-client
2
2
 
3
- [![Travis build status](https://travis-ci.org/TrustSource/ts-node-client.svg?branch=master)](https://travis-ci.org/TrustSource/ts-node-client)
4
3
  [![Version](https://img.shields.io/npm/v/ts-node-client.svg)](http://npm.im/ts-node-client)
5
4
  [![Downloads](https://img.shields.io/npm/dm/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
6
5
  [![Downloads](https://img.shields.io/npm/dt/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
@@ -15,7 +14,7 @@ TrustSource node client
15
14
  ## Requirements
16
15
 
17
16
  * node >= 8.9.0
18
- * npm < 8.0.0
17
+ * if you are using npm < 8.0.0 we recommend switch to ts-node-client version 1.5.2 until we provide more elegant solution
19
18
 
20
19
  ## Installation
21
20
  Run: `npm install --save-dev ts-node-client` or `yarn add --dev ts-node-client`
@@ -73,13 +72,13 @@ Options:
73
72
  --help Prints a usage statement [boolean]
74
73
  ```
75
74
 
76
- ## Known problems
77
-
78
- #### Error: The programmatic API was removed in npm v8.0.0
79
- You should upgrade to later versions of ts-node-client
80
-
81
75
  ## Changelog
82
76
 
77
+ #### 2.0.0
78
+ #### if you are using npm < 8.0.0 we recommend switch to ts-node-client version 1.5.2 until we provide more elegant solution
79
+ - Stop usage of [`global-npm`](https://github.com/dracupid/global-npm) until we find new resolution
80
+ - Get back `npm` as local dependency
81
+
83
82
  #### 1.5.2
84
83
  - Describe `Error: The programmatic API was removed in npm v8.0.0`
85
84
 
@@ -6,7 +6,7 @@
6
6
  *********************************************************/
7
7
  /* eslint-enable */
8
8
 
9
- const npm = require('global-npm');
9
+ const npm = require('npm');
10
10
  const debuglog = (require('debuglog'))('ts-npm-scanner');
11
11
  const ScanResult = require('./scanresult');
12
12
  const { RestClient } = require('./rest-client');
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": "1.5.2",
4
+ "version": "2.0.0",
5
5
  "private": false,
6
6
  "homepage": "https://app.trustsource.io/",
7
7
  "author": {
@@ -14,8 +14,7 @@
14
14
  },
15
15
  "license": "Apache-2.0",
16
16
  "engines": {
17
- "node": ">= 8.9.0",
18
- "npm": "< 8.0.0"
17
+ "node": ">= 8.9.0"
19
18
  },
20
19
  "main": "./lib/cli.js",
21
20
  "bin": {
@@ -32,7 +31,7 @@
32
31
  },
33
32
  "dependencies": {
34
33
  "debuglog": "^1.0.1",
35
- "global-npm": "^0.5.0",
34
+ "npm": "6.14.15",
36
35
  "request": "^2.88.2",
37
36
  "semver": "^7.3.4",
38
37
  "yargs": "^15.4.1"
@@ -44,7 +43,7 @@
44
43
  "eslint-plugin-sonarjs": "^0.10.0",
45
44
  "mocha": "^9.1.3",
46
45
  "nock": "^12.0.3",
47
- "ts-node-client": "1.5.1"
46
+ "ts-node-client": "1.5.2"
48
47
  },
49
48
  "keywords": [
50
49
  "node",