@pnpm/config 21.6.1 → 21.6.3
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getScopeRegistries(rawConfig: Record<string, object>): Record<string, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getScopeRegistries = void 0;
|
|
7
|
+
const normalize_registry_url_1 = __importDefault(require("normalize-registry-url"));
|
|
8
|
+
function getScopeRegistries(rawConfig) {
|
|
9
|
+
const registries = {};
|
|
10
|
+
for (const configKey of Object.keys(rawConfig)) {
|
|
11
|
+
if (configKey[0] === '@' && configKey.endsWith(':registry')) {
|
|
12
|
+
registries[configKey.slice(0, configKey.indexOf(':'))] = (0, normalize_registry_url_1.default)(rawConfig[configKey]);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return registries;
|
|
16
|
+
}
|
|
17
|
+
exports.getScopeRegistries = getScopeRegistries;
|
|
18
|
+
//# sourceMappingURL=getScopeRegistries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScopeRegistries.js","sourceRoot":"","sources":["../src/getScopeRegistries.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAyD;AAEzD,SAAgB,kBAAkB,CAAE,SAAiC;IACnE,MAAM,UAAU,GAA2B,EAAE,CAAA;IAC7C,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/C,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YAC5D,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAA,gCAAoB,EAAC,SAAS,CAAC,SAAS,CAAsB,CAAC,CAAA;QAC1H,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AARD,gDAQC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/config",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.3",
|
|
4
4
|
"description": "Gets configuration options for pnpm",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"realpath-missing": "^1.1.0",
|
|
40
40
|
"which": "npm:@pnpm/which@^3.0.1",
|
|
41
41
|
"@pnpm/catalogs.config": "0.1.0",
|
|
42
|
-
"@pnpm/error": "6.0.1",
|
|
43
|
-
"@pnpm/constants": "8.0.0",
|
|
44
42
|
"@pnpm/catalogs.types": "0.1.0",
|
|
45
|
-
"@pnpm/
|
|
43
|
+
"@pnpm/constants": "8.0.0",
|
|
44
|
+
"@pnpm/error": "6.0.1",
|
|
46
45
|
"@pnpm/git-utils": "2.0.0",
|
|
47
|
-
"@pnpm/
|
|
48
|
-
"@pnpm/pnpmfile": "6.0.
|
|
49
|
-
"@pnpm/types": "11.
|
|
46
|
+
"@pnpm/matcher": "6.0.0",
|
|
47
|
+
"@pnpm/pnpmfile": "6.0.8",
|
|
48
|
+
"@pnpm/types": "11.1.0",
|
|
49
|
+
"@pnpm/read-project-manifest": "6.0.5",
|
|
50
50
|
"@pnpm/workspace.read-manifest": "2.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@types/ramda": "0.29.12",
|
|
55
55
|
"@types/which": "^2.0.2",
|
|
56
56
|
"symlink-dir": "^6.0.1",
|
|
57
|
-
"@pnpm/config": "21.6.
|
|
58
|
-
"@pnpm/prepare": "0.0.
|
|
59
|
-
"@pnpm/test-fixtures": "0.1.
|
|
57
|
+
"@pnpm/config": "21.6.3",
|
|
58
|
+
"@pnpm/prepare": "0.0.99",
|
|
59
|
+
"@pnpm/test-fixtures": "0.1.29"
|
|
60
60
|
},
|
|
61
61
|
"funding": "https://opencollective.com/pnpm",
|
|
62
62
|
"exports": {
|