@aws-sdk/middleware-flexible-checksums 3.974.4 → 3.974.6
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var client = require('@aws-sdk/core/client');
|
|
4
4
|
var protocolHttp = require('@smithy/protocol-http');
|
|
5
5
|
var utilStream = require('@smithy/util-stream');
|
|
6
6
|
var isArrayBuffer = require('@smithy/is-array-buffer');
|
|
@@ -191,19 +191,19 @@ const flexibleChecksumsMiddleware = (config, middlewareConfig) => (next, context
|
|
|
191
191
|
if (checksumAlgorithm) {
|
|
192
192
|
switch (checksumAlgorithm) {
|
|
193
193
|
case exports.ChecksumAlgorithm.CRC32:
|
|
194
|
-
|
|
194
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U");
|
|
195
195
|
break;
|
|
196
196
|
case exports.ChecksumAlgorithm.CRC32C:
|
|
197
|
-
|
|
197
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V");
|
|
198
198
|
break;
|
|
199
199
|
case exports.ChecksumAlgorithm.CRC64NVME:
|
|
200
|
-
|
|
200
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W");
|
|
201
201
|
break;
|
|
202
202
|
case exports.ChecksumAlgorithm.SHA1:
|
|
203
|
-
|
|
203
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X");
|
|
204
204
|
break;
|
|
205
205
|
case exports.ChecksumAlgorithm.SHA256:
|
|
206
|
-
|
|
206
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y");
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
const checksumLocationName = getChecksumLocationName(checksumAlgorithm);
|
|
@@ -280,18 +280,18 @@ const flexibleChecksumsInputMiddleware = (config, middlewareConfig) => (next, co
|
|
|
280
280
|
const responseChecksumValidation = await config.responseChecksumValidation();
|
|
281
281
|
switch (requestChecksumCalculation) {
|
|
282
282
|
case RequestChecksumCalculation.WHEN_REQUIRED:
|
|
283
|
-
|
|
283
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a");
|
|
284
284
|
break;
|
|
285
285
|
case RequestChecksumCalculation.WHEN_SUPPORTED:
|
|
286
|
-
|
|
286
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z");
|
|
287
287
|
break;
|
|
288
288
|
}
|
|
289
289
|
switch (responseChecksumValidation) {
|
|
290
290
|
case ResponseChecksumValidation.WHEN_REQUIRED:
|
|
291
|
-
|
|
291
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c");
|
|
292
292
|
break;
|
|
293
293
|
case ResponseChecksumValidation.WHEN_SUPPORTED:
|
|
294
|
-
|
|
294
|
+
client.setFeature(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b");
|
|
295
295
|
break;
|
|
296
296
|
}
|
|
297
297
|
if (requestValidationModeMember && !input[requestValidationModeMember]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setFeature } from "@aws-sdk/core";
|
|
1
|
+
import { setFeature } from "@aws-sdk/core/client";
|
|
2
2
|
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
|
|
3
3
|
export const flexibleChecksumsInputMiddlewareOptions = {
|
|
4
4
|
name: "flexibleChecksumsInputMiddleware",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setFeature } from "@aws-sdk/core";
|
|
1
|
+
import { setFeature } from "@aws-sdk/core/client";
|
|
2
2
|
import { HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { createBufferedReadable } from "@smithy/util-stream";
|
|
4
4
|
import { ChecksumAlgorithm, DEFAULT_CHECKSUM_ALGORITHM, RequestChecksumCalculation } from "./constants";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-flexible-checksums",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@aws-crypto/crc32": "5.2.0",
|
|
38
38
|
"@aws-crypto/crc32c": "5.2.0",
|
|
39
39
|
"@aws-crypto/util": "5.2.0",
|
|
40
|
-
"@aws-sdk/core": "^3.973.
|
|
40
|
+
"@aws-sdk/core": "^3.973.26",
|
|
41
41
|
"@aws-sdk/crc64-nvme": "^3.972.5",
|
|
42
42
|
"@aws-sdk/types": "^3.973.6",
|
|
43
43
|
"@smithy/is-array-buffer": "^4.2.2",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@smithy/protocol-http": "^5.3.12",
|
|
46
46
|
"@smithy/types": "^4.13.1",
|
|
47
47
|
"@smithy/util-middleware": "^4.2.12",
|
|
48
|
-
"@smithy/util-stream": "^4.5.
|
|
48
|
+
"@smithy/util-stream": "^4.5.21",
|
|
49
49
|
"@smithy/util-utf8": "^4.2.2",
|
|
50
50
|
"tslib": "^2.6.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@smithy/node-http-handler": "^4.5.
|
|
53
|
+
"@smithy/node-http-handler": "^4.5.1",
|
|
54
54
|
"concurrently": "7.0.0",
|
|
55
55
|
"downlevel-dts": "0.10.1",
|
|
56
56
|
"premove": "4.0.0",
|