@aws-sdk/util-dynamodb 3.677.0 → 3.679.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.
package/dist-cjs/index.js CHANGED
@@ -205,7 +205,7 @@ var convertToBinaryAttr = /* @__PURE__ */ __name((data) => ({ B: data }), "conve
205
205
  var convertToStringAttr = /* @__PURE__ */ __name((data) => ({ S: data.toString() }), "convertToStringAttr");
206
206
  var convertToBigIntAttr = /* @__PURE__ */ __name((data) => ({ N: data.toString() }), "convertToBigIntAttr");
207
207
  var validateBigIntAndThrow = /* @__PURE__ */ __name((errorPrefix) => {
208
- throw new Error(`${errorPrefix} ${typeof BigInt === "function" ? "Use BigInt." : "Pass string value instead."} `);
208
+ throw new Error(`${errorPrefix} Use NumberValue from @aws-sdk/lib-dynamodb.`);
209
209
  }, "validateBigIntAndThrow");
210
210
  var convertToNumberAttr = /* @__PURE__ */ __name((num) => {
211
211
  if ([Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY].map((val) => val.toString()).includes(num.toString())) {
@@ -131,7 +131,7 @@ const convertToBinaryAttr = (data) => ({ B: data });
131
131
  const convertToStringAttr = (data) => ({ S: data.toString() });
132
132
  const convertToBigIntAttr = (data) => ({ N: data.toString() });
133
133
  const validateBigIntAndThrow = (errorPrefix) => {
134
- throw new Error(`${errorPrefix} ${typeof BigInt === "function" ? "Use BigInt." : "Pass string value instead."} `);
134
+ throw new Error(`${errorPrefix} Use NumberValue from @aws-sdk/lib-dynamodb.`);
135
135
  };
136
136
  const convertToNumberAttr = (num) => {
137
137
  if ([Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-dynamodb",
3
- "version": "3.677.0",
3
+ "version": "3.679.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 util-dynamodb",
@@ -10,7 +10,8 @@
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
12
  "extract:docs": "api-extractor run --local",
13
- "test": "jest"
13
+ "test": "vitest run",
14
+ "test:watch": "vitest watch"
14
15
  },
15
16
  "main": "./dist-cjs/index.js",
16
17
  "module": "./dist-es/index.js",
@@ -24,7 +25,7 @@
24
25
  "tslib": "^2.6.2"
25
26
  },
26
27
  "devDependencies": {
27
- "@aws-sdk/client-dynamodb": "3.677.0",
28
+ "@aws-sdk/client-dynamodb": "3.679.0",
28
29
  "@tsconfig/recommended": "1.0.1",
29
30
  "concurrently": "7.0.0",
30
31
  "downlevel-dts": "0.10.1",
@@ -32,7 +33,7 @@
32
33
  "typescript": "~4.9.5"
33
34
  },
34
35
  "peerDependencies": {
35
- "@aws-sdk/client-dynamodb": "^3.677.0"
36
+ "@aws-sdk/client-dynamodb": "^3.679.0"
36
37
  },
37
38
  "engines": {
38
39
  "node": ">=16.0.0"