@composer-js/core
Advanced tools
Comparing version 6.0.0-rc.16 to 6.0.0-rc.17
@@ -29,3 +29,4 @@ "use strict"; | ||
const nullable = Reflect.getMetadata("cjs:nullable", obj, member); | ||
if (!nullable && !obj[member]) { | ||
// Value of '0' is valid. Don't throw on such values. | ||
if (!nullable && (obj[member] === null || obj[member] === undefined || obj[member] === "")) { | ||
throw new Error(`Property ${member} cannot be null.`); | ||
@@ -32,0 +33,0 @@ } |
{ | ||
"name": "@composer-js/core", | ||
"version": "6.0.0-rc.16", | ||
"version": "6.0.0-rc.17", | ||
"description": "A collection of common utilities and core functionality for composerjs applications.", | ||
@@ -5,0 +5,0 @@ "repository": "https://gitlab.acceleratxr.com/composerjs/composer-core.git", |
Sorry, the diff of this file is not supported yet
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
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
220360
3632