verdaccio 5.1.5 → 5.2.2
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 +37 -0
- package/build/api/endpoint/api/publish.js +2 -2
- package/build/api/middleware.js +9 -9
- package/build/api/web/html/renderHTML.js +2 -2
- package/build/api/web/index.js +1 -1
- package/build/lib/auth-utils.js +12 -12
- package/build/lib/bootstrap.js +1 -1
- package/build/lib/cli/utils.js +4 -3
- package/build/lib/config-utils.js +4 -4
- package/build/lib/constants.js +1 -1
- package/build/lib/crypto-utils.js +3 -3
- package/build/lib/logger/formatter/prettifier.js +3 -3
- package/build/lib/logger/index.js +6 -6
- package/build/lib/logger/logger.js +1 -1
- package/build/lib/logger/utils.js +1 -1
- package/build/lib/notify/index.js +1 -1
- package/build/lib/storage-utils.js +9 -9
- package/build/lib/utils.js +33 -33
- package/build/utils/user.js +1 -1
- package/package.json +36 -36
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [5.2.2](https://github.com/verdaccio/verdaccio/compare/v5.2.1...v5.2.2) (2021-11-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* update python dependency on docker image ([#2644](https://github.com/verdaccio/verdaccio/issues/2644)) ([0eab3e1](https://github.com/verdaccio/verdaccio/commit/0eab3e1746e4479bc9baad0e74e10cb23f197f0e))
|
|
11
|
+
|
|
12
|
+
### [5.2.1](https://github.com/verdaccio/verdaccio/compare/v5.2.0...v5.2.1) (2021-11-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** update dependency async to v3.2.2 ([#2633](https://github.com/verdaccio/verdaccio/issues/2633)) ([da5d7e9](https://github.com/verdaccio/verdaccio/commit/da5d7e96cbb05e0244347c39ae160e5008f85b8f))
|
|
18
|
+
* **deps:** update dependency mime to v2.6.0 ([#2634](https://github.com/verdaccio/verdaccio/issues/2634)) ([089796c](https://github.com/verdaccio/verdaccio/commit/089796ca471af45def091736be5fcad54141f4e7))
|
|
19
|
+
* **deps:** update dependency validator to v13.7.0 ([#2635](https://github.com/verdaccio/verdaccio/issues/2635)) ([ef2fbff](https://github.com/verdaccio/verdaccio/commit/ef2fbff7558a5417d13a44e32f2bdf90df7d480e))
|
|
20
|
+
|
|
21
|
+
## [5.2.0](https://github.com/verdaccio/verdaccio/compare/v5.1.6...v5.2.0) (2021-10-24)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* upgrade node docker to 14.18.1 ([#2579](https://github.com/verdaccio/verdaccio/issues/2579)) ([247a317](https://github.com/verdaccio/verdaccio/commit/247a317ca025c3e52ffa5a7ca3f45e586714c70c))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **deps:** update dependency clipanion to v3.1.0 ([#2561](https://github.com/verdaccio/verdaccio/issues/2561)) ([6a78ae0](https://github.com/verdaccio/verdaccio/commit/6a78ae0045968715f158b55d17bae71612540800))
|
|
32
|
+
* **deps:** update dependency dayjs to v1.10.7 ([#2565](https://github.com/verdaccio/verdaccio/issues/2565)) ([69091d1](https://github.com/verdaccio/verdaccio/commit/69091d15fbc7e1b479e02c47769237f2792926c8))
|
|
33
|
+
* **deps:** update dependency pino to v6.13.3 ([#2562](https://github.com/verdaccio/verdaccio/issues/2562)) ([384b3e2](https://github.com/verdaccio/verdaccio/commit/384b3e2ce560cd513f2a20bf62f98a3f3051dccf))
|
|
34
|
+
|
|
35
|
+
### [5.1.6](https://github.com/verdaccio/verdaccio/compare/v5.1.5...v5.1.6) (2021-09-21)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* update dependencies security update ([#2453](https://github.com/verdaccio/verdaccio/issues/2453)) ([9d7ddd9](https://github.com/verdaccio/verdaccio/commit/9d7ddd9ecd4b69a0d0cb63eb72489ec7118c9d4f))
|
|
41
|
+
|
|
5
42
|
### [5.1.5](https://github.com/verdaccio/verdaccio/compare/v5.1.4...v5.1.5) (2021-09-17)
|
|
6
43
|
|
|
7
44
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.addVersion = addVersion;
|
|
6
7
|
exports.default = publish;
|
|
7
8
|
exports.publishPackage = publishPackage;
|
|
8
|
-
exports.unPublishPackage = unPublishPackage;
|
|
9
9
|
exports.removeTarball = removeTarball;
|
|
10
|
-
exports.
|
|
10
|
+
exports.unPublishPackage = unPublishPackage;
|
|
11
11
|
exports.uploadPackageTarball = uploadPackageTarball;
|
|
12
12
|
|
|
13
13
|
var _path = _interopRequireDefault(require("path"));
|
package/build/api/middleware.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.LOG_VERDACCIO_ERROR = exports.LOG_VERDACCIO_BYTES = exports.LOG_STATUS_MESSAGE = void 0;
|
|
7
|
+
exports.allow = allow;
|
|
8
|
+
exports.antiLoop = antiLoop;
|
|
9
|
+
exports.encodeScopePackage = encodeScopePackage;
|
|
10
|
+
exports.errorReportingMiddleware = errorReportingMiddleware;
|
|
11
|
+
exports.expectJson = expectJson;
|
|
12
|
+
exports.final = final;
|
|
13
|
+
exports.log = log;
|
|
6
14
|
exports.match = match;
|
|
15
|
+
exports.media = media;
|
|
7
16
|
exports.serveFavicon = serveFavicon;
|
|
8
17
|
exports.setSecurityWebHeaders = setSecurityWebHeaders;
|
|
9
18
|
exports.validateName = validateName;
|
|
10
19
|
exports.validatePackage = validatePackage;
|
|
11
|
-
exports.media = media;
|
|
12
|
-
exports.encodeScopePackage = encodeScopePackage;
|
|
13
|
-
exports.expectJson = expectJson;
|
|
14
|
-
exports.antiLoop = antiLoop;
|
|
15
|
-
exports.allow = allow;
|
|
16
|
-
exports.final = final;
|
|
17
|
-
exports.log = log;
|
|
18
|
-
exports.errorReportingMiddleware = errorReportingMiddleware;
|
|
19
|
-
exports.LOG_VERDACCIO_BYTES = exports.LOG_VERDACCIO_ERROR = exports.LOG_STATUS_MESSAGE = void 0;
|
|
20
20
|
|
|
21
21
|
var _fs = _interopRequireDefault(require("fs"));
|
|
22
22
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.validatePrimaryColor = validatePrimaryColor;
|
|
7
|
-
exports.resolveLogo = resolveLogo;
|
|
8
6
|
exports.default = renderHTML;
|
|
7
|
+
exports.resolveLogo = resolveLogo;
|
|
8
|
+
exports.validatePrimaryColor = validatePrimaryColor;
|
|
9
9
|
|
|
10
10
|
var _url = require("url");
|
|
11
11
|
|
package/build/api/web/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.default = _default;
|
|
6
7
|
exports.loadTheme = loadTheme;
|
|
7
8
|
exports.validatePrimaryColor = validatePrimaryColor;
|
|
8
|
-
exports.default = _default;
|
|
9
9
|
|
|
10
10
|
var _fs = _interopRequireDefault(require("fs"));
|
|
11
11
|
|
package/build/lib/auth-utils.js
CHANGED
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.validatePassword = validatePassword;
|
|
7
|
-
exports.createRemoteUser = createRemoteUser;
|
|
8
|
-
exports.createAnonymousRemoteUser = createAnonymousRemoteUser;
|
|
9
6
|
exports.allow_action = allow_action;
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
7
|
+
exports.buildUserBuffer = buildUserBuffer;
|
|
8
|
+
exports.createAnonymousRemoteUser = createAnonymousRemoteUser;
|
|
9
|
+
exports.createRemoteUser = createRemoteUser;
|
|
12
10
|
exports.createSessionToken = createSessionToken;
|
|
13
|
-
exports.
|
|
11
|
+
exports.expireReasons = exports.defaultSecurity = void 0;
|
|
12
|
+
exports.getApiToken = getApiToken;
|
|
14
13
|
exports.getAuthenticatedMessage = getAuthenticatedMessage;
|
|
15
|
-
exports.
|
|
14
|
+
exports.getDefaultPlugins = getDefaultPlugins;
|
|
15
|
+
exports.getMiddlewareCredentials = getMiddlewareCredentials;
|
|
16
|
+
exports.getSecurity = getSecurity;
|
|
17
|
+
exports.handleSpecialUnpublish = handleSpecialUnpublish;
|
|
16
18
|
exports.isAESLegacy = isAESLegacy;
|
|
17
|
-
exports.
|
|
19
|
+
exports.isAuthHeaderValid = isAuthHeaderValid;
|
|
20
|
+
exports.parseAESCredentials = parseAESCredentials;
|
|
18
21
|
exports.parseAuthTokenHeader = parseAuthTokenHeader;
|
|
19
22
|
exports.parseBasicPayload = parseBasicPayload;
|
|
20
|
-
exports.
|
|
23
|
+
exports.validatePassword = validatePassword;
|
|
21
24
|
exports.verifyJWTPayload = verifyJWTPayload;
|
|
22
|
-
exports.isAuthHeaderValid = isAuthHeaderValid;
|
|
23
|
-
exports.getMiddlewareCredentials = getMiddlewareCredentials;
|
|
24
|
-
exports.expireReasons = exports.defaultSecurity = void 0;
|
|
25
25
|
|
|
26
26
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
27
27
|
|
package/build/lib/bootstrap.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.startVerdaccio = startVerdaccio;
|
|
7
6
|
exports.listenDefaultCallback = listenDefaultCallback;
|
|
7
|
+
exports.startVerdaccio = startVerdaccio;
|
|
8
8
|
|
|
9
9
|
var _url = _interopRequireDefault(require("url"));
|
|
10
10
|
|
package/build/lib/cli/utils.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.MIN_NODE_VERSION = void 0;
|
|
7
7
|
exports.getListListenAddresses = getListListenAddresses;
|
|
8
|
-
exports.
|
|
8
|
+
exports.isVersionValid = isVersionValid;
|
|
9
|
+
exports.resolveConfigPath = void 0;
|
|
9
10
|
|
|
10
11
|
var _path = _interopRequireDefault(require("path"));
|
|
11
12
|
|
|
@@ -71,4 +72,4 @@ function getListListenAddresses(argListen, configListen) {
|
|
|
71
72
|
}).filter(Boolean);
|
|
72
73
|
return addresses;
|
|
73
74
|
}
|
|
74
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
75
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY2xpL3V0aWxzLnRzIl0sIm5hbWVzIjpbImxvZ2dlciIsInJlcXVpcmUiLCJyZXNvbHZlQ29uZmlnUGF0aCIsInN0b3JhZ2VMb2NhdGlvbiIsImZpbGUiLCJwYXRoIiwicmVzb2x2ZSIsImRpcm5hbWUiLCJNSU5fTk9ERV9WRVJTSU9OIiwiaXNWZXJzaW9uVmFsaWQiLCJ2ZXJzaW9uIiwic2VtdmVyIiwic2F0aXNmaWVzIiwiZ2V0TGlzdExpc3RlbkFkZHJlc3NlcyIsImFyZ0xpc3RlbiIsImNvbmZpZ0xpc3RlbiIsImFkZHJlc3NlcyIsIkFycmF5IiwiaXNBcnJheSIsInByb2Nlc3MiLCJlbWl0V2FybmluZyIsIkRFRkFVTFRfUE9SVCIsIm1hcCIsImFkZHIiLCJwYXJzZ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bHNlIHtcbiAgICBhZGRyZXNzZXMgPSBbREVGQVVMVF9QT1JUXTtcbiAgfVxuICBhZGRyZXNzZXMgPSBhZGRyZXNzZXNcbiAgICAubWFwKGZ1bmN0aW9uIChhZGRyKTogc3RyaW5nIHtcbiAgICAgIGNvbnN0IHBhcnNlZEFkZHIgPSBwYXJzZUFkZHJlc3MoYWRkcik7XG5cbiAgICAgIGlmICghcGFyc2VkQWRkcikge1xuICAgICAgICBsb2dnZXIubG9nZ2VyLndhcm4oXG4gICAgICAgICAgeyBhZGRyOiBhZGRyIH0sXG4gICAgICAgICAgJ2ludmFsaWQgYWRkcmVzcyAtIEB7YWRkcn0sIHdlIGV4cGVjdCBhIHBvcnQgKGUuZy4gXCI0ODczXCIpLCcgK1xuICAgICAgICAgICAgJyBob3N0OnBvcnQgKGUuZy4gXCJsb2NhbGhvc3Q6NDg3M1wiKSBvciBmdWxsIHVybCcgK1xuICAgICAgICAgICAgJyAoZS5nLiBcImh0dHA6Ly9sb2NhbGhvc3Q6NDg3My9cIiknXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBwYXJzZWRBZGRyO1xuICAgIH0pXG4gICAgLmZpbHRlcihCb29sZWFuKTtcblxuICByZXR1cm4gYWRkcmVzc2VzO1xufVxuIl19
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.getMatchedPackagesSpec = getMatchedPackagesSpec;
|
|
7
|
+
exports.hasProxyTo = hasProxyTo;
|
|
8
|
+
exports.normalisePackageAccess = normalisePackageAccess;
|
|
6
9
|
exports.normalizeUserList = normalizeUserList;
|
|
7
|
-
exports.uplinkSanityCheck = uplinkSanityCheck;
|
|
8
10
|
exports.sanityCheckNames = sanityCheckNames;
|
|
9
11
|
exports.sanityCheckUplinksProps = sanityCheckUplinksProps;
|
|
10
|
-
exports.
|
|
11
|
-
exports.getMatchedPackagesSpec = getMatchedPackagesSpec;
|
|
12
|
-
exports.normalisePackageAccess = normalisePackageAccess;
|
|
12
|
+
exports.uplinkSanityCheck = uplinkSanityCheck;
|
|
13
13
|
|
|
14
14
|
var _assert = _interopRequireDefault(require("assert"));
|
|
15
15
|
|
package/build/lib/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.keyPem = exports.csrPem = exports.certPem = exports.WEB_TITLE = exports.USERS = exports.TOKEN_BEARER = exports.TOKEN_BASIC = exports.TIME_EXPIRATION_7D = exports.TIME_EXPIRATION_24H = exports.SUPPORT_ERRORS = exports.STORAGE = exports.ROLES = exports.PACKAGE_ACCESS = exports.MODULE_NOT_FOUND = exports.LATEST = exports.HTTP_STATUS = exports.HEADER_TYPE = exports.HEADERS = exports.ERROR_CODE = exports.DIST_TAGS = exports.DEFAULT_USER = exports.DEFAULT_UPLINK = exports.DEFAULT_REGISTRY = exports.DEFAULT_PROTOCOL = exports.DEFAULT_PORT = exports.DEFAULT_NO_README = exports.DEFAULT_MIN_LIMIT_PASSWORD = exports.DEFAULT_DOMAIN = exports.CHARACTER_ENCODING = exports.APP_ERROR = exports.API_MESSAGE = exports.API_ERROR = void 0;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @prettier
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.aesEncrypt = aesEncrypt;
|
|
7
6
|
exports.aesDecrypt = aesDecrypt;
|
|
7
|
+
exports.aesEncrypt = aesEncrypt;
|
|
8
8
|
exports.createTarballHash = createTarballHash;
|
|
9
|
-
exports.
|
|
9
|
+
exports.defaultTarballHashAlgorithm = exports.defaultAlgorithm = void 0;
|
|
10
10
|
exports.generateRandomHexString = generateRandomHexString;
|
|
11
11
|
exports.signPayload = signPayload;
|
|
12
|
+
exports.stringToMD5 = stringToMD5;
|
|
12
13
|
exports.verifyPayload = verifyPayload;
|
|
13
|
-
exports.defaultTarballHashAlgorithm = exports.defaultAlgorithm = void 0;
|
|
14
14
|
|
|
15
15
|
var _crypto = require("crypto");
|
|
16
16
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.formatLoggingDate = formatLoggingDate;
|
|
6
|
+
exports.FORMAT_DATE = exports.CUSTOM_PAD_LENGTH = void 0;
|
|
8
7
|
exports.fillInMsgTemplate = fillInMsgTemplate;
|
|
8
|
+
exports.formatLoggingDate = formatLoggingDate;
|
|
9
|
+
exports.isObject = isObject;
|
|
9
10
|
exports.printMessage = printMessage;
|
|
10
|
-
exports.FORMAT_DATE = exports.CUSTOM_PAD_LENGTH = void 0;
|
|
11
11
|
|
|
12
12
|
var _util = require("util");
|
|
13
13
|
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "setup", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _logger.setup;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "createLogger", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function () {
|
|
@@ -21,6 +15,12 @@ Object.defineProperty(exports, "logger", {
|
|
|
21
15
|
return _logger.logger;
|
|
22
16
|
}
|
|
23
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "setup", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _logger.setup;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
24
|
|
|
25
25
|
var _logger = require("./logger");
|
|
26
26
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvbG9nZ2VyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgc2V0dXAsIGNyZWF0ZUxvZ2dlciwgbG9nZ2VyIH0gZnJvbSAnLi9sb2dnZXInO1xuIl19
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createLogger = createLogger;
|
|
7
7
|
exports.getLogger = getLogger;
|
|
8
|
-
exports.setup = setup;
|
|
9
8
|
exports.logger = void 0;
|
|
9
|
+
exports.setup = setup;
|
|
10
10
|
|
|
11
11
|
var _pino = _interopRequireDefault(require("pino"));
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.FORMAT_DATE = exports.CUSTOM_PAD_LENGTH = void 0;
|
|
6
7
|
exports.formatLoggingDate = formatLoggingDate;
|
|
7
8
|
exports.padLeft = padLeft;
|
|
8
9
|
exports.padRight = padRight;
|
|
9
|
-
exports.CUSTOM_PAD_LENGTH = exports.FORMAT_DATE = void 0;
|
|
10
10
|
|
|
11
11
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
12
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.handleNotify = handleNotify;
|
|
7
|
-
exports.sendNotification = sendNotification;
|
|
8
7
|
exports.notify = notify;
|
|
8
|
+
exports.sendNotification = sendNotification;
|
|
9
9
|
|
|
10
10
|
var _handlebars = _interopRequireDefault(require("handlebars"));
|
|
11
11
|
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.WHITELIST = void 0;
|
|
7
|
+
exports.checkPackageLocal = checkPackageLocal;
|
|
8
|
+
exports.checkPackageRemote = checkPackageRemote;
|
|
9
|
+
exports.cleanUpLinksRef = cleanUpLinksRef;
|
|
10
|
+
exports.cleanUpReadme = cleanUpReadme;
|
|
6
11
|
exports.generatePackageTemplate = generatePackageTemplate;
|
|
7
|
-
exports.normalizePackage = normalizePackage;
|
|
8
12
|
exports.generateRevision = generateRevision;
|
|
9
13
|
exports.getLatestReadme = getLatestReadme;
|
|
10
|
-
exports.
|
|
11
|
-
exports.normalizeContributors = normalizeContributors;
|
|
12
|
-
exports.cleanUpLinksRef = cleanUpLinksRef;
|
|
13
|
-
exports.checkPackageLocal = checkPackageLocal;
|
|
14
|
-
exports.publishPackage = publishPackage;
|
|
15
|
-
exports.checkPackageRemote = checkPackageRemote;
|
|
14
|
+
exports.isPublishablePackage = isPublishablePackage;
|
|
16
15
|
exports.mergeUplinkTimeIntoLocal = mergeUplinkTimeIntoLocal;
|
|
16
|
+
exports.normalizeContributors = normalizeContributors;
|
|
17
|
+
exports.normalizePackage = normalizePackage;
|
|
17
18
|
exports.prepareSearchPackage = prepareSearchPackage;
|
|
18
|
-
exports.
|
|
19
|
-
exports.WHITELIST = void 0;
|
|
19
|
+
exports.publishPackage = publishPackage;
|
|
20
20
|
|
|
21
21
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
22
22
|
|
package/build/lib/utils.js
CHANGED
|
@@ -3,48 +3,48 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ErrorCode = void 0;
|
|
7
|
+
exports.addGravatarSupport = addGravatarSupport;
|
|
8
|
+
exports.addScope = addScope;
|
|
9
|
+
exports.buildToken = buildToken;
|
|
10
|
+
exports.combineBaseUrl = combineBaseUrl;
|
|
11
|
+
exports.convertDistRemoteToLocalTarballUrls = convertDistRemoteToLocalTarballUrls;
|
|
7
12
|
exports.convertPayloadToBase64 = convertPayloadToBase64;
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.isObject = isObject;
|
|
11
|
-
exports.isObjectOrArray = isObjectOrArray;
|
|
12
|
-
exports.validateMetadata = validateMetadata;
|
|
13
|
+
exports.deleteProperties = deleteProperties;
|
|
14
|
+
exports.encodeScopedUri = encodeScopedUri;
|
|
13
15
|
exports.extractTarballFromUrl = extractTarballFromUrl;
|
|
14
|
-
exports.
|
|
16
|
+
exports.fileExists = fileExists;
|
|
17
|
+
exports.folderExists = folderExists;
|
|
18
|
+
exports.formatAuthor = formatAuthor;
|
|
19
|
+
exports.getLatestVersion = getLatestVersion;
|
|
15
20
|
exports.getLocalRegistryTarballUri = getLocalRegistryTarballUri;
|
|
16
|
-
exports.
|
|
21
|
+
exports.getPublicUrl = getPublicUrl;
|
|
22
|
+
exports.getUserAgent = getUserAgent;
|
|
17
23
|
exports.getVersion = getVersion;
|
|
18
|
-
exports.parseAddress = parseAddress;
|
|
19
|
-
exports.semverSort = semverSort;
|
|
20
|
-
exports.normalizeDistTags = normalizeDistTags;
|
|
21
|
-
exports.parseInterval = parseInterval;
|
|
22
|
-
exports.getWebProtocol = getWebProtocol;
|
|
23
|
-
exports.getLatestVersion = getLatestVersion;
|
|
24
|
-
exports.parseConfigFile = parseConfigFile;
|
|
25
|
-
exports.folderExists = folderExists;
|
|
26
|
-
exports.fileExists = fileExists;
|
|
27
|
-
exports.sortByName = sortByName;
|
|
28
|
-
exports.addScope = addScope;
|
|
29
|
-
exports.deleteProperties = deleteProperties;
|
|
30
|
-
exports.addGravatarSupport = addGravatarSupport;
|
|
31
|
-
exports.parseReadme = parseReadme;
|
|
32
|
-
exports.buildToken = buildToken;
|
|
33
24
|
exports.getVersionFromTarball = getVersionFromTarball;
|
|
34
|
-
exports.
|
|
35
|
-
exports.isHTTPProtocol = isHTTPProtocol;
|
|
36
|
-
exports.pad = pad;
|
|
37
|
-
exports.mask = mask;
|
|
38
|
-
exports.encodeScopedUri = encodeScopedUri;
|
|
25
|
+
exports.getWebProtocol = getWebProtocol;
|
|
39
26
|
exports.hasDiffOneKey = hasDiffOneKey;
|
|
40
|
-
exports.
|
|
27
|
+
exports.isHTTPProtocol = isHTTPProtocol;
|
|
28
|
+
exports.isHost = isHost;
|
|
29
|
+
exports.isObject = isObject;
|
|
30
|
+
exports.isObjectOrArray = isObjectOrArray;
|
|
41
31
|
exports.isRelatedToDeprecation = isRelatedToDeprecation;
|
|
32
|
+
exports.isVersionValid = isVersionValid;
|
|
33
|
+
exports.mask = mask;
|
|
34
|
+
exports.normalizeDistTags = normalizeDistTags;
|
|
35
|
+
exports.pad = pad;
|
|
36
|
+
exports.parseAddress = parseAddress;
|
|
37
|
+
exports.parseConfigFile = parseConfigFile;
|
|
38
|
+
exports.parseInterval = parseInterval;
|
|
39
|
+
exports.parseReadme = parseReadme;
|
|
40
|
+
exports.semverSort = semverSort;
|
|
41
|
+
exports.sortByName = sortByName;
|
|
42
|
+
exports.tagVersion = tagVersion;
|
|
43
|
+
exports.validateMetadata = validateMetadata;
|
|
44
|
+
exports.validateName = validateName;
|
|
45
|
+
exports.validatePackage = validatePackage;
|
|
42
46
|
exports.validateURL = validateURL;
|
|
43
|
-
exports.isHost = isHost;
|
|
44
|
-
exports.getPublicUrl = getPublicUrl;
|
|
45
|
-
exports.combineBaseUrl = combineBaseUrl;
|
|
46
47
|
exports.wrapPrefix = wrapPrefix;
|
|
47
|
-
exports.ErrorCode = void 0;
|
|
48
48
|
|
|
49
49
|
var _fs = _interopRequireDefault(require("fs"));
|
|
50
50
|
|
package/build/utils/user.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.generateGravatarUrl = generateGravatarUrl;
|
|
7
6
|
exports.GENERIC_AVATAR = void 0;
|
|
7
|
+
exports.generateGravatarUrl = generateGravatarUrl;
|
|
8
8
|
|
|
9
9
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verdaccio",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "A lightweight private npm proxy registry",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Verdaccio Maintainers",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"url": "https://opencollective.com/verdaccio"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@verdaccio/commons-api": "10.0.
|
|
22
|
-
"@verdaccio/local-storage": "10.0.
|
|
21
|
+
"@verdaccio/commons-api": "10.0.1",
|
|
22
|
+
"@verdaccio/local-storage": "10.0.7",
|
|
23
23
|
"@verdaccio/readme": "10.0.0",
|
|
24
24
|
"@verdaccio/streams": "10.0.0",
|
|
25
25
|
"@verdaccio/ui-theme": "3.2.1",
|
|
26
26
|
"JSONStream": "1.3.5",
|
|
27
|
-
"async": "3.2.
|
|
27
|
+
"async": "3.2.2",
|
|
28
28
|
"body-parser": "1.19.0",
|
|
29
|
-
"clipanion": "3.0
|
|
29
|
+
"clipanion": "3.1.0",
|
|
30
30
|
"compression": "1.7.4",
|
|
31
31
|
"cookies": "0.8.0",
|
|
32
32
|
"cors": "2.8.5",
|
|
33
|
-
"dayjs": "1.10.
|
|
33
|
+
"dayjs": "1.10.7",
|
|
34
34
|
"debug": "^4.3.2",
|
|
35
35
|
"envinfo": "7.8.1",
|
|
36
36
|
"eslint-import-resolver-node": "0.3.4",
|
|
@@ -46,56 +46,56 @@
|
|
|
46
46
|
"lunr-mutable-indexes": "2.3.2",
|
|
47
47
|
"marked": "2.1.3",
|
|
48
48
|
"memoizee": "0.4.15",
|
|
49
|
-
"mime": "2.
|
|
49
|
+
"mime": "2.6.0",
|
|
50
50
|
"minimatch": "3.0.4",
|
|
51
51
|
"mkdirp": "1.0.4",
|
|
52
52
|
"mv": "2.1.1",
|
|
53
|
-
"pino": "6.13.
|
|
53
|
+
"pino": "6.13.3",
|
|
54
54
|
"pkginfo": "0.4.1",
|
|
55
55
|
"prettier-bytes": "^1.0.4",
|
|
56
56
|
"pretty-ms": "^7.0.1",
|
|
57
57
|
"request": "2.88.0",
|
|
58
58
|
"semver": "7.3.5",
|
|
59
|
-
"validator": "13.
|
|
60
|
-
"verdaccio-audit": "10.0.
|
|
59
|
+
"validator": "13.7.0",
|
|
60
|
+
"verdaccio-audit": "10.0.2",
|
|
61
61
|
"verdaccio-htpasswd": "10.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@babel/cli": "7.
|
|
65
|
-
"@babel/core": "7.
|
|
66
|
-
"@babel/node": "7.
|
|
67
|
-
"@babel/plugin-proposal-class-properties": "7.
|
|
68
|
-
"@babel/plugin-proposal-decorators": "7.
|
|
69
|
-
"@babel/plugin-proposal-export-namespace-from": "7.
|
|
70
|
-
"@babel/plugin-proposal-function-sent": "7.
|
|
71
|
-
"@babel/plugin-proposal-json-strings": "7.
|
|
72
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "7.
|
|
73
|
-
"@babel/plugin-proposal-numeric-separator": "7.
|
|
74
|
-
"@babel/plugin-proposal-object-rest-spread": "7.
|
|
75
|
-
"@babel/plugin-proposal-optional-chaining": "7.
|
|
76
|
-
"@babel/plugin-proposal-throw-expressions": "7.
|
|
64
|
+
"@babel/cli": "7.16.0",
|
|
65
|
+
"@babel/core": "7.16.0",
|
|
66
|
+
"@babel/node": "7.16.0",
|
|
67
|
+
"@babel/plugin-proposal-class-properties": "7.16.0",
|
|
68
|
+
"@babel/plugin-proposal-decorators": "7.16.0",
|
|
69
|
+
"@babel/plugin-proposal-export-namespace-from": "7.16.0",
|
|
70
|
+
"@babel/plugin-proposal-function-sent": "7.16.0",
|
|
71
|
+
"@babel/plugin-proposal-json-strings": "7.16.0",
|
|
72
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.0",
|
|
73
|
+
"@babel/plugin-proposal-numeric-separator": "7.16.0",
|
|
74
|
+
"@babel/plugin-proposal-object-rest-spread": "7.16.0",
|
|
75
|
+
"@babel/plugin-proposal-optional-chaining": "7.16.0",
|
|
76
|
+
"@babel/plugin-proposal-throw-expressions": "7.16.0",
|
|
77
77
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
78
78
|
"@babel/plugin-syntax-import-meta": "7.10.4",
|
|
79
|
-
"@babel/plugin-transform-async-to-generator": "7.
|
|
80
|
-
"@babel/plugin-transform-classes": "7.
|
|
81
|
-
"@babel/plugin-transform-runtime": "7.
|
|
79
|
+
"@babel/plugin-transform-async-to-generator": "7.16.0",
|
|
80
|
+
"@babel/plugin-transform-classes": "7.16.0",
|
|
81
|
+
"@babel/plugin-transform-runtime": "7.16.0",
|
|
82
82
|
"@babel/polyfill": "^7.12.1",
|
|
83
|
-
"@babel/preset-env": "7.
|
|
84
|
-
"@babel/preset-typescript": "7.
|
|
85
|
-
"@babel/register": "7.
|
|
86
|
-
"@babel/runtime": "7.
|
|
83
|
+
"@babel/preset-env": "7.16.0",
|
|
84
|
+
"@babel/preset-typescript": "7.16.0",
|
|
85
|
+
"@babel/register": "7.16.0",
|
|
86
|
+
"@babel/runtime": "7.16.0",
|
|
87
87
|
"@commitlint/cli": "12.1.4",
|
|
88
88
|
"@commitlint/config-conventional": "12.1.4",
|
|
89
89
|
"@octokit/rest": "18.6.0",
|
|
90
|
-
"@types/async": "3.2.
|
|
90
|
+
"@types/async": "3.2.9",
|
|
91
91
|
"@types/express": "4.17.6",
|
|
92
92
|
"@types/http-errors": "1.8.0",
|
|
93
93
|
"@types/jest": "26.0.14",
|
|
94
94
|
"@types/lodash": "4.14.167",
|
|
95
|
-
"@types/mime": "2.0.
|
|
95
|
+
"@types/mime": "2.0.3",
|
|
96
96
|
"@types/minimatch": "3.0.3",
|
|
97
97
|
"@types/node": "14.14.37",
|
|
98
|
-
"@types/pino": "6.3.
|
|
98
|
+
"@types/pino": "6.3.12",
|
|
99
99
|
"@types/request": "2.48.5",
|
|
100
100
|
"@types/semver": "7.3.4",
|
|
101
101
|
"@typescript-eslint/eslint-plugin": "4.13.0",
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
"puppeteer": "5.5.0",
|
|
133
133
|
"rimraf": "3.0.2",
|
|
134
134
|
"selfsigned": "1.10.11",
|
|
135
|
-
"standard-version": "9.3.
|
|
135
|
+
"standard-version": "9.3.2",
|
|
136
136
|
"supertest": "6.1.3",
|
|
137
137
|
"ts-node": "10.2.0",
|
|
138
138
|
"typescript": "4.1.3",
|
|
139
|
-
"verdaccio-auth-memory": "10.0.
|
|
140
|
-
"verdaccio-memory": "10.0.
|
|
139
|
+
"verdaccio-auth-memory": "10.0.1",
|
|
140
|
+
"verdaccio-memory": "10.0.1"
|
|
141
141
|
},
|
|
142
142
|
"keywords": [
|
|
143
143
|
"private",
|