Comparing version 0.9.1 to 0.10.0
@@ -0,0 +0,0 @@ // Declare internals |
@@ -246,5 +246,5 @@ // Load modules | ||
exports.reach = function (obj, chain) { | ||
exports.reach = function (obj, chain, separator) { | ||
var path = chain.split('.'); | ||
var path = chain.split(separator || '.'); | ||
var ref = obj; | ||
@@ -251,0 +251,0 @@ for (var i = 0, il = path.length; i < il; ++i) { |
{ | ||
"name": "hoek", | ||
"description": "General purpose node utilities", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "contributors":[ |
@@ -0,0 +0,0 @@ <a href="https://github.com/spumko"><img src="https://raw.github.com/spumko/spumko/master/images/from.png" align="right" /></a> |
@@ -0,0 +0,0 @@ // Load modules |
@@ -193,3 +193,3 @@ // Load modules | ||
copiedTls = Hoek.clone(tls); | ||
var copiedTls = Hoek.clone(tls); | ||
expect(Buffer.isBuffer(copiedTls.key)).to.equal(true); | ||
@@ -527,2 +527,8 @@ expect(JSON.stringify(copiedTls.key)).to.equal(JSON.stringify(tls.key)) | ||
it('returns a valid member with separator override', function (done) { | ||
expect(Hoek.reach(obj, 'a/b/c/d', '/')).to.equal(1); | ||
done(); | ||
}); | ||
it('returns null on null object', function (done) { | ||
@@ -529,0 +535,0 @@ |
exports.x = 1; |
exports.y = 2; |
exports.z = 3; |
Sorry, the diff of this file is not supported yet
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
1325
100118