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.7.4 to 0.7.5

0

lib/escape.js

@@ -0,0 +0,0 @@ // Declare internals

8

lib/index.js

@@ -16,9 +16,5 @@ // Load modules

if (obj === null ||
obj === undefined) {
if (typeof obj !== 'object' ||
obj === null) {
return null;
}
if (typeof obj !== 'object') {
return obj;

@@ -25,0 +21,0 @@ }

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

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

@@ -0,0 +0,0 @@ // Load modules

@@ -60,2 +60,11 @@ // Load modules

it('should not convert undefined properties to null', function (done) {
var obj = { something: undefined };
var b = Hoek.clone(obj);
expect(typeof b.something).to.equal('undefined');
done();
});
it('should not throw on circular reference', function (done) {

@@ -62,0 +71,0 @@

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