@verdaccio/cli 7.0.0-next.3 → 7.0.0-next.5

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @verdaccio/cli
2
2
 
3
+ ## 7.0.0-next.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f047cc8]
8
+ - @verdaccio/core@7.0.0-next.5
9
+ - @verdaccio/config@7.0.0-next.5
10
+ - @verdaccio/node-api@7.0.0-next.5
11
+ - @verdaccio/logger@7.0.0-next.5
12
+
13
+ ## 7.0.0-next.4
14
+
15
+ ### Patch Changes
16
+
17
+ - @verdaccio/node-api@7.0.0-next.4
18
+ - @verdaccio/core@7.0.0-next.4
19
+ - @verdaccio/config@7.0.0-next.4
20
+ - @verdaccio/logger@7.0.0-next.4
21
+
3
22
  ## 7.0.0-next.3
4
23
 
5
24
  ### Major Changes
@@ -169,12 +188,12 @@
169
188
  - 8f43bf17d: feat: node api new structure based on promise
170
189
 
171
190
  ```js
172
- import { runServer } from '@verdaccio/node-api';
191
+ import { runServer } from "@verdaccio/node-api";
173
192
  // or
174
- import { runServer } from 'verdaccio';
193
+ import { runServer } from "verdaccio";
175
194
 
176
195
  const app = await runServer(); // default configuration
177
- const app = await runServer('./config/config.yaml');
196
+ const app = await runServer("./config/config.yaml");
178
197
  const app = await runServer({ configuration });
179
198
  app.listen(4000, (event) => {
180
199
  // do something
@@ -1020,14 +1039,14 @@
1020
1039
  - 5c5057fc: feat: node api new structure based on promise
1021
1040
 
1022
1041
  ```js
1023
- import { runServer } from '@verdaccio/node-api';
1042
+ import { runServer } from "@verdaccio/node-api";
1024
1043
  // or
1025
- import { runServer } from 'verdaccio';
1044
+ import { runServer } from "verdaccio";
1026
1045
 
1027
1046
  const app = await runServer(); // default configuration
1028
- const app = await runServer('./config/config.yaml');
1047
+ const app = await runServer("./config/config.yaml");
1029
1048
  const app = await runServer({ configuration });
