@commodo/fields
Advanced tools
Comparing version 1.1.0-next.12 to 1.1.0-next.13
@@ -20,2 +20,4 @@ "use strict"; | ||
var _name = require("@commodo/name"); | ||
var _withFieldDataTypeValidation = _interopRequireDefault(require("./withFieldDataTypeValidation")); | ||
@@ -172,2 +174,7 @@ | ||
if ((0, _fields.hasFields)(value)) { | ||
// If both received value and instanceOf has a name attached, let's compare by it. | ||
if ((0, _name.hasName)(value) && (0, _name.hasName)(instanceOf)) { | ||
return (0, _name.getName)(value) === (0, _name.getName)(instanceOf); | ||
} | ||
return value instanceof instanceOf; | ||
@@ -174,0 +181,0 @@ } |
{ | ||
"name": "@commodo/fields", | ||
"version": "1.1.0-next.12", | ||
"version": "1.1.0-next.13", | ||
"main": "index.js", | ||
@@ -14,6 +14,6 @@ "repository": { | ||
"dependencies": { | ||
"@commodo/name": "^1.2.0-next.13", | ||
"repropose": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@commodo/name": "^1.2.0-next.12", | ||
"ramda": "^0.25.0" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "d5506e8230248c10dbb469f04646b7d46c805080" | ||
"gitHead": "6a8ccbc6f2a74bfb0f28188b1e8e8c6c7d891a27" | ||
} |
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
71789
1
758
2
+ Added@commodo/name@^1.2.0-next.13
+ Added@commodo/name@1.3.1(transitive)