@verdaccio/core 8.1.4 → 8.2.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.
Files changed (78) hide show
  1. package/build/_virtual/_rolldown/runtime.js +33 -0
  2. package/build/_virtual/_rolldown/runtime.mjs +13 -0
  3. package/build/auth-utils.d.ts +0 -1
  4. package/build/auth-utils.js +23 -25
  5. package/build/auth-utils.js.map +1 -1
  6. package/build/auth-utils.mjs +32 -0
  7. package/build/auth-utils.mjs.map +1 -0
  8. package/build/constants.js +201 -157
  9. package/build/constants.js.map +1 -1
  10. package/build/constants.mjs +185 -0
  11. package/build/constants.mjs.map +1 -0
  12. package/build/crypto-utils.d.ts +0 -2
  13. package/build/crypto-utils.js +33 -29
  14. package/build/crypto-utils.js.map +1 -1
  15. package/build/crypto-utils.mjs +40 -0
  16. package/build/crypto-utils.mjs.map +1 -0
  17. package/build/error-utils.js +92 -80
  18. package/build/error-utils.js.map +1 -1
  19. package/build/error-utils.mjs +107 -0
  20. package/build/error-utils.mjs.map +1 -0
  21. package/build/file-utils.js +35 -31
  22. package/build/file-utils.js.map +1 -1
  23. package/build/file-utils.mjs +35 -0
  24. package/build/file-utils.mjs.map +1 -0
  25. package/build/index.d.ts +2 -1
  26. package/build/index.js +125 -185
  27. package/build/index.mjs +15 -0
  28. package/build/ip-utils.js +52 -69
  29. package/build/ip-utils.js.map +1 -1
  30. package/build/ip-utils.mjs +60 -0
  31. package/build/ip-utils.mjs.map +1 -0
  32. package/build/pkg-utils.js +60 -76
  33. package/build/pkg-utils.js.map +1 -1
  34. package/build/pkg-utils.mjs +69 -0
  35. package/build/pkg-utils.mjs.map +1 -0
  36. package/build/plugin-utils.d.ts +0 -1
  37. package/build/plugin-utils.js +27 -78
  38. package/build/plugin-utils.js.map +1 -1
  39. package/build/plugin-utils.mjs +26 -0
  40. package/build/plugin-utils.mjs.map +1 -0
  41. package/build/schemes/publish-manifest.js +33 -43
  42. package/build/schemes/publish-manifest.js.map +1 -1
  43. package/build/schemes/publish-manifest.mjs +36 -0
  44. package/build/schemes/publish-manifest.mjs.map +1 -0
  45. package/build/schemes/unpublish-manifest.js +51 -72
  46. package/build/schemes/unpublish-manifest.js.map +1 -1
  47. package/build/schemes/unpublish-manifest.mjs +54 -0
  48. package/build/schemes/unpublish-manifest.mjs.map +1 -0
  49. package/build/search-utils.js +9 -9
  50. package/build/search-utils.js.map +1 -1
  51. package/build/search-utils.mjs +8 -0
  52. package/build/search-utils.mjs.map +1 -0
  53. package/build/stream-utils.d.ts +0 -1
  54. package/build/stream-utils.js +29 -28
  55. package/build/stream-utils.js.map +1 -1
  56. package/build/stream-utils.mjs +30 -0
  57. package/build/stream-utils.mjs.map +1 -0
  58. package/build/string-utils.js +31 -34
  59. package/build/string-utils.js.map +1 -1
  60. package/build/string-utils.mjs +31 -0
  61. package/build/string-utils.mjs.map +1 -0
  62. package/build/tarball-utils.js +40 -39
  63. package/build/tarball-utils.js.map +1 -1
  64. package/build/tarball-utils.mjs +46 -0
  65. package/build/tarball-utils.mjs.map +1 -0
  66. package/build/validation-utils.js +78 -112
  67. package/build/validation-utils.js.map +1 -1
  68. package/build/validation-utils.mjs +91 -0
  69. package/build/validation-utils.mjs.map +1 -0
  70. package/build/warning-utils.d.ts +1 -0
  71. package/build/warning-utils.js +38 -33
  72. package/build/warning-utils.js.map +1 -1
  73. package/build/warning-utils.mjs +40 -0
  74. package/build/warning-utils.mjs.map +1 -0
  75. package/package.json +19 -6
  76. package/build/index.js.map +0 -1
  77. package/build/path-utils.js +0 -2
  78. package/build/path-utils.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ return target;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
19
+ key = keys[i];
20
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
21
+ get: ((k) => from[k]).bind(null, key),
22
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
+ });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ //#endregion
32
+ exports.__exportAll = __exportAll;
33
+ exports.__toESM = __toESM;
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll };
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { PackageAccess, PackageList } from '@verdaccio/types';
3
2
  export interface CookieSessionToken {
4
3
  expires: Date;
@@ -1,39 +1,37 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ const require_runtime = require("./_virtual/_rolldown/runtime.js");
2
+ let minimatch = require("minimatch");
3
+ //#region src/auth-utils.ts
4
+ var auth_utils_exports = /* @__PURE__ */ require_runtime.__exportAll({
5
+ buildToken: () => buildToken,
6
+ buildUserBuffer: () => buildUserBuffer,
7
+ createSessionToken: () => createSessionToken,
8
+ getAuthenticatedMessage: () => getAuthenticatedMessage,
9
+ getMatchedPackagesSpec: () => getMatchedPackagesSpec
5
10
  });
6
- exports.buildToken = buildToken;
7
- exports.buildUserBuffer = buildUserBuffer;
8
- exports.createSessionToken = createSessionToken;
9
- exports.getAuthenticatedMessage = getAuthenticatedMessage;
10
- exports.getMatchedPackagesSpec = getMatchedPackagesSpec;
11
- var _minimatch = require("minimatch");
12
11
  function createSessionToken() {
13
- const tenHoursTime = 10 * 60 * 60 * 1000;
14
- return {
15
- // npmjs.org sets 10h expire
16
- expires: new Date(Date.now() + tenHoursTime)
17
- };
12
+ return { expires: new Date(Date.now() + 600 * 60 * 1e3) };
18
13
  }
19
14
  function getAuthenticatedMessage(user) {
20
- return `you are authenticated as '${user}'`;
15
+ return `you are authenticated as '${user}'`;
21
16
  }
22
17
  function buildUserBuffer(name, password) {
23
- return Buffer.from(`${name}:${password}`, 'utf8');
18
+ return Buffer.from(`${name}:${password}`, "utf8");
24
19
  }
25
20
  function buildToken(type, token) {
26
- return `${capitalize(type)} ${token}`;
21
+ return `${capitalize(type)} ${token}`;
27
22
  }
28
23
  function getMatchedPackagesSpec(pkgName, packages) {
29
- for (const i in packages) {
30
- if (_minimatch.minimatch.makeRe(i).exec(pkgName)) {
31
- return packages[i];
32
- }
33
- }
34
- return;
24
+ for (const i in packages) if (minimatch.minimatch.makeRe(i).exec(pkgName)) return packages[i];
35
25
  }
36
26
  function capitalize(str) {
37
- return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
27
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
38
28
  }
29
+ //#endregion
30
+ Object.defineProperty(exports, "auth_utils_exports", {
31
+ enumerable: true,
32
+ get: function() {
33
+ return auth_utils_exports;
34
+ }
35
+ });
36
+
39
37
  //# sourceMappingURL=auth-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-utils.js","names":["_minimatch","require","createSessionToken","tenHoursTime","expires","Date","now","getAuthenticatedMessage","user","buildUserBuffer","name","password","Buffer","from","buildToken","type","token","capitalize","getMatchedPackagesSpec","pkgName","packages","i","minimatch","makeRe","exec","str","charAt","toUpperCase","slice","toLowerCase"],"sources":["../src/auth-utils.ts"],"sourcesContent":["import type { MMRegExp } from 'minimatch';\nimport { minimatch } from 'minimatch';\n\nimport type { PackageAccess, PackageList } from '@verdaccio/types';\n\nexport interface CookieSessionToken {\n expires: Date;\n}\n\nexport function createSessionToken(): CookieSessionToken {\n const tenHoursTime = 10 * 60 * 60 * 1000;\n\n return {\n // npmjs.org sets 10h expire\n expires: new Date(Date.now() + tenHoursTime),\n };\n}\n\nexport function getAuthenticatedMessage(user: string): string {\n return `you are authenticated as '${user}'`;\n}\n\nexport function buildUserBuffer(name: string, password: string): Buffer {\n return Buffer.from(`${name}:${password}`, 'utf8');\n}\n\nexport function buildToken(type: string, token: string): string {\n return `${capitalize(type)} ${token}`;\n}\n\nexport function getMatchedPackagesSpec(\n pkgName: string,\n packages: PackageList\n): PackageAccess | void {\n for (const i in packages) {\n if ((minimatch.makeRe(i) as MMRegExp).exec(pkgName)) {\n return packages[i];\n }\n }\n return;\n}\n\nfunction capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n}\n"],"mappings":";;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQO,SAASC,kBAAkBA,CAAA,EAAuB;EACvD,MAAMC,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;EAExC,OAAO;IACL;IACAC,OAAO,EAAE,IAAIC,IAAI,CAACA,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGH,YAAY;EAC7C,CAAC;AACH;AAEO,SAASI,uBAAuBA,CAACC,IAAY,EAAU;EAC5D,OAAO,6BAA6BA,IAAI,GAAG;AAC7C;AAEO,SAASC,eAAeA,CAACC,IAAY,EAAEC,QAAgB,EAAU;EACtE,OAAOC,MAAM,CAACC,IAAI,CAAC,GAAGH,IAAI,IAAIC,QAAQ,EAAE,EAAE,MAAM,CAAC;AACnD;AAEO,SAASG,UAAUA,CAACC,IAAY,EAAEC,KAAa,EAAU;EAC9D,OAAO,GAAGC,UAAU,CAACF,IAAI,CAAC,IAAIC,KAAK,EAAE;AACvC;AAEO,SAASE,sBAAsBA,CACpCC,OAAe,EACfC,QAAqB,EACC;EACtB,KAAK,MAAMC,CAAC,IAAID,QAAQ,EAAE;IACxB,IAAKE,oBAAS,CAACC,MAAM,CAACF,CAAC,CAAC,CAAcG,IAAI,CAACL,OAAO,CAAC,EAAE;MACnD,OAAOC,QAAQ,CAACC,CAAC,CAAC;IACpB;EACF;EACA;AACF;AAEA,SAASJ,UAAUA,CAACQ,GAAW,EAAU;EACvC,OAAOA,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,GAAG,CAACG,KAAK,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;AACjE","ignoreList":[]}
1
+ {"version":3,"file":"auth-utils.js","names":[],"sources":["../src/auth-utils.ts"],"sourcesContent":["import type { MMRegExp } from 'minimatch';\nimport { minimatch } from 'minimatch';\n\nimport type { PackageAccess, PackageList } from '@verdaccio/types';\n\nexport interface CookieSessionToken {\n expires: Date;\n}\n\nexport function createSessionToken(): CookieSessionToken {\n const tenHoursTime = 10 * 60 * 60 * 1000;\n\n return {\n // npmjs.org sets 10h expire\n expires: new Date(Date.now() + tenHoursTime),\n };\n}\n\nexport function getAuthenticatedMessage(user: string): string {\n return `you are authenticated as '${user}'`;\n}\n\nexport function buildUserBuffer(name: string, password: string): Buffer {\n return Buffer.from(`${name}:${password}`, 'utf8');\n}\n\nexport function buildToken(type: string, token: string): string {\n return `${capitalize(type)} ${token}`;\n}\n\nexport function getMatchedPackagesSpec(\n pkgName: string,\n packages: PackageList\n): PackageAccess | void {\n for (const i in packages) {\n if ((minimatch.makeRe(i) as MMRegExp).exec(pkgName)) {\n return packages[i];\n }\n }\n return;\n}\n\nfunction capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,qBAAyC;CAGvD,OAAO,EAEL,SAAS,IAAI,KAAK,KAAK,IAAI,IAJR,MAAU,KAAK,GAIS,EAC7C;AACF;AAEA,SAAgB,wBAAwB,MAAsB;CAC5D,OAAO,6BAA6B,KAAK;AAC3C;AAEA,SAAgB,gBAAgB,MAAc,UAA0B;CACtE,OAAO,OAAO,KAAK,GAAG,KAAK,GAAG,YAAY,MAAM;AAClD;AAEA,SAAgB,WAAW,MAAc,OAAuB;CAC9D,OAAO,GAAG,WAAW,IAAI,EAAE,GAAG;AAChC;AAEA,SAAgB,uBACd,SACA,UACsB;CACtB,KAAK,MAAM,KAAK,UACd,IAAK,UAAA,UAAU,OAAO,CAAC,EAAe,KAAK,OAAO,GAChD,OAAO,SAAS;AAItB;AAEA,SAAS,WAAW,KAAqB;CACvC,OAAO,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,MAAM,CAAC,EAAE,YAAY;AAChE"}
@@ -0,0 +1,32 @@
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
2
+ import { minimatch } from "minimatch";
3
+ //#region src/auth-utils.ts
4
+ var auth_utils_exports = /* @__PURE__ */ __exportAll({
5
+ buildToken: () => buildToken,
6
+ buildUserBuffer: () => buildUserBuffer,
7
+ createSessionToken: () => createSessionToken,
8
+ getAuthenticatedMessage: () => getAuthenticatedMessage,
9
+ getMatchedPackagesSpec: () => getMatchedPackagesSpec
10
+ });
11
+ function createSessionToken() {
12
+ return { expires: new Date(Date.now() + 600 * 60 * 1e3) };
13
+ }
14
+ function getAuthenticatedMessage(user) {
15
+ return `you are authenticated as '${user}'`;
16
+ }
17
+ function buildUserBuffer(name, password) {
18
+ return Buffer.from(`${name}:${password}`, "utf8");
19
+ }
20
+ function buildToken(type, token) {
21
+ return `${capitalize(type)} ${token}`;
22
+ }
23
+ function getMatchedPackagesSpec(pkgName, packages) {
24
+ for (const i in packages) if (minimatch.makeRe(i).exec(pkgName)) return packages[i];
25
+ }
26
+ function capitalize(str) {
27
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
28
+ }
29
+ //#endregion
30
+ export { auth_utils_exports };
31
+
32
+ //# sourceMappingURL=auth-utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-utils.mjs","names":[],"sources":["../src/auth-utils.ts"],"sourcesContent":["import type { MMRegExp } from 'minimatch';\nimport { minimatch } from 'minimatch';\n\nimport type { PackageAccess, PackageList } from '@verdaccio/types';\n\nexport interface CookieSessionToken {\n expires: Date;\n}\n\nexport function createSessionToken(): CookieSessionToken {\n const tenHoursTime = 10 * 60 * 60 * 1000;\n\n return {\n // npmjs.org sets 10h expire\n expires: new Date(Date.now() + tenHoursTime),\n };\n}\n\nexport function getAuthenticatedMessage(user: string): string {\n return `you are authenticated as '${user}'`;\n}\n\nexport function buildUserBuffer(name: string, password: string): Buffer {\n return Buffer.from(`${name}:${password}`, 'utf8');\n}\n\nexport function buildToken(type: string, token: string): string {\n return `${capitalize(type)} ${token}`;\n}\n\nexport function getMatchedPackagesSpec(\n pkgName: string,\n packages: PackageList\n): PackageAccess | void {\n for (const i in packages) {\n if ((minimatch.makeRe(i) as MMRegExp).exec(pkgName)) {\n return packages[i];\n }\n }\n return;\n}\n\nfunction capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,qBAAyC;CAGvD,OAAO,EAEL,SAAS,IAAI,KAAK,KAAK,IAAI,IAJR,MAAU,KAAK,GAIS,EAC7C;AACF;AAEA,SAAgB,wBAAwB,MAAsB;CAC5D,OAAO,6BAA6B,KAAK;AAC3C;AAEA,SAAgB,gBAAgB,MAAc,UAA0B;CACtE,OAAO,OAAO,KAAK,GAAG,KAAK,GAAG,YAAY,MAAM;AAClD;AAEA,SAAgB,WAAW,MAAc,OAAuB;CAC9D,OAAO,GAAG,WAAW,IAAI,EAAE,GAAG;AAChC;AAEA,SAAgB,uBACd,SACA,UACsB;CACtB,KAAK,MAAM,KAAK,UACd,IAAK,UAAU,OAAO,CAAC,EAAe,KAAK,OAAO,GAChD,OAAO,SAAS;AAItB;AAEA,SAAS,WAAW,KAAqB;CACvC,OAAO,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,MAAM,CAAC,EAAE,YAAY;AAChE"}
@@ -1,168 +1,212 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ const require_runtime = require("./_virtual/_rolldown/runtime.js");
2
+ let http_status_codes = require("http-status-codes");
3
+ http_status_codes = require_runtime.__toESM(http_status_codes);
4
+ //#region src/constants.ts
5
+ var constants_exports = /* @__PURE__ */ require_runtime.__exportAll({
6
+ ANONYMOUS_USER: () => ANONYMOUS_USER,
7
+ API_MESSAGE: () => API_MESSAGE,
8
+ CHARACTER_ENCODING: () => CHARACTER_ENCODING,
9
+ DEFAULT_DOMAIN: () => DEFAULT_DOMAIN,
10
+ DEFAULT_PASSWORD_VALIDATION: () => DEFAULT_PASSWORD_VALIDATION,
11
+ DEFAULT_PORT: () => DEFAULT_PORT,
12
+ DEFAULT_PROTOCOL: () => DEFAULT_PROTOCOL,
13
+ DEFAULT_USER: () => DEFAULT_USER,
14
+ DIST_TAGS: () => DIST_TAGS,
15
+ ERROR_CODE: () => ERROR_CODE,
16
+ HEADERS: () => HEADERS,
17
+ HEADER_TYPE: () => HEADER_TYPE,
18
+ HTTP_STATUS: () => HTTP_STATUS,
19
+ HtpasswdHashAlgorithm: () => HtpasswdHashAlgorithm,
20
+ LATEST: () => LATEST,
21
+ LOG_STATUS_MESSAGE: () => LOG_STATUS_MESSAGE,
22
+ LOG_VERDACCIO_BYTES: () => LOG_VERDACCIO_BYTES,
23
+ LOG_VERDACCIO_ERROR: () => LOG_VERDACCIO_ERROR,
24
+ MAINTAINERS: () => MAINTAINERS,
25
+ PACKAGE_ACCESS: () => PACKAGE_ACCESS,
26
+ PLUGIN_CATEGORY: () => PLUGIN_CATEGORY,
27
+ PLUGIN_PREFIX: () => PLUGIN_PREFIX,
28
+ PLUGIN_UI_PREFIX: () => PLUGIN_UI_PREFIX,
29
+ ROLES: () => ROLES,
30
+ TIME_EXPIRATION_1H: () => "1h",
31
+ TIME_EXPIRATION_24H: () => "24h",
32
+ TOKEN_BASIC: () => TOKEN_BASIC,
33
+ TOKEN_BEARER: () => TOKEN_BEARER,
34
+ USERS: () => USERS
5
35
  });
6
- exports.USERS = exports.TOKEN_BEARER = exports.TOKEN_BASIC = exports.TIME_EXPIRATION_24H = exports.TIME_EXPIRATION_1H = exports.ROLES = exports.PLUGIN_UI_PREFIX = exports.PLUGIN_PREFIX = exports.PLUGIN_CATEGORY = exports.PACKAGE_ACCESS = exports.MAINTAINERS = exports.LOG_VERDACCIO_ERROR = exports.LOG_VERDACCIO_BYTES = exports.LOG_STATUS_MESSAGE = exports.LATEST = exports.HtpasswdHashAlgorithm = exports.HTTP_STATUS = exports.HEADER_TYPE = exports.HEADERS = exports.ERROR_CODE = exports.DIST_TAGS = exports.DEFAULT_USER = exports.DEFAULT_PROTOCOL = exports.DEFAULT_PORT = exports.DEFAULT_PASSWORD_VALIDATION = exports.DEFAULT_DOMAIN = exports.CHARACTER_ENCODING = exports.API_MESSAGE = exports.ANONYMOUS_USER = void 0;
7
- var _httpStatusCodes = _interopRequireDefault(require("http-status-codes"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- const DEFAULT_PASSWORD_VALIDATION = exports.DEFAULT_PASSWORD_VALIDATION = /.{3}$/;
10
- const TIME_EXPIRATION_24H = exports.TIME_EXPIRATION_24H = '24h';
11
- const TIME_EXPIRATION_1H = exports.TIME_EXPIRATION_1H = '1h';
12
- const DIST_TAGS = exports.DIST_TAGS = 'dist-tags';
13
- const LATEST = exports.LATEST = 'latest';
14
- const USERS = exports.USERS = 'users';
15
- const MAINTAINERS = exports.MAINTAINERS = 'maintainers';
16
- const DEFAULT_USER = exports.DEFAULT_USER = 'Anonymous'; // for display purposes
17
- const ANONYMOUS_USER = exports.ANONYMOUS_USER = 'anonymous'; // for username purposes
18
-
19
- const HEADER_TYPE = exports.HEADER_TYPE = {
20
- CONTENT_ENCODING: 'content-encoding',
21
- CONTENT_TYPE: 'content-type',
22
- CONTENT_LENGTH: 'content-length',
23
- ACCEPT_ENCODING: 'accept-encoding',
24
- AUTHORIZATION: 'authorization'
36
+ var DEFAULT_PASSWORD_VALIDATION = /.{3}$/;
37
+ var DIST_TAGS = "dist-tags";
38
+ var LATEST = "latest";
39
+ var USERS = "users";
40
+ var MAINTAINERS = "maintainers";
41
+ var DEFAULT_USER = "Anonymous";
42
+ var ANONYMOUS_USER = "anonymous";
43
+ var HEADER_TYPE = {
44
+ CONTENT_ENCODING: "content-encoding",
45
+ CONTENT_TYPE: "content-type",
46
+ CONTENT_LENGTH: "content-length",
47
+ ACCEPT_ENCODING: "accept-encoding",
48
+ AUTHORIZATION: "authorization"
25
49
  };
26
- const CHARACTER_ENCODING = exports.CHARACTER_ENCODING = {
27
- UTF8: 'utf8'
28
- };
29
-
30
- // @deprecated use Bearer instead
31
- const TOKEN_BASIC = exports.TOKEN_BASIC = 'Basic';
32
- const TOKEN_BEARER = exports.TOKEN_BEARER = 'Bearer';
33
- const HEADERS = exports.HEADERS = {
34
- ACCEPT: 'Accept',
35
- ACCEPT_ENCODING: 'Accept-Encoding',
36
- USER_AGENT: 'User-Agent',
37
- JSON: 'application/json',
38
- CONTENT_TYPE: 'Content-type',
39
- CONTENT_LENGTH: 'content-length',
40
- TEXT_PLAIN: 'text/plain',
41
- TEXT_PLAIN_UTF8: 'text/plain; charset=utf-8',
42
- TEXT_HTML_UTF8: 'text/html; charset=utf-8',
43
- TEXT_HTML: 'text/html',
44
- AUTHORIZATION: 'authorization',
45
- CACHE_CONTROL: 'Cache-Control',
46
- NO_CACHE: 'no-cache, no-store',
47
- RETRY_AFTER: 'Retry-After',
48
- // only set with proxy that setup HTTPS
49
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
50
- FORWARDED_PROTO: 'X-Forwarded-Proto',
51
- FORWARDED_FOR: 'X-Forwarded-For',
52
- FRAMES_OPTIONS: 'X-Frame-Options',
53
- CSP: 'Content-Security-Policy',
54
- CTO: 'X-Content-Type-Options',
55
- XSS: 'X-XSS-Protection',
56
- CLIENT: 'X-Client',
57
- POWERED_BY: 'X-Powered-By',
58
- RATELIMIT_LIMIT: 'X-RateLimit-Limit',
59
- RATELIMIT_REMAINING: 'X-RateLimit-Remaining',
60
- NONE_MATCH: 'If-None-Match',
61
- ETAG: 'ETag',
62
- JSON_CHARSET: 'application/json; charset=utf-8',
63
- JSON_INSTALL_CHARSET: 'application/vnd.npm.install-v1+json; charset=utf-8',
64
- OCTET_STREAM: 'application/octet-stream; charset=utf-8',
65
- TEXT_CHARSET: 'text/plain; charset=utf-8',
66
- JAVASCRIPT_CHARSET: 'application/javascript; charset=utf-8',
67
- WWW_AUTH: 'WWW-Authenticate',
68
- GZIP: 'gzip',
69
- HOST: 'host'
50
+ var CHARACTER_ENCODING = { UTF8: "utf8" };
51
+ var TOKEN_BASIC = "Basic";
52
+ var TOKEN_BEARER = "Bearer";
53
+ var HEADERS = {
54
+ ACCEPT: "Accept",
55
+ ACCEPT_ENCODING: "Accept-Encoding",
56
+ USER_AGENT: "User-Agent",
57
+ JSON: "application/json",
58
+ CONTENT_TYPE: "Content-type",
59
+ CONTENT_LENGTH: "content-length",
60
+ TEXT_PLAIN: "text/plain",
61
+ TEXT_PLAIN_UTF8: "text/plain; charset=utf-8",
62
+ TEXT_HTML_UTF8: "text/html; charset=utf-8",
63
+ TEXT_HTML: "text/html",
64
+ AUTHORIZATION: "authorization",
65
+ CACHE_CONTROL: "Cache-Control",
66
+ NO_CACHE: "no-cache, no-store",
67
+ RETRY_AFTER: "Retry-After",
68
+ FORWARDED_PROTO: "X-Forwarded-Proto",
69
+ FORWARDED_FOR: "X-Forwarded-For",
70
+ FRAMES_OPTIONS: "X-Frame-Options",
71
+ CSP: "Content-Security-Policy",
72
+ CTO: "X-Content-Type-Options",
73
+ XSS: "X-XSS-Protection",
74
+ CLIENT: "X-Client",
75
+ POWERED_BY: "X-Powered-By",
76
+ RATELIMIT_LIMIT: "X-RateLimit-Limit",
77
+ RATELIMIT_REMAINING: "X-RateLimit-Remaining",
78
+ NONE_MATCH: "If-None-Match",
79
+ ETAG: "ETag",
80
+ JSON_CHARSET: "application/json; charset=utf-8",
81
+ JSON_INSTALL_CHARSET: "application/vnd.npm.install-v1+json; charset=utf-8",
82
+ OCTET_STREAM: "application/octet-stream; charset=utf-8",
83
+ TEXT_CHARSET: "text/plain; charset=utf-8",
84
+ JAVASCRIPT_CHARSET: "application/javascript; charset=utf-8",
85
+ WWW_AUTH: "WWW-Authenticate",
86
+ GZIP: "gzip",
87
+ HOST: "host"
70
88
  };
71
-
72
89
  /**
73
- * HTTP status codes used throughout Verdaccio.
74
- */
75
- const HTTP_STATUS = exports.HTTP_STATUS = {
76
- /** 202: The request has been accepted for processing, but the processing is not yet complete. */
77
- ACCEPTED: _httpStatusCodes.default.ACCEPTED,
78
- /** 200: Standard response for successful HTTP requests. */
79
- OK: _httpStatusCodes.default.OK,
80
- /** 201: The request has been fulfilled and resulted in a new resource being created. */
81
- CREATED: _httpStatusCodes.default.CREATED,
82
- /** 300: Indicates multiple options for the resource from which the client may choose. */
83
- MULTIPLE_CHOICES: _httpStatusCodes.default.MULTIPLE_CHOICES,
84
- /** 304: Indicates that the resource has not been modified since the last request. */
85
- NOT_MODIFIED: _httpStatusCodes.default.NOT_MODIFIED,
86
- /** 400: The server could not understand the request due to invalid syntax. */
87
- BAD_REQUEST: _httpStatusCodes.default.BAD_REQUEST,
88
- /** 401: The client must authenticate itself to get the requested response. */
89
- UNAUTHORIZED: _httpStatusCodes.default.UNAUTHORIZED,
90
- /** 403: The client does not have access rights to the content. */
91
- FORBIDDEN: _httpStatusCodes.default.FORBIDDEN,
92
- /** 404: The server can not find the requested resource. */
93
- NOT_FOUND: _httpStatusCodes.default.NOT_FOUND,
94
- /** 408: The server timed out waiting for the request. */
95
- REQUEST_TIMEOUT: _httpStatusCodes.default.REQUEST_TIMEOUT,
96
- /** 409: The request could not be completed due to a conflict with the current state of the resource. */
97
- CONFLICT: _httpStatusCodes.default.CONFLICT,
98
- /** 415: The media format of the requested data is not supported by the server. */
99
- UNSUPPORTED_MEDIA: _httpStatusCodes.default.UNSUPPORTED_MEDIA_TYPE,
100
- /** 422: The request was well-formed but was unable to be followed due to semantic errors. */
101
- BAD_DATA: _httpStatusCodes.default.UNPROCESSABLE_ENTITY,
102
- /** 500: The server has encountered a situation it doesn't know how to handle. */
103
- INTERNAL_ERROR: _httpStatusCodes.default.INTERNAL_SERVER_ERROR,
104
- /** 501: The request method is not supported by the server and cannot be handled. */
105
- NOT_IMPLEMENTED: _httpStatusCodes.default.NOT_IMPLEMENTED,
106
- /** 502: The server, while acting as a gateway or proxy, received an invalid response from the upstream server. */
107
- BAD_GATEWAY: _httpStatusCodes.default.BAD_GATEWAY,
108
- /** 503: The server is not ready to handle the request. */
109
- SERVICE_UNAVAILABLE: _httpStatusCodes.default.SERVICE_UNAVAILABLE,
110
- /** 504: The server, while acting as a gateway or proxy, did not get a response in time from the upstream server. */
111
- GATEWAY_TIMEOUT: _httpStatusCodes.default.GATEWAY_TIMEOUT,
112
- /** 508: The server detected an infinite loop while processing the request. */
113
- LOOP_DETECTED: 508,
114
- /** 590: Custom Verdaccio code indicating the server cannot handle the request. */
115
- CANNOT_HANDLE: 590
116
- };
117
- const ERROR_CODE = exports.ERROR_CODE = {
118
- token_required: 'token is required'
90
+ * HTTP status codes used throughout Verdaccio.
91
+ */
92
+ var HTTP_STATUS = {
93
+ /** 202: The request has been accepted for processing, but the processing is not yet complete. */
94
+ ACCEPTED: http_status_codes.default.ACCEPTED,
95
+ /** 200: Standard response for successful HTTP requests. */
96
+ OK: http_status_codes.default.OK,
97
+ /** 201: The request has been fulfilled and resulted in a new resource being created. */
98
+ CREATED: http_status_codes.default.CREATED,
99
+ /** 300: Indicates multiple options for the resource from which the client may choose. */
100
+ MULTIPLE_CHOICES: http_status_codes.default.MULTIPLE_CHOICES,
101
+ /** 304: Indicates that the resource has not been modified since the last request. */
102
+ NOT_MODIFIED: http_status_codes.default.NOT_MODIFIED,
103
+ /** 400: The server could not understand the request due to invalid syntax. */
104
+ BAD_REQUEST: http_status_codes.default.BAD_REQUEST,
105
+ /** 401: The client must authenticate itself to get the requested response. */
106
+ UNAUTHORIZED: http_status_codes.default.UNAUTHORIZED,
107
+ /** 403: The client does not have access rights to the content. */
108
+ FORBIDDEN: http_status_codes.default.FORBIDDEN,
109
+ /** 404: The server can not find the requested resource. */
110
+ NOT_FOUND: http_status_codes.default.NOT_FOUND,
111
+ /** 408: The server timed out waiting for the request. */
112
+ REQUEST_TIMEOUT: http_status_codes.default.REQUEST_TIMEOUT,
113
+ /** 409: The request could not be completed due to a conflict with the current state of the resource. */
114
+ CONFLICT: http_status_codes.default.CONFLICT,
115
+ /** 415: The media format of the requested data is not supported by the server. */
116
+ UNSUPPORTED_MEDIA: http_status_codes.default.UNSUPPORTED_MEDIA_TYPE,
117
+ /** 422: The request was well-formed but was unable to be followed due to semantic errors. */
118
+ BAD_DATA: http_status_codes.default.UNPROCESSABLE_ENTITY,
119
+ /** 500: The server has encountered a situation it doesn't know how to handle. */
120
+ INTERNAL_ERROR: http_status_codes.default.INTERNAL_SERVER_ERROR,
121
+ /** 501: The request method is not supported by the server and cannot be handled. */
122
+ NOT_IMPLEMENTED: http_status_codes.default.NOT_IMPLEMENTED,
123
+ /** 502: The server, while acting as a gateway or proxy, received an invalid response from the upstream server. */
124
+ BAD_GATEWAY: http_status_codes.default.BAD_GATEWAY,
125
+ /** 503: The server is not ready to handle the request. */
126
+ SERVICE_UNAVAILABLE: http_status_codes.default.SERVICE_UNAVAILABLE,
127
+ /** 504: The server, while acting as a gateway or proxy, did not get a response in time from the upstream server. */
128
+ GATEWAY_TIMEOUT: http_status_codes.default.GATEWAY_TIMEOUT,
129
+ /** 508: The server detected an infinite loop while processing the request. */
130
+ LOOP_DETECTED: 508,
131
+ /** 590: Custom Verdaccio code indicating the server cannot handle the request. */
132
+ CANNOT_HANDLE: 590
119
133
  };
120
- const API_MESSAGE = exports.API_MESSAGE = {
121
- PKG_CREATED: 'created new package',
122
- PKG_CHANGED: 'package changed',
123
- PKG_REMOVED: 'package removed',
124
- PKG_PUBLISHED: 'package published',
125
- TARBALL_UPLOADED: 'tarball uploaded successfully',
126
- TARBALL_REMOVED: 'tarball removed',
127
- TAG_UPDATED: 'tags updated',
128
- TAG_REMOVED: 'tag removed',
129
- TAG_ADDED: 'package tagged',
130
- OK: 'ok',
131
- LOGGED_OUT: 'Logged out'
134
+ var ERROR_CODE = { token_required: "token is required" };
135
+ var API_MESSAGE = {
136
+ PKG_CREATED: "created new package",
137
+ PKG_CHANGED: "package changed",
138
+ PKG_REMOVED: "package removed",
139
+ PKG_PUBLISHED: "package published",
140
+ TARBALL_UPLOADED: "tarball uploaded successfully",
141
+ TARBALL_REMOVED: "tarball removed",
142
+ TAG_UPDATED: "tags updated",
143
+ TAG_REMOVED: "tag removed",
144
+ TAG_ADDED: "package tagged",
145
+ OK: "ok",
146
+ LOGGED_OUT: "Logged out"
132
147
  };
133
- const LOG_STATUS_MESSAGE = exports.LOG_STATUS_MESSAGE = "@{status}, user: @{user}(@{remoteIP}), req: '@{request.method} @{request.url}'";
134
- const LOG_VERDACCIO_ERROR = exports.LOG_VERDACCIO_ERROR = `${LOG_STATUS_MESSAGE}, error: @{!error}`;
135
- const LOG_VERDACCIO_BYTES = exports.LOG_VERDACCIO_BYTES = `${LOG_STATUS_MESSAGE}, bytes: @{bytes.in}/@{bytes.out}`;
136
- const ROLES = exports.ROLES = {
137
- $ALL: '$all',
138
- ALL: 'all',
139
- $AUTH: '$authenticated',
140
- $ANONYMOUS: '$anonymous',
141
- DEPRECATED_ALL: '@all',
142
- DEPRECATED_AUTH: '@authenticated',
143
- DEPRECATED_ANONYMOUS: '@anonymous'
148
+ var LOG_STATUS_MESSAGE = "@{status}, user: @{user}(@{remoteIP}), req: '@{request.method} @{request.url}'";
149
+ var LOG_VERDACCIO_ERROR = `${LOG_STATUS_MESSAGE}, error: @{!error}`;
150
+ var LOG_VERDACCIO_BYTES = `${LOG_STATUS_MESSAGE}, bytes: @{bytes.in}/@{bytes.out}`;
151
+ var ROLES = {
152
+ $ALL: "$all",
153
+ ALL: "all",
154
+ $AUTH: "$authenticated",
155
+ $ANONYMOUS: "$anonymous",
156
+ DEPRECATED_ALL: "@all",
157
+ DEPRECATED_AUTH: "@authenticated",
158
+ DEPRECATED_ANONYMOUS: "@anonymous"
144
159
  };
145
- const PACKAGE_ACCESS = exports.PACKAGE_ACCESS = {
146
- SCOPE: '@*/*',
147
- ALL: '**'
160
+ var PACKAGE_ACCESS = {
161
+ SCOPE: "@*/*",
162
+ ALL: "**"
148
163
  };
149
- let HtpasswdHashAlgorithm = exports.HtpasswdHashAlgorithm = /*#__PURE__*/function (HtpasswdHashAlgorithm) {
150
- HtpasswdHashAlgorithm["md5"] = "md5";
151
- HtpasswdHashAlgorithm["sha1"] = "sha1";
152
- HtpasswdHashAlgorithm["crypt"] = "crypt";
153
- HtpasswdHashAlgorithm["bcrypt"] = "bcrypt";
154
- return HtpasswdHashAlgorithm;
164
+ var HtpasswdHashAlgorithm = /* @__PURE__ */ function(HtpasswdHashAlgorithm) {
165
+ HtpasswdHashAlgorithm["md5"] = "md5";
166
+ HtpasswdHashAlgorithm["sha1"] = "sha1";
167
+ HtpasswdHashAlgorithm["crypt"] = "crypt";
168
+ HtpasswdHashAlgorithm["bcrypt"] = "bcrypt";
169
+ return HtpasswdHashAlgorithm;
155
170
  }({});
156
- const PLUGIN_PREFIX = exports.PLUGIN_PREFIX = 'verdaccio';
157
- const PLUGIN_UI_PREFIX = exports.PLUGIN_UI_PREFIX = 'verdaccio-theme';
158
- const PLUGIN_CATEGORY = exports.PLUGIN_CATEGORY = {
159
- AUTHENTICATION: 'authentication',
160
- MIDDLEWARE: 'middleware',
161
- STORAGE: 'storage',
162
- FILTER: 'filter',
163
- THEME: 'theme'
171
+ var PLUGIN_PREFIX = "verdaccio";
172
+ var PLUGIN_UI_PREFIX = "verdaccio-theme";
173
+ var PLUGIN_CATEGORY = {
174
+ AUTHENTICATION: "authentication",
175
+ MIDDLEWARE: "middleware",
176
+ STORAGE: "storage",
177
+ FILTER: "filter",
178
+ THEME: "theme"
164
179
  };
165
- const DEFAULT_PORT = exports.DEFAULT_PORT = '4873';
166
- const DEFAULT_PROTOCOL = exports.DEFAULT_PROTOCOL = 'http';
167
- const DEFAULT_DOMAIN = exports.DEFAULT_DOMAIN = 'localhost';
180
+ var DEFAULT_PORT = "4873";
181
+ var DEFAULT_PROTOCOL = "http";
182
+ var DEFAULT_DOMAIN = "localhost";
183
+ //#endregion
184
+ exports.ANONYMOUS_USER = ANONYMOUS_USER;
185
+ exports.API_MESSAGE = API_MESSAGE;
186
+ exports.CHARACTER_ENCODING = CHARACTER_ENCODING;
187
+ exports.DEFAULT_DOMAIN = DEFAULT_DOMAIN;
188
+ exports.DEFAULT_PASSWORD_VALIDATION = DEFAULT_PASSWORD_VALIDATION;
189
+ exports.DEFAULT_PORT = DEFAULT_PORT;
190
+ exports.DEFAULT_PROTOCOL = DEFAULT_PROTOCOL;
191
+ exports.DEFAULT_USER = DEFAULT_USER;
192
+ exports.DIST_TAGS = DIST_TAGS;
193
+ exports.HEADERS = HEADERS;
194
+ exports.HEADER_TYPE = HEADER_TYPE;
195
+ exports.HTTP_STATUS = HTTP_STATUS;
196
+ exports.HtpasswdHashAlgorithm = HtpasswdHashAlgorithm;
197
+ exports.LATEST = LATEST;
198
+ exports.MAINTAINERS = MAINTAINERS;
199
+ exports.PLUGIN_CATEGORY = PLUGIN_CATEGORY;
200
+ exports.PLUGIN_PREFIX = PLUGIN_PREFIX;
201
+ exports.PLUGIN_UI_PREFIX = PLUGIN_UI_PREFIX;
202
+ exports.TOKEN_BASIC = TOKEN_BASIC;
203
+ exports.TOKEN_BEARER = TOKEN_BEARER;
204
+ exports.USERS = USERS;
205
+ Object.defineProperty(exports, "constants_exports", {
206
+ enumerable: true,
207
+ get: function() {
208
+ return constants_exports;
209
+ }
210
+ });
211
+
168
212
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["_httpStatusCodes","_interopRequireDefault","require","e","__esModule","default","DEFAULT_PASSWORD_VALIDATION","exports","TIME_EXPIRATION_24H","TIME_EXPIRATION_1H","DIST_TAGS","LATEST","USERS","MAINTAINERS","DEFAULT_USER","ANONYMOUS_USER","HEADER_TYPE","CONTENT_ENCODING","CONTENT_TYPE","CONTENT_LENGTH","ACCEPT_ENCODING","AUTHORIZATION","CHARACTER_ENCODING","UTF8","TOKEN_BASIC","TOKEN_BEARER","HEADERS","ACCEPT","USER_AGENT","JSON","TEXT_PLAIN","TEXT_PLAIN_UTF8","TEXT_HTML_UTF8","TEXT_HTML","CACHE_CONTROL","NO_CACHE","RETRY_AFTER","FORWARDED_PROTO","FORWARDED_FOR","FRAMES_OPTIONS","CSP","CTO","XSS","CLIENT","POWERED_BY","RATELIMIT_LIMIT","RATELIMIT_REMAINING","NONE_MATCH","ETAG","JSON_CHARSET","JSON_INSTALL_CHARSET","OCTET_STREAM","TEXT_CHARSET","JAVASCRIPT_CHARSET","WWW_AUTH","GZIP","HOST","HTTP_STATUS","ACCEPTED","httpCodes","OK","CREATED","MULTIPLE_CHOICES","NOT_MODIFIED","BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","UNSUPPORTED_MEDIA","UNSUPPORTED_MEDIA_TYPE","BAD_DATA","UNPROCESSABLE_ENTITY","INTERNAL_ERROR","INTERNAL_SERVER_ERROR","NOT_IMPLEMENTED","BAD_GATEWAY","SERVICE_UNAVAILABLE","GATEWAY_TIMEOUT","LOOP_DETECTED","CANNOT_HANDLE","ERROR_CODE","token_required","API_MESSAGE","PKG_CREATED","PKG_CHANGED","PKG_REMOVED","PKG_PUBLISHED","TARBALL_UPLOADED","TARBALL_REMOVED","TAG_UPDATED","TAG_REMOVED","TAG_ADDED","LOGGED_OUT","LOG_STATUS_MESSAGE","LOG_VERDACCIO_ERROR","LOG_VERDACCIO_BYTES","ROLES","$ALL","ALL","$AUTH","$ANONYMOUS","DEPRECATED_ALL","DEPRECATED_AUTH","DEPRECATED_ANONYMOUS","PACKAGE_ACCESS","SCOPE","HtpasswdHashAlgorithm","PLUGIN_PREFIX","PLUGIN_UI_PREFIX","PLUGIN_CATEGORY","AUTHENTICATION","MIDDLEWARE","STORAGE","FILTER","THEME","DEFAULT_PORT","DEFAULT_PROTOCOL","DEFAULT_DOMAIN"],"sources":["../src/constants.ts"],"sourcesContent":["import httpCodes from 'http-status-codes';\n\nexport const DEFAULT_PASSWORD_VALIDATION = /.{3}$/;\nexport const TIME_EXPIRATION_24H = '24h';\nexport const TIME_EXPIRATION_1H = '1h';\nexport const DIST_TAGS = 'dist-tags';\nexport const LATEST = 'latest';\nexport const USERS = 'users';\nexport const MAINTAINERS = 'maintainers';\nexport const DEFAULT_USER = 'Anonymous'; // for display purposes\nexport const ANONYMOUS_USER = 'anonymous'; // for username purposes\n\nexport const HEADER_TYPE = {\n CONTENT_ENCODING: 'content-encoding',\n CONTENT_TYPE: 'content-type',\n CONTENT_LENGTH: 'content-length',\n ACCEPT_ENCODING: 'accept-encoding',\n AUTHORIZATION: 'authorization',\n};\n\nexport const CHARACTER_ENCODING = {\n UTF8: 'utf8',\n};\n\n// @deprecated use Bearer instead\nexport const TOKEN_BASIC = 'Basic';\nexport const TOKEN_BEARER = 'Bearer';\n\nexport const HEADERS = {\n ACCEPT: 'Accept',\n ACCEPT_ENCODING: 'Accept-Encoding',\n USER_AGENT: 'User-Agent',\n JSON: 'application/json',\n CONTENT_TYPE: 'Content-type',\n CONTENT_LENGTH: 'content-length',\n TEXT_PLAIN: 'text/plain',\n TEXT_PLAIN_UTF8: 'text/plain; charset=utf-8',\n TEXT_HTML_UTF8: 'text/html; charset=utf-8',\n TEXT_HTML: 'text/html',\n AUTHORIZATION: 'authorization',\n CACHE_CONTROL: 'Cache-Control',\n NO_CACHE: 'no-cache, no-store',\n RETRY_AFTER: 'Retry-After',\n // only set with proxy that setup HTTPS\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto\n FORWARDED_PROTO: 'X-Forwarded-Proto',\n FORWARDED_FOR: 'X-Forwarded-For',\n FRAMES_OPTIONS: 'X-Frame-Options',\n CSP: 'Content-Security-Policy',\n CTO: 'X-Content-Type-Options',\n XSS: 'X-XSS-Protection',\n CLIENT: 'X-Client',\n POWERED_BY: 'X-Powered-By',\n RATELIMIT_LIMIT: 'X-RateLimit-Limit',\n RATELIMIT_REMAINING: 'X-RateLimit-Remaining',\n NONE_MATCH: 'If-None-Match',\n ETAG: 'ETag',\n JSON_CHARSET: 'application/json; charset=utf-8',\n JSON_INSTALL_CHARSET: 'application/vnd.npm.install-v1+json; charset=utf-8',\n OCTET_STREAM: 'application/octet-stream; charset=utf-8',\n TEXT_CHARSET: 'text/plain; charset=utf-8',\n JAVASCRIPT_CHARSET: 'application/javascript; charset=utf-8',\n WWW_AUTH: 'WWW-Authenticate',\n GZIP: 'gzip',\n HOST: 'host',\n};\n\n/**\n * HTTP status codes used throughout Verdaccio.\n */\nexport const HTTP_STATUS = {\n /** 202: The request has been accepted for processing, but the processing is not yet complete. */\n ACCEPTED: httpCodes.ACCEPTED,\n /** 200: Standard response for successful HTTP requests. */\n OK: httpCodes.OK,\n /** 201: The request has been fulfilled and resulted in a new resource being created. */\n CREATED: httpCodes.CREATED,\n /** 300: Indicates multiple options for the resource from which the client may choose. */\n MULTIPLE_CHOICES: httpCodes.MULTIPLE_CHOICES,\n /** 304: Indicates that the resource has not been modified since the last request. */\n NOT_MODIFIED: httpCodes.NOT_MODIFIED,\n /** 400: The server could not understand the request due to invalid syntax. */\n BAD_REQUEST: httpCodes.BAD_REQUEST,\n /** 401: The client must authenticate itself to get the requested response. */\n UNAUTHORIZED: httpCodes.UNAUTHORIZED,\n /** 403: The client does not have access rights to the content. */\n FORBIDDEN: httpCodes.FORBIDDEN,\n /** 404: The server can not find the requested resource. */\n NOT_FOUND: httpCodes.NOT_FOUND,\n /** 408: The server timed out waiting for the request. */\n REQUEST_TIMEOUT: httpCodes.REQUEST_TIMEOUT,\n /** 409: The request could not be completed due to a conflict with the current state of the resource. */\n CONFLICT: httpCodes.CONFLICT,\n /** 415: The media format of the requested data is not supported by the server. */\n UNSUPPORTED_MEDIA: httpCodes.UNSUPPORTED_MEDIA_TYPE,\n /** 422: The request was well-formed but was unable to be followed due to semantic errors. */\n BAD_DATA: httpCodes.UNPROCESSABLE_ENTITY,\n /** 500: The server has encountered a situation it doesn't know how to handle. */\n INTERNAL_ERROR: httpCodes.INTERNAL_SERVER_ERROR,\n /** 501: The request method is not supported by the server and cannot be handled. */\n NOT_IMPLEMENTED: httpCodes.NOT_IMPLEMENTED,\n /** 502: The server, while acting as a gateway or proxy, received an invalid response from the upstream server. */\n BAD_GATEWAY: httpCodes.BAD_GATEWAY,\n /** 503: The server is not ready to handle the request. */\n SERVICE_UNAVAILABLE: httpCodes.SERVICE_UNAVAILABLE,\n /** 504: The server, while acting as a gateway or proxy, did not get a response in time from the upstream server. */\n GATEWAY_TIMEOUT: httpCodes.GATEWAY_TIMEOUT,\n /** 508: The server detected an infinite loop while processing the request. */\n LOOP_DETECTED: 508,\n /** 590: Custom Verdaccio code indicating the server cannot handle the request. */\n CANNOT_HANDLE: 590,\n};\n\nexport const ERROR_CODE = {\n token_required: 'token is required',\n};\n\nexport const API_MESSAGE = {\n PKG_CREATED: 'created new package',\n PKG_CHANGED: 'package changed',\n PKG_REMOVED: 'package removed',\n PKG_PUBLISHED: 'package published',\n TARBALL_UPLOADED: 'tarball uploaded successfully',\n TARBALL_REMOVED: 'tarball removed',\n TAG_UPDATED: 'tags updated',\n TAG_REMOVED: 'tag removed',\n TAG_ADDED: 'package tagged',\n OK: 'ok',\n LOGGED_OUT: 'Logged out',\n};\n\nexport const LOG_STATUS_MESSAGE =\n \"@{status}, user: @{user}(@{remoteIP}), req: '@{request.method} @{request.url}'\";\nexport const LOG_VERDACCIO_ERROR = `${LOG_STATUS_MESSAGE}, error: @{!error}`;\nexport const LOG_VERDACCIO_BYTES = `${LOG_STATUS_MESSAGE}, bytes: @{bytes.in}/@{bytes.out}`;\n\nexport const ROLES = {\n $ALL: '$all',\n ALL: 'all',\n $AUTH: '$authenticated',\n $ANONYMOUS: '$anonymous',\n DEPRECATED_ALL: '@all',\n DEPRECATED_AUTH: '@authenticated',\n DEPRECATED_ANONYMOUS: '@anonymous',\n};\n\nexport const PACKAGE_ACCESS = {\n SCOPE: '@*/*',\n ALL: '**',\n};\n\nexport enum HtpasswdHashAlgorithm {\n md5 = 'md5',\n sha1 = 'sha1',\n crypt = 'crypt',\n bcrypt = 'bcrypt',\n}\n\nexport const PLUGIN_PREFIX = 'verdaccio';\nexport const PLUGIN_UI_PREFIX = 'verdaccio-theme';\n\nexport const PLUGIN_CATEGORY = {\n AUTHENTICATION: 'authentication',\n MIDDLEWARE: 'middleware',\n STORAGE: 'storage',\n FILTER: 'filter',\n THEME: 'theme',\n};\n\nexport const DEFAULT_PORT = '4873';\nexport const DEFAULT_PROTOCOL = 'http';\nexport const DEFAULT_DOMAIN = 'localhost';\n"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnC,MAAMG,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,GAAG,OAAO;A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AAE,gBAAgB;EACvBC,UAAU,EAAE,YAAY;EACxBC,cAAc,EAAE,MAAM;EACtBC,eAAe,EAAE,gBAAgB;EACjCC,oBAAoB,EAAE;AACxB,CAAC;AAEM,MAAMC,cAAc,GAAAnG,OAAA,CAAAmG,cAAA,GAAG;EAC5BC,KAAK,EAAE,MAAM;EACbP,GAAG,EAAE;AACP,CAAC;AAAC,IAEUQ,qBAAqB,GAAArG,OAAA,CAAAqG,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAO1B,MAAMC,aAAa,GAAAtG,OAAA,CAAAsG,aAAA,GAAG,WAAW;AACjC,MAAMC,gBAAgB,GAAAvG,OAAA,CAAAuG,gBAAA,GAAG,iBAAiB;AAE1C,MAAMC,eAAe,GAAAxG,OAAA,CAAAwG,eAAA,GAAG;EAC7BC,cAAc,EAAE,gBAAgB;EAChCC,UAAU,EAAE,YAAY;EACxBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE;AACT,CAAC;AAEM,MAAMC,YAAY,GAAA9G,OAAA,CAAA8G,YAAA,GAAG,MAAM;AAC3B,MAAMC,gBAAgB,GAAA/G,OAAA,CAAA+G,gBAAA,GAAG,MAAM;AAC/B,MAAMC,cAAc,GAAAhH,OAAA,CAAAgH,cAAA,GAAG,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["import httpCodes from 'http-status-codes';\n\nexport const DEFAULT_PASSWORD_VALIDATION = /.{3}$/;\nexport const TIME_EXPIRATION_24H = '24h';\nexport const TIME_EXPIRATION_1H = '1h';\nexport const DIST_TAGS = 'dist-tags';\nexport const LATEST = 'latest';\nexport const USERS = 'users';\nexport const MAINTAINERS = 'maintainers';\nexport const DEFAULT_USER = 'Anonymous'; // for display purposes\nexport const ANONYMOUS_USER = 'anonymous'; // for username purposes\n\nexport const HEADER_TYPE = {\n CONTENT_ENCODING: 'content-encoding',\n CONTENT_TYPE: 'content-type',\n CONTENT_LENGTH: 'content-length',\n ACCEPT_ENCODING: 'accept-encoding',\n AUTHORIZATION: 'authorization',\n};\n\nexport const CHARACTER_ENCODING = {\n UTF8: 'utf8',\n};\n\n// @deprecated use Bearer instead\nexport const TOKEN_BASIC = 'Basic';\nexport const TOKEN_BEARER = 'Bearer';\n\nexport const HEADERS = {\n ACCEPT: 'Accept',\n ACCEPT_ENCODING: 'Accept-Encoding',\n USER_AGENT: 'User-Agent',\n JSON: 'application/json',\n CONTENT_TYPE: 'Content-type',\n CONTENT_LENGTH: 'content-length',\n TEXT_PLAIN: 'text/plain',\n TEXT_PLAIN_UTF8: 'text/plain; charset=utf-8',\n TEXT_HTML_UTF8: 'text/html; charset=utf-8',\n TEXT_HTML: 'text/html',\n AUTHORIZATION: 'authorization',\n CACHE_CONTROL: 'Cache-Control',\n NO_CACHE: 'no-cache, no-store',\n RETRY_AFTER: 'Retry-After',\n // only set with proxy that setup HTTPS\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto\n FORWARDED_PROTO: 'X-Forwarded-Proto',\n FORWARDED_FOR: 'X-Forwarded-For',\n FRAMES_OPTIONS: 'X-Frame-Options',\n CSP: 'Content-Security-Policy',\n CTO: 'X-Content-Type-Options',\n XSS: 'X-XSS-Protection',\n CLIENT: 'X-Client',\n POWERED_BY: 'X-Powered-By',\n RATELIMIT_LIMIT: 'X-RateLimit-Limit',\n RATELIMIT_REMAINING: 'X-RateLimit-Remaining',\n NONE_MATCH: 'If-None-Match',\n ETAG: 'ETag',\n JSON_CHARSET: 'application/json; charset=utf-8',\n JSON_INSTALL_CHARSET: 'application/vnd.npm.install-v1+json; charset=utf-8',\n OCTET_STREAM: 'application/octet-stream; charset=utf-8',\n TEXT_CHARSET: 'text/plain; charset=utf-8',\n JAVASCRIPT_CHARSET: 'application/javascript; charset=utf-8',\n WWW_AUTH: 'WWW-Authenticate',\n GZIP: 'gzip',\n HOST: 'host',\n};\n\n/**\n * HTTP status codes used throughout Verdaccio.\n */\nexport const HTTP_STATUS = {\n /** 202: The request has been accepted for processing, but the processing is not yet complete. */\n ACCEPTED: httpCodes.ACCEPTED,\n /** 200: Standard response for successful HTTP requests. */\n OK: httpCodes.OK,\n /** 201: The request has been fulfilled and resulted in a new resource being created. */\n CREATED: httpCodes.CREATED,\n /** 300: Indicates multiple options for the resource from which the client may choose. */\n MULTIPLE_CHOICES: httpCodes.MULTIPLE_CHOICES,\n /** 304: Indicates that the resource has not been modified since the last request. */\n NOT_MODIFIED: httpCodes.NOT_MODIFIED,\n /** 400: The server could not understand the request due to invalid syntax. */\n BAD_REQUEST: httpCodes.BAD_REQUEST,\n /** 401: The client must authenticate itself to get the requested response. */\n UNAUTHORIZED: httpCodes.UNAUTHORIZED,\n /** 403: The client does not have access rights to the content. */\n FORBIDDEN: httpCodes.FORBIDDEN,\n /** 404: The server can not find the requested resource. */\n NOT_FOUND: httpCodes.NOT_FOUND,\n /** 408: The server timed out waiting for the request. */\n REQUEST_TIMEOUT: httpCodes.REQUEST_TIMEOUT,\n /** 409: The request could not be completed due to a conflict with the current state of the resource. */\n CONFLICT: httpCodes.CONFLICT,\n /** 415: The media format of the requested data is not supported by the server. */\n UNSUPPORTED_MEDIA: httpCodes.UNSUPPORTED_MEDIA_TYPE,\n /** 422: The request was well-formed but was unable to be followed due to semantic errors. */\n BAD_DATA: httpCodes.UNPROCESSABLE_ENTITY,\n /** 500: The server has encountered a situation it doesn't know how to handle. */\n INTERNAL_ERROR: httpCodes.INTERNAL_SERVER_ERROR,\n /** 501: The request method is not supported by the server and cannot be handled. */\n NOT_IMPLEMENTED: httpCodes.NOT_IMPLEMENTED,\n /** 502: The server, while acting as a gateway or proxy, received an invalid response from the upstream server. */\n BAD_GATEWAY: httpCodes.BAD_GATEWAY,\n /** 503: The server is not ready to handle the request. */\n SERVICE_UNAVAILABLE: httpCodes.SERVICE_UNAVAILABLE,\n /** 504: The server, while acting as a gateway or proxy, did not get a response in time from the upstream server. */\n GATEWAY_TIMEOUT: httpCodes.GATEWAY_TIMEOUT,\n /** 508: The server detected an infinite loop while processing the request. */\n LOOP_DETECTED: 508,\n /** 590: Custom Verdaccio code indicating the server cannot handle the request. */\n CANNOT_HANDLE: 590,\n};\n\nexport const ERROR_CODE = {\n token_required: 'token is required',\n};\n\nexport const API_MESSAGE = {\n PKG_CREATED: 'created new package',\n PKG_CHANGED: 'package changed',\n PKG_REMOVED: 'package removed',\n PKG_PUBLISHED: 'package published',\n TARBALL_UPLOADED: 'tarball uploaded successfully',\n TARBALL_REMOVED: 'tarball removed',\n TAG_UPDATED: 'tags updated',\n TAG_REMOVED: 'tag removed',\n TAG_ADDED: 'package tagged',\n OK: 'ok',\n LOGGED_OUT: 'Logged out',\n};\n\nexport const LOG_STATUS_MESSAGE =\n \"@{status}, user: @{user}(@{remoteIP}), req: '@{request.method} @{request.url}'\";\nexport const LOG_VERDACCIO_ERROR = `${LOG_STATUS_MESSAGE}, error: @{!error}`;\nexport const LOG_VERDACCIO_BYTES = `${LOG_STATUS_MESSAGE}, bytes: @{bytes.in}/@{bytes.out}`;\n\nexport const ROLES = {\n $ALL: '$all',\n ALL: 'all',\n $AUTH: '$authenticated',\n $ANONYMOUS: '$anonymous',\n DEPRECATED_ALL: '@all',\n DEPRECATED_AUTH: '@authenticated',\n DEPRECATED_ANONYMOUS: '@anonymous',\n};\n\nexport const PACKAGE_ACCESS = {\n SCOPE: '@*/*',\n ALL: '**',\n};\n\nexport enum HtpasswdHashAlgorithm {\n md5 = 'md5',\n sha1 = 'sha1',\n crypt = 'crypt',\n bcrypt = 'bcrypt',\n}\n\nexport const PLUGIN_PREFIX = 'verdaccio';\nexport const PLUGIN_UI_PREFIX = 'verdaccio-theme';\n\nexport const PLUGIN_CATEGORY = {\n AUTHENTICATION: 'authentication',\n MIDDLEWARE: 'middleware',\n STORAGE: 'storage',\n FILTER: 'filter',\n THEME: 'theme',\n};\n\nexport const DEFAULT_PORT = '4873';\nexport const DEFAULT_PROTOCOL = 'http';\nexport const DEFAULT_DOMAIN = 'localhost';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAa,8BAA8B;AAG3C,IAAa,YAAY;AACzB,IAAa,SAAS;AACtB,IAAa,QAAQ;AACrB,IAAa,cAAc;AAC3B,IAAa,eAAe;AAC5B,IAAa,iBAAiB;AAE9B,IAAa,cAAc;CACzB,kBAAkB;CAClB,cAAc;CACd,gBAAgB;CAChB,iBAAiB;CACjB,eAAe;AACjB;AAEA,IAAa,qBAAqB,EAChC,MAAM,OACR;AAGA,IAAa,cAAc;AAC3B,IAAa,eAAe;AAE5B,IAAa,UAAU;CACrB,QAAQ;CACR,iBAAiB;CACjB,YAAY;CACZ,MAAM;CACN,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,iBAAiB;CACjB,gBAAgB;CAChB,WAAW;CACX,eAAe;CACf,eAAe;CACf,UAAU;CACV,aAAa;CAGb,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,KAAK;CACL,KAAK;CACL,KAAK;CACL,QAAQ;CACR,YAAY;CACZ,iBAAiB;CACjB,qBAAqB;CACrB,YAAY;CACZ,MAAM;CACN,cAAc;CACd,sBAAsB;CACtB,cAAc;CACd,cAAc;CACd,oBAAoB;CACpB,UAAU;CACV,MAAM;CACN,MAAM;AACR;;;;AAKA,IAAa,cAAc;;CAEzB,UAAU,kBAAA,QAAU;;CAEpB,IAAI,kBAAA,QAAU;;CAEd,SAAS,kBAAA,QAAU;;CAEnB,kBAAkB,kBAAA,QAAU;;CAE5B,cAAc,kBAAA,QAAU;;CAExB,aAAa,kBAAA,QAAU;;CAEvB,cAAc,kBAAA,QAAU;;CAExB,WAAW,kBAAA,QAAU;;CAErB,WAAW,kBAAA,QAAU;;CAErB,iBAAiB,kBAAA,QAAU;;CAE3B,UAAU,kBAAA,QAA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