@verdaccio/cli 7.0.0-next.6 → 8.0.0-next-8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,202 @@
1
1
  # @verdaccio/cli
2
2
 
3
+ ## 8.0.0-next-8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/node-api@8.0.0-next-8.1
8
+ - @verdaccio/core@8.0.0-next-8.1
9
+ - @verdaccio/config@8.0.0-next-8.1
10
+ - @verdaccio/logger@8.0.0-next-8.1
11
+
12
+ ## 8.0.0-next-8.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - @verdaccio/logger@8.0.0-next-8.0
18
+ - @verdaccio/core@8.0.0-next-8.0
19
+ - @verdaccio/node-api@8.0.0-next-8.0
20
+ - @verdaccio/config@8.0.0-next-8.0
21
+
22
+ ## 7.0.0
23
+
24
+ ### Major Changes
25
+
26
+ - 47f61c6: feat!: bump to v7
27
+ - e7ebccb: update major dependencies, remove old nodejs support
28
+
29
+ ### Patch Changes
30
+
31
+ - 199aea3: chore: add config location and loglevel to startup log
32
+ - 10dd81f: feat: complete overhaul of web user interface
33
+ - 7c9f3cf: chore: improve startup logging
34
+ - Updated dependencies [47f61c6]
35
+ - Updated dependencies [10dd81f]
36
+ - Updated dependencies [6e764e3]
37
+ - Updated dependencies [8c10a3e]
38
+ - Updated dependencies [daceb6d]
39
+ - Updated dependencies [e7ebccb]
40
+ - Updated dependencies [c9962fe]
41
+ - Updated dependencies [f047cc8]
42
+ - Updated dependencies [a99a4bb]
43
+ - Updated dependencies [a05a7d8]
44
+ - Updated dependencies [7c9f3cf]
45
+ - Updated dependencies [c31aec8]
46
+ - Updated dependencies [bd8703e]
47
+ - Updated dependencies [4d96324]
48
+ - @verdaccio/config@7.0.0
49
+ - @verdaccio/core@7.0.0
50
+ - @verdaccio/logger@7.0.0
51
+ - @verdaccio/node-api@7.0.0
52
+
53
+ ## 7.0.0-next-8.21
54
+
55
+ ### Patch Changes
56
+
57
+ - 7c9f3cf: chore: improve startup logging
58
+ - Updated dependencies [8c10a3e]
59
+ - Updated dependencies [a05a7d8]
60
+ - Updated dependencies [7c9f3cf]
61
+ - @verdaccio/config@7.0.0-next-8.21
62
+ - @verdaccio/core@7.0.0-next-8.21
63
+ - @verdaccio/node-api@7.0.0-next-8.21
64
+ - @verdaccio/logger@7.0.0-next-8.21
65
+
66
+ ## 7.0.0-next-7.20
67
+
68
+ ### Patch Changes
69
+
70
+ - @verdaccio/node-api@7.0.0-next-7.20
71
+ - @verdaccio/core@7.0.0-next-7.20
72
+ - @verdaccio/config@7.0.0-next-7.20
73
+ - @verdaccio/logger@7.0.0-next-7.20
74
+
75
+ ## 7.0.0-next-7.19
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [c31aec8]
80
+ - @verdaccio/config@7.0.0-next-7.19
81
+ - @verdaccio/node-api@7.0.0-next-7.19
82
+ - @verdaccio/core@7.0.0-next-7.19
83
+ - @verdaccio/logger@7.0.0-next-7.19
84
+
85
+ ## 7.0.0-next-7.18
86
+
87
+ ### Patch Changes
88
+
89
+ - 10dd81f: feat: complete overhaul of web user interface
90
+ - Updated dependencies [10dd81f]
91
+ - @verdaccio/config@7.0.0-next-7.18
92
+ - @verdaccio/core@7.0.0-next-7.18
93
+ - @verdaccio/logger@7.0.0-next-7.18
94
+ - @verdaccio/node-api@7.0.0-next-7.18
95
+
96
+ ## 7.0.0-next-7.17
97
+
98
+ ### Patch Changes
99
+
100
+ - 199aea3: chore: add config location and loglevel to startup log
101
+ - Updated dependencies [6e764e3]
102
+ - @verdaccio/config@7.0.0-next-7.17
103
+ - @verdaccio/core@7.0.0-next-7.17
104
+ - @verdaccio/logger@7.0.0-next-7.17
105
+ - @verdaccio/node-api@7.0.0-next-7.17
106
+
107
+ ## 7.0.0-next-7.16
108
+
109
+ ### Patch Changes
110
+
111
+ - @verdaccio/logger@7.0.0-next-7.16
112
+ - @verdaccio/node-api@7.0.0-next-7.16
113
+ - @verdaccio/core@7.0.0-next-7.16
114
+ - @verdaccio/config@7.0.0-next-7.16
115
+
116
+ ## 7.0.0-next-7.15
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [bd8703e]
121
+ - @verdaccio/core@7.0.0-next-7.15
122
+ - @verdaccio/node-api@7.0.0-next-7.15
123
+ - @verdaccio/config@7.0.0-next-7.15
124
+ - @verdaccio/logger@7.0.0-next-7.15
125
+
126
+ ## 7.0.0-next-7.14
127
+
128
+ ### Patch Changes
129
+
130
+ - @verdaccio/node-api@7.0.0-next-7.14
131
+ - @verdaccio/core@7.0.0-next-7.14
132
+ - @verdaccio/config@7.0.0-next-7.14
133
+ - @verdaccio/logger@7.0.0-next-7.14
134
+
135
+ ## 7.0.0-next-7.13
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [a99a4bb]
140
+ - @verdaccio/config@7.0.0-next-7.13
141
+ - @verdaccio/node-api@7.0.0-next-7.13
142
+ - @verdaccio/logger@7.0.0-next-7.13
143
+ - @verdaccio/core@7.0.0-next-7.13
144
+
145
+ ## 7.0.0-next-7.12
146
+
147
+ ### Patch Changes
148
+
149
+ - @verdaccio/node-api@7.0.0-next-7.12
150
+ - @verdaccio/core@7.0.0-next-7.12
151
+ - @verdaccio/config@7.0.0-next-7.12
152
+ - @verdaccio/logger@7.0.0-next-7.12
153
+
154
+ ## 7.0.0-next-7.11
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [c9962fe]
159
+ - @verdaccio/config@7.0.0-next-7.11
160
+ - @verdaccio/node-api@7.0.0-next-7.11
161
+ - @verdaccio/core@7.0.0-next-7.11
162
+ - @verdaccio/logger@7.0.0-next-7.11
163
+
164
+ ## 7.0.0-next-7.10
165
+
166
+ ### Patch Changes
167
+
168
+ - @verdaccio/core@7.0.0-next-7.10
169
+ - @verdaccio/config@7.0.0-next-7.10
170
+ - @verdaccio/node-api@7.0.0-next-7.10
171
+ - @verdaccio/logger@7.0.0-next-7.10
172
+
173
+ ## 7.0.0-next-7.9
174
+
175
+ ### Patch Changes
176
+
177
+ - @verdaccio/node-api@7.0.0-next-7.9
178
+ - @verdaccio/core@7.0.0-next-7.9
179
+ - @verdaccio/config@7.0.0-next-7.9
180
+ - @verdaccio/logger@7.0.0-next-7.9
181
+
182
+ ## 7.0.0-next-7.8
183
+
184
+ ### Patch Changes
185
+
186
+ - @verdaccio/node-api@7.0.0-next-7.8
187
+ - @verdaccio/core@7.0.0-next-7.8
188
+ - @verdaccio/config@7.0.0-next-7.8
189
+ - @verdaccio/logger@7.0.0-next-7.8
190
+
191
+ ## 7.0.0-next-7.7
192
+
193
+ ### Patch Changes
194
+
195
+ - @verdaccio/core@7.0.0-next-7.7
196
+ - @verdaccio/config@7.0.0-next-7.7
197
+ - @verdaccio/node-api@7.0.0-next-7.7
198
+ - @verdaccio/logger@7.0.0-next-7.7
199
+
3
200
  ## 7.0.0-next.6
4
201
 
5
202
  ### Patch Changes
package/build/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","names":["_clipanion","require","_core","_info","_init","_version","_utils","process","getuid","warningUtils","emit","Codes","VERWAR001","isVersionValid","version","Error","MIN_NODE_VERSION","node","app","args","argv","cli","Cli","binaryLabel","binaryName","binaryVersion","register","InfoCommand","InitCommand","VersionCommand","runExit","defaultContext","on","err","console","error","stack","exit"],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { warningUtils } from '@verdaccio/core';\n\nimport { InfoCommand } from './commands/info';\nimport { InitCommand } from './commands/init';\nimport { VersionCommand } from './commands/version';\nimport { MIN_NODE_VERSION, isVersionValid } from './utils';\n\nif (process.getuid && process.getuid() === 0) {\n warningUtils.emit(warningUtils.Codes.VERWAR001);\n}\n\nif (!isVersionValid(process.version)) {\n throw new Error(\n `Verdaccio requires at least Node.js v${MIN_NODE_VERSION} or higher and you have installed ${process.version}, \n please upgrade your Node.js distribution`\n );\n}\n\nconst [node, app, ...args] = process.argv;\n\nconst cli = new Cli({\n binaryLabel: `verdaccio`,\n binaryName: `${node} ${app}`,\n binaryVersion: require('../package.json').version,\n});\n\ncli.register(InfoCommand);\ncli.register(InitCommand);\ncli.register(VersionCommand);\ncli.runExit(args, Cli.defaultContext);\n\nprocess.on('uncaughtException', function (err) {\n console.error(\n // eslint-disable-next-line max-len\n `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":";;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAIM,OAAO,CAACC,MAAM,IAAID,OAAO,CAACC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE;EAC5CC,kBAAY,CAACC,IAAI,CAACD,kBAAY,CAACE,KAAK,CAACC,SAAS,CAAC;AACjD;AAEA,IAAI,CAAC,IAAAC,qBAAc,EAACN,OAAO,CAACO,OAAO,CAAC,EAAE;EACpC,MAAM,IAAIC,KAAK,CACZ,wCAAuCC,uBAAiB,qCAAoCT,OAAO,CAACO,OAAQ;AACjH,6CACE,CAAC;AACH;AAEA,MAAM,CAACG,IAAI,EAAEC,GAAG,EAAE,GAAGC,IAAI,CAAC,GAAGZ,OAAO,CAACa,IAAI;AAEzC,MAAMC,GAAG,GAAG,IAAIC,cAAG,CAAC;EAClBC,WAAW,EAAG,WAAU;EACxBC,UAAU,EAAG,GAAEP,IAAK,IAAGC,GAAI,EAAC;EAC5BO,aAAa,EAAExB,OAAO,CAAC,iBAAiB,CAAC,CAACa;AAC5C,CAAC,CAAC;AAEFO,GAAG,CAACK,QAAQ,CAACC,iBAAW,CAAC;AACzBN,GAAG,CAACK,QAAQ,CAACE,iBAAW,CAAC;AACzBP,GAAG,CAACK,QAAQ,CAACG,uBAAc,CAAC;AAC5BR,GAAG,CAACS,OAAO,CAACX,IAAI,EAAEG,cAAG,CAACS,cAAc,CAAC;AAErCxB,OAAO,CAACyB,EAAE,CAAC,mBAAmB,EAAE,UAAUC,GAAG,EAAE;EAC7CC,OAAO,CAACC,KAAK;EACX;EACC,6FAA4FF,GAAG,CAACG,KAAM,EACzG,CAAC;EACD7B,OAAO,CAAC8B,IAAI,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"cli.js","names":["_clipanion","require","_core","_info","_init","_version","_utils","process","getuid","warningUtils","emit","Codes","VERWAR001","isVersionValid","version","Error","MIN_NODE_VERSION","node","app","args","argv","cli","Cli","binaryLabel","binaryName","binaryVersion","register","InfoCommand","InitCommand","VersionCommand","runExit","defaultContext","on","err","console","error","stack","exit"],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { warningUtils } from '@verdaccio/core';\n\nimport { InfoCommand } from './commands/info';\nimport { InitCommand } from './commands/init';\nimport { VersionCommand } from './commands/version';\nimport { MIN_NODE_VERSION, isVersionValid } from './utils';\n\nif (process.getuid && process.getuid() === 0) {\n warningUtils.emit(warningUtils.Codes.VERWAR001);\n}\n\nif (!isVersionValid(process.version)) {\n throw new Error(\n `Verdaccio requires at least Node.js v${MIN_NODE_VERSION} or higher and you have installed ${process.version}, \n please upgrade your Node.js distribution`\n );\n}\n\nconst [node, app, ...args] = process.argv;\n\nconst cli = new Cli({\n binaryLabel: `verdaccio`,\n binaryName: `${node} ${app}`,\n binaryVersion: require('../package.json').version,\n});\n\ncli.register(InfoCommand);\ncli.register(InitCommand);\ncli.register(VersionCommand);\ncli.runExit(args, Cli.defaultContext);\n\nprocess.on('uncaughtException', function (err) {\n console.error(\n // eslint-disable-next-line max-len\n `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":";;AAAA,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6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.InfoCommand = void 0;
7
7
  var _clipanion = require("clipanion");
