@verdaccio/cli 7.0.0-next.5 → 8.0.0-next-8.0

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,203 @@
1
1
  # @verdaccio/cli
2
2
 
3
+ ## 8.0.0-next-8.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @verdaccio/logger@8.0.0-next-8.0
9
+ - @verdaccio/core@8.0.0-next-8.0
10
+ - @verdaccio/node-api@8.0.0-next-8.0
11
+ - @verdaccio/config@8.0.0-next-8.0
12
+
13
+ ## 7.0.0
14
+
15
+ ### Major Changes
16
+
17
+ - 47f61c6: feat!: bump to v7
18
+ - e7ebccb: update major dependencies, remove old nodejs support
19
+
20
+ ### Patch Changes
21
+
22
+ - 199aea3: chore: add config location and loglevel to startup log
23
+ - 10dd81f: feat: complete overhaul of web user interface
24
+ - 7c9f3cf: chore: improve startup logging
25
+ - Updated dependencies [47f61c6]
26
+ - Updated dependencies [10dd81f]
27
+ - Updated dependencies [6e764e3]
28
+ - Updated dependencies [8c10a3e]
29
+ - Updated dependencies [daceb6d]
30
+ - Updated dependencies [e7ebccb]
31
+ - Updated dependencies [c9962fe]
32
+ - Updated dependencies [f047cc8]
33
+ - Updated dependencies [a99a4bb]
34
+ - Updated dependencies [a05a7d8]
35
+ - Updated dependencies [7c9f3cf]
36
+ - Updated dependencies [c31aec8]
37
+ - Updated dependencies [bd8703e]
38
+ - Updated dependencies [4d96324]
39
+ - @verdaccio/config@7.0.0
40
+ - @verdaccio/core@7.0.0
41
+ - @verdaccio/logger@7.0.0
42
+ - @verdaccio/node-api@7.0.0
43
+
44
+ ## 7.0.0-next-8.21
45
+
46
+ ### Patch Changes
47
+
48
+ - 7c9f3cf: chore: improve startup logging
49
+ - Updated dependencies [8c10a3e]
50
+ - Updated dependencies [a05a7d8]
51
+ - Updated dependencies [7c9f3cf]
52
+ - @verdaccio/config@7.0.0-next-8.21
53
+ - @verdaccio/core@7.0.0-next-8.21
54
+ - @verdaccio/node-api@7.0.0-next-8.21
55
+ - @verdaccio/logger@7.0.0-next-8.21
56
+
57
+ ## 7.0.0-next-7.20
58
+
59
+ ### Patch Changes
60
+
61
+ - @verdaccio/node-api@7.0.0-next-7.20
62
+ - @verdaccio/core@7.0.0-next-7.20
63
+ - @verdaccio/config@7.0.0-next-7.20
64
+ - @verdaccio/logger@7.0.0-next-7.20
65
+
66
+ ## 7.0.0-next-7.19
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [c31aec8]
71
+ - @verdaccio/config@7.0.0-next-7.19
72
+ - @verdaccio/node-api@7.0.0-next-7.19
73
+ - @verdaccio/core@7.0.0-next-7.19
74
+ - @verdaccio/logger@7.0.0-next-7.19
75
+
76
+ ## 7.0.0-next-7.18
77
+
78
+ ### Patch Changes
79
+
80
+ - 10dd81f: feat: complete overhaul of web user interface
81
+ - Updated dependencies [10dd81f]
82
+ - @verdaccio/config@7.0.0-next-7.18
83
+ - @verdaccio/core@7.0.0-next-7.18
84
+ - @verdaccio/logger@7.0.0-next-7.18
85
+ - @verdaccio/node-api@7.0.0-next-7.18
86
+
87
+ ## 7.0.0-next-7.17
88
+
89
+ ### Patch Changes
90
+
91
+ - 199aea3: chore: add config location and loglevel to startup log
92
+ - Updated dependencies [6e764e3]
93
+ - @verdaccio/config@7.0.0-next-7.17
94
+ - @verdaccio/core@7.0.0-next-7.17
95
+ - @verdaccio/logger@7.0.0-next-7.17
96
+ - @verdaccio/node-api@7.0.0-next-7.17
97
+
98
+ ## 7.0.0-next-7.16
99
+
100
+ ### Patch Changes
101
+
102
+ - @verdaccio/logger@7.0.0-next-7.16
103
+ - @verdaccio/node-api@7.0.0-next-7.16
104
+ - @verdaccio/core@7.0.0-next-7.16
105
+ - @verdaccio/config@7.0.0-next-7.16
106
+
107
+ ## 7.0.0-next-7.15
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [bd8703e]
112
+ - @verdaccio/core@7.0.0-next-7.15
113
+ - @verdaccio/node-api@7.0.0-next-7.15
114
+ - @verdaccio/config@7.0.0-next-7.15
115
+ - @verdaccio/logger@7.0.0-next-7.15
116
+
117
+ ## 7.0.0-next-7.14
118
+
119
+ ### Patch Changes
120
+
121
+ - @verdaccio/node-api@7.0.0-next-7.14
122
+ - @verdaccio/core@7.0.0-next-7.14
123
+ - @verdaccio/config@7.0.0-next-7.14
124
+ - @verdaccio/logger@7.0.0-next-7.14
125
+
126
+ ## 7.0.0-next-7.13
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [a99a4bb]
131
+ - @verdaccio/config@7.0.0-next-7.13
132
+ - @verdaccio/node-api@7.0.0-next-7.13
133
+ - @verdaccio/logger@7.0.0-next-7.13
134
+ - @verdaccio/core@7.0.0-next-7.13
135
+
136
+ ## 7.0.0-next-7.12
137
+
138
+ ### Patch Changes
139
+
140
+ - @verdaccio/node-api@7.0.0-next-7.12
141
+ - @verdaccio/core@7.0.0-next-7.12
142
+ - @verdaccio/config@7.0.0-next-7.12
143
+ - @verdaccio/logger@7.0.0-next-7.12
144
+
145
+ ## 7.0.0-next-7.11
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [c9962fe]
150
+ - @verdaccio/config@7.0.0-next-7.11
151
+ - @verdaccio/node-api@7.0.0-next-7.11
152
+ - @verdaccio/core@7.0.0-next-7.11
153
+ - @verdaccio/logger@7.0.0-next-7.11
154
+
155
+ ## 7.0.0-next-7.10
156
+
157
+ ### Patch Changes
158
+
159
+ - @verdaccio/core@7.0.0-next-7.10
160
+ - @verdaccio/config@7.0.0-next-7.10
161
+ - @verdaccio/node-api@7.0.0-next-7.10
162
+ - @verdaccio/logger@7.0.0-next-7.10
163
+
164
+ ## 7.0.0-next-7.9
165
+
166
+ ### Patch Changes
167
+
168
+ - @verdaccio/node-api@7.0.0-next-7.9
169
+ - @verdaccio/core@7.0.0-next-7.9
170
+ - @verdaccio/config@7.0.0-next-7.9
171
+ - @verdaccio/logger@7.0.0-next-7.9
172
+
173
+ ## 7.0.0-next-7.8
174
+
175
+ ### Patch Changes
176
+
177
+ - @verdaccio/node-api@7.0.0-next-7.8
178
+ - @verdaccio/core@7.0.0-next-7.8
179
+ - @verdaccio/config@7.0.0-next-7.8
180
+ - @verdaccio/logger@7.0.0-next-7.8
181
+
182
+ ## 7.0.0-next-7.7
183
+
184
+ ### Patch Changes
185
+
186
+ - @verdaccio/core@7.0.0-next-7.7
187
+ - @verdaccio/config@7.0.0-next-7.7
188
+ - @verdaccio/node-api@7.0.0-next-7.7
189
+ - @verdaccio/logger@7.0.0-next-7.7
190
+
191
+ ## 7.0.0-next.6
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [4d96324]
196
+ - @verdaccio/config@7.0.0-next.6
197
+ - @verdaccio/node-api@7.0.0-next.6
198
+ - @verdaccio/core@7.0.0-next.6
199
+ - @verdaccio/logger@7.0.0-next.6
200
+
3
201
  ## 7.0.0-next.5
4
202
 
5
203
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Verdaccio contributors
3
+ Copyright (c) 2024 Verdaccio contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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,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,CACb,wCAAwCC,uBAAgB,qCAAqCT,OAAO,CAACO,OAAO;AAChH,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,EAAE,WAAW;EACxBC,UAAU,EAAE,GAAGP,IAAI,IAAIC,GAAG,EAAE;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;EACA,6FAA6FF,GAAG,CAACG,KAAK,EACxG,CAAC;EACD7B,OAAO,CAAC8B,IAAI,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC","ignoreList":[]}
@@ -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,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,EAAE,mBAAmB;IAChCG,OAAO,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,QAAQ,EAAE,CACR,CAAC,gDAAgD,EAAE,WAAW,CAAC,EAC/D,CAAC,kCAAkC,EAAE,yBAAyB,CAAC,EAC/D,CACE,kFAAkF,EAClF,qDAAqD,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;MAAA,IAAAC,iBAAA;MACF,MAAMC,kBAAkB,GAAG,IAAAC,sBAAc,EAAC,IAAI,CAACb,MAAgB,CAAC;MAChE,MAAMc,YAAY,GAAG,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.5",
3
+ "version": "8.0.0-next-8.0",
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.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
- "clipanion": "3.2.1",
41
- "envinfo": "7.11.0",
36
+ "@verdaccio/config": "8.0.0-next-8.0",
37
+ "@verdaccio/core": "8.0.0-next-8.0",
38
+ "@verdaccio/logger": "8.0.0-next-8.0",
39
+ "@verdaccio/node-api": "8.0.0-next-8.0",
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);