@verdaccio/cli 6.0.0-6-next.29 → 6.0.0-6-next.32
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 +50 -0
- package/build/commands/FastifyServer.js +5 -7
- package/build/commands/FastifyServer.js.map +1 -1
- package/build/commands/init.js +6 -8
- package/build/commands/init.js.map +1 -1
- package/build/utils.js +1 -1
- package/build/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/commands/FastifyServer.ts +5 -6
- package/src/commands/init.ts +8 -6
- package/src/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @verdaccio/cli
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d78c8b51: chore: improve error logger message
|
|
8
|
+
|
|
9
|
+
## 6.0.0-6-next.31
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
|
|
14
|
+
|
|
15
|
+
### 💥 Breaking change
|
|
16
|
+
|
|
17
|
+
This is valid
|
|
18
|
+
|
|
19
|
+
```yaml
|
|
20
|
+
log: { type: stdout, format: pretty, level: http }
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This is invalid
|
|
24
|
+
|
|
25
|
+
```yaml
|
|
26
|
+
logs: { type: stdout, format: pretty, level: http }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
or
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
logs:
|
|
33
|
+
- [{ type: stdout, format: pretty, level: http }]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [82cb0f2b]
|
|
39
|
+
- Updated dependencies [5167bb52]
|
|
40
|
+
- @verdaccio/config@6.0.0-6-next.13
|
|
41
|
+
- @verdaccio/core@6.0.0-6-next.5
|
|
42
|
+
- @verdaccio/logger@6.0.0-6-next.11
|
|
43
|
+
- @verdaccio/node-api@6.0.0-6-next.30
|
|
44
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.22
|
|
45
|
+
|
|
46
|
+
## 6.0.0-6-next.30
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.21
|
|
51
|
+
- @verdaccio/node-api@6.0.0-6-next.29
|
|
52
|
+
|
|
3
53
|
## 6.0.0-6-next.29
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
|
@@ -9,8 +9,6 @@ var _clipanion = require("clipanion");
|
|
|
9
9
|
|
|
10
10
|
var _config = require("@verdaccio/config");
|
|
11
11
|
|
|
12
|
-
var _core = require("@verdaccio/core");
|
|
13
|
-
|
|
14
12
|
var _fastifyMigration = _interopRequireDefault(require("@verdaccio/fastify-migration"));
|
|
15
13
|
|
|
16
14
|
var _logger = require("@verdaccio/logger");
|
|
@@ -39,14 +37,14 @@ class FastifyServer extends _clipanion.Command {
|
|
|
39
37
|
|
|
40
38
|
initLogger(logConfig) {
|
|
41
39
|
try {
|
|
42
|
-
if (logConfig.
|
|
43
|
-
|
|
40
|
+
if (logConfig.log) {
|
|
41
|
+
throw Error('logger as array not longer supported');
|
|
44
42
|
} // FUTURE: remove fallback when is ready
|
|
45
43
|
|
|
46
44
|
|
|
47
|
-
(0, _logger.setup)(logConfig.log
|
|
48
|
-
} catch {
|
|
49
|
-
throw new Error(
|
|
45
|
+
(0, _logger.setup)(logConfig.log);
|
|
46
|
+
} catch (err) {
|
|
47
|
+
throw new Error(err);
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/FastifyServer.ts"],"names":["DEFAULT_PROCESS_NAME","FastifyServer","Command","paths","port","Option","String","description","config","initLogger","logConfig","
|
|
1
|
+
{"version":3,"sources":["../../src/commands/FastifyServer.ts"],"names":["DEFAULT_PROCESS_NAME","FastifyServer","Command","paths","port","Option","String","description","config","initLogger","logConfig","log","Error","err","execute","configPathLocation","configParsed","web","process","title","ser","logger","listen","env","PORT","console","error","exit"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;AAGO,MAAMA,oBAA4B,GAAG,WAArC;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;;;;AACO,MAAMC,aAAN,SAA4BC,kBAA5B,CAAoC;AACtB,SAALC,KAAK,GAAG,CAAC,CAAC,gBAAD,CAAD,CAAH;AAEXC,EAAAA,IAAI,GAAGC,kBAAOC,MAAP,CAAc,uBAAd,EAAuC;AACpDC,IAAAA,WAAW,EAAE;AADuC,GAAvC,CAAH;AAIJC,EAAAA,MAAM,GAAGH,kBAAOC,MAAP,CAAc,aAAd,EAA6B;AAC5CC,IAAAA,WAAW,EAAE;AAD+B,GAA7B,CAAH;;AAINE,EAAAA,UAAU,CAACC,SAAD,EAA2B;AAC3C,QAAI;AACF,UAAIA,SAAS,CAACC,GAAd,EAAmB;AACjB,cAAMC,KAAK,CAAC,sCAAD,CAAX;AACD,OAHC,CAIF;;;AACA,yBAAMF,SAAS,CAACC,GAAhB;AACD,KAND,CAME,OAAOE,GAAP,EAAiB;AACjB,YAAM,IAAID,KAAJ,CAAUC,GAAV,CAAN;AACD;AACF;;AAEmB,QAAPC,OAAO,GAAG;AACrB,QAAI;AACF,YAAMC,kBAAkB,GAAG,4BAAe,KAAKP,MAApB,CAA3B;AACA,YAAMQ,YAAY,GAAG,6BAAgBD,kBAAhB,CAArB;AACA,YAAM;AAAEE,QAAAA;AAAF,UAAUD,YAAhB;AACA,WAAKP,UAAL,CAAgBO,YAAhB;AAEAE,MAAAA,OAAO,CAACC,KAAR,GAAgB,CAAAF,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,KAAL,KAAcnB,oBAA9B,CANE,CAOF;AACA;;AACA,YAAMoB,GAAG,GAAG,MAAM,+BAAO;AAAEC,QAAAA,MAAM,EAANA,cAAF;AAAUb,QAAAA,MAAM,EAAEQ;AAAlB,OAAP,CAAlB,CATE,CAUF;;AACA,YAAMI,GAAG,CAACE,MAAJ,CAAWJ,OAAO,CAACK,GAAR,CAAYC,IAAZ,IAAoB,IAA/B,CAAN;AACD,KAZD,CAYE,OAAOX,GAAP,EAAiB;AACjBY,MAAAA,OAAO,CAACC,KAAR,CAAcb,GAAd;AACAK,MAAAA,OAAO,CAACS,IAAR,CAAa,CAAb;AACD;AACF;;AAxCwC","sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport server from '@verdaccio/fastify-migration';\nimport { logger, setup } from '@verdaccio/logger';\nimport { ConfigRuntime } from '@verdaccio/types';\n\nexport const DEFAULT_PROCESS_NAME: string = 'verdaccio';\n\n/**\n * This command is intended to run the server with Fastify\n * as a migration step.\n * More info: https://github.com/verdaccio/verdaccio/discussions/2155\n * To try out.\n * pnpm debug:fastify\n */\nexport class FastifyServer extends Command {\n public static paths = [['fastify-server']];\n\n private port = Option.String('-l,-p,--listen,--port', {\n description: 'host:port number to listen on (default: localhost:4873)',\n });\n\n private config = Option.String('-c,--config', {\n description: 'use this configuration file (default: ./config.yaml)',\n });\n\n private initLogger(logConfig: ConfigRuntime) {\n try {\n if (logConfig.log) {\n throw Error('logger as array not longer supported');\n }\n // FUTURE: remove fallback when is ready\n setup(logConfig.log);\n } catch (err: any) {\n throw new Error(err);\n }\n }\n\n public async execute() {\n try {\n const configPathLocation = findConfigFile(this.config as string);\n const configParsed = parseConfigFile(configPathLocation);\n const { web } = configParsed;\n this.initLogger(configParsed);\n\n process.title = web?.title || DEFAULT_PROCESS_NAME;\n // FIXME: need a way to get version of the package.\n // const { version, name } = require('../../package.json');\n const ser = await server({ logger, config: configParsed });\n // FIXME: harcoded, this would need to come from the configuration and the --listen flag.\n await ser.listen(process.env.PORT || 4873);\n } catch (err: any) {\n console.error(err);\n process.exit(1);\n }\n }\n}\n"],"file":"FastifyServer.js"}
|
package/build/commands/init.js
CHANGED
|
@@ -9,8 +9,6 @@ var _clipanion = require("clipanion");
|
|
|
9
9
|
|
|
10
10
|
var _config = require("@verdaccio/config");
|
|
11
11
|
|
|
12
|
-
var _core = require("@verdaccio/core");
|
|
13
|
-
|
|
14
12
|
var _logger = require("@verdaccio/logger");
|
|
15
13
|
|
|
16
14
|
var _nodeApi = require("@verdaccio/node-api");
|
|
@@ -47,14 +45,14 @@ class InitCommand extends _clipanion.Command {
|
|
|
47
45
|
|
|
48
46
|
initLogger(logConfig) {
|
|
49
47
|
try {
|
|
48
|
+
// @ts-expect-error
|
|
50
49
|
if (logConfig.logs) {
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
50
|
+
throw Error('the property config "logs" property is longer supported, rename to "log" and use object instead');
|
|
51
|
+
}
|
|
54
52
|
|
|
55
|
-
(0, _logger.setup)(logConfig.log
|
|
56
|
-
} catch {
|
|
57
|
-
throw new Error(
|
|
53
|
+
(0, _logger.setup)(logConfig.log);
|
|
54
|
+
} catch (err) {
|
|
55
|
+
throw new Error(err);
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/init.ts"],"names":["DEFAULT_PROCESS_NAME","InitCommand","Command","paths","Default","port","Option","String","description","usage","Usage","details","examples","config","initLogger","logConfig","logs","
|
|
1
|
+
{"version":3,"sources":["../../src/commands/init.ts"],"names":["DEFAULT_PROCESS_NAME","InitCommand","Command","paths","Default","port","Option","String","description","usage","Usage","details","examples","config","initLogger","logConfig","logs","Error","log","err","execute","configPathLocation","configParsed","web","process","title","version","name","require","logger","info","console","error","exit"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;AAGO,MAAMA,oBAA4B,GAAG,WAArC;;;AAEA,MAAMC,WAAN,SAA0BC,kBAA1B,CAAkC;AACpB,SAALC,KAAK,GAAG,CAACD,mBAAQE,OAAT,CAAH;AAEXC,EAAAA,IAAI,GAAGC,kBAAOC,MAAP,CAAc,uBAAd,EAAuC;AACpDC,IAAAA,WAAW,EAAE;AADuC,GAAvC,CAAH,CAH2B,CAOvC;;AACY,SAALC,KAAK,GAAGP,mBAAQQ,KAAR,CAAc;AAC3BF,IAAAA,WAAW,EAAG,mBADa;AAE3BG,IAAAA,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAd+B;AAe3BC,IAAAA,QAAQ,EAAE,CACR,CAAE,gDAAF,EAAoD,WAApD,CADQ,EAER,CAAE,kCAAF,EAAsC,yBAAtC,CAFQ,EAGR,CACG,kFADH,EAEG,qDAFH,CAHQ;AAfiB,GAAd,CAAH;AAyBJC,EAAAA,MAAM,GAAGP,kBAAOC,MAAP,CAAc,aAAd,EAA6B;AAC5CC,IAAAA,WAAW,EAAE;AAD+B,GAA7B,CAAH;;AAINM,EAAAA,UAAU,CAACC,SAAD,EAA2B;AAC3C,QAAI;AACF;AACA,UAAIA,SAAS,CAACC,IAAd,EAAoB;AAClB,cAAMC,KAAK,CACT,iGADS,CAAX;AAGD;;AACD,yBAAMF,SAAS,CAACG,GAAhB;AACD,KARD,CAQE,OAAOC,GAAP,EAAiB;AACjB,YAAM,IAAIF,KAAJ,CAAUE,GAAV,CAAN;AACD;AACF;;AAEmB,QAAPC,OAAO,GAAG;AACrB,QAAI;AACF,YAAMC,kBAAkB,GAAG,4BAAe,KAAKR,MAApB,CAA3B;AACA,YAAMS,YAAY,GAAG,6BAAgBD,kBAAhB,CAArB;AACA,WAAKP,UAAL,CAAgBQ,YAAhB;AACA,YAAM;AAAEC,QAAAA;AAAF,UAAUD,YAAhB;AAEAE,MAAAA,OAAO,CAACC,KAAR,GAAgB,CAAAF,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,KAAL,KAAczB,oBAA9B;;AAEA,YAAM;AAAE0B,QAAAA,OAAF;AAAWC,QAAAA;AAAX,UAAoBC,OAAO,CAAC,oBAAD,CAAjC;;AAEA,YAAM,yBAAWN,YAAX,EAAyB,KAAKjB,IAA9B,EAA8CqB,OAA9C,EAAuDC,IAAvD,CAAN;;AACAE,qBAAOC,IAAP,CAAY,gBAAZ;AACD,KAZD,CAYE,OAAOX,GAAP,EAAiB;AACjBY,MAAAA,OAAO,CAACC,KAAR,CAAcb,GAAd;AACAK,MAAAA,OAAO,CAACS,IAAR,CAAa,CAAb;AACD;AACF;;AApEsC","sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { logger, setup } from '@verdaccio/logger';\nimport { LoggerConfigItem } from '@verdaccio/logger/src/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport { ConfigRuntime } from '@verdaccio/types';\n\nexport const DEFAULT_PROCESS_NAME: string = 'verdaccio';\n\nexport class InitCommand extends Command {\n public static paths = [Command.Default];\n\n private port = Option.String('-l,-p,--listen,--port', {\n description: 'host:port number to listen on (default: localhost:4873)',\n });\n\n // eslint-disable-next-line\n static usage = Command.Usage({\n description: `launch the server`,\n details: `\n This start the registry in the default port.\n\n When used without arguments, it:\n\n - bootstrap the server at the port \\`4873\\`\n\n The optional arguments are:\n\n - \\`-l | --listen | -p | --port\\` to switch the default server port,\n - \\`-c | --config\\` to define a different configuration path location,\n\n `,\n examples: [\n [`Runs the server with the default configuration`, `verdaccio`],\n [`Runs the server in the port 5000`, `verdaccio --listen 5000`],\n [\n `Runs the server by using a different absolute location of the configuration file`,\n `verdaccio --config /home/user/verdaccio/config.yaml`,\n ],\n ],\n });\n\n private config = Option.String('-c,--config', {\n description: 'use this configuration file (default: ./config.yaml)',\n });\n\n private initLogger(logConfig: ConfigRuntime) {\n try {\n // @ts-expect-error\n if (logConfig.logs) {\n throw Error(\n 'the property config \"logs\" property is longer supported, rename to \"log\" and use object instead'\n );\n }\n setup(logConfig.log as LoggerConfigItem);\n } catch (err: any) {\n throw new Error(err);\n }\n }\n\n public async execute() {\n try {\n const configPathLocation = findConfigFile(this.config as string);\n const configParsed = parseConfigFile(configPathLocation);\n this.initLogger(configParsed);\n const { web } = configParsed;\n\n process.title = web?.title || DEFAULT_PROCESS_NAME;\n\n const { version, name } = require('../../package.json');\n\n await initServer(configParsed, this.port as string, version, name);\n logger.info('server started');\n } catch (err: any) {\n console.error(err);\n process.exit(1);\n }\n }\n}\n"],"file":"init.js"}
|
package/build/utils.js
CHANGED
|
@@ -14,7 +14,7 @@ const MIN_NODE_VERSION = '14.0.0';
|
|
|
14
14
|
exports.MIN_NODE_VERSION = MIN_NODE_VERSION;
|
|
15
15
|
|
|
16
16
|
function isVersionValid(processVersion) {
|
|
17
|
-
const version = processVersion.
|
|
17
|
+
const version = processVersion.slice(1);
|
|
18
18
|
return _semver.default.satisfies(version, `>=${MIN_NODE_VERSION}`);
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=utils.js.map
|
package/build/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils.ts"],"names":["MIN_NODE_VERSION","isVersionValid","processVersion","version","
|
|
1
|
+
{"version":3,"sources":["../src/utils.ts"],"names":["MIN_NODE_VERSION","isVersionValid","processVersion","version","slice","semver","satisfies"],"mappings":";;;;;;;;AAAA;;;;AAEO,MAAMA,gBAAgB,GAAG,QAAzB;;;AAEA,SAASC,cAAT,CAAwBC,cAAxB,EAAwC;AAC7C,QAAMC,OAAO,GAAGD,cAAc,CAACE,KAAf,CAAqB,CAArB,CAAhB;AACA,SAAOC,gBAAOC,SAAP,CAAiBH,OAAjB,EAA2B,KAAIH,gBAAiB,EAAhD,CAAP;AACD","sourcesContent":["import semver from 'semver';\n\nexport const MIN_NODE_VERSION = '14.0.0';\n\nexport function isVersionValid(processVersion) {\n const version = processVersion.slice(1);\n return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);\n}\n"],"file":"utils.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/cli",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.32",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Juan Picado",
|
|
6
6
|
"email": "juanpicado19@gmail.com"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"main": "./build/index.js",
|
|
35
35
|
"types": "build/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@verdaccio/core": "6.0.0-6-next.
|
|
38
|
-
"@verdaccio/config": "6.0.0-6-next.
|
|
39
|
-
"@verdaccio/logger": "6.0.0-6-next.
|
|
40
|
-
"@verdaccio/node-api": "6.0.0-6-next.
|
|
41
|
-
"@verdaccio/fastify-migration": "6.0.0-6-next.
|
|
37
|
+
"@verdaccio/core": "6.0.0-6-next.5",
|
|
38
|
+
"@verdaccio/config": "6.0.0-6-next.13",
|
|
39
|
+
"@verdaccio/logger": "6.0.0-6-next.11",
|
|
40
|
+
"@verdaccio/node-api": "6.0.0-6-next.30",
|
|
41
|
+
"@verdaccio/fastify-migration": "6.0.0-6-next.22",
|
|
42
42
|
"clipanion": "3.1.0",
|
|
43
43
|
"envinfo": "7.8.1",
|
|
44
44
|
"kleur": "3.0.3",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command, Option } from 'clipanion';
|
|
2
2
|
|
|
3
3
|
import { findConfigFile, parseConfigFile } from '@verdaccio/config';
|
|
4
|
-
import { warningUtils } from '@verdaccio/core';
|
|
5
4
|
import server from '@verdaccio/fastify-migration';
|
|
6
5
|
import { logger, setup } from '@verdaccio/logger';
|
|
7
6
|
import { ConfigRuntime } from '@verdaccio/types';
|
|
@@ -28,13 +27,13 @@ export class FastifyServer extends Command {
|
|
|
28
27
|
|
|
29
28
|
private initLogger(logConfig: ConfigRuntime) {
|
|
30
29
|
try {
|
|
31
|
-
if (logConfig.
|
|
32
|
-
|
|
30
|
+
if (logConfig.log) {
|
|
31
|
+
throw Error('logger as array not longer supported');
|
|
33
32
|
}
|
|
34
33
|
// FUTURE: remove fallback when is ready
|
|
35
|
-
setup(logConfig.log
|
|
36
|
-
} catch {
|
|
37
|
-
throw new Error(
|
|
34
|
+
setup(logConfig.log);
|
|
35
|
+
} catch (err: any) {
|
|
36
|
+
throw new Error(err);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
|
package/src/commands/init.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Command, Option } from 'clipanion';
|
|
2
2
|
|
|
3
3
|
import { findConfigFile, parseConfigFile } from '@verdaccio/config';
|
|
4
|
-
import { warningUtils } from '@verdaccio/core';
|
|
5
4
|
import { logger, setup } from '@verdaccio/logger';
|
|
5
|
+
import { LoggerConfigItem } from '@verdaccio/logger/src/logger';
|
|
6
6
|
import { initServer } from '@verdaccio/node-api';
|
|
7
7
|
import { ConfigRuntime } from '@verdaccio/types';
|
|
8
8
|
|
|
@@ -47,13 +47,15 @@ export class InitCommand extends Command {
|
|
|
47
47
|
|
|
48
48
|
private initLogger(logConfig: ConfigRuntime) {
|
|
49
49
|
try {
|
|
50
|
+
// @ts-expect-error
|
|
50
51
|
if (logConfig.logs) {
|
|
51
|
-
|
|
52
|
+
throw Error(
|
|
53
|
+
'the property config "logs" property is longer supported, rename to "log" and use object instead'
|
|
54
|
+
);
|
|
52
55
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
throw new Error('error on init logger');
|
|
56
|
+
setup(logConfig.log as LoggerConfigItem);
|
|
57
|
+
} catch (err: any) {
|
|
58
|
+
throw new Error(err);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
|
package/src/utils.ts
CHANGED
|
@@ -3,6 +3,6 @@ import semver from 'semver';
|
|
|
3
3
|
export const MIN_NODE_VERSION = '14.0.0';
|
|
4
4
|
|
|
5
5
|
export function isVersionValid(processVersion) {
|
|
6
|
-
const version = processVersion.
|
|
6
|
+
const version = processVersion.slice(1);
|
|
7
7
|
return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);
|
|
8
8
|
}
|