@squiz/dxp-cli-next 5.21.0-develop.3 → 5.22.0-develop.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.
- package/lib/dxp.js +3 -2
- package/lib/job-runner/utils.spec.js +1 -1
- package/package.json +6 -8
package/lib/dxp.js
CHANGED
|
@@ -41,9 +41,10 @@ function validateNodeVersion() {
|
|
|
41
41
|
const nodeVersionParts = process.versions.node
|
|
42
42
|
.split('.')
|
|
43
43
|
.map(part => Number(part));
|
|
44
|
+
const version = 20;
|
|
44
45
|
const [nodeVersion] = nodeVersionParts;
|
|
45
|
-
if (nodeVersion <
|
|
46
|
-
console.error(cli_color_1.default.red(`You are running an older version of node(${process.version}). Please install node
|
|
46
|
+
if (nodeVersion < version) {
|
|
47
|
+
console.error(cli_color_1.default.red(`You are running an older version of node(${process.version}). Please install node v${version} or higher`));
|
|
47
48
|
// eslint-disable-next-line no-process-exit
|
|
48
49
|
process.exit(1);
|
|
49
50
|
}
|
|
@@ -87,7 +87,7 @@ describe('readInputFile', () => {
|
|
|
87
87
|
}));
|
|
88
88
|
it('errors if file has json extension but cannot be parsed', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
89
|
const source = './src/__tests__/job-runner/inputs/badInput.json';
|
|
90
|
-
yield expect((0, utils_1.readInputFile)(path_1.default.join(source))).rejects.toThrow(`Unable to read file ${path_1.default.join(source)} -
|
|
90
|
+
yield expect((0, utils_1.readInputFile)(path_1.default.join(source))).rejects.toThrow(`Unable to read file ${path_1.default.join(source)} - Expected property name or '}'`);
|
|
91
91
|
}));
|
|
92
92
|
});
|
|
93
93
|
describe('addPaginationToUrl', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/dxp-cli-next",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0-develop.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://gitlab.squiz.net/dxp/dxp-cli-next"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=20.0"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"cli",
|
|
@@ -41,11 +41,9 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@apidevtools/swagger-parser": "10.1.0",
|
|
44
|
-
"@squiz/component-cli-lib": "
|
|
44
|
+
"@squiz/component-cli-lib": "~1.70.3",
|
|
45
45
|
"@squiz/dxp-porter-shared": "0.4.0",
|
|
46
46
|
"@squiz/local-component-dev-ui": "^0.6.1",
|
|
47
|
-
"@squiz/render-runtime-lib": "1.77.0",
|
|
48
|
-
"@squiz/edge-dev-render-runtime-lib": "2.3.0",
|
|
49
47
|
"axios": "1.1.3",
|
|
50
48
|
"cli-color": "2.0.3",
|
|
51
49
|
"commander": "9.4.0",
|
|
@@ -68,7 +66,7 @@
|
|
|
68
66
|
"@semantic-release/npm": "9.0.1",
|
|
69
67
|
"@types/cli-color": "2.0.2",
|
|
70
68
|
"@types/inquirer": "8.2.6",
|
|
71
|
-
"@types/jest": "
|
|
69
|
+
"@types/jest": "29.5.14",
|
|
72
70
|
"@types/node": "17.0.45",
|
|
73
71
|
"@types/opener": "1.4.3",
|
|
74
72
|
"@types/prompt": "^1.1.4",
|
|
@@ -86,12 +84,12 @@
|
|
|
86
84
|
"eslint-plugin-prettier": "4.2.1",
|
|
87
85
|
"execa": "5.1.1",
|
|
88
86
|
"husky": "8.0.1",
|
|
89
|
-
"jest": "
|
|
87
|
+
"jest": "29.7.0",
|
|
90
88
|
"lint-staged": "13.0.3",
|
|
91
89
|
"nock": "^13.3.1",
|
|
92
90
|
"prettier": "2.7.1",
|
|
93
91
|
"semantic-release": "19.0.3",
|
|
94
|
-
"ts-jest": "
|
|
92
|
+
"ts-jest": "29.2.5",
|
|
95
93
|
"ts-node": "^10.9.1",
|
|
96
94
|
"typescript": "4.7.4"
|
|
97
95
|
},
|