8
8
  var _envinfo = _interopRequireDefault(require("envinfo"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  class InfoCommand extends _clipanion.Command {
11
11
  static paths = [[`--info`], [`-i`]];
12
12
  async execute() {
@@ -1 +1 @@
1
- {"version":3,"file":"info.js","names":["_clipanion","require","_envinfo","_interopRequireDefault","obj","__esModule","default","InfoCommand","Command","paths","execute","context","stdout","write","data","envinfo","run","System","Binaries","Virtualization","Browsers","npmGlobalPackages","process","exit","exports"],"sources":["../../src/commands/info.ts"],"sourcesContent":["import { Command } from 'clipanion';\nimport envinfo from 'envinfo';\n\nexport class InfoCommand extends Command {\n public static paths = [[`--info`], [`-i`]];\n\n public async execute(): Promise<void> {\n this.context.stdout.write('\\nEnvironment Info:');\n const data = await envinfo.run({\n System: ['OS', 'CPU'],\n Binaries: ['node', 'yarn', 'npm', 'pnpm'],\n Virtualization: ['Docker'],\n Browsers: ['Chrome', 'Edge', 'Firefox', 'Safari'],\n npmGlobalPackages: ['verdaccio'],\n });\n\n this.context.stdout.write(data);\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8B,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEvB,MAAMG,WAAW,SAASC,kBAAO,CAAC;EACvC,OAAcC,KAAK,GAAG,CAAC,CAAE,QAAO,CAAC,EAAE,CAAE,IAAG,CAAC,CAAC;EAE1C,MAAaC,OAAOA,CAAA,EAAkB;IACpC,IAAI,CAACC,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC,qBAAqB,CAAC;IAChD,MAAMC,IAAI,GAAG,MAAMC,gBAAO,CAACC,GAAG,CAAC;MAC7BC,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;MACrBC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;MACzCC,cAAc,EAAE,CAAC,QAAQ,CAAC;MAC1BC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;MACjDC,iBAAiB,EAAE,CAAC,WAAW;IACjC,CAAC,CAAC;IAEF,IAAI,CAACV,OAAO,CAACC,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC;IAC/BQ,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACjB;AACF;AAACC,OAAA,CAAAjB,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"info.js","names":["_clipanion","require","_envinfo","_interopRequireDefault","e","__esModule","default","InfoCommand","Command","paths","execute","context","stdout","write","data","envinfo","run","System","Binaries","Virtualization","Browsers","npmGlobalPackages","process","exit","exports"],"sources":["../../src/commands/info.ts"],"sourcesContent":["import { Command } from 'clipanion';\nimport envinfo from 'envinfo';\n\nexport class InfoCommand extends Command {\n public static paths = [[`--info`], [`-i`]];\n\n public async execute(): Promise<void> {\n this.context.stdout.write('\\nEnvironment Info:');\n const data = await envinfo.run({\n System: ['OS', 'CPU'],\n Binaries: ['node', 'yarn', 'npm', 'pnpm'],\n Virtualization: ['Docker'],\n Browsers: ['Chrome', 'Edge', 'Firefox', 'Safari'],\n npmGlobalPackages: ['verdaccio'],\n });\n\n this.context.stdout.write(data);\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8B,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvB,MAAMG,WAAW,SAASC,kBAAO,CAAC;EACvC,OAAcC,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;EAE1C,MAAaC,OAAOA,CAAA,EAAkB;IACpC,IAAI,CAACC,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC,qBAAqB,CAAC;IAChD,MAAMC,IAAI,GAAG,MAAMC,gBAAO,CAACC,GAAG,CAAC;MAC7BC,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;MACrBC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;MACzCC,cAAc,EAAE,CAAC,QAAQ,CAAC;MAC1BC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;MACjDC,iBAAiB,EAAE,CAAC,WAAW;IACjC,CAAC,CAAC;IAEF,IAAI,CAACV,OAAO,CAACC,MAAM,CAACC,KAAK,CAACC,IAAI,CAAC;IAC/BQ,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACjB;AACF;AAACC,OAAA,CAAAjB,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -46,9 +46,13 @@ class InitCommand extends _clipanion.Command {
46
46
  }
47
47
  async execute() {
48
48
  try {
49
+ var _configParsed$log;
49
50
  const configPathLocation = (0, _config.findConfigFile)(this.config);
50
51
  const configParsed = (0, _config.parseConfigFile)(configPathLocation);
51
52
  this.initLogger(configParsed);
53
+ _logger.logger.info({
54
+ file: configPathLocation
55
+ }, 'using config file: @{file}');
52
56
  const {
53
57
  web
54
58
  } = configParsed;
@@ -58,6 +62,10 @@ class InitCommand extends _clipanion.Command {
58
62
  name
59
63
  } = require('../../package.json');
60
64
  await (0, _nodeApi.initServer)(configParsed, this.port, version, name);
65
+ const logLevel = ((_configParsed$log = configParsed.log) === null || _configParsed$log === void 0 ? void 0 : _configParsed$log.level) || 'default';
66
+ _logger.logger.info({
67
+ logLevel
68
+ }, 'log level: @{logLevel}');
61
69
  _logger.logger.info('server started');
62
70
  } catch (err) {
63
71
  console.error(err);
@@ -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,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"}
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","_configParsed$log","configPathLocation","findConfigFile","configParsed","parseConfigFile","logger","info","file","web","process","title","version","name","initServer","logLevel","level","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 logger.info({ file: configPathLocation }, 'using config file: @{file}');\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\n const logLevel = configParsed.log?.level || 'default';\n logger.info({ logLevel }, 'log level: @{logLevel}');\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,G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G,IAAAC,uBAAe,EAACH,kBAAkB,CAAC;MACxD,IAAI,CAACX,UAAU,CAACa,YAAY,CAAC;MAC7BE,cAAM,CAACC,IAAI,CAAC;QAAEC,IAAI,EAAEN;MAAmB,CAAC,EAAE,4BAA4B,CAAC;MACvE,MAAM;QAAEO;MAAI,CAAC,GAAGL,YAAY;MAE5BM,OAAO,CAACC,KAAK,GAAG,CAAAF,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEE,KAAK,KAAInC,oBAAoB;MAElD,MAAM;QAAEoC,OAAO;QAAEC;MAAK,CAAC,GAAG1C,OAAO,CAAC,oBAAoB,CAAC;MAEvD,MAAM,IAAA2C,mBAAU,EAACV,YAAY,EAAE,IAAI,CAACtB,IAAI,EAAY8B,OAAO,EAAEC,IAAI,CAAC;MAElE,MAAME,QAAQ,GAAG,EAAAd,iBAAA,GAAAG,YAAY,CAACV,GAAG,cAAAO,iBAAA,uBAAhBA,iBAAA,CAAkBe,KAAK,KAAI,SAAS;MACrDV,cAAM,CAACC,IAAI,CAAC;QAAEQ;MAAS,CAAC,EAAE,wBAAwB,CAAC;MACnDT,cAAM,CAACC,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC,CAAC,OAAOU,GAAQ,EAAE;MACjBC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC;MAClBP,OAAO,CAACU,IAAI,CAAC,CAAC,CAAC;IACjB;EACF;AACF;AAAC3C,OAAA,CAAAC,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":["_clipanion","require","VersionCommand","Command","paths","execute","version","context","stdout","write","process","exit","exports"],"sources":["../../src/commands/version.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-member-accessibility */\nimport { Command } from 'clipanion';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const version = require('../../package.json').version;\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AADA;;AAGO,MAAMC,cAAc,SAASC,kBAAO,CAAC;EAC1C,OAAOC,KAAK,GAAG,CAAC,CAAE,WAAU,CAAC,EAAE,CAAE,IAAG,CAAC,CAAC;EAEtC,MAAMC,OAAOA,CAAA,EAAG;IACd,MAAMC,OAAO,GAAGL,OAAO,CAAC,oBAAoB,CAAC,CAACK,OAAO;IACrD,IAAI,CAACC,OAAO,CAACC,MAAM,CAACC,KAAK,CAAE,IAAGH,OAAQ,IAAG,CAAC;IAC1CI,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACjB;AACF;AAACC,OAAA,CAAAV,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"version.js","names":["_clipanion","require","VersionCommand","Command","paths","execute","version","context","stdout","write","process","exit","exports"],"sources":["../../src/commands/version.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-member-accessibility */\nimport { Command } from 'clipanion';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const version = require('../../package.json').version;\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AADA;;AAGO,MAAMC,cAAc,SAASC,kBAAO,CAAC;EAC1C,OAAOC,KAAK,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;EAEtC,MAAMC,OAAOA,CAAA,EAAG;IACd,MAAMC,OAAO,GAAGL,OAAO,CAAC,oBAAoB,CAAC,CAACK,OAAO;IACrD,IAAI,CAACC,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC,IAAIH,OAAO,IAAI,CAAC;IAC1CI,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;EACjB;AACF;AAACC,OAAA,CAAAV,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["require"],"sources":["../src/index.ts"],"sourcesContent":["require('./cli');\n"],"mappings":";;AAAAA,OAAO,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","names":["require"],"sources":["../src/index.ts"],"sourcesContent":["require('./cli');\n"],"mappings":";;AAAAA,OAAO,CAAC,OAAO,CAAC","ignoreList":[]}
package/build/utils.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.MIN_NODE_VERSION = void 0;
7
7
  exports.isVersionValid = isVersionValid;
8
8
  var _semver = _interopRequireDefault(require("semver"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  const MIN_NODE_VERSION = exports.MIN_NODE_VERSION = '14.0.0';
11
11
  function isVersionValid(processVersion) {
12
12
  const version = processVersion.slice(1);
@@ -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,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"}
1
+ {"version":3,"file":"utils.js","names":["_semver","_interopRequireDefault","require","e","__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,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;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,EAAE,KAAKJ,gBAAgB,EAAE,CAAC;AAC3D","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/cli",
3
- "version": "7.0.0-next.6",
3
+ "version": "8.0.0-next-8.1",
4
4
  "author": {
5
5
  "name": "Juan Picado",
6
6
  "email": "juanpicado19@gmail.com"
@@ -33,14 +33,14 @@
33
33
  "main": "./build/index.js",
34
34
  "types": "build/index.d.ts",
35
35
  "dependencies": {
36
- "@verdaccio/core": "7.0.0-next.6",
37
- "@verdaccio/config": "7.0.0-next.6",
38
- "@verdaccio/logger": "7.0.0-next.6",
39
- "@verdaccio/node-api": "7.0.0-next.6",
40
- "clipanion": "3.2.1",
41
- "envinfo": "7.11.0",
36
+ "@verdaccio/config": "8.0.0-next-8.1",
37
+ "@verdaccio/core": "8.0.0-next-8.1",
38
+ "@verdaccio/logger": "8.0.0-next-8.1",
39
+ "@verdaccio/node-api": "8.0.0-next-8.1",
40
+ "clipanion": "4.0.0-rc.3",
41
+ "envinfo": "7.13.0",
42
42
  "kleur": "4.1.5",
43
- "semver": "7.5.4"
43
+ "semver": "7.6.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "ts-node": "10.9.2"
@@ -58,6 +58,7 @@ export class InitCommand extends Command {
58
58
  const configPathLocation = findConfigFile(this.config as string);
59
59
  const configParsed = parseConfigFile(configPathLocation);
60
60
  this.initLogger(configParsed);
61
+ logger.info({ file: configPathLocation }, 'using config file: @{file}');
61
62
  const { web } = configParsed;
62
63
 
63
64
  process.title = web?.title || DEFAULT_PROCESS_NAME;
@@ -65,6 +66,9 @@ export class InitCommand extends Command {
65
66
  const { version, name } = require('../../package.json');
66
67
 
67
68
  await initServer(configParsed, this.port as string, version, name);
69
+
70
+ const logLevel = configParsed.log?.level || 'default';
71
+ logger.info({ logLevel }, 'log level: @{logLevel}');
68
72
  logger.info('server started');
69
73
  } catch (err: any) {
70
74
  console.error(err);