@pnpm/network.auth-header 1101.0.0 → 1101.1.0
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.d.ts +2 -0
- package/lib/index.js +4 -0
- package/package.json +7 -4
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import type { RegistryConfig } from '@pnpm/types';
|
|
2
|
+
import { getAuthHeadersFromCreds } from './getAuthHeadersFromConfig.js';
|
|
3
|
+
export { getAuthHeadersFromCreds };
|
|
2
4
|
export declare function createGetAuthHeaderByURI(configByUri: Record<string, RegistryConfig>): (uri: string) => string | undefined;
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { nerfDart } from '@pnpm/config.nerf-dart';
|
|
2
2
|
import { getAuthHeadersFromCreds } from './getAuthHeadersFromConfig.js';
|
|
3
3
|
import { removePort } from './helpers/removePort.js';
|
|
4
|
+
// Re-exported so callers that need the whole nerf-darted-URI → header map
|
|
5
|
+
// (e.g. forwarding every registry credential to the pnpr install
|
|
6
|
+
// accelerator) can build it without re-implementing `credsToHeader`.
|
|
7
|
+
export { getAuthHeadersFromCreds };
|
|
4
8
|
export function createGetAuthHeaderByURI(configByUri) {
|
|
5
9
|
const authHeaders = getAuthHeadersFromCreds(configByUri);
|
|
6
10
|
if (Object.keys(authHeaders).length === 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/network.auth-header",
|
|
3
|
-
"version": "1101.
|
|
3
|
+
"version": "1101.1.0",
|
|
4
4
|
"description": "Gets the authorization header for the given URI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"funding": "https://opencollective.com/pnpm",
|
|
12
|
-
"repository":
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pnpm/pnpm/tree/main/network/auth-header"
|
|
15
|
+
},
|
|
13
16
|
"homepage": "https://github.com/pnpm/pnpm/tree/main/network/auth-header#readme",
|
|
14
17
|
"bugs": {
|
|
15
18
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
@@ -27,12 +30,12 @@
|
|
|
27
30
|
"dependencies": {
|
|
28
31
|
"@pnpm/config.nerf-dart": "^1.0.1",
|
|
29
32
|
"@pnpm/error": "1100.0.0",
|
|
30
|
-
"@pnpm/types": "1101.
|
|
33
|
+
"@pnpm/types": "1101.3.0"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
36
|
"@jest/globals": "30.3.0",
|
|
34
37
|
"safe-buffer": "5.2.1",
|
|
35
|
-
"@pnpm/network.auth-header": "1101.
|
|
38
|
+
"@pnpm/network.auth-header": "1101.1.0"
|
|
36
39
|
},
|
|
37
40
|
"engines": {
|
|
38
41
|
"node": ">=22.13"
|