confidence
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -128,3 +128,3 @@ 'use strict'; | ||
if (node.hasOwnProperty('$default')) { | ||
if (Object.prototype.hasOwnProperty.call(node, '$default')) { | ||
exports._logApplied(applied, filter, node, '$default'); | ||
@@ -182,3 +182,3 @@ return internals.defaults(internals.filter(node.$default, criteria, applied), node.$base); | ||
if (node.hasOwnProperty('$value')) { | ||
if (Object.prototype.hasOwnProperty.call(node, '$value')) { | ||
return internals.walk(node.$value, criteria, applied); | ||
@@ -275,3 +275,3 @@ } | ||
if (!range.hasOwnProperty('limit')) { | ||
if (!Object.prototype.hasOwnProperty.call(range, 'limit')) { | ||
return error('Range entry missing limit'); | ||
@@ -290,3 +290,3 @@ } | ||
if (!range.hasOwnProperty('value')) { | ||
if (!Object.prototype.hasOwnProperty.call(range, 'value')) { | ||
return error('Range entry missing value'); | ||
@@ -293,0 +293,0 @@ } |
{ | ||
"name": "confidence", | ||
"description": "Configuration API", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"repository": "git://github.com/hapijs/confidence", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -110,2 +110,3 @@ 'use strict'; | ||
}, | ||
noProto: Object.create(null), | ||
$meta: { | ||
@@ -150,4 +151,4 @@ something: 'else' | ||
get('/key9', { animal: 'chicken' }, { env: 'production' }); | ||
get('/', { key1: 'abc', key2: 2, key3: { sub1: 0 }, key4: [12, 13, 14], key5: {}, ab: 6 }); | ||
get('/', { key1: 'abc', key2: 2, key3: { sub1: 0, sub2: '' }, key4: [12, 13, 14], key5: {}, ab: 6 }, { xfactor: 'yes' }); | ||
get('/', { key1: 'abc', key2: 2, key3: { sub1: 0 }, key4: [12, 13, 14], key5: {}, noProto: {}, ab: 6 }); | ||
get('/', { key1: 'abc', key2: 2, key3: { sub1: 0, sub2: '' }, key4: [12, 13, 14], key5: {}, noProto: {}, ab: 6 }, { xfactor: 'yes' }); | ||
get('/ab', 2, { random: { 1: 2 } }, [{ filter: 'random.1', valueId: '[object]', filterId: 'random_ab_test' }]); | ||
@@ -154,0 +155,0 @@ get('/ab', { a: 5 }, { random: { 1: 3 } }, [{ filter: 'random.1', valueId: '3', filterId: 'random_ab_test' }]); |
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
86170
978