@aws-sdk/util-dynamodb 3.613.0 → 3.614.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.
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- import type { Exact } from "@smithy/types";
3
2
  /**
4
3
  * A interface recognizable as a numeric value that stores the underlying number
5
4
  * as a string.
@@ -32,11 +31,9 @@ declare global {
32
31
  interface File {
33
32
  }
34
33
  }
35
- type Unavailable = never;
36
- type BlobDefined = Exact<Blob, {}> extends true ? false : true;
37
- type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable;
34
+ type IfDefined<T> = {} extends T ? never : T;
38
35
  /**
39
36
  * @public
40
37
  */
41
- export type NativeAttributeBinary = ArrayBuffer | BlobOptionalType | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
38
+ export type NativeAttributeBinary = ArrayBuffer | IfDefined<Blob> | IfDefined<Buffer> | DataView | IfDefined<File> | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
42
39
  export {};
@@ -1,4 +1,3 @@
1
- import { Exact } from "@smithy/types";
2
1
  export interface NumberValue {
3
2
  readonly value: string;
4
3
  }
@@ -26,15 +25,13 @@ export type NativeScalarAttributeValue =
26
25
  declare global {
27
26
  interface File {}
28
27
  }
29
- type Unavailable = never;
30
- type BlobDefined = Exact<Blob, {}> extends true ? false : true;
31
- type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable;
28
+ type IfDefined<T> = {} extends T ? never : T;
32
29
  export type NativeAttributeBinary =
33
30
  | ArrayBuffer
34
- | BlobOptionalType
35
- | Buffer
31
+ | IfDefined<Blob>
32
+ | IfDefined<Buffer>
36
33
  | DataView
37
- | File
34
+ | IfDefined<File>
38
35
  | Int8Array
39
36
  | Uint8Array
40
37
  | Uint8ClampedArray
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-dynamodb",
3
- "version": "3.613.0",
3
+ "version": "3.614.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",
@@ -24,7 +24,7 @@
24
24
  "tslib": "^2.6.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@aws-sdk/client-dynamodb": "3.613.0",
27
+ "@aws-sdk/client-dynamodb": "3.614.0",
28
28
  "@tsconfig/recommended": "1.0.1",
29
29
  "concurrently": "7.0.0",
30
30
  "downlevel-dts": "0.10.1",
@@ -32,7 +32,7 @@
32
32
  "typescript": "~4.9.5"
33
33
  },
34
34
  "peerDependencies": {
35
- "@aws-sdk/client-dynamodb": "^3.613.0"
35
+ "@aws-sdk/client-dynamodb": "^3.614.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=16.0.0"