@pnpm/client 6.0.10 → 6.1.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/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-2021 Zoltan Kochan and other contributors
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
@@ -9,7 +9,7 @@
9
9
  ## Installation
10
10
 
11
11
  ```sh
12
- <pnpm|npm|yarn> add @pnpm/client
12
+ pnpm add @pnpm/client
13
13
  ```
14
14
 
15
15
  ## License
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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AEnE,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.0.10",
3
+ "version": "6.1.2",
4
4
  "description": "Creates the package resolve and fetch functions",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "engines": {
12
12
  "node": ">=12.17"
13
13
  },
14
- "repository": "https://github.com/pnpm/pnpm/blob/master/packages/client",
14
+ "repository": "https://github.com/pnpm/pnpm/blob/main/packages/client",
15
15
  "keywords": [
16
16
  "pnpm6",
17
17
  "pnpm",
@@ -22,19 +22,20 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/pnpm/pnpm/issues"
24
24
  },
25
- "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/client#readme",
25
+ "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/client#readme",
26
26
  "dependencies": {
27
- "@pnpm/default-resolver": "14.0.8",
28
- "@pnpm/directory-fetcher": "1.0.3",
29
- "@pnpm/fetch": "4.2.2",
27
+ "@pnpm/default-resolver": "14.0.11",
28
+ "@pnpm/directory-fetcher": "1.0.6",
29
+ "@pnpm/fetch": "4.2.5",
30
30
  "@pnpm/fetching-types": "2.2.1",
31
- "@pnpm/git-fetcher": "4.1.12",
32
- "@pnpm/resolver-base": "8.1.3",
33
- "@pnpm/tarball-fetcher": "9.3.13",
34
- "credentials-by-uri": "^2.0.0",
31
+ "@pnpm/git-fetcher": "4.1.15",
32
+ "@pnpm/resolver-base": "8.1.6",
33
+ "@pnpm/tarball-fetcher": "9.3.16",
34
+ "credentials-by-uri": "^2.1.0",
35
35
  "mem": "^8.0.0"
36
36
  },
37
37
  "devDependencies": {
38
+ "@pnpm/client": "6.1.2",
38
39
  "@pnpm/logger": "^4.0.0"
39
40
  },
40
41
  "funding": "https://opencollective.com/pnpm",
@@ -42,6 +43,6 @@
42
43
  "lint": "eslint src/**/*.ts test/**/*.ts",
43
44
  "_test": "jest",
44
45
  "test": "pnpm run compile && pnpm run _test",
45
- "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
46
+ "compile": "tsc --build && pnpm run lint --fix"
46
47
  }
47
48
  }