@aws-sdk/core 3.839.0 → 3.844.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/submodules/client/index.js +12 -0
- package/dist-es/submodules/client/index.js +1 -0
- package/dist-es/submodules/client/setTokenFeature.js +7 -0
- package/dist-types/submodules/client/index.d.ts +1 -0
- package/dist-types/submodules/client/setTokenFeature.d.ts +7 -0
- package/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -0
- package/package.json +5 -5
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
25
25
|
setCredentialFeature: () => setCredentialFeature,
|
|
26
26
|
setFeature: () => setFeature,
|
|
27
|
+
setTokenFeature: () => setTokenFeature,
|
|
27
28
|
state: () => state
|
|
28
29
|
});
|
|
29
30
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -69,10 +70,21 @@ function setFeature(context, feature, value) {
|
|
|
69
70
|
context.__aws_sdk_context.features[feature] = value;
|
|
70
71
|
}
|
|
71
72
|
__name(setFeature, "setFeature");
|
|
73
|
+
|
|
74
|
+
// src/submodules/client/setTokenFeature.ts
|
|
75
|
+
function setTokenFeature(token, feature, value) {
|
|
76
|
+
if (!token.$source) {
|
|
77
|
+
token.$source = {};
|
|
78
|
+
}
|
|
79
|
+
token.$source[feature] = value;
|
|
80
|
+
return token;
|
|
81
|
+
}
|
|
82
|
+
__name(setTokenFeature, "setTokenFeature");
|
|
72
83
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
84
|
0 && (module.exports = {
|
|
74
85
|
emitWarningIfUnsupportedVersion,
|
|
75
86
|
setCredentialFeature,
|
|
76
87
|
setFeature,
|
|
88
|
+
setTokenFeature,
|
|
77
89
|
state
|
|
78
90
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AttributedTokenIdentity, AwsSdkTokenFeatures } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* @returns the token with source feature attribution.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setTokenFeature<F extends keyof AwsSdkTokenFeatures>(token: AttributedTokenIdentity, feature: F, value: AwsSdkTokenFeatures[F]): AttributedTokenIdentity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.844.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
},
|
|
82
82
|
"license": "Apache-2.0",
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@aws-sdk/types": "3.
|
|
84
|
+
"@aws-sdk/types": "3.840.0",
|
|
85
85
|
"@aws-sdk/xml-builder": "3.821.0",
|
|
86
|
-
"@smithy/core": "^3.
|
|
86
|
+
"@smithy/core": "^3.7.0",
|
|
87
87
|
"@smithy/node-config-provider": "^4.1.3",
|
|
88
88
|
"@smithy/property-provider": "^4.0.4",
|
|
89
89
|
"@smithy/protocol-http": "^5.1.2",
|
|
90
90
|
"@smithy/signature-v4": "^5.1.2",
|
|
91
|
-
"@smithy/smithy-client": "^4.4.
|
|
91
|
+
"@smithy/smithy-client": "^4.4.6",
|
|
92
92
|
"@smithy/types": "^4.3.1",
|
|
93
93
|
"@smithy/util-base64": "^4.0.0",
|
|
94
94
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
95
95
|
"@smithy/util-middleware": "^4.0.4",
|
|
96
96
|
"@smithy/util-utf8": "^4.0.0",
|
|
97
|
-
"fast-xml-parser": "
|
|
97
|
+
"fast-xml-parser": "5.2.5",
|
|
98
98
|
"tslib": "^2.6.2"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|