schema-llama
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -182,2 +182,5 @@ 'use strict'; | ||
} | ||
if (value.constructor.name == '__SLC__') { | ||
break; | ||
} | ||
value = new (classFactory(schemaItem)(options))(value); | ||
@@ -215,3 +218,3 @@ break; | ||
const Class = ParentClass ? class extends ParentClass { | ||
const Class = ParentClass ? class __SLC__ extends ParentClass { | ||
constructor(...args) { | ||
@@ -221,3 +224,3 @@ super(...args); | ||
} | ||
} : class { | ||
} : class __SLC__ { | ||
constructor(...args) { | ||
@@ -224,0 +227,0 @@ constructorHelper.call(this, ...args); |
{ | ||
"name": "schema-llama", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A more purely javascript es6 class generator. Takes the work out of validation, type checking, and more.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -167,2 +167,5 @@ import { TypeError, ValidationError, Error } from './errors'; | ||
} | ||
if(value.constructor.name == '__SLC__') { | ||
break; | ||
} | ||
value = new (classFactory(schemaItem)(options))(value); | ||
@@ -200,3 +203,3 @@ break; | ||
const Class = ParentClass ? ( | ||
class extends ParentClass { | ||
class __SLC__ extends ParentClass { | ||
constructor(...args) { | ||
@@ -208,3 +211,3 @@ super(...args); | ||
) : ( | ||
class { | ||
class __SLC__ { | ||
constructor(...args) { | ||
@@ -211,0 +214,0 @@ constructorHelper.call(this, ...args); |
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
37365
713