confidence
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -24,3 +24,2 @@ // Load modules | ||
this._tree = Hoek.clone(document); | ||
return null; | ||
}; | ||
@@ -46,3 +45,3 @@ | ||
if (invalid) { | ||
return null; | ||
return undefined; | ||
} | ||
@@ -53,6 +52,4 @@ } | ||
for (var i = 0, il = path.length; i < il && node; ++i) { | ||
if (typeof node !== 'object' || | ||
node instanceof Array) { | ||
node = null; | ||
if (typeof node !== 'object') { | ||
node = undefined; | ||
break; | ||
@@ -218,3 +215,3 @@ } | ||
return node || null; // Override undefined | ||
return node; | ||
} | ||
@@ -230,3 +227,3 @@ | ||
if (!sub) { | ||
return null; | ||
return undefined; | ||
} | ||
@@ -240,3 +237,3 @@ | ||
else { | ||
return null; | ||
return undefined; | ||
} | ||
@@ -267,3 +264,3 @@ }; | ||
return node || null; // Override undefined | ||
return node; | ||
} | ||
@@ -270,0 +267,0 @@ |
{ | ||
"name": "confidence", | ||
"description": "Configuration API", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/spumko/confidence", |
@@ -83,4 +83,4 @@ // Load modules | ||
get('/key2/deeper', 'value', { env: 'production' }); | ||
get('/key2/deeper', null, { env: 'qa' }); | ||
get('/key2/deeper', null); | ||
get('/key2/deeper', undefined, { env: 'qa' }); | ||
get('/key2/deeper', undefined); | ||
get('/key5', {}); | ||
@@ -98,3 +98,3 @@ get('/', { key1: 'abc', key2: 2, key3: { sub1: 123 }, key4: [12, 13, 14], key5: {}, ab: 6 }); | ||
var value = store.get('key'); | ||
expect(value).to.equal(null); | ||
expect(value).to.equal(undefined); | ||
done(); | ||
@@ -101,0 +101,0 @@ }); |
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
68821
572