@aws-sdk/middleware-flexible-checksums 3.717.0 → 3.723.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.
@@ -6,9 +6,7 @@ const crc32_1 = require("@aws-crypto/crc32");
6
6
  const util_1 = require("@aws-crypto/util");
7
7
  const zlib = tslib_1.__importStar(require("zlib"));
8
8
  class NodeCrc32 {
9
- constructor() {
10
- this.checksum = 0;
11
- }
9
+ checksum = 0;
12
10
  update(data) {
13
11
  this.checksum = zlib.crc32(data, this.checksum);
14
12
  }
package/dist-cjs/index.js CHANGED
@@ -234,7 +234,7 @@ var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConf
234
234
  input,
235
235
  {
236
236
  requestChecksumRequired,
237
- requestAlgorithmMember: requestAlgorithmMember == null ? void 0 : requestAlgorithmMember.name
237
+ requestAlgorithmMember: requestAlgorithmMember?.name
238
238
  },
239
239
  !!context.isS3ExpressBucket
240
240
  );
@@ -2,9 +2,7 @@ import { AwsCrc32 } from "@aws-crypto/crc32";
2
2
  import { numToUint8 } from "@aws-crypto/util";
3
3
  import * as zlib from "zlib";
4
4
  class NodeCrc32 {
5
- constructor() {
6
- this.checksum = 0;
7
- }
5
+ checksum = 0;
8
6
  update(data) {
9
7
  this.checksum = zlib.crc32(data, this.checksum);
10
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.717.0",
3
+ "version": "3.723.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-flexible-checksums",
@@ -36,26 +36,26 @@
36
36
  "@aws-crypto/crc32": "5.2.0",
37
37
  "@aws-crypto/crc32c": "5.2.0",
38
38
  "@aws-crypto/util": "5.2.0",
39
- "@aws-sdk/core": "3.716.0",
40
- "@aws-sdk/types": "3.714.0",
41
- "@smithy/is-array-buffer": "^3.0.0",
42
- "@smithy/node-config-provider": "^3.1.12",
43
- "@smithy/protocol-http": "^4.1.8",
44
- "@smithy/types": "^3.7.2",
45
- "@smithy/util-middleware": "^3.0.11",
46
- "@smithy/util-stream": "^3.3.2",
47
- "@smithy/util-utf8": "^3.0.0",
39
+ "@aws-sdk/core": "3.723.0",
40
+ "@aws-sdk/types": "3.723.0",
41
+ "@smithy/is-array-buffer": "^4.0.0",
42
+ "@smithy/node-config-provider": "^4.0.0",
43
+ "@smithy/protocol-http": "^5.0.0",
44
+ "@smithy/types": "^4.0.0",
45
+ "@smithy/util-middleware": "^4.0.0",
46
+ "@smithy/util-stream": "^4.0.0",
47
+ "@smithy/util-utf8": "^4.0.0",
48
48
  "tslib": "^2.6.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@smithy/node-http-handler": "^3.3.2",
51
+ "@smithy/node-http-handler": "^4.0.0",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
54
54
  "rimraf": "3.0.2",
55
- "typescript": "~4.9.5"
55
+ "typescript": "~5.2.2"
56
56
  },
57
57
  "engines": {
58
- "node": ">=16.0.0"
58
+ "node": ">=18.0.0"
59
59
  },
60
60
  "typesVersions": {
61
61
  "<4.0": {