@xapp/dynamo-service
Advanced tools
Comparing version 0.0.95 to 0.0.96
@@ -29,4 +29,2 @@ export declare type DynamoType = "S" | "N" | "M" | "L" | "BOOL"; | ||
export declare type KeySchema = DynamoSchema | DateSchema | DynamoStringSchema; | ||
export interface TableSchema { | ||
[key: string]: KeySchema; | ||
} | ||
export declare type TableSchema<Row extends object> = Record<keyof Row, KeySchema>; |
@@ -15,3 +15,3 @@ import { ConditionExpression, DynamoService, QueryParams, QueryResult, ScanParams, ScanResult, UpdateBody, UpdateReturnType } from "./DynamoService"; | ||
readonly tableName: string; | ||
readonly tableSchema: TableSchema; | ||
readonly tableSchema: TableSchema<T>; | ||
private readonly primaryKey; | ||
@@ -29,3 +29,3 @@ private readonly sortKey; | ||
private readonly props; | ||
constructor(tableName: string, db: DynamoService, tableSchema: TableSchema, props?: TableServiceProps); | ||
constructor(tableName: string, db: DynamoService, tableSchema: TableSchema<T>, props?: TableServiceProps); | ||
put(obj: T, condition?: ConditionExpression): Promise<T>; | ||
@@ -32,0 +32,0 @@ putAll(obj: T[]): Promise<PutAllReturn<T>>; |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "0.0.95", | ||
"version": "0.0.96", | ||
"description": "A dynamo help class which will help maintain data integrity.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
146243
3904