Comparing version 2.5.0 to 2.5.1
@@ -322,3 +322,3 @@ // Load modules | ||
exports.assert(typeof ref === 'object' || options.functions === true || typeof ref !== 'function', 'Invalid segment', path[i], 'in reach path ', chain); | ||
ref = options.default || undefined; | ||
ref = options.default; | ||
break; | ||
@@ -325,0 +325,0 @@ } |
{ | ||
"name": "hoek", | ||
"description": "General purpose node utilities", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"repository": "git://github.com/hapijs/hoek", | ||
@@ -6,0 +6,0 @@ "main": "index", |
@@ -857,2 +857,8 @@ // Load modules | ||
}); | ||
it('allows a falsey value to be used as the default value', function (done) { | ||
expect(Hoek.reach(obj, 'q', {default: ''})).to.equal(''); | ||
done(); | ||
}); | ||
}); | ||
@@ -859,0 +865,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
113243
1731
0