Comparing version 0.0.11 to 0.0.12
@@ -289,7 +289,3 @@ 'use strict'; | ||
Object.defineProperty(embeddedModel, '$parent', {value: model}); | ||
if (Type.internalSchema === undefined) { | ||
buildValidator(Type, embeddedModel); | ||
} else { | ||
buildValidator(Type.internalSchema, embeddedModel); | ||
} | ||
buildValidator(Type.internalSchema, embeddedModel); | ||
return embeddedModel; | ||
@@ -821,4 +817,7 @@ } | ||
} else { | ||
internalValue = buildInternalSchema(type); | ||
Object.defineProperty(internalValue, '$type', {value: type}); | ||
if (type.internalSchema === undefined) { | ||
internalValue = buildInternalSchema(type); | ||
type.internalSchema = internalValue; | ||
Object.defineProperty(internalValue, '$type', {value: type}); | ||
} | ||
} | ||
@@ -825,0 +824,0 @@ return internalValue; |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"engines": { | ||
@@ -11,0 +11,0 @@ "node": ">=0.4.12" |
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
84178
1722