ezobjects
Advanced tools
Comparing version 5.3.4 to 5.4.0
const docket = require(`docket-parser`); | ||
docket.title(`EZ Objects v5.3.4`); | ||
docket.title(`EZ Objects v5.4.0`); | ||
docket.linkClass(`text-success`); | ||
docket.parseFiles([`index.js`]); | ||
docket.generateDocs(`docs`); |
@@ -24,3 +24,3 @@ /** | ||
throw new TypeError(`${property.className}.${property.name}(): Non-numeric value passed to '${property.type}' setter.`); | ||
else if ( x && property.ezobjectType.jsType == 'string' && typeof x !== 'string' ) | ||
else if ( x && property.ezobjectType.jsType == 'string' && typeof x !== 'string' && typeof x !== 'number' ) | ||
throw new TypeError(`${property.className}.${property.name}(): Non-string value passed to '${property.type}' setter.`); | ||
@@ -48,2 +48,4 @@ else if ( x && property.ezobjectType.jsType == 'boolean' && typeof x !== 'boolean' ) | ||
return x === null ? null : (x ? true : false); | ||
else if ( property.ezobjectType.jsType == 'string' ) | ||
return x === null ? null : x.toString(); | ||
else | ||
@@ -50,0 +52,0 @@ return x === null ? null : x; |
{ | ||
"name": "ezobjects", | ||
"version": "5.3.4", | ||
"version": "5.4.0", | ||
"description": "Easy Auto-Generated Strictly-Typed JavaScript Class Objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# EZ Objects v5.3.4 | ||
# EZ Objects v5.4.0 | ||
@@ -3,0 +3,0 @@ EZ Objects is a Node.js module (that can also be usefully browserify'd) that aims to save you lots of time |
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
340282
1593