lazy-assert
Advanced tools
Comparing version 0.2.5 to 0.2.6
{ | ||
"name": "lazy-assert", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "An way of doing assertion for lazy people ...", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -761,3 +761,3 @@ var utils = require('./utils'); | ||
if (target[VALIDATE_KEY]) { | ||
return [null, null, ['=' + target[VALIDATE_KEY]]]; | ||
return [null, null, []]; | ||
} | ||
@@ -775,2 +775,3 @@ else { | ||
delete target[VALIDATE_KEY]; | ||
return validator; | ||
@@ -781,3 +782,3 @@ } | ||
if (target[VALIDATE_KEY]) { | ||
return [null, null, ['=' + target[VALIDATE_KEY]]]; | ||
return [null, null, []]; | ||
} | ||
@@ -801,2 +802,5 @@ else { | ||
}); | ||
delete target[VALIDATE_KEY]; | ||
return [validator, null, ['object']]; | ||
@@ -895,2 +899,4 @@ } | ||
/** | ||
* @deprecated this would not be needed as the key will always removed on the fly | ||
* | ||
* Clean all #@~VALIDATE_KEY flag from (sub) objects & (sub) arrays | ||
@@ -1008,2 +1014,5 @@ * | ||
} | ||
else if (result.type === 'ref-check') { | ||
result.finalMessage = result.message + ' source: ' + result.sourcePath + ' target: ' + result.targetPath; | ||
} | ||
else { | ||
@@ -1010,0 +1019,0 @@ result.finalMessage = result.message; |
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
968528
10990