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.0.5 to 0.0.6

2

lib/hoek.js

@@ -216,3 +216,3 @@ // Load modules

if (process.env.NODE_ENV === 'test') {
throw message || 'Unknown error';
throw new Error(message || 'Unknown error');
}

@@ -219,0 +219,0 @@ else {

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

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

@@ -0,0 +0,0 @@ hoek

@@ -83,2 +83,11 @@ var assert = require('assert');

})
describe("#assert", function() {
it('should throw an Error when using assert in a test', function(done) {
(function() {
hoek.assert(false, 'my error message')
}).should.throw('my error message');
done();
})
})
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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