@xapp/dynamo-service
Advanced tools
Comparing version 0.1.9 to 0.1.10-0
@@ -5,2 +5,11 @@ # Changelog | ||
### [0.1.10](https://github.com/XappMedia/dynamo-service/compare/v0.1.9...v0.1.10) (2019-05-14) | ||
### Bug Fixes | ||
* Changing "deployMinor" to just "deploy" ([155c966](https://github.com/XappMedia/dynamo-service/commit/155c966)) | ||
### [0.1.9](https://github.com/XappMedia/dynamo-service/compare/v0.1.8...v0.1.9) (2019-05-14) | ||
@@ -7,0 +16,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,4 @@ "use strict"; | ||
const mapSchemaParser = new MapSchemaParser(mapSchema); | ||
validateObject(mapSchemaParser, obj[mapKey], { extrasAllowed: mapSchemaParser.knownKeys.length === 0 }); | ||
const extrasAllowed = mapSchema.onlyAllowDefinedAttributes && mapSchemaParser.knownKeys.length === 0; | ||
validateObject(mapSchemaParser, obj[mapKey], { extrasAllowed }); | ||
} | ||
@@ -138,0 +139,0 @@ } |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "0.1.9", | ||
"version": "0.1.10-0", | ||
"description": "A dynamo help class which will help maintain data integrity.", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"circleci": "nyc mocha './src/test/**/*.ts'", | ||
"deploy:minor": "standard-version --message 'v%s [skip ci]' && git push --follow-tags origin master && npm publish", | ||
"deploy": "standard-version --message 'v%s [skip ci]' && git push --follow-tags origin master && npm publish", | ||
"postversion": "git push && git push --tags", | ||
@@ -19,0 +19,0 @@ "prepublishOnly": "npm run build -- -p ./tsconfig.production.json" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
96460
2165
2