@aws-sdk/middleware-token 3.774.0 → 3.777.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/dist-cjs/index.js
CHANGED
|
@@ -76,10 +76,12 @@ var normalizeTokenProvider = /* @__PURE__ */ __name((token) => {
|
|
|
76
76
|
|
|
77
77
|
// src/resolveTokenConfig.ts
|
|
78
78
|
var import_tokenDefaultProvider = require("././tokenDefaultProvider");
|
|
79
|
-
var resolveTokenConfig = /* @__PURE__ */ __name((input) =>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
var resolveTokenConfig = /* @__PURE__ */ __name((input) => {
|
|
80
|
+
const { token } = input;
|
|
81
|
+
return Object.assign(input, {
|
|
82
|
+
token: token ? normalizeTokenProvider(token) : (0, import_tokenDefaultProvider.tokenDefaultProvider)(input)
|
|
83
|
+
});
|
|
84
|
+
}, "resolveTokenConfig");
|
|
83
85
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
86
|
|
|
85
87
|
0 && (module.exports = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { normalizeTokenProvider } from "./normalizeTokenProvider";
|
|
2
2
|
import { tokenDefaultProvider } from "./tokenDefaultProvider";
|
|
3
|
-
export const resolveTokenConfig = (input) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export const resolveTokenConfig = (input) => {
|
|
4
|
+
const { token } = input;
|
|
5
|
+
return Object.assign(input, {
|
|
6
|
+
token: token ? normalizeTokenProvider(token) : tokenDefaultProvider(input),
|
|
7
|
+
});
|
|
8
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-token",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.777.0",
|
|
4
4
|
"description": "Middleware and Plugin for setting token authentication",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@aws-sdk/token-providers": "3.
|
|
34
|
-
"@aws-sdk/types": "3.
|
|
35
|
-
"@smithy/property-provider": "^4.0.
|
|
36
|
-
"@smithy/protocol-http": "^5.0
|
|
37
|
-
"@smithy/types": "^4.
|
|
38
|
-
"@smithy/util-middleware": "^4.0.
|
|
33
|
+
"@aws-sdk/token-providers": "3.777.0",
|
|
34
|
+
"@aws-sdk/types": "3.775.0",
|
|
35
|
+
"@smithy/property-provider": "^4.0.2",
|
|
36
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
37
|
+
"@smithy/types": "^4.2.0",
|
|
38
|
+
"@smithy/util-middleware": "^4.0.2",
|
|
39
39
|
"tslib": "^2.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|