baiji-normalizer
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -279,3 +279,5 @@ /** | ||
var maxCoerceLevel = opts.maxCoerceLevel || 3; | ||
return coerceAll(val, maxCoerceLevel); | ||
// needCoerce option: default to be `true` | ||
var needCoerce = opts.coerce !== false; | ||
return needCoerce ? coerceAll(val, maxCoerceLevel) : val; | ||
} | ||
@@ -282,0 +284,0 @@ |
{ | ||
"name": "baiji-normalizer", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Baiji Normalizer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,2 +88,5 @@ var chai = require('chai'); | ||
// with coerce = false | ||
expect(new Normalizer({ a: '1' }, { coerce: false }).to('any')).to.eql({ a: '1' }); | ||
var circularExample = {}; | ||
@@ -90,0 +93,0 @@ circularExample.anotherCircularReference = circularExample; |
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
18126
396