Comparing version 2.0.0-1 to 2.0.0-2
@@ -24,3 +24,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread"; | ||
if (builder instanceof Builder) { | ||
if (builder instanceof Builder || isObject(builder) && builder.constructor.name.endsWith('Builder')) { | ||
builtStruct[key] = builder.runChecks(path, value, struct, options); | ||
@@ -27,0 +27,0 @@ } else if ("production" !== process.env.NODE_ENV) { |
@@ -33,3 +33,3 @@ "use strict"; | ||
if (builder instanceof _Builder.default) { | ||
if (builder instanceof _Builder.default || (0, _isObject.default)(builder) && builder.constructor.name.endsWith('Builder')) { | ||
builtStruct[key] = builder.runChecks(path, value, struct, options); | ||
@@ -36,0 +36,0 @@ } else if ("production" !== process.env.NODE_ENV) { |
{ | ||
"name": "optimal", | ||
"version": "2.0.0-1", | ||
"version": "2.0.0-2", | ||
"description": "A system for building and validating defined object structures.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
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
100879