@aws-sdk/middleware-flexible-checksums 3.973.0 → 3.973.1
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/getCrc32ChecksumAlgorithmFunction.js +1 -1
- package/dist-es/getCrc32ChecksumAlgorithmFunction.js +1 -1
- package/dist-es/getFlexibleChecksumsPlugin.js +1 -1
- package/dist-types/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.d.ts +1 -1
- package/dist-types/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.d.ts +1 -1
- package/dist-types/flexibleChecksumsInputMiddleware.d.ts +2 -2
- package/dist-types/flexibleChecksumsMiddleware.d.ts +2 -2
- package/dist-types/flexibleChecksumsResponseMiddleware.d.ts +2 -2
- package/dist-types/getChecksum.d.ts +1 -1
- package/dist-types/getChecksumAlgorithmListForResponse.d.ts +1 -1
- package/dist-types/getCrc32ChecksumAlgorithmFunction.d.ts +1 -1
- package/dist-types/getFlexibleChecksumsPlugin.d.ts +5 -5
- package/dist-types/hasHeader.d.ts +1 -1
- package/dist-types/hasHeaderWithPrefix.d.ts +1 -1
- package/dist-types/stringHasher.d.ts +1 -1
- package/dist-types/validateChecksumFromResponse.d.ts +3 -3
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ exports.getCrc32ChecksumAlgorithmFunction = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const crc32_1 = require("@aws-crypto/crc32");
|
|
6
6
|
const util_1 = require("@aws-crypto/util");
|
|
7
|
-
const zlib = tslib_1.__importStar(require("zlib"));
|
|
7
|
+
const zlib = tslib_1.__importStar(require("node:zlib"));
|
|
8
8
|
class NodeCrc32 {
|
|
9
9
|
checksum = 0;
|
|
10
10
|
update(data) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { flexibleChecksumsInputMiddleware, flexibleChecksumsInputMiddlewareOptions, } from "./flexibleChecksumsInputMiddleware";
|
|
2
|
-
import { flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions
|
|
2
|
+
import { flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions } from "./flexibleChecksumsMiddleware";
|
|
3
3
|
import { flexibleChecksumsResponseMiddleware, flexibleChecksumsResponseMiddlewareOptions, } from "./flexibleChecksumsResponseMiddleware";
|
|
4
4
|
export const getFlexibleChecksumsPlugin = (config, middlewareConfig) => ({
|
|
5
5
|
applyToStack: (clientStack) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
|
|
2
|
-
import { PreviouslyResolved } from "./configuration";
|
|
1
|
+
import type { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";
|
|
2
|
+
import type { PreviouslyResolved } from "./configuration";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
|
|
2
|
-
import { PreviouslyResolved } from "./configuration";
|
|
1
|
+
import type { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";
|
|
2
|
+
import type { PreviouslyResolved } from "./configuration";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
|
|
2
|
-
import { PreviouslyResolved } from "./configuration";
|
|
1
|
+
import type { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
|
|
2
|
+
import type { PreviouslyResolved } from "./configuration";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChecksumConstructor, Encoder, HashConstructor } from "@smithy/types";
|
|
1
|
+
import type { ChecksumConstructor, Encoder, HashConstructor } from "@smithy/types";
|
|
2
2
|
export interface GetChecksumDigestOptions {
|
|
3
3
|
checksumAlgorithmFn: ChecksumConstructor | HashConstructor;
|
|
4
4
|
base64Encoder: Encoder;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Pluggable } from "@smithy/types";
|
|
2
|
-
import { PreviouslyResolved } from "./configuration";
|
|
3
|
-
import { FlexibleChecksumsInputMiddlewareConfig } from "./flexibleChecksumsInputMiddleware";
|
|
4
|
-
import { FlexibleChecksumsRequestMiddlewareConfig } from "./flexibleChecksumsMiddleware";
|
|
5
|
-
import { FlexibleChecksumsResponseMiddlewareConfig } from "./flexibleChecksumsResponseMiddleware";
|
|
1
|
+
import type { Pluggable } from "@smithy/types";
|
|
2
|
+
import type { PreviouslyResolved } from "./configuration";
|
|
3
|
+
import type { FlexibleChecksumsInputMiddlewareConfig } from "./flexibleChecksumsInputMiddleware";
|
|
4
|
+
import type { FlexibleChecksumsRequestMiddlewareConfig } from "./flexibleChecksumsMiddleware";
|
|
5
|
+
import type { FlexibleChecksumsResponseMiddlewareConfig } from "./flexibleChecksumsResponseMiddleware";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { Logger } from "@smithy/types";
|
|
3
|
-
import { PreviouslyResolved } from "./configuration";
|
|
1
|
+
import type { HttpResponse } from "@smithy/protocol-http";
|
|
2
|
+
import type { Logger } from "@smithy/types";
|
|
3
|
+
import type { PreviouslyResolved } from "./configuration";
|
|
4
4
|
export interface ValidateChecksumFromResponseOptions {
|
|
5
5
|
config: PreviouslyResolved;
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.1",
|
|
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,9 +37,9 @@
|
|
|
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.
|
|
41
|
-
"@aws-sdk/crc64-nvme": "^3.972.
|
|
42
|
-
"@aws-sdk/types": "^3.973.
|
|
40
|
+
"@aws-sdk/core": "^3.973.15",
|
|
41
|
+
"@aws-sdk/crc64-nvme": "^3.972.3",
|
|
42
|
+
"@aws-sdk/types": "^3.973.4",
|
|
43
43
|
"@smithy/is-array-buffer": "^4.2.1",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.10",
|
|
45
45
|
"@smithy/protocol-http": "^5.3.10",
|