Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/util-dynamodb

Package Overview
Dependencies
Maintainers
5
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-dynamodb - npm Package Compare versions

Comparing version 3.596.0 to 3.598.0

38

dist-types/marshall.d.ts
import { AttributeValue } from "@aws-sdk/client-dynamodb";
import { NativeAttributeBinary, NativeAttributeValue } from "./models";
import { NumberValue } from "./NumberValue";
/**

@@ -35,14 +36,35 @@ * An optional configuration object for `marshall`

*/
export declare function marshall(data: null, options?: marshallOptions): AttributeValue.NULLMember;
export declare function marshall(data: Set<bigint> | Set<number> | Set<NumberValue>, options?: marshallOptions): AttributeValue.NSMember;
export declare function marshall(data: Set<string>, options?: marshallOptions): AttributeValue.SSMember;
export declare function marshall(data: Set<number>, options?: marshallOptions): AttributeValue.NSMember;
export declare function marshall(data: Set<NativeAttributeBinary>, options?: marshallOptions): AttributeValue.BSMember;
export declare function marshall<M extends {
[K in keyof M]: NativeAttributeValue;
}>(data: M, options?: marshallOptions): Record<string, AttributeValue>;
export declare function marshall<L extends NativeAttributeValue[]>(data: L, options?: marshallOptions): AttributeValue[];
export declare function marshall(data: string, options?: marshallOptions): AttributeValue.SMember;
export declare function marshall(data: number, options?: marshallOptions): AttributeValue.NMember;
export declare function marshall(data: NativeAttributeBinary, options?: marshallOptions): AttributeValue.BMember;
export declare function marshall(data: null, options?: marshallOptions): AttributeValue.NULLMember;
export declare function marshall(data: boolean, options?: marshallOptions): AttributeValue.BOOLMember;
export declare function marshall(data: number | NumberValue | bigint, options?: marshallOptions): AttributeValue.NMember;
export declare function marshall(data: string, options?: marshallOptions): AttributeValue.SMember;
export declare function marshall(data: boolean, options?: marshallOptions): AttributeValue.BOOLMember;
export declare function marshall<O extends {
convertTopLevelContainer: true;
}>(data: NativeAttributeValue[], options: marshallOptions & O): AttributeValue.LMember;
export declare function marshall<O extends {
convertTopLevelContainer: false;
}>(data: NativeAttributeValue[], options: marshallOptions & O): AttributeValue[];
export declare function marshall<O extends {
convertTopLevelContainer: boolean;
}>(data: NativeAttributeValue[], options: marshallOptions & O): AttributeValue[] | AttributeValue.LMember;
export declare function marshall(data: NativeAttributeValue[], options?: marshallOptions): AttributeValue[];
export declare function marshall<O extends {
convertTopLevelContainer: true;
}>(data: Map<string, NativeAttributeValue> | Record<string, NativeAttributeValue>, options: marshallOptions & O): AttributeValue.MMember;
export declare function marshall<O extends {
convertTopLevelContainer: false;
}>(data: Map<string, NativeAttributeValue> | Record<string, NativeAttributeValue>, options: marshallOptions & O): Record<string, AttributeValue>;
export declare function marshall<O extends {
convertTopLevelContainer: boolean;
}>(data: Map<string, NativeAttributeValue> | Record<string, NativeAttributeValue>, options: marshallOptions & O): Record<string, AttributeValue> | AttributeValue.MMember;
export declare function marshall(data: Map<string, NativeAttributeValue> | Record<string, NativeAttributeValue>, options?: marshallOptions): Record<string, AttributeValue>;
export declare function marshall(data: any, options?: marshallOptions): any;
/**
* This signature will be unmatchable but is included for information.
*/
export declare function marshall(data: unknown, options?: marshallOptions): AttributeValue.$UnknownMember;
/// <reference types="node" />
import type { Exact } from "@smithy/types";
/**

@@ -13,2 +14,5 @@ * A interface recognizable as a numeric value that stores the underlying number

}
/**
* @public
*/
export type NativeAttributeValue = NativeScalarAttributeValue | {

@@ -19,2 +23,5 @@ [key: string]: NativeAttributeValue;

}>;
/**
* @public
*/
export type NativeScalarAttributeValue = null | undefined | boolean | number | NumberValue | bigint | NativeAttributeBinary | string;

@@ -30,2 +37,9 @@ /**

}
export type NativeAttributeBinary = ArrayBuffer | Blob | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
type Unavailable = never;
type BlobDefined = Exact<Blob, {}> extends true ? false : true;
type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable;
/**
* @public
*/
export type NativeAttributeBinary = ArrayBuffer | BlobOptionalType | Buffer | DataView | File | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
export {};
import { AttributeValue } from "@aws-sdk/client-dynamodb";
import { NativeAttributeBinary, NativeAttributeValue } from "./models";
import { NumberValue } from "./NumberValue";
export interface marshallOptions {

@@ -10,45 +11,102 @@ convertEmptyValues?: boolean;

export declare function marshall(
data: Set<string>,
data: null,
options?: marshallOptions
): AttributeValue.SSMember;
): AttributeValue.NULLMember;
export declare function marshall(
data: Set<number>,
data: Set<bigint> | Set<number> | Set<NumberValue>,
options?: marshallOptions
): AttributeValue.NSMember;
export declare function marshall(
data: Set<string>,
options?: marshallOptions
): AttributeValue.SSMember;
export declare function marshall(
data: Set<NativeAttributeBinary>,
options?: marshallOptions
): AttributeValue.BSMember;
export declare function marshall<
M extends {
[K in keyof M]: NativeAttributeValue;
}
>(data: M, options?: marshallOptions): Record<string, AttributeValue>;
export declare function marshall<L extends NativeAttributeValue[]>(
data: L,
export declare function marshall(
data: NativeAttributeBinary,
options?: marshallOptions
): AttributeValue[];
): AttributeValue.BMember;
export declare function marshall(
data: string,
data: boolean,
options?: marshallOptions
): AttributeValue.SMember;
): AttributeValue.BOOLMember;
export declare function marshall(
data: number,
data: number | NumberValue | bigint,
options?: marshallOptions
): AttributeValue.NMember;
export declare function marshall(
data: NativeAttributeBinary,
data: string,
options?: marshallOptions
): AttributeValue.BMember;
): AttributeValue.SMember;
export declare function marshall(
data: null,
options?: marshallOptions
): AttributeValue.NULLMember;
export declare function marshall(
data: boolean,
options?: marshallOptions
): AttributeValue.BOOLMember;
export declare function marshall<
O extends {
convertTopLevelContainer: true;
}
>(
data: NativeAttributeValue[],
options: marshallOptions & O
): AttributeValue.LMember;
export declare function marshall<
O extends {
convertTopLevelContainer: false;
}
>(data: NativeAttributeValue[], options: marshallOptions & O): AttributeValue[];
export declare function marshall<
O extends {
convertTopLevelContainer: boolean;
}
>(
data: NativeAttributeValue[],
options: marshallOptions & O
): AttributeValue[] | AttributeValue.LMember;
export declare function marshall(
data: NativeAttributeValue[],
options?: marshallOptions
): AttributeValue[];
export declare function marshall<
O extends {
convertTopLevelContainer: true;
}
>(
data:
| Map<string, NativeAttributeValue>
| Record<string, NativeAttributeValue>,
options: marshallOptions & O
): AttributeValue.MMember;
export declare function marshall<
O extends {
convertTopLevelContainer: false;
}
>(
data:
| Map<string, NativeAttributeValue>
| Record<string, NativeAttributeValue>,
options: marshallOptions & O
): Record<string, AttributeValue>;
export declare function marshall<
O extends {
convertTopLevelContainer: boolean;
}
>(
data:
| Map<string, NativeAttributeValue>
| Record<string, NativeAttributeValue>,
options: marshallOptions & O
): Record<string, AttributeValue> | AttributeValue.MMember;
export declare function marshall(
data:
| Map<string, NativeAttributeValue>
| Record<string, NativeAttributeValue>,
options?: marshallOptions
): Record<string, AttributeValue>;
export declare function marshall(data: any, options?: marshallOptions): any;
export declare function marshall(
data: unknown,
options?: marshallOptions
): AttributeValue.$UnknownMember;

@@ -0,1 +1,2 @@

import { Exact } from "@smithy/types";
export interface NumberValue {

@@ -28,5 +29,8 @@ readonly value: string;

}
type Unavailable = never;
type BlobDefined = Exact<Blob, {}> extends true ? false : true;
type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable;
export type NativeAttributeBinary =
| ArrayBuffer
| Blob
| BlobOptionalType
| Buffer

@@ -46,1 +50,2 @@ | DataView

| BigUint64Array;
export {};
{
"name": "@aws-sdk/util-dynamodb",
"version": "3.596.0",
"version": "3.598.0",
"scripts": {

@@ -27,3 +27,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"devDependencies": {
"@aws-sdk/client-dynamodb": "3.596.0",
"@aws-sdk/client-dynamodb": "3.598.0",
"@tsconfig/recommended": "1.0.1",

@@ -36,3 +36,3 @@ "concurrently": "7.0.0",

"peerDependencies": {
"@aws-sdk/client-dynamodb": "^3.596.0"
"@aws-sdk/client-dynamodb": "^3.598.0"
},

@@ -39,0 +39,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc