Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4 to 0.8.5

5

lib/index.js

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

if (obj.hasOwnProperty(i)) {
if (obj[i] instanceof Date) {
if (obj[i] instanceof Buffer) {
newObj[i] = new Buffer(obj[i]);
}
else if (obj[i] instanceof Date) {
newObj[i] = new Date(obj[i].getTime());

@@ -39,0 +42,0 @@ }

2

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

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

@@ -186,2 +186,16 @@ // Load modules

});
it('should copy a buffer', function(done){
var tls = {
key: new Buffer([1,2,3,4,5]),
cert: new Buffer([1,2,3,4,5,6,10])
}
copiedTls = Hoek.clone(tls);
expect(Buffer.isBuffer(copiedTls.key)).to.equal(true);
expect(JSON.stringify(copiedTls.key)).to.equal(JSON.stringify(tls.key))
expect(Buffer.isBuffer(copiedTls.cert)).to.equal(true);
expect(JSON.stringify(copiedTls.cert)).to.equal(JSON.stringify(tls.cert))
done();
});
});

@@ -188,0 +202,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