Comparing version 0.7.4 to 0.7.5
@@ -0,0 +0,0 @@ // Declare internals |
@@ -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
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
1231
96281