@pnpm/client 6.0.9 → 6.1.1
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/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +11 -9
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
|
|
4
|
-
Copyright (c) 2016-
|
|
4
|
+
Copyright (c) 2016-2022 Zoltan Kochan and other contributors
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare type ClientOptions = {
|
|
|
7
7
|
retry?: RetryTimeoutOptions;
|
|
8
8
|
timeout?: number;
|
|
9
9
|
userAgent?: string;
|
|
10
|
+
userConfig?: Record<string, string>;
|
|
10
11
|
} & ResolverFactoryOptions & AgentOptions;
|
|
11
12
|
export default function (opts: ClientOptions): any;
|
|
12
13
|
export declare function createResolver(opts: ClientOptions): ResolveFunction;
|
package/lib/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const credentials_by_uri_1 = __importDefault(require("credentials-by-uri"));
|
|
|
13
13
|
const mem_1 = __importDefault(require("mem"));
|
|
14
14
|
function default_1(opts) {
|
|
15
15
|
const fetchFromRegistry = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
16
|
-
const getCredentials = (0, mem_1.default)((registry) => (0, credentials_by_uri_1.default)(opts.authConfig, registry));
|
|
16
|
+
const getCredentials = (0, mem_1.default)((registry) => (0, credentials_by_uri_1.default)(opts.authConfig, registry, opts.userConfig));
|
|
17
17
|
return {
|
|
18
18
|
fetchers: createFetchers(fetchFromRegistry, getCredentials, opts),
|
|
19
19
|
resolve: (0, default_resolver_1.default)(fetchFromRegistry, getCredentials, opts),
|
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,gFAA4D;AAC5D,oEAA4C;AAC5C,4EAAwD;AACxD,4EAAoD;AACpD,8CAAqB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAG+B;AAC/B,uCAAmE;AAEnE,gFAA4D;AAC5D,oEAA4C;AAC5C,4EAAwD;AACxD,4EAAoD;AACpD,8CAAqB;AAYrB,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,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;IACjH,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;QACjB,GAAG,IAAA,2BAAsB,GAAE;KAC5B,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/client",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Creates the package resolve and fetch functions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,17 +24,18 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/client#readme",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@pnpm/default-resolver": "14.0.
|
|
28
|
-
"@pnpm/directory-fetcher": "1.0.
|
|
29
|
-
"@pnpm/fetch": "4.2.
|
|
27
|
+
"@pnpm/default-resolver": "14.0.10",
|
|
28
|
+
"@pnpm/directory-fetcher": "1.0.5",
|
|
29
|
+
"@pnpm/fetch": "4.2.4",
|
|
30
30
|
"@pnpm/fetching-types": "2.2.1",
|
|
31
|
-
"@pnpm/git-fetcher": "4.1.
|
|
32
|
-
"@pnpm/resolver-base": "8.1.
|
|
33
|
-
"@pnpm/tarball-fetcher": "9.3.
|
|
34
|
-
"credentials-by-uri": "^2.
|
|
31
|
+
"@pnpm/git-fetcher": "4.1.14",
|
|
32
|
+
"@pnpm/resolver-base": "8.1.5",
|
|
33
|
+
"@pnpm/tarball-fetcher": "9.3.15",
|
|
34
|
+
"credentials-by-uri": "^2.1.0",
|
|
35
35
|
"mem": "^8.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@pnpm/client": "6.1.1",
|
|
38
39
|
"@pnpm/logger": "^4.0.0"
|
|
39
40
|
},
|
|
40
41
|
"funding": "https://opencollective.com/pnpm",
|
|
@@ -43,5 +44,6 @@
|
|
|
43
44
|
"_test": "jest",
|
|
44
45
|
"test": "pnpm run compile && pnpm run _test",
|
|
45
46
|
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
|
|
46
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"readme": "# @pnpm/client\n\n> Creates the package resolve and fetch functions\n\n<!--@shields('npm')-->\n[](https://www.npmjs.com/package/@pnpm/client)\n<!--/@-->\n\n## Installation\n\n```sh\npnpm add @pnpm/client\n```\n\n## License\n\nMIT\n"
|
|
47
49
|
}
|