@aws-sdk/util-dynamodb 3.294.0 → 3.296.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-types/convertToAttr.d.ts +1 -1
- package/dist-types/convertToNative.d.ts +1 -1
- package/dist-types/models.d.ts +3 -3
- package/dist-types/ts3.4/convertToAttr.d.ts +1 -1
- package/dist-types/ts3.4/convertToNative.d.ts +1 -1
- package/dist-types/ts3.4/models.d.ts +3 -3
- package/dist-types/ts3.4/unmarshall.d.ts +1 -1
- package/dist-types/unmarshall.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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
|
|
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
|
|
10
|
+
export declare const convertToNative: (data: AttributeValue, options?: unmarshallOptions) => NativeAttributeValue;
|
package/dist-types/models.d.ts
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
export interface NumberValue {
|
|
11
11
|
readonly value: string;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
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
|
|
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
|
|
28
|
+
export type NativeAttributeBinary = ArrayBuffer | Blob | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface NumberValue {
|
|
2
2
|
readonly value: string;
|
|
3
3
|
}
|
|
4
|
-
export
|
|
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
|
|
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
|
|
28
|
+
export type NativeAttributeBinary =
|
|
29
29
|
| ArrayBuffer
|
|
30
30
|
| Blob
|
|
31
31
|
| Buffer
|
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "3.296.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.
|
|
23
|
+
"tslib": "^2.5.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
26
|
+
"@aws-sdk/client-dynamodb": "3.296.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.
|
|
32
|
+
"typescript": "~4.9.5"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=14.0.0"
|