1030
- app.listen(4000, event => {
1049
+ app.listen(4000, (event) => {
1031
1050
  // do something
1032
1051
  });
1033
1052
  ```
@@ -9,8 +9,7 @@ var _config = require("@verdaccio/config");
9
9
  var _core = require("@verdaccio/core");
10
10
  var _logger = require("@verdaccio/logger");
11
11
  var _nodeApi = require("@verdaccio/node-api");
12
- const DEFAULT_PROCESS_NAME = 'verdaccio';
13
- exports.DEFAULT_PROCESS_NAME = DEFAULT_PROCESS_NAME;
12
+ const DEFAULT_PROCESS_NAME = exports.DEFAULT_PROCESS_NAME = 'verdaccio';
14
13
  class InitCommand extends _clipanion.Command {
15
14
  static paths = [_clipanion.Command.Default];
16
15
  port = _clipanion.Option.String('-l,-p,--listen,--port', {
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","names":["_clipanion","require","_config","_core","_logger","_nodeApi","DEFAULT_PROCESS_NAME","exports","InitCommand","Command","paths","Default","port","Option","String","description","usage","Usage","details","examples","config","initLogger","logConfig","logs","log","warningUtils","emit","Codes","VERWAR002","setup","execute","configPathLocation","findConfigFile","configParsed","parseConfigFile","web","process","title","version","name","initServer","logger","info","err","console","error","exit"],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport { ConfigYaml, LoggerConfigItem } 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: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n setup(logConfig.log as LoggerConfigItem);\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"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGO,MAAMK,oBAA4B,GAAG,WAAW;AAACC,OAAA,CAAAD,oBAAA,GAAAA,oBAAA;AAEjD,MAAME,WAAW,SAASC,kBAAO,CAAC;EACvC,OAAcC,KAAK,GAAG,CAACD,kBAAO,CAACE,OAAO,CAAC;EAE/BC,IAAI,GAAGC,iBAAM,CAACC,MAAM,CAAC,uBAAuB,EAAE;IACpDC,WAAW,EAAE;EACf,CAAC,CAAC;;EAEF;EACA,OAAOC,KAAK,GAAGP,kBAAO,CAACQ,KAAK,CAAC;IAC3BF,WAAW,EAAG,mBAAkB;IAChCG,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC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ACF;AACF;AAACvC,OAAA,CAAAC,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"init.js","names":["_clipanion","require","_config","_core","_logger","_nodeApi","DEFAULT_PROCESS_NAME","exports","InitCommand","Command","paths","Default","port","Option","String","description","usage","Usage","details","examples","config","initLogger","logConfig","logs","log","warningUtils","emit","Codes","VERWAR002","setup","execute","configPathLocation","findConfigFile","configParsed","parseConfigFile","web","process","title","version","name","initServer","logger","info","err","console","error","exit"],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport { ConfigYaml, LoggerConfigItem } 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: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n setup(logConfig.log as LoggerConfigItem);\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"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGO,MAAMK,oBAA4B,GAAAC,OAAA,CAAAD,oBAAA,GAAG,WAAW;AAEhD,MAAME,WAAW,SAASC,kBAAO,CAAC;EACvC,OAAcC,KAAK,GAAG,CAACD,kBAAO,CAACE,OAAO,CAAC;EAE/BC,IAAI,GAAGC,iBAAM,CAACC,MAAM,CAAC,uBAAuB,EAAE;IACpDC,WAAW,EAAE;EACf,CAAC,CAAC;;EAEF;EACA,OAAOC,KAAK,GAAGP,kBAAO,CAACQ,KAAK,CAAC;IAC3BF,WAAW,EAAG,mBAAkB;IAChCG,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,QAAQ,EAAE,CACR,CAAE,gDAA+C,EAAG,WAAU,CAAC,EAC/D,CAAE,kCAAiC,EAAG,yBAAwB,CAAC,EAC/D,CACG,kFAAiF,EACjF,qDAAoD,CACtD;EAEL,CAAC,CAAC;EAEMC,MAAM,GAAGP,iBAAM,CAACC,MAAM,CAAC,aAAa,EAAE;IAC5CC,WAAW,EAAE;EACf,CAAC,CAAC;EAEMM,UAAUA,CAACC,SAAqB,EAAE;IACxC,IAAIA,SAAS,CAACC,IAAI,EAAE;MAClBD,SAAS,CAACE,GAAG,GAAGF,SAAS,CAACC,IAAI;MAC9BE,kBAAY,CAACC,IAAI,CAACD,kBAAY,CAACE,KAAK,CAACC,SAAS,CAAC;IACjD;IACA,IAAAC,aAAK,EAACP,SAAS,CAACE,GAAuB,CAAC;EAC1C;EAEA,MAAaM,OAAOA,CAAA,EAAG;IACrB,IAAI;MACF,MAAMC,kBAAkB,GAAG,IAAAC,sBAAc,EAAC,IAAI,CAACZ,MAAgB,CAAC;MAChE,MAAMa,YAAY,GAAG,IAAAC,uBAAe,EAACH,kBAAkB,CAAC;MACxD,IAAI,CAACV,UAAU,CAACY,YAAY,CAAC;MAC7B,MAAM;QAAEE;MAAI,CAAC,GAAGF,YAAY;MAE5BG,OAAO,CAACC,KAAK,GAAG,CAAAF,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEE,KAAK,KAAI/B,oBAAoB;MAElD,MAAM;QAAEgC,OAAO;QAAEC;MAAK,CAAC,GAAGtC,OAAO,CAAC,oBAAoB,CAAC;MAEvD,MAAM,IAAAuC,mBAAU,EAACP,YAAY,EAAE,IAAI,CAACrB,IAAI,EAAY0B,OAAO,EAAEC,IAAI,CAAC;MAClEE,cAAM,CAACC,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC,CAAC,OAAOC,GAAQ,EAAE;MACjBC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC;MAClBP,OAAO,CAACU,IAAI,CAAC,CAAC,CAAC;IACjB;EACF;AACF;AAACvC,OAAA,CAAAC,WAAA,GAAAA,WAAA"}
package/build/utils.js CHANGED
@@ -7,8 +7,7 @@ exports.MIN_NODE_VERSION = void 0;
7
7
  exports.isVersionValid = isVersionValid;
8
8
  var _semver = _interopRequireDefault(require("semver"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const MIN_NODE_VERSION = '14.0.0';
11
- exports.MIN_NODE_VERSION = MIN_NODE_VERSION;
10
+ const MIN_NODE_VERSION = exports.MIN_NODE_VERSION = '14.0.0';
12
11
  function isVersionValid(processVersion) {
13
12
  const version = processVersion.slice(1);
14
13
  return _semver.default.satisfies(version, `>=${MIN_NODE_VERSION}`);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["_semver","_interopRequireDefault","require","obj","__esModule","default","MIN_NODE_VERSION","exports","isVersionValid","processVersion","version","slice","semver","satisfies"],"sources":["../src/utils.ts"],"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"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4B,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAErB,MAAMG,gBAAgB,GAAG,QAAQ;AAACC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAElC,SAASE,cAAcA,CAACC,cAAc,EAAE;EAC7C,MAAMC,OAAO,GAAGD,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;EACvC,OAAOC,eAAM,CAACC,SAAS,CAACH,OAAO,EAAG,KAAIJ,gBAAiB,EAAC,CAAC;AAC3D"}
1
+ {"version":3,"file":"utils.js","names":["_semver","_interopRequireDefault","require","obj","__esModule","default","MIN_NODE_VERSION","exports","isVersionValid","processVersion","version","slice","semver","satisfies"],"sources":["../src/utils.ts"],"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"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4B,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAErB,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,QAAQ;AAEjC,SAASE,cAAcA,CAACC,cAAc,EAAE;EAC7C,MAAMC,OAAO,GAAGD,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;EACvC,OAAOC,eAAM,CAACC,SAAS,CAACH,OAAO,EAAG,KAAIJ,gBAAiB,EAAC,CAAC;AAC3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/cli",
3
- "version": "7.0.0-next.3",
3
+ "version": "7.0.0-next.5",
4
4
  "author": {
5
5
  "name": "Juan Picado",
6
6
  "email": "juanpicado19@gmail.com"
@@ -33,17 +33,17 @@
33
33
  "main": "./build/index.js",
34
34
  "types": "build/index.d.ts",
35
35
  "dependencies": {
36
- "@verdaccio/core": "7.0.0-next.3",
37
- "@verdaccio/config": "7.0.0-next.3",
38
- "@verdaccio/logger": "7.0.0-next.3",
39
- "@verdaccio/node-api": "7.0.0-next.3",
36
+ "@verdaccio/core": "7.0.0-next.5",
37
+ "@verdaccio/config": "7.0.0-next.5",
38
+ "@verdaccio/logger": "7.0.0-next.5",
39
+ "@verdaccio/node-api": "7.0.0-next.5",
40
40
  "clipanion": "3.2.1",
41
- "envinfo": "7.8.1",
41
+ "envinfo": "7.11.0",
42
42
  "kleur": "4.1.5",
43
43
  "semver": "7.5.4"
44
44
  },
45
45
  "devDependencies": {
46
- "ts-node": "10.9.1"
46
+ "ts-node": "10.9.2"
47
47
  },
48
48
  "funding": {
49
49
  "type": "opencollective",