@aws-sdk/dynamodb-codec 3.973.8 → 3.973.9

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  var protocols = require('@aws-sdk/core/protocols');
4
4
  var schema = require('@smithy/core/schema');
5
- var utilBase64 = require('@smithy/util-base64');
5
+ var serde = require('@smithy/core/serde');
6
6
 
7
7
  class DynamoDBJsonCodec extends protocols.JsonCodec {
8
8
  constructor() {
@@ -33,7 +33,7 @@ class DynamoDBJsonShapeSerializer extends protocols.JsonShapeSerializer {
33
33
  if (value && typeof value === "object") {
34
34
  const av = value;
35
35
  const out = this.copyRemoveNulls(av);
36
- const base64Encode = this.serdeContext?.base64Encoder ?? utilBase64.toBase64;
36
+ const base64Encode = this.serdeContext?.base64Encoder ?? serde.toBase64;
37
37
  if (av.B instanceof Uint8Array) {
38
38
  out.B = base64Encode(av.B);
39
39
  }
@@ -97,7 +97,7 @@ class DynamoDBJsonShapeDeserializer extends protocols.JsonShapeDeserializer {
97
97
  if (value && typeof value === "object") {
98
98
  const av = value;
99
99
  const out = av;
100
- const base64Decoder = this.serdeContext?.base64Decoder ?? utilBase64.fromBase64;
100
+ const base64Decoder = this.serdeContext?.base64Decoder ?? serde.fromBase64;
101
101
  if (typeof av.B === "string") {
102
102
  out.B = base64Decoder(av.B);
103
103
  }
@@ -1,6 +1,6 @@
1
1
  import { JsonCodec, JsonShapeDeserializer, JsonShapeSerializer } from "@aws-sdk/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
- import { fromBase64, toBase64 } from "@smithy/util-base64";
3
+ import { fromBase64, toBase64 } from "@smithy/core/serde";
4
4
  export class DynamoDBJsonCodec extends JsonCodec {
5
5
  constructor() {
6
6
  super({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/dynamodb-codec",
3
- "version": "3.973.8",
3
+ "version": "3.973.9",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline dynamodb-codec",
@@ -22,10 +22,9 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/core": "^3.974.8",
26
- "@smithy/core": "^3.23.17",
25
+ "@aws-sdk/core": "^3.974.9",
26
+ "@smithy/core": "^3.24.1",
27
27
  "@smithy/types": "^4.14.1",
28
- "@smithy/util-base64": "^4.3.2",
29
28
  "tslib": "^2.6.2"
30
29
  },
31
30
  "devDependencies": {