@xapp/dynamo-service
Advanced tools
Comparing version 0.1.10 to 0.1.12
@@ -5,2 +5,6 @@ # Changelog | ||
### [0.1.12](https://github.com/XappMedia/dynamo-service/compare/v0.1.10-1...v0.1.12) (2019-05-22) | ||
### [0.1.10](https://github.com/XappMedia/dynamo-service/compare/v0.1.9...v0.1.10) (2019-05-14) | ||
@@ -7,0 +11,0 @@ |
@@ -47,3 +47,4 @@ export declare type DynamoType = "S" | "N" | "M" | "L" | "BOOL"; | ||
type: "M"; | ||
attributes: MapAttributes; | ||
attributes?: MapAttributes; | ||
onlyAllowDefinedAttributes?: boolean; | ||
} | ||
@@ -57,2 +58,3 @@ export declare type MapAttribute = NormalMapAttribute; | ||
attributes?: MapAttributes; | ||
onlyAllowDefinedAttributes?: boolean; | ||
} | ||
@@ -59,0 +61,0 @@ export declare type KeySchema = DynamoSchema | DateSchema | DynamoStringSchema | MapSchema; |
@@ -135,3 +135,5 @@ "use strict"; | ||
const mapSchemaParser = new MapSchemaParser(mapSchema); | ||
validateObject(mapSchemaParser, obj[mapKey], { extrasAllowed: mapSchemaParser.knownKeys.length === 0 }); | ||
const extrasAllowed = !mapSchema.onlyAllowDefinedAttributes || mapSchemaParser.knownKeys.length === 0; | ||
console.log("EXTRA", extrasAllowed, !mapSchema.onlyAllowDefinedAttributes, mapSchemaParser.knownKeys.length === 0); | ||
validateObject(mapSchemaParser, obj[mapKey], { extrasAllowed }); | ||
} | ||
@@ -138,0 +140,0 @@ } |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "0.1.10", | ||
"version": "0.1.12", | ||
"description": "A dynamo help class which will help maintain data integrity.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
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
246455
6130