node-aws-utils
Advanced tools
Comparing version 1.0.0 to 1.1.0
import { ResultOK, ResultFAIL } from "node-result"; | ||
import { DynamoDB } from "aws-sdk"; | ||
export declare class DynamoDocumentClient { | ||
static update(client: DynamoDB.DocumentClient, tableName: DynamoDB.DocumentClient.TableName, where: DynamoDB.DocumentClient.Key, data: DynamoDB.DocumentClient.AttributeUpdates): Promise<ResultOK<DynamoDB.DocumentClient.AttributeMap> | ResultFAIL<Error>>; | ||
static update(client: DynamoDB.DocumentClient, tableName: DynamoDB.DocumentClient.TableName, where: DynamoDB.DocumentClient.Key, data: { | ||
[key: string]: any; | ||
}): Promise<ResultOK<DynamoDB.DocumentClient.AttributeMap> | ResultFAIL<Error>>; | ||
} |
{ | ||
"name": "node-aws-utils", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "aws utils", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ import {ResultOK, ResultFAIL, ResultOk, tryCatchWrapperAsync} from "node-result"; | ||
@tryCatchWrapperAsync | ||
static async update(client: DynamoDB.DocumentClient, tableName: DynamoDB.DocumentClient.TableName, where: DynamoDB.DocumentClient.Key, data: DynamoDB.DocumentClient.AttributeUpdates): Promise<ResultOK<DynamoDB.DocumentClient.AttributeMap> | ResultFAIL<Error>> { | ||
static async update(client: DynamoDB.DocumentClient, tableName: DynamoDB.DocumentClient.TableName, where: DynamoDB.DocumentClient.Key, data: { [key: string]: any }): Promise<ResultOK<DynamoDB.DocumentClient.AttributeMap> | ResultFAIL<Error>> { | ||
const params: DynamoDB.DocumentClient.UpdateItemInput = { | ||
@@ -9,0 +9,0 @@ TableName: tableName, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105
6006