@verdaccio/cli 9.0.0-next-9.17 → 9.0.0-next-9.18
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/build/cli.js +0 -1
- package/build/cli.js.map +1 -1
- package/build/cli.mjs.map +1 -1
- package/build/commands/info.js.map +1 -1
- package/build/commands/info.mjs.map +1 -1
- package/build/commands/init.js.map +1 -1
- package/build/commands/init.mjs.map +1 -1
- package/build/commands/version.js +0 -1
- package/build/commands/version.js.map +1 -1
- package/build/commands/version.mjs.map +1 -1
- package/build/utils.js.map +1 -1
- package/build/utils.mjs.map +1 -1
- package/package.json +9 -9
package/build/cli.js
CHANGED
package/build/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { pkgUtils, 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: pkgUtils.getPackageJson(\n typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname,\n '..'\n ).version as string,\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 `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { pkgUtils, 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: pkgUtils.getPackageJson(\n typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname,\n '..'\n ).version as string,\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 `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":";;;;;;;AASA,IAAI,QAAQ,UAAU,QAAQ,OAAO,MAAM,GACzC,gBAAA,aAAa,KAAK,gBAAA,aAAa,MAAM,SAAS;AAGhD,IAAI,CAAC,cAAA,eAAe,QAAQ,OAAO,GACjC,MAAM,IAAI,MACR,wCAAwC,cAAA,iBAAiB,oCAAoC,QAAQ,QAAQ;6CAE/G;AAGF,IAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,QAAQ;AAErC,IAAM,MAAM,IAAI,UAAA,IAAI;CAClB,aAAa;CACb,YAAY,GAAG,KAAK,GAAG;CACvB,eAAe,gBAAA,SAAS,eACtB,OAAO,cAAc,cAAc,YAAA,CAAA,EAAwB,SAC3D,IACF,EAAE;AACJ,CAAC;AAED,IAAI,SAAS,aAAA,WAAW;AACxB,IAAI,SAAS,aAAA,WAAW;AACxB,IAAI,SAAS,gBAAA,cAAc;AAC3B,IAAI,QAAQ,MAAM,UAAA,IAAI,cAAc;AAEpC,QAAQ,GAAG,qBAAqB,SAAU,KAAK;CAC7C,QAAQ,MACN,6FAA6F,IAAI,OACnG;CACA,QAAQ,KAAK,CAAC;AAChB,CAAC"}
|
package/build/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { pkgUtils, 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: pkgUtils.getPackageJson(\n typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname,\n '..'\n ).version as string,\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 `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":";;;;;;;AASA,IAAI,QAAQ,UAAU,QAAQ,
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/cli.ts"],"sourcesContent":["import { Cli } from 'clipanion';\n\nimport { pkgUtils, 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: pkgUtils.getPackageJson(\n typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname,\n '..'\n ).version as string,\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 `uncaught exception, please report (https://github.com/verdaccio/verdaccio/issues) this: \\n${err.stack}`\n );\n process.exit(1);\n});\n"],"mappings":";;;;;;;AASA,IAAI,QAAQ,UAAU,QAAQ,OAAO,MAAM,GACzC,aAAa,KAAK,aAAa,MAAM,SAAS;AAGhD,IAAI,CAAC,eAAe,QAAQ,OAAO,GACjC,MAAM,IAAI,MACR,wCAAwC,iBAAiB,oCAAoC,QAAQ,QAAQ;6CAE/G;AAGF,IAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,QAAQ;AAErC,IAAM,MAAM,IAAI,IAAI;CAClB,aAAa;CACb,YAAY,GAAG,KAAK,GAAG;CACvB,eAAe,SAAS,eACtB,OAAO,cAAc,cAAc,YAAY,OAAO,KAAK,SAC3D,IACF,EAAE;AACJ,CAAC;AAED,IAAI,SAAS,WAAW;AACxB,IAAI,SAAS,WAAW;AACxB,IAAI,SAAS,cAAc;AAC3B,IAAI,QAAQ,MAAM,IAAI,cAAc;AAEpC,QAAQ,GAAG,qBAAqB,SAAU,KAAK;CAC7C,QAAQ,MACN,6FAA6F,IAAI,OACnG;CACA,QAAQ,KAAK,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","names":[],"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":";;;;;AAGA,IAAa,cAAb,cAAiC,UAAA,QAAQ;CACvC,OAAc,QAAQ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"info.js","names":[],"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":";;;;;AAGA,IAAa,cAAb,cAAiC,UAAA,QAAQ;CACvC,OAAc,QAAQ,CAAC,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC;CAEzC,MAAa,UAAyB;EACpC,KAAK,QAAQ,OAAO,MAAM,qBAAqB;EAC/C,MAAM,OAAO,MAAM,QAAA,QAAQ,IAAI;GAC7B,QAAQ,CAAC,MAAM,KAAK;GACpB,UAAU;IAAC;IAAQ;IAAQ;IAAO;GAAM;GACxC,gBAAgB,CAAC,QAAQ;GACzB,UAAU;IAAC;IAAU;IAAQ;IAAW;GAAQ;GAChD,mBAAmB,CAAC,WAAW;EACjC,CAAC;EAED,KAAK,QAAQ,OAAO,MAAM,IAAI;EAC9B,QAAQ,KAAK,CAAC;CAChB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.mjs","names":[],"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":";;;AAGA,IAAa,cAAb,cAAiC,QAAQ;CACvC,OAAc,QAAQ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"info.mjs","names":[],"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":";;;AAGA,IAAa,cAAb,cAAiC,QAAQ;CACvC,OAAc,QAAQ,CAAC,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC;CAEzC,MAAa,UAAyB;EACpC,KAAK,QAAQ,OAAO,MAAM,qBAAqB;EAC/C,MAAM,OAAO,MAAM,QAAQ,IAAI;GAC7B,QAAQ,CAAC,MAAM,KAAK;GACpB,UAAU;IAAC;IAAQ;IAAQ;IAAO;GAAM;GACxC,gBAAgB,CAAC,QAAQ;GACzB,UAAU;IAAC;IAAU;IAAQ;IAAW;GAAQ;GAChD,mBAAmB,CAAC,WAAW;EACjC,CAAC;EAED,KAAK,QAAQ,OAAO,MAAM,IAAI;EAC9B,QAAQ,KAAK,CAAC;CAChB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","names":[],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { pkgUtils, warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport startServer from '@verdaccio/server';\nimport type { 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 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 async initLogger(logConfig: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n await 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 await 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 currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version, name } = pkgUtils.getPackageJson(currentDir, '../..');\n\n await initServer(\n configParsed,\n this.port as string,\n version as string,\n name as string,\n startServer\n );\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":";;;;;;;;AAWA,IAAa,cAAb,cAAiC,UAAA,QAAQ;CACvC,OAAc,QAAQ,CAAC,UAAA,QAAQ,
|
|
1
|
+
{"version":3,"file":"init.js","names":[],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { pkgUtils, warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport startServer from '@verdaccio/server';\nimport type { 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 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 async initLogger(logConfig: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n await 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 await 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 currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version, name } = pkgUtils.getPackageJson(currentDir, '../..');\n\n await initServer(\n configParsed,\n this.port as string,\n version as string,\n name as string,\n startServer\n );\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":";;;;;;;;AAWA,IAAa,cAAb,cAAiC,UAAA,QAAQ;CACvC,OAAc,QAAQ,CAAC,UAAA,QAAQ,OAAO;CAEtC,OAAe,UAAA,OAAO,OAAO,yBAAyB,EACpD,aAAa,0DACf,CAAC;CAED,OAAO,QAAQ,UAAA,QAAQ,MAAM;EAC3B,aAAa;EACb,SAAS;;;;;;;;;;;;;EAaT,UAAU;GACR,CAAC,kDAAkD,WAAW;GAC9D,CAAC,oCAAoC,yBAAyB;GAC9D,CACE,oFACA,qDACF;EACF;CACF,CAAC;CAED,SAAiB,UAAA,OAAO,OAAO,eAAe,EAC5C,aAAa,uDACf,CAAC;CAED,MAAc,WAAW,WAAuB;EAC9C,IAAI,UAAU,MAAM;GAClB,UAAU,MAAM,UAAU;GAC1B,gBAAA,aAAa,KAAK,gBAAA,aAAa,MAAM,SAAS;EAChD;EACA,OAAA,GAAA,kBAAA,OAAY,UAAU,GAAuB;CAC/C;CAEA,MAAa,UAAU;EACrB,IAAI;GACF,MAAM,sBAAA,GAAA,kBAAA,gBAAoC,KAAK,MAAgB;GAC/D,MAAM,gBAAA,GAAA,kBAAA,iBAA+B,kBAAkB;GACvD,MAAM,KAAK,WAAW,YAAY;GAClC,kBAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,GAAG,4BAA4B;GACtE,MAAM,EAAE,QAAQ;GAEhB,QAAQ,QAAQ,KAAK,SAAA;GAErB,MAAM,aAAa,OAAO,cAAc,cAAc,YAAA,CAAA,EAAwB;GAC9E,MAAM,EAAE,SAAS,SAAS,gBAAA,SAAS,eAAe,YAAY,OAAO;GAErE,OAAA,GAAA,oBAAA,YACE,cACA,KAAK,MACL,SACA,MACA,kBAAA,OACF;GAEA,MAAM,WAAW,aAAa,KAAK,SAAS;GAC5C,kBAAA,OAAO,KAAK,EAAE,SAAS,GAAG,wBAAwB;GAClD,kBAAA,OAAO,KAAK,gBAAgB;EAC9B,SAAS,KAAU;GACjB,QAAQ,MAAM,GAAG;GACjB,QAAQ,KAAK,CAAC;EAChB;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.mjs","names":[],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { pkgUtils, warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport startServer from '@verdaccio/server';\nimport type { 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 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 async initLogger(logConfig: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n await 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 await 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 currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version, name } = pkgUtils.getPackageJson(currentDir, '../..');\n\n await initServer(\n configParsed,\n this.port as string,\n version as string,\n name as string,\n startServer\n );\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":";;;;;;AAWA,IAAa,cAAb,cAAiC,QAAQ;CACvC,OAAc,QAAQ,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"init.mjs","names":[],"sources":["../../src/commands/init.ts"],"sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { pkgUtils, warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport startServer from '@verdaccio/server';\nimport type { 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 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 async initLogger(logConfig: ConfigYaml) {\n if (logConfig.logs) {\n logConfig.log = logConfig.logs;\n warningUtils.emit(warningUtils.Codes.VERWAR002);\n }\n await 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 await 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 currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version, name } = pkgUtils.getPackageJson(currentDir, '../..');\n\n await initServer(\n configParsed,\n this.port as string,\n version as string,\n name as string,\n startServer\n );\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":";;;;;;AAWA,IAAa,cAAb,cAAiC,QAAQ;CACvC,OAAc,QAAQ,CAAC,QAAQ,OAAO;CAEtC,OAAe,OAAO,OAAO,yBAAyB,EACpD,aAAa,0DACf,CAAC;CAED,OAAO,QAAQ,QAAQ,MAAM;EAC3B,aAAa;EACb,SAAS;;;;;;;;;;;;;EAaT,UAAU;GACR,CAAC,kDAAkD,WAAW;GAC9D,CAAC,oCAAoC,yBAAyB;GAC9D,CACE,oFACA,qDACF;EACF;CACF,CAAC;CAED,SAAiB,OAAO,OAAO,eAAe,EAC5C,aAAa,uDACf,CAAC;CAED,MAAc,WAAW,WAAuB;EAC9C,IAAI,UAAU,MAAM;GAClB,UAAU,MAAM,UAAU;GAC1B,aAAa,KAAK,aAAa,MAAM,SAAS;EAChD;EACA,MAAM,MAAM,UAAU,GAAuB;CAC/C;CAEA,MAAa,UAAU;EACrB,IAAI;GACF,MAAM,qBAAqB,eAAe,KAAK,MAAgB;GAC/D,MAAM,eAAe,gBAAgB,kBAAkB;GACvD,MAAM,KAAK,WAAW,YAAY;GAClC,OAAO,KAAK,EAAE,MAAM,mBAAmB,GAAG,4BAA4B;GACtE,MAAM,EAAE,QAAQ;GAEhB,QAAQ,QAAQ,KAAK,SAAA;GAErB,MAAM,aAAa,OAAO,cAAc,cAAc,YAAY,OAAO,KAAK;GAC9E,MAAM,EAAE,SAAS,SAAS,SAAS,eAAe,YAAY,OAAO;GAErE,MAAM,WACJ,cACA,KAAK,MACL,SACA,MACA,WACF;GAEA,MAAM,WAAW,aAAa,KAAK,SAAS;GAC5C,OAAO,KAAK,EAAE,SAAS,GAAG,wBAAwB;GAClD,OAAO,KAAK,gBAAgB;EAC9B,SAAS,KAAU;GACjB,QAAQ,MAAM,GAAG;GACjB,QAAQ,KAAK,CAAC;EAChB;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../src/commands/version.ts"],"sourcesContent":["import { Command } from 'clipanion';\n\nimport { pkgUtils } from '@verdaccio/core';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version } = pkgUtils.getPackageJson(currentDir, '../..');\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../src/commands/version.ts"],"sourcesContent":["import { Command } from 'clipanion';\n\nimport { pkgUtils } from '@verdaccio/core';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version } = pkgUtils.getPackageJson(currentDir, '../..');\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":";;;AAIA,IAAa,iBAAb,cAAoC,UAAA,QAAQ;CAC1C,OAAO,QAAQ,CAAC,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC;CAErC,MAAM,UAAU;EACd,MAAM,aAAa,OAAO,cAAc,cAAc,YAAA,CAAA,EAAwB;EAC9E,MAAM,EAAE,YAAY,gBAAA,SAAS,eAAe,YAAY,OAAO;EAC/D,KAAK,QAAQ,OAAO,MAAM,IAAI,QAAQ,GAAG;EACzC,QAAQ,KAAK,CAAC;CAChB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","names":[],"sources":["../../src/commands/version.ts"],"sourcesContent":["import { Command } from 'clipanion';\n\nimport { pkgUtils } from '@verdaccio/core';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version } = pkgUtils.getPackageJson(currentDir, '../..');\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":";;;AAIA,IAAa,iBAAb,cAAoC,QAAQ;CAC1C,OAAO,QAAQ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"version.mjs","names":[],"sources":["../../src/commands/version.ts"],"sourcesContent":["import { Command } from 'clipanion';\n\nimport { pkgUtils } from '@verdaccio/core';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const currentDir = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;\n const { version } = pkgUtils.getPackageJson(currentDir, '../..');\n this.context.stdout.write(`v${version}\\n`);\n process.exit(0);\n }\n}\n"],"mappings":";;;AAIA,IAAa,iBAAb,cAAoC,QAAQ;CAC1C,OAAO,QAAQ,CAAC,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC;CAErC,MAAM,UAAU;EACd,MAAM,aAAa,OAAO,cAAc,cAAc,YAAY,OAAO,KAAK;EAC9E,MAAM,EAAE,YAAY,SAAS,eAAe,YAAY,OAAO;EAC/D,KAAK,QAAQ,OAAO,MAAM,IAAI,QAAQ,GAAG;EACzC,QAAQ,KAAK,CAAC;CAChB;AACF"}
|
package/build/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import semver from 'semver';\n\nexport const MIN_NODE_VERSION = '24.0.0';\n\nexport function isVersionValid(processVersion) {\n const version = processVersion.slice(1);\n return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);\n}\n"],"mappings":";;;;AAEA,IAAa,mBAAmB;AAEhC,SAAgB,eAAe,gBAAgB;CAC7C,MAAM,UAAU,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import semver from 'semver';\n\nexport const MIN_NODE_VERSION = '24.0.0';\n\nexport function isVersionValid(processVersion) {\n const version = processVersion.slice(1);\n return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);\n}\n"],"mappings":";;;;AAEA,IAAa,mBAAmB;AAEhC,SAAgB,eAAe,gBAAgB;CAC7C,MAAM,UAAU,eAAe,MAAM,CAAC;CACtC,OAAO,OAAA,QAAO,UAAU,SAAS,KAAK,kBAAkB;AAC1D"}
|
package/build/utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import semver from 'semver';\n\nexport const MIN_NODE_VERSION = '24.0.0';\n\nexport function isVersionValid(processVersion) {\n const version = processVersion.slice(1);\n return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);\n}\n"],"mappings":";;AAEA,IAAa,mBAAmB;AAEhC,SAAgB,eAAe,gBAAgB;CAC7C,MAAM,UAAU,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.mjs","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import semver from 'semver';\n\nexport const MIN_NODE_VERSION = '24.0.0';\n\nexport function isVersionValid(processVersion) {\n const version = processVersion.slice(1);\n return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);\n}\n"],"mappings":";;AAEA,IAAa,mBAAmB;AAEhC,SAAgB,eAAe,gBAAgB;CAC7C,MAAM,UAAU,eAAe,MAAM,CAAC;CACtC,OAAO,OAAO,UAAU,SAAS,KAAK,kBAAkB;AAC1D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/cli",
|
|
3
|
-
"version": "9.0.0-next-9.
|
|
3
|
+
"version": "9.0.0-next-9.18",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Juan Picado",
|
|
6
6
|
"email": "juanpicado19@gmail.com"
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"main": "./build/index.js",
|
|
38
38
|
"types": "build/index.d.ts",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@verdaccio/config": "9.0.0-next-9.
|
|
41
|
-
"@verdaccio/core": "9.0.0-next-9.
|
|
42
|
-
"@verdaccio/logger": "9.0.0-next-9.
|
|
43
|
-
"@verdaccio/node-api": "9.0.0-next-9.
|
|
44
|
-
"@verdaccio/server": "9.0.0-next-9.
|
|
40
|
+
"@verdaccio/config": "9.0.0-next-9.18",
|
|
41
|
+
"@verdaccio/core": "9.0.0-next-9.18",
|
|
42
|
+
"@verdaccio/logger": "9.0.0-next-9.18",
|
|
43
|
+
"@verdaccio/node-api": "9.0.0-next-9.18",
|
|
44
|
+
"@verdaccio/server": "9.0.0-next-9.18",
|
|
45
45
|
"clipanion": "4.0.0-rc.4",
|
|
46
46
|
"envinfo": "7.19.0",
|
|
47
|
-
"semver": "7.
|
|
47
|
+
"semver": "7.8.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@verdaccio/types": "14.0.0-next-9.
|
|
50
|
+
"@verdaccio/types": "14.0.0-next-9.9",
|
|
51
51
|
"ts-node": "10.9.2",
|
|
52
|
-
"vitest": "4.1.
|
|
52
|
+
"vitest": "4.1.7"
|
|
53
53
|
},
|
|
54
54
|
"funding": {
|
|
55
55
|
"type": "opencollective",
|