@xapp/dynamo-service
Advanced tools
Comparing version 1.0.0-alpha.11 to 1.0.0-alpha.12
@@ -15,3 +15,2 @@ "use strict"; | ||
const Object_1 = require("../utils/Object"); | ||
const ValidationError_1 = require("./ValidationError"); | ||
exports.MAX_PUT_ALL_ATTEMPTS = 15; | ||
@@ -244,8 +243,5 @@ class DynamoService { | ||
} | ||
else if (db instanceof aws_sdk_1.DynamoDB.DocumentClient) { | ||
else { | ||
return db; | ||
} | ||
else { | ||
throw new ValidationError_1.ValidationError("Could not construct DynamoService. Bad input."); | ||
} | ||
} | ||
@@ -252,0 +248,0 @@ function getUpdateParameters(body) { |
@@ -83,4 +83,1 @@ export interface Converter<From, To> { | ||
export declare function isMultiTypeSchema(v: KeySchema): v is MultiSchema; | ||
export declare function isStringMapAttribute(v: MapAttribute): v is StringMapAttribute; | ||
export declare function isMapMapAttribute(v: MapAttribute): v is MapMapAttribute; | ||
export declare function isDateMapAttribute(v: MapAttribute): v is DateMapAttribute; |
@@ -31,13 +31,1 @@ "use strict"; | ||
exports.isMultiTypeSchema = isMultiTypeSchema; | ||
function isStringMapAttribute(v) { | ||
return v.type === "S"; | ||
} | ||
exports.isStringMapAttribute = isStringMapAttribute; | ||
function isMapMapAttribute(v) { | ||
return v.type === "M"; | ||
} | ||
exports.isMapMapAttribute = isMapMapAttribute; | ||
function isDateMapAttribute(v) { | ||
return v.type === "Date"; | ||
} | ||
exports.isDateMapAttribute = isDateMapAttribute; |
@@ -17,3 +17,3 @@ import { UpdateBody } from "../../../DynamoService"; | ||
addProcessor(...processor: (Processor<any> | Converter<any, any>)[]): void; | ||
protected addJavascriptProcessor(...processor: Converter<any, any>[]): void; | ||
addJavascriptProcessor(...processor: Converter<any, any>[]): void; | ||
addPutValidator(...validators: Validator<any>[]): void; | ||
@@ -20,0 +20,0 @@ addUpdateBodyValidator(...validators: Validator<UpdateBody<any>, T>[]): void; |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "1.0.0-alpha.11", | ||
"version": "1.0.0-alpha.12", | ||
"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 2 instances in 1 package
410613
130
7600
2