@i2analyze/create-connector 2.0.0-next.0 → 2.0.0-next.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -7
  2. package/index.js +9 -3
  3. package/package.json +37 -37
package/CHANGELOG.md CHANGED
@@ -1,33 +1,39 @@
1
1
  # @i2analyze/create-connector
2
2
 
3
+ ## 2.0.0-next.1
4
+
5
+ ### Major Changes
6
+
7
+ - BREAKING CHANGE: Set 14.17.0 as the minimum supported node.js version.
8
+
3
9
  ## 2.0.0-next.0
4
10
 
5
11
  ### Major Changes
6
12
 
7
- - 07d9ec3: BREAKING CHANGE: Removed "--no-connectors" argument when creating new connector server
13
+ - BREAKING CHANGE: Removed "--no-connectors" argument when creating new connector server
8
14
 
9
15
  ## 1.0.3
10
16
 
11
17
  ### Patch Changes
12
18
 
13
- - cc9d526: Update copyright information.
14
- - ed28e8e: Update urls to use correct github organization.
19
+ - Update copyright information.
20
+ - Update urls to use correct github organization.
15
21
 
16
22
  ## 1.0.2
17
23
 
18
24
  ### Patch Changes
19
25
 
20
- - 927589d: Update READMEs and homepages for public packages
26
+ - Update READMEs and homepages for public packages
21
27
 
22
28
  ## 1.0.1
23
29
 
24
30
  ### Patch Changes
25
31
 
26
- - 358415b: Use a `^` dependency for i2connect-scripts.
27
- - e46293f: Rename `sample` to `skeleton` in the template, and change casing to better reflect the nature of the files produced.
32
+ - Use a `^` dependency for i2connect-scripts.
33
+ - Rename `sample` to `skeleton` in the template, and change casing to better reflect the nature of the files produced.
28
34
 
29
35
  ## 1.0.0
30
36
 
31
37
  ### Major Changes
32
38
 
33
- - 79b1db9: Initial release.
39
+ - Initial release.
package/index.js CHANGED
@@ -7,14 +7,20 @@
7
7
  'use strict';
8
8
 
9
9
  var thisVersion = process.versions.node;
10
- var thisMajor = thisVersion.split('.')[0];
10
+ var versions = thisVersion.split('.');
11
+
12
+ var thisMajor = parseInt(versions[0], 10);
13
+ var thisMinor = parseInt(versions[1], 10);
11
14
  var minimumMajorRequired = 14;
15
+ var minimumMinorRequired = 17;
12
16
 
13
- if (thisMajor < minimumMajorRequired) {
17
+ if (thisMajor < minimumMajorRequired || (thisMajor === minimumMajorRequired && thisMinor < minimumMinorRequired)) {
14
18
  console.error(
15
19
  'Node ' +
16
20
  minimumMajorRequired +
17
- ' or higher is required. You are using ' +
21
+ '.' +
22
+ minimumMinorRequired +
23
+ '.0 or higher is required. You are using ' +
18
24
  thisVersion +
19
25
  '. Update your version of Node.'
20
26
  );
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@i2analyze/create-connector",
3
- "version": "2.0.0-next.0",
4
- "license": "MIT",
5
- "publishConfig": {
6
- "access": "public",
7
- "registry": "https://registry.npmjs.org/"
8
- },
9
- "homepage": "https://github.com/i2group/analyze-connect-node-sdk",
10
- "bin": "index.js",
11
- "files": [
12
- "index.js",
13
- "main.js"
14
- ],
15
- "devDependencies": {
16
- "@i2analyze/i2connect-scripts": "2.0.0-next.5",
17
- "@types/node-fetch": "^2.5.12",
18
- "node-fetch": "^2.6.1"
19
- },
20
- "dependencies": {
21
- "chalk": "^4.1.0",
22
- "commander": "^8.0.0",
23
- "cross-spawn": "^7.0.3",
24
- "file-uri-to-path": "^2.0.0",
25
- "file-url": "^3.0.0"
26
- },
27
- "engines": {
28
- "node": ">=14"
29
- },
30
- "volta": {
31
- "extends": "../../package.json"
32
- },
33
- "scripts": {
34
- "lint": "eslint .",
35
- "test": "node ./test.js"
36
- }
37
- }
1
+ {
2
+ "name": "@i2analyze/create-connector",
3
+ "version": "2.0.0-next.1",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
9
+ "homepage": "https://github.com/i2group/analyze-connect-node-sdk",
10
+ "bin": "index.js",
11
+ "files": [
12
+ "index.js",
13
+ "main.js"
14
+ ],
15
+ "devDependencies": {
16
+ "@i2analyze/i2connect-scripts": "2.0.0-next.6",
17
+ "@types/node-fetch": "^2.5.12",
18
+ "node-fetch": "^2.6.1"
19
+ },
20
+ "dependencies": {
21
+ "chalk": "^4.1.0",
22
+ "commander": "^8.0.0",
23
+ "cross-spawn": "^7.0.3",
24
+ "file-uri-to-path": "^2.0.0",
25
+ "file-url": "^3.0.0"
26
+ },
27
+ "engines": {
28
+ "node": ">=14.17.0"
29
+ },
30
+ "volta": {
31
+ "extends": "../../package.json"
32
+ },
33
+ "scripts": {
34
+ "lint": "eslint .",
35
+ "test": "node ./test.js"
36
+ }
37
+ }