Socket
Socket
Sign inDemoInstall

hoek

Package Overview
Dependencies
0
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.0 to 2.5.1

2

lib/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc