Socket
Socket
Sign inDemoInstall

hoek

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoek - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

5

lib/index.js

@@ -371,3 +371,6 @@ // Load modules

var msgs = Array.prototype.slice.call(arguments, 1);
msgs = msgs.map(function (msg) { return typeof msg === 'string' ? msg : JSON.stringify(msg); });
msgs = msgs.map(function (msg) {
return typeof msg === 'string' ? msg : msg instanceof Error ? msg.message : JSON.stringify(msg);
});
throw new Error(msgs.join(' ') || 'Unknown error');

@@ -374,0 +377,0 @@ };

2

package.json
{
"name": "hoek",
"description": "General purpose node utilities",
"version": "0.8.2",
"version": "0.8.3",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "contributors":[

@@ -746,2 +746,13 @@ // Load modules

});
it('should throw an Error when using assert in a test with error object message', function (done) {
var fn = function () {
Hoek.assert(false, new Error('This is spinal tap'));
};
expect(fn).to.throw('This is spinal tap');
done();
});
});

@@ -748,0 +759,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc