Socket
Socket
Sign inDemoInstall

dry-underscore

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dry-underscore - npm Package Compare versions

Comparing version 0.21.4 to 0.21.5

7

lib/common.js

@@ -463,7 +463,4 @@ "use strict";

var result = {};
_.each(o, function(val, key, callback){
f(function(v, k){
if(!k){ throw(_.exception("omap: key must be specified.")); }
result[k] = v;
}, val, key, o)
_.each(o, function(val, key){
f(function(v, k){ result[k || key] = v; }, val, key, o)
});

@@ -470,0 +467,0 @@ return(result);

@@ -854,2 +854,14 @@ "use strict";

test("omap no key", function(){
var o = { a: 'a', b: 'b', c: 'c' };
var expected = { "a": 1, "b": 2, "c": 3 };
eq(expected, _.omap(o, function(cb, val, key){
if(val === 'a'){ val = 1; }
if(val === 'b'){ val = 2; }
if(val === 'c'){ val = 3; }
cb(val);
}));
});
test("plumb", function(){

@@ -856,0 +868,0 @@

{
"name": "dry-underscore",
"version": "0.21.4",
"version": "0.21.5",
"dependencies": {

@@ -5,0 +5,0 @@ "deep-diff": {

{
"name": "dry-underscore",
"version": "0.21.4",
"version": "0.21.5",
"main": "./index/node.index.js",

@@ -5,0 +5,0 @@ "description": "The DRY Undescore Library",

Sorry, the diff of this file is too big to display

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