@aws-sdk/middleware-ssec 3.734.0 → 3.804.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 +7 -8
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -19,14 +19,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
getSsecPlugin: () => getSsecPlugin,
|
|
25
25
|
isValidBase64EncodedSSECustomerKey: () => isValidBase64EncodedSSECustomerKey,
|
|
26
26
|
ssecMiddleware: () => ssecMiddleware,
|
|
27
27
|
ssecMiddlewareOptions: () => ssecMiddlewareOptions
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
function ssecMiddleware(options) {
|
|
31
31
|
return (next) => async (args) => {
|
|
32
32
|
const input = { ...args.input };
|
|
@@ -74,14 +74,13 @@ var ssecMiddlewareOptions = {
|
|
|
74
74
|
override: true
|
|
75
75
|
};
|
|
76
76
|
var getSsecPlugin = /* @__PURE__ */ __name((config) => ({
|
|
77
|
-
applyToStack: (clientStack) => {
|
|
77
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
78
78
|
clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions);
|
|
79
|
-
}
|
|
79
|
+
}, "applyToStack")
|
|
80
80
|
}), "getSsecPlugin");
|
|
81
81
|
function isValidBase64EncodedSSECustomerKey(str, options) {
|
|
82
82
|
const base64Regex = /^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
83
|
-
if (!base64Regex.test(str))
|
|
84
|
-
return false;
|
|
83
|
+
if (!base64Regex.test(str)) return false;
|
|
85
84
|
try {
|
|
86
85
|
const decodedBytes = options.base64Decoder(str);
|
|
87
86
|
return decodedBytes.length === 32;
|
|
@@ -93,9 +92,9 @@ __name(isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey")
|
|
|
93
92
|
// Annotate the CommonJS export names for ESM import in node:
|
|
94
93
|
|
|
95
94
|
0 && (module.exports = {
|
|
96
|
-
ssecMiddleware,
|
|
97
95
|
ssecMiddlewareOptions,
|
|
98
96
|
getSsecPlugin,
|
|
97
|
+
ssecMiddleware,
|
|
99
98
|
isValidBase64EncodedSSECustomerKey
|
|
100
99
|
});
|
|
101
100
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-ssec",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.804.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-ssec",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.804.0",
|
|
27
|
+
"@smithy/types": "^4.2.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
|
-
"typescript": "~5.
|
|
54
|
+
"typescript": "~5.8.3"
|
|
55
55
|
}
|
|
56
56
|
}
|