@pnpm/network.auth-header 1000.0.5 → 1000.0.7
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/lib/index.d.ts +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/package.json +6 -6
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-2026 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/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.loadToken = void 0;
|
|
4
4
|
exports.createGetAuthHeaderByURI = createGetAuthHeaderByURI;
|
|
5
5
|
const config_nerf_dart_1 = require("@pnpm/config.nerf-dart");
|
|
6
|
-
const
|
|
7
|
-
Object.defineProperty(exports, "loadToken", { enumerable: true, get: function () { return
|
|
8
|
-
const
|
|
6
|
+
const getAuthHeadersFromConfig_js_1 = require("./getAuthHeadersFromConfig.js");
|
|
7
|
+
Object.defineProperty(exports, "loadToken", { enumerable: true, get: function () { return getAuthHeadersFromConfig_js_1.loadToken; } });
|
|
8
|
+
const removePort_js_1 = require("./helpers/removePort.js");
|
|
9
9
|
function createGetAuthHeaderByURI(opts) {
|
|
10
|
-
const authHeaders = (0,
|
|
10
|
+
const authHeaders = (0, getAuthHeadersFromConfig_js_1.getAuthHeadersFromConfig)({
|
|
11
11
|
allSettings: opts.allSettings,
|
|
12
12
|
userSettings: opts.userSettings ?? {},
|
|
13
13
|
});
|
|
@@ -36,7 +36,7 @@ function getAuthHeaderByURI(authHeaders, maxParts, uri) {
|
|
|
36
36
|
if (authHeaders[key])
|
|
37
37
|
return authHeaders[key];
|
|
38
38
|
}
|
|
39
|
-
const urlWithoutPort = (0,
|
|
39
|
+
const urlWithoutPort = (0, removePort_js_1.removePort)(parsedUri);
|
|
40
40
|
if (urlWithoutPort !== uri) {
|
|
41
41
|
return getAuthHeaderByURI(authHeaders, maxParts, urlWithoutPort);
|
|
42
42
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAQA,4DAYC;AApBD,6DAAiD;AACjD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAQA,4DAYC;AApBD,6DAAiD;AACjD,+EAAmF;AAIjF,0FAJiC,uCAAS,OAIjC;AAHX,2DAAoD;AAMpD,SAAgB,wBAAwB,CACtC,IAGC;IAED,MAAM,WAAW,GAAG,IAAA,sDAAwB,EAAC;QAC3C,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,EAAE;KACtC,CAAC,CAAA;IACF,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,GAAW,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1F,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;AAC1F,CAAC;AAED,SAAS,WAAW,CAAE,IAAc;IAClC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC9B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,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AI,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAA;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;IACtD,OAAO,SAAS,MAAM,EAAE,CAAA;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/network.auth-header",
|
|
3
|
-
"version": "1000.0.
|
|
3
|
+
"version": "1000.0.7",
|
|
4
4
|
"description": "Gets the authorization header for the given URI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"funding": "https://opencollective.com/pnpm",
|
|
12
|
-
"repository": "https://github.com/pnpm/pnpm/
|
|
13
|
-
"homepage": "https://github.com/pnpm/pnpm/
|
|
12
|
+
"repository": "https://github.com/pnpm/pnpm/tree/main/network/auth-header",
|
|
13
|
+
"homepage": "https://github.com/pnpm/pnpm/tree/main/network/auth-header#readme",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
16
16
|
},
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"!*.map"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@pnpm/config.nerf-dart": "^1.0.
|
|
29
|
-
"@pnpm/error": "1000.0
|
|
28
|
+
"@pnpm/config.nerf-dart": "^1.0.1",
|
|
29
|
+
"@pnpm/error": "1000.1.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"safe-buffer": "5.2.1",
|
|
33
|
-
"@pnpm/network.auth-header": "1000.0.
|
|
33
|
+
"@pnpm/network.auth-header": "1000.0.7"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=18.12"
|