@aws-sdk/util-dynamodb 3.168.0 → 3.170.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/util-dynamodb
9
+
10
+
11
+
12
+
13
+
14
+ # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/util-dynamodb
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/util-dynamodb
@@ -1,5 +1,8 @@
1
- import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
- import { marshallOptions } from "./marshall";
3
- import { NativeAttributeValue } from "./models";
4
-
5
- export declare const convertToAttr: (data: NativeAttributeValue, options?: marshallOptions | undefined) => AttributeValue;
1
+ import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
+ import { marshallOptions } from "./marshall";
3
+ import { NativeAttributeValue } from "./models";
4
+
5
+ export declare const convertToAttr: (
6
+ data: NativeAttributeValue,
7
+ options?: marshallOptions | undefined
8
+ ) => AttributeValue;
@@ -1,5 +1,8 @@
1
- import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
- import { NativeAttributeValue } from "./models";
3
- import { unmarshallOptions } from "./unmarshall";
4
-
5
- export declare const convertToNative: (data: AttributeValue, options?: unmarshallOptions | undefined) => NativeAttributeValue;
1
+ import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
+ import { NativeAttributeValue } from "./models";
3
+ import { unmarshallOptions } from "./unmarshall";
4
+
5
+ export declare const convertToNative: (
6
+ data: AttributeValue,
7
+ options?: unmarshallOptions | undefined
8
+ ) => NativeAttributeValue;
@@ -1,5 +1,5 @@
1
- export * from "./convertToAttr";
2
- export * from "./convertToNative";
3
- export * from "./marshall";
4
- export * from "./models";
5
- export * from "./unmarshall";
1
+ export * from "./convertToAttr";
2
+ export * from "./convertToNative";
3
+ export * from "./marshall";
4
+ export * from "./models";
5
+ export * from "./unmarshall";
@@ -1,25 +1,56 @@
1
- import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
- import { NativeAttributeBinary, NativeAttributeValue } from "./models";
3
-
4
- export interface marshallOptions {
5
-
6
- convertEmptyValues?: boolean;
7
-
8
- removeUndefinedValues?: boolean;
9
-
10
- convertClassInstanceToMap?: boolean;
11
- }
12
-
13
- export declare function marshall(data: Set<string>, options?: marshallOptions): AttributeValue.SSMember;
14
- export declare function marshall(data: Set<number>, options?: marshallOptions): AttributeValue.NSMember;
15
- export declare function marshall(data: Set<NativeAttributeBinary>, options?: marshallOptions): AttributeValue.BSMember;
16
- export declare function marshall<M extends {
17
- [K in keyof M]: NativeAttributeValue;
18
- }>(data: M, options?: marshallOptions): Record<string, AttributeValue>;
19
- export declare function marshall<L extends NativeAttributeValue[]>(data: L, options?: marshallOptions): AttributeValue[];
20
- export declare function marshall(data: string, options?: marshallOptions): AttributeValue.SMember;
21
- export declare function marshall(data: number, options?: marshallOptions): AttributeValue.NMember;
22
- export declare function marshall(data: NativeAttributeBinary, options?: marshallOptions): AttributeValue.BMember;
23
- export declare function marshall(data: null, options?: marshallOptions): AttributeValue.NULLMember;
24
- export declare function marshall(data: boolean, options?: marshallOptions): AttributeValue.BOOLMember;
25
- export declare function marshall(data: unknown, options?: marshallOptions): AttributeValue.$UnknownMember;
1
+ import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
+ import { NativeAttributeBinary, NativeAttributeValue } from "./models";
3
+
4
+ export interface marshallOptions {
5
+ convertEmptyValues?: boolean;
6
+
7
+ removeUndefinedValues?: boolean;
8
+
9
+ convertClassInstanceToMap?: boolean;
10
+ }
11
+
12
+ export declare function marshall(
13
+ data: Set<string>,
14
+ options?: marshallOptions
15
+ ): AttributeValue.SSMember;
16
+ export declare function marshall(
17
+ data: Set<number>,
18
+ options?: marshallOptions
19
+ ): AttributeValue.NSMember;
20
+ export declare function marshall(
21
+ data: Set<NativeAttributeBinary>,
22
+ options?: marshallOptions
23
+ ): AttributeValue.BSMember;
24
+ export declare function marshall<
25
+ M extends {
26
+ [K in keyof M]: NativeAttributeValue;
27
+ }
28
+ >(data: M, options?: marshallOptions): Record<string, AttributeValue>;
29
+ export declare function marshall<L extends NativeAttributeValue[]>(
30
+ data: L,
31
+ options?: marshallOptions
32
+ ): AttributeValue[];
33
+ export declare function marshall(
34
+ data: string,
35
+ options?: marshallOptions
36
+ ): AttributeValue.SMember;
37
+ export declare function marshall(
38
+ data: number,
39
+ options?: marshallOptions
40
+ ): AttributeValue.NMember;
41
+ export declare function marshall(
42
+ data: NativeAttributeBinary,
43
+ options?: marshallOptions
44
+ ): AttributeValue.BMember;
45
+ export declare function marshall(
46
+ data: null,
47
+ options?: marshallOptions
48
+ ): AttributeValue.NULLMember;
49
+ export declare function marshall(
50
+ data: boolean,
51
+ options?: marshallOptions
52
+ ): AttributeValue.BOOLMember;
53
+ export declare function marshall(
54
+ data: unknown,
55
+ options?: marshallOptions
56
+ ): AttributeValue.$UnknownMember;
@@ -1,17 +1,45 @@
1
-
2
-
3
- export interface NumberValue {
4
- readonly value: string;
5
- }
6
- export declare type NativeAttributeValue = NativeScalarAttributeValue | {
7
- [key: string]: NativeAttributeValue;
8
- } | NativeAttributeValue[] | Set<number | bigint | NumberValue | string | NativeAttributeBinary | undefined> | InstanceType<{
9
- new (...args: any[]): any;
10
- }>;
11
- export declare type NativeScalarAttributeValue = null | undefined | boolean | number | NumberValue | bigint | NativeAttributeBinary | string;
12
-
13
- declare global {
14
- interface File {
15
- }
16
- }
17
- export declare type NativeAttributeBinary = ArrayBuffer | Blob | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
1
+ export interface NumberValue {
2
+ readonly value: string;
3
+ }
4
+ export declare type NativeAttributeValue =
5
+ | NativeScalarAttributeValue
6
+ | {
7
+ [key: string]: NativeAttributeValue;
8
+ }
9
+ | NativeAttributeValue[]
10
+ | Set<
11
+ number | bigint | NumberValue | string | NativeAttributeBinary | undefined
12
+ >
13
+ | InstanceType<{
14
+ new (...args: any[]): any;
15
+ }>;
16
+ export declare type NativeScalarAttributeValue =
17
+ | null
18
+ | undefined
19
+ | boolean
20
+ | number
21
+ | NumberValue
22
+ | bigint
23
+ | NativeAttributeBinary
24
+ | string;
25
+
26
+ declare global {
27
+ interface File {}
28
+ }
29
+ export declare type NativeAttributeBinary =
30
+ | ArrayBuffer
31
+ | Blob
32
+ | Buffer
33
+ | DataView
34
+ | File
35
+ | Int8Array
36
+ | Uint8Array
37
+ | Uint8ClampedArray
38
+ | Int16Array
39
+ | Uint16Array
40
+ | Int32Array
41
+ | Uint32Array
42
+ | Float32Array
43
+ | Float64Array
44
+ | BigInt64Array
45
+ | BigUint64Array;
@@ -1,9 +1,11 @@
1
- import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
- import { NativeAttributeValue } from "./models";
3
-
4
- export interface unmarshallOptions {
5
-
6
- wrapNumbers?: boolean;
7
- }
8
-
9
- export declare const unmarshall: (data: Record<string, AttributeValue>, options?: unmarshallOptions | undefined) => Record<string, NativeAttributeValue>;
1
+ import { AttributeValue } from "@aws-sdk/client-dynamodb";
2
+ import { NativeAttributeValue } from "./models";
3
+
4
+ export interface unmarshallOptions {
5
+ wrapNumbers?: boolean;
6
+ }
7
+
8
+ export declare const unmarshall: (
9
+ data: Record<string, AttributeValue>,
10
+ options?: unmarshallOptions | undefined
11
+ ) => Record<string, NativeAttributeValue>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-dynamodb",
3
- "version": "3.168.0",
3
+ "version": "3.170.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",
@@ -23,10 +23,10 @@
23
23
  "tslib": "^2.3.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@aws-sdk/client-dynamodb": "3.168.0",
26
+ "@aws-sdk/client-dynamodb": "3.170.0",
27
27
  "@tsconfig/recommended": "1.0.1",
28
28
  "concurrently": "7.0.0",
29
- "downlevel-dts": "0.7.0",
29
+ "downlevel-dts": "0.10.1",
30
30
  "rimraf": "3.0.2",
31
31
  "typedoc": "0.19.2",
32
32
  "typescript": "~4.6.2"