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

@types/dynamodb

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/dynamodb - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

10

dynamodb/DynamoDB.d.ts
export interface Projection<T> {
ProjectionType?: 'ALL' | 'KEYS_ONLY' | 'INCLUDE' | string;
ProjectionType?: "ALL" | "KEYS_ONLY" | "INCLUDE" | string;
NonKeyAttributes?: Array<keyof T>;
}
import * as stream from 'stream';
import * as stream from "stream";

@@ -29,3 +29,3 @@ export type DynamoDB = any;

interface StringSet {
type: 'String';
type: "String";
values: string[];

@@ -35,3 +35,3 @@ }

interface NumberSet {
type: 'Number';
type: "Number";
values: number[];

@@ -41,3 +41,3 @@ }

interface BinarySet {
type: 'Binary';
type: "Binary";
values: binaryType[];

@@ -44,0 +44,0 @@ }

@@ -1,4 +0,4 @@

import { Readable } from 'stream';
import { Readable } from "stream";
import { Callback } from './Callback';
import { Callback } from "./Callback";

@@ -5,0 +5,0 @@ export interface PromisedReadable<T> extends Readable {

@@ -7,8 +7,8 @@ // Type definitions for dynamodb 1.3

import { AnySchema, ArraySchema, SchemaMap, StringSchema } from 'joi';
import * as bunyan from 'bunyan';
import * as bunyan from "bunyan";
import { AnySchema, ArraySchema, SchemaMap, StringSchema } from "joi";
import { Callback } from './Callback';
import { Model } from './Model';
import { DynamoDB, Projection, DocumentClient, DynamoDbSet } from './DynamoDB';
import { Callback } from "./Callback";
import { DocumentClient, DynamoDB, DynamoDbSet, Projection } from "./DynamoDB";
import { Model } from "./Model";

@@ -29,3 +29,3 @@ interface CreateTablesOptions {

name: string;
type: 'local' | 'global';
type: "local" | "global";
projection?: Projection<T>;

@@ -32,0 +32,0 @@ }

@@ -1,8 +0,8 @@

import * as bunyan from 'bunyan';
import { DynamoDB } from './DynamoDB';
import * as bunyan from "bunyan";
import { DynamoDB } from "./DynamoDB";
import { Callback } from './Callback';
import { Query } from './Query';
import { Scan, ParallelScan } from './Scan';
import { EventEmitter } from 'events';
import { EventEmitter } from "events";
import { Callback } from "./Callback";
import { Query } from "./Query";
import { ParallelScan, Scan } from "./Scan";

@@ -55,3 +55,7 @@ export class Item<T> extends EventEmitter {

getItems(keys: ReadonlyArray<Partial<T> | string>, options: GetOptions<T>, callback: Callback<Array<Item<T>>>): void;
getItems(
keys: ReadonlyArray<Partial<T> | string>,
options: GetOptions<T>,
callback: Callback<Array<Item<T>>>,
): void;
getItems(keys: ReadonlyArray<Partial<T> | string>, callback: Callback<Array<Item<T>>>): void;

@@ -69,4 +73,4 @@ getItems(keys: ReadonlyArray<Partial<T> | string>, options?: GetOptions<T>): Promise<Array<Item<T>>>;

before: (event: 'create' | 'update', hook: (data: Partial<T>, next: Callback<Partial<T>>) => void) => void;
after: (event: 'create' | 'update' | 'destroy', hook: (data: Item<T>, next: Callback<void>) => void) => void;
before: (event: "create" | "update", hook: (data: Partial<T>, next: Callback<Partial<T>>) => void) => void;
after: (event: "create" | "update" | "destroy", hook: (data: Item<T>, next: Callback<void>) => void) => void;

@@ -73,0 +77,0 @@ config(config: { dynamodb?: DynamoDB; tableName?: string }): any;

{
"name": "@types/dynamodb",
"version": "1.3.3",
"version": "1.3.4",
"description": "TypeScript definitions for dynamodb",

@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dynamodb",

},
"typesPublisherContentHash": "e381ab4cc504d7fcf244db2a39ce1679795232c047cfba133cae241c4a4de50f",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "10012d08f606398e75a6a3ab7d47f848ebe46531f899bf0e127935e8f2b12f2d",
"typeScriptVersion": "4.5"
}

@@ -1,3 +0,3 @@

import { ExecuteFilter } from './ExecuteFilter';
import { Page } from './Model';
import { ExecuteFilter } from "./ExecuteFilter";
import { Page } from "./Model";

@@ -15,4 +15,4 @@ export interface QueryBase<T> {

addFilterCondition(condition: {
attributeNames: Record<string, any>;
attributeValues: Record<string, any>;
attributeNames: Record<string, any>;
attributeValues: Record<string, any>;
}): this;

@@ -34,4 +34,4 @@

addKeyCondition(condition: {
attributeNames: Record<string, any>;
attributeValues: Record<string, any>;
attributeNames: Record<string, any>;
attributeValues: Record<string, any>;
}): this;

@@ -49,4 +49,4 @@

export type PredicateFor<T, K extends keyof T, O extends QueryBase<T>>
= IsStrictlyAny<T[K]> extends true ? AnyPredicate<T, T[K], O>
export type PredicateFor<T, K extends keyof T, O extends QueryBase<T>> = IsStrictlyAny<T[K]> extends true
? AnyPredicate<T, T[K], O>
: T[K] extends any[] ? ArrayPredicate<T, T[K][number], O>

@@ -53,0 +53,0 @@ : T[K] extends string ? StringPredicate<T, O>

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 26 Jul 2023 23:32:57 GMT
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT
* Dependencies: [@types/bunyan](https://npmjs.com/package/@types/bunyan), [@types/joi](https://npmjs.com/package/@types/joi)

@@ -14,0 +14,0 @@ * Global values: none

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

import { QueryBase } from './Query';
import { QueryBase } from "./Query";

@@ -3,0 +3,0 @@ export interface Scan<T> extends QueryBase<T> {

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