@aws-sdk/util-dynamodb 3.294.0 → 3.295.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.
@@ -7,4 +7,4 @@ import { NativeAttributeValue } from "./models";
7
7
  * @param {NativeAttributeValue} data - The data to convert to a DynamoDB AttributeValue
8
8
  * @param {marshallOptions} options - An optional configuration object for `convertToAttr`
9
9
  */
10
- export declare const convertToAttr: (data: NativeAttributeValue, options?: marshallOptions | undefined) => AttributeValue;
10
+ export declare const convertToAttr: (data: NativeAttributeValue, options?: marshallOptions) => AttributeValue;
@@ -7,4 +7,4 @@ import { unmarshallOptions } from "./unmarshall";
7
7
  * @param {AttributeValue} data - The DynamoDB record to convert to JavaScript type.
8
8
  * @param {unmarshallOptions} options - An optional configuration object for `convertToNative`.
9
9
  */
10
- export declare const convertToNative: (data: AttributeValue, options?: unmarshallOptions | undefined) => NativeAttributeValue;
10
+ export declare const convertToNative: (data: AttributeValue, options?: unmarshallOptions) => NativeAttributeValue;
@@ -10,12 +10,12 @@
10
10
  export interface NumberValue {
11
11
  readonly value: string;
12
12
  }
13
- export declare type NativeAttributeValue = NativeScalarAttributeValue | {
13
+ export type NativeAttributeValue = NativeScalarAttributeValue | {
14
14
  [key: string]: NativeAttributeValue;
15
15
  } | NativeAttributeValue[] | Set<number | bigint | NumberValue | string | NativeAttributeBinary | undefined> | InstanceType<{
16
16
  new (...args: any[]): any;
17
17
  }>;
18
- export declare type NativeScalarAttributeValue = null | undefined | boolean | number | NumberValue | bigint | NativeAttributeBinary | string;
18
+ export type NativeScalarAttributeValue = null | undefined | boolean | number | NumberValue | bigint | NativeAttributeBinary | string;
19
19
  /**
20
20
  * Declare File in case DOM is not added to the tsconfig lib causing
21
21
  * File interface is not defined. For developers with DOM lib added,
@@ -25,4 +25,4 @@ declare global {
25
25
  interface File {
26
26
  }
27
27
  }
28
- export declare type NativeAttributeBinary = ArrayBuffer | Blob | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
28
+ export type NativeAttributeBinary = ArrayBuffer | Blob | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
@@ -3,5 +3,5 @@ import { marshallOptions } from "./marshall";
3
3
  import { NativeAttributeValue } from "./models";
4
4
  export declare const convertToAttr: (
5
5
  data: NativeAttributeValue,
6
- options?: marshallOptions | undefined
6
+ options?: marshallOptions
7
7
  ) => AttributeValue;
@@ -3,5 +3,5 @@ import { NativeAttributeValue } from "./models";
3
3
  import { unmarshallOptions } from "./unmarshall";
4
4
  export declare const convertToNative: (
5
5
  data: AttributeValue,
6
- options?: unmarshallOptions | undefined
6
+ options?: unmarshallOptions
7
7
  ) => NativeAttributeValue;
@@ -1,7 +1,7 @@
1
1
  export interface NumberValue {
2
2
  readonly value: string;
3
3
  }
4
- export declare type NativeAttributeValue =
4
+ export type NativeAttributeValue =
5
5
  | NativeScalarAttributeValue
6
6
  | {
7
7
  [key: string]: NativeAttributeValue;
@@ -13,7 +13,7 @@ export declare type NativeAttributeValue =
13
13
  | InstanceType<{
14
14
  new (...args: any[]): any;
15
15
  }>;
16
- export declare type NativeScalarAttributeValue =
16
+ export type NativeScalarAttributeValue =
17
17
  | null
18
18
  | undefined
19
19
  | boolean
@@ -25,7 +25,7 @@ export declare type NativeScalarAttributeValue =
25
25
  declare global {
26
26
  interface File {}
27
27
  }
28
- export declare type NativeAttributeBinary =
28
+ export type NativeAttributeBinary =
29
29
  | ArrayBuffer
30
30
  | Blob
31
31
  | Buffer
@@ -5,5 +5,5 @@ export interface unmarshallOptions {
5
5
  }
6
6
  export declare const unmarshall: (
7
7
  data: Record<string, AttributeValue>,
8
- options?: unmarshallOptions | undefined
8
+ options?: unmarshallOptions
9
9
  ) => Record<string, NativeAttributeValue>;
@@ -16,4 +16,4 @@ export interface unmarshallOptions {
16
16
  * @param {any} data - The DynamoDB record
17
17
  * @param {unmarshallOptions} options - An optional configuration object for `unmarshall`
18
18
  */
19
- export declare const unmarshall: (data: Record<string, AttributeValue>, options?: unmarshallOptions | undefined) => Record<string, NativeAttributeValue>;
19
+ export declare const unmarshall: (data: Record<string, AttributeValue>, options?: unmarshallOptions) => Record<string, NativeAttributeValue>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-dynamodb",
3
- "version": "3.294.0",
3
+ "version": "3.295.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,16 +20,16 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "tslib": "^2.3.1"
23
+ "tslib": "^2.5.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@aws-sdk/client-dynamodb": "3.294.0",
26
+ "@aws-sdk/client-dynamodb": "3.295.0",
27
27
  "@tsconfig/recommended": "1.0.1",
28
28
  "concurrently": "7.0.0",
29
29
  "downlevel-dts": "0.10.1",
30
30
  "rimraf": "3.0.2",
31
31
  "typedoc": "0.23.23",
32
- "typescript": "~4.6.2"
32
+ "typescript": "~4.9.5"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=14.0.0"