@aws-sdk/util-dynamodb 3.169.0 → 3.171.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.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/util-dynamodb
9
+
10
+
11
+
12
+
13
+
14
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/util-dynamodb
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/util-dynamodb
@@ -1,5 +1,7 @@
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
+ export declare const convertToAttr: (
5
+ data: NativeAttributeValue,
6
+ options?: marshallOptions | undefined
7
+ ) => AttributeValue;
@@ -1,5 +1,7 @@
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
+ export declare const convertToNative: (
5
+ data: AttributeValue,
6
+ options?: unmarshallOptions | undefined
7
+ ) => 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,52 @@
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
+ export interface marshallOptions {
4
+ convertEmptyValues?: boolean;
5
+ removeUndefinedValues?: boolean;
6
+ convertClassInstanceToMap?: boolean;
7
+ }
8
+ export declare function marshall(
9
+ data: Set<string>,
10
+ options?: marshallOptions
11
+ ): AttributeValue.SSMember;
12
+ export declare function marshall(
13
+ data: Set<number>,
14
+ options?: marshallOptions
15
+ ): AttributeValue.NSMember;
16
+ export declare function marshall(
17
+ data: Set<NativeAttributeBinary>,
18
+ options?: marshallOptions
19
+ ): AttributeValue.BSMember;
20
+ export declare function marshall<
21
+ M extends {
22
+ [K in keyof M]: NativeAttributeValue;
23
+ }
24
+ >(data: M, options?: marshallOptions): Record<string, AttributeValue>;
25
+ export declare function marshall<L extends NativeAttributeValue[]>(
26
+ data: L,
27
+ options?: marshallOptions
28
+ ): AttributeValue[];
29
+ export declare function marshall(
30
+ data: string,
31
+ options?: marshallOptions
32
+ ): AttributeValue.SMember;
33
+ export declare function marshall(
34
+ data: number,
35
+ options?: marshallOptions
36
+ ): AttributeValue.NMember;
37
+ export declare function marshall(
38
+ data: NativeAttributeBinary,
39
+ options?: marshallOptions
40
+ ): AttributeValue.BMember;
41
+ export declare function marshall(
42
+ data: null,
43
+ options?: marshallOptions
44
+ ): AttributeValue.NULLMember;
45
+ export declare function marshall(
46
+ data: boolean,
47
+ options?: marshallOptions
48
+ ): AttributeValue.BOOLMember;
49
+ export declare function marshall(
50
+ data: unknown,
51
+ options?: marshallOptions
52
+ ): AttributeValue.$UnknownMember;
@@ -1,17 +1,44 @@
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
+ declare global {
26
+ interface File {}
27
+ }
28
+ export declare type NativeAttributeBinary =
29
+ | ArrayBuffer
30
+ | Blob
31
+ | Buffer
32
+ | DataView
33
+ | File
34
+ | Int8Array
35
+ | Uint8Array
36
+ | Uint8ClampedArray
37
+ | Int16Array
38
+ | Uint16Array
39
+ | Int32Array
40
+ | Uint32Array
41
+ | Float32Array
42
+ | Float64Array
43
+ | BigInt64Array
44
+ | BigUint64Array;
@@ -1,9 +1,9 @@
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
+ export interface unmarshallOptions {
4
+ wrapNumbers?: boolean;
5
+ }
6
+ export declare const unmarshall: (
7
+ data: Record<string, AttributeValue>,
8
+ options?: unmarshallOptions | undefined
9
+ ) => Record<string, NativeAttributeValue>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-dynamodb",
3
- "version": "3.169.0",
3
+ "version": "3.171.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.169.0",
26
+ "@aws-sdk/client-dynamodb": "3.171.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"