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

annofp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annofp - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

13

lib/map.js

@@ -10,3 +10,3 @@ var annotate = require('annotate');

var map = annotate('map', 'Maps using given callback')
module.exports = annotate('map', 'Maps using given callback')
.on(is.fn, is.array, function(cb, o) {

@@ -22,5 +22,10 @@ var ret = [];

.on(is.fn, is.object, function(cb, o) {
return zip.toObject(zip(keys(o), map(cb, values(o))));
var objectKeys = keys(o);
var ret = [];
each(function(v, i) {
ret.push(cb(v[0], v[1], i));
}, zip(objectKeys, values(o)));
return zip.toObject(zip(objectKeys, ret));
});
module.exports = map;

@@ -5,3 +5,3 @@ {

"author": "Juho Vepsalainen <bebraw@gmail.com>",
"version": "0.2.3",
"version": "0.3.0",
"dependencies": {

@@ -8,0 +8,0 @@ "annois": "0.3.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