@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.
@@ -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,6 +1,6 @@
1
1
  import { AwsCrc32 } from "@aws-crypto/crc32";
2
2
  import { numToUint8 } from "@aws-crypto/util";
3
- import * as zlib from "zlib";
3
+ import * as zlib from "node:zlib";
4
4
  class NodeCrc32 {
5
5
  checksum = 0;
6
6
  update(data) {
@@ -1,5 +1,5 @@
1
1
  import { flexibleChecksumsInputMiddleware, flexibleChecksumsInputMiddlewareOptions, } from "./flexibleChecksumsInputMiddleware";
2
- import { flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions, } from "./flexibleChecksumsMiddleware";
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,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  import { RequestChecksumCalculation } from "./constants";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  import { ResponseChecksumValidation } from "./constants";
3
3
  /**
4
4
  * @internal
@@ -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,4 +1,4 @@
1
- import { ChecksumAlgorithm } from "./constants";
1
+ import type { ChecksumAlgorithm } from "./constants";
2
2
  /**
3
3
  * Returns the priority array of algorithm to use to verify checksum and names
4
4
  * to be used as a key in the response header.
@@ -1,5 +1,5 @@
1
1
  import { AwsCrc32 } from "@aws-crypto/crc32";
2
- import { Checksum } from "@smithy/types";
2
+ import type { Checksum } from "@smithy/types";
3
3
  declare class NodeCrc32 implements Checksum {
4
4
  private checksum;
5
5
  update(data: Uint8Array): void;
@@ -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,4 +1,4 @@
1
- import { HeaderBag } from "@smithy/types";
1
+ import type { HeaderBag } from "@smithy/types";
2
2
  /**
3
3
  * Returns true if header is present in headers.
4
4
  * Comparisons are case-insensitive.
@@ -1,4 +1,4 @@
1
- import { HeaderBag } from "@smithy/types";
1
+ import type { HeaderBag } from "@smithy/types";
2
2
  /**
3
3
  * Returns true if header with headerPrefix is present in headers.
4
4
  * Comparisons are case-insensitive.
@@ -1,4 +1,4 @@
1
- import { ChecksumConstructor, HashConstructor } from "@smithy/types";
1
+ import type { ChecksumConstructor, HashConstructor } from "@smithy/types";
2
2
  /**
3
3
  * A function that, given a hash constructor and a string, calculates the hash of the string.
4
4
  */
@@ -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.0",
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.14",
41
- "@aws-sdk/crc64-nvme": "^3.972.2",
42
- "@aws-sdk/types": "^3.973.3",
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",