@pnpm/client 5.0.7 → 5.0.8
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/lib/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/package.json +4 -3
package/lib/index.js
CHANGED
|
@@ -11,24 +11,24 @@ const tarball_fetcher_1 = __importDefault(require("@pnpm/tarball-fetcher"));
|
|
|
11
11
|
const credentials_by_uri_1 = __importDefault(require("credentials-by-uri"));
|
|
12
12
|
const mem_1 = __importDefault(require("mem"));
|
|
13
13
|
function default_1(opts) {
|
|
14
|
-
const fetchFromRegistry = fetch_1.createFetchFromRegistry(opts);
|
|
15
|
-
const getCredentials = mem_1.default((registry) => credentials_by_uri_1.default(opts.authConfig, registry));
|
|
14
|
+
const fetchFromRegistry = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
15
|
+
const getCredentials = (0, mem_1.default)((registry) => (0, credentials_by_uri_1.default)(opts.authConfig, registry));
|
|
16
16
|
return {
|
|
17
17
|
fetchers: createFetchers(fetchFromRegistry, getCredentials, opts),
|
|
18
|
-
resolve: default_resolver_1.default(fetchFromRegistry, getCredentials, opts),
|
|
18
|
+
resolve: (0, default_resolver_1.default)(fetchFromRegistry, getCredentials, opts),
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
exports.default = default_1;
|
|
22
22
|
function createResolver(opts) {
|
|
23
|
-
const fetchFromRegistry = fetch_1.createFetchFromRegistry(opts);
|
|
24
|
-
const getCredentials = mem_1.default((registry) => credentials_by_uri_1.default(opts.authConfig, registry));
|
|
25
|
-
return default_resolver_1.default(fetchFromRegistry, getCredentials, opts);
|
|
23
|
+
const fetchFromRegistry = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
24
|
+
const getCredentials = (0, mem_1.default)((registry) => (0, credentials_by_uri_1.default)(opts.authConfig, registry));
|
|
25
|
+
return (0, default_resolver_1.default)(fetchFromRegistry, getCredentials, opts);
|
|
26
26
|
}
|
|
27
27
|
exports.createResolver = createResolver;
|
|
28
28
|
function createFetchers(fetchFromRegistry, getCredentials, opts) {
|
|
29
29
|
return {
|
|
30
|
-
...tarball_fetcher_1.default(fetchFromRegistry, getCredentials, opts),
|
|
31
|
-
...git_fetcher_1.default(),
|
|
30
|
+
...(0, tarball_fetcher_1.default)(fetchFromRegistry, getCredentials, opts),
|
|
31
|
+
...(0, git_fetcher_1.default)(),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAG+B;AAC/B,uCAAmE;AAEnE,oEAA4C;AAC5C,4EAAwD;AACxD,4EAAoD;AACpD,8CAAqB;AAWrB,mBAAyB,IAAmB;IAC1C,MAAM,iBAAiB,GAAG,+BAAuB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAG+B;AAC/B,uCAAmE;AAEnE,oEAA4C;AAC5C,4EAAwD;AACxD,4EAAoD;AACpD,8CAAqB;AAWrB,mBAAyB,IAAmB;IAC1C,MAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,IAAI,CAAC,CAAA;IACvD,MAAM,cAAc,GAAG,IAAA,aAAG,EAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;IAChG,OAAO;QACL,QAAQ,EAAE,cAAc,CAAC,iBAAiB,EAAE,cAAc,EAAE,IAAI,CAAC;QACjE,OAAO,EAAE,IAAA,0BAAa,EAAC,iBAAiB,EAAE,cAAc,EAAE,IAAI,CAAC;KAChE,CAAA;AACH,CAAC;AAPD,4BAOC;AAED,SAAgB,cAAc,CAAE,IAAmB;IACjD,MAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,IAAI,CAAC,CAAA;IACvD,MAAM,cAAc,GAAG,IAAA,aAAG,EAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;IAChG,OAAO,IAAA,0BAAa,EAAC,iBAAiB,EAAE,cAAc,EAAE,IAAI,CAAC,CAAA;AAC/D,CAAC;AAJD,wCAIC;AAED,SAAS,cAAc,CACrB,iBAAoC,EACpC,cAA8B,EAC9B,IAEC;IAED,OAAO;QACL,GAAG,IAAA,yBAAoB,EAAC,iBAAiB,EAAE,cAAc,EAAE,IAAI,CAAC;QAChE,GAAG,IAAA,qBAAY,GAAE;KAClB,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/client",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "Creates the package resolve and fetch functions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/client",
|
|
15
15
|
"keywords": [
|
|
16
|
+
"pnpm6",
|
|
16
17
|
"pnpm",
|
|
17
18
|
"resolver",
|
|
18
19
|
"npm"
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
},
|
|
24
25
|
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/client#readme",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@pnpm/default-resolver": "13.0.
|
|
27
|
-
"@pnpm/fetch": "4.1.
|
|
27
|
+
"@pnpm/default-resolver": "13.0.7",
|
|
28
|
+
"@pnpm/fetch": "4.1.2",
|
|
28
29
|
"@pnpm/fetching-types": "2.2.1",
|
|
29
30
|
"@pnpm/git-fetcher": "4.1.6",
|
|
30
31
|
"@pnpm/resolver-base": "8.0.4",
|