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.9.1 to 0.10.0

0

lib/escape.js

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

4

lib/index.js

@@ -246,5 +246,5 @@ // Load modules

exports.reach = function (obj, chain) {
exports.reach = function (obj, chain, separator) {
var path = chain.split('.');
var path = chain.split(separator || '.');
var ref = obj;

@@ -251,0 +251,0 @@ for (var i = 0, il = path.length; i < il; ++i) {

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

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

@@ -0,0 +0,0 @@ <a href="https://github.com/spumko"><img src="https://raw.github.com/spumko/spumko/master/images/from.png" align="right" /></a>

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

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

copiedTls = Hoek.clone(tls);
var copiedTls = Hoek.clone(tls);
expect(Buffer.isBuffer(copiedTls.key)).to.equal(true);

@@ -527,2 +527,8 @@ expect(JSON.stringify(copiedTls.key)).to.equal(JSON.stringify(tls.key))

it('returns a valid member with separator override', function (done) {
expect(Hoek.reach(obj, 'a/b/c/d', '/')).to.equal(1);
done();
});
it('returns null on null object', function (done) {

@@ -529,0 +535,0 @@

exports.x = 1;
exports.y = 2;
exports.z = 3;

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