@xapp/dynamo-service
Advanced tools
Comparing version 0.0.90 to 0.0.91
@@ -210,16 +210,10 @@ "use strict"; | ||
function ensureHasRequiredKeys(requiredKeys, obj) { | ||
try { | ||
Object_1.throwIfDoesNotContain(obj, requiredKeys); | ||
} | ||
catch (e) { | ||
throw new ValidationError_1.ValidationError("The the object requires the keys '" + requiredKeys.join(",") + "'."); | ||
} | ||
Object_1.throwIfDoesNotContain(obj, requiredKeys, false, (missingKeys) => { | ||
throw new ValidationError_1.ValidationError("The the object requires the keys '" + missingKeys.join(", ") + "'."); | ||
}); | ||
} | ||
function ensureDoesNotHaveConstantKeys(constantKeys, obj) { | ||
try { | ||
Object_1.throwIfDoesContain(obj, constantKeys); | ||
} | ||
catch (e) { | ||
throw new ValidationError_1.ValidationError("The keys '" + constantKeys.join(",") + "' are constant and can not be modified."); | ||
} | ||
Object_1.throwIfDoesContain(obj, constantKeys, (foundKeys) => { | ||
throw new ValidationError_1.ValidationError("The keys '" + foundKeys.join(", ") + "' are constant and can not be modified."); | ||
}); | ||
} | ||
@@ -226,0 +220,0 @@ function ensureNoExtraKeys(knownKeys, obj) { |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "0.0.90", | ||
"version": "0.0.91", | ||
"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
145919
3901