New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

map-reduce

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-reduce - npm Package Compare versions

Comparing version 0.1.2 to 0.2.2

2

map-reduce.js

@@ -31,3 +31,3 @@ /*

var finished = false
var reduced = opts.init
var reduced = opts.init ||opts.initial

@@ -34,0 +34,0 @@ opts.map = opts.map || exports.identity

{
"name": "map-reduce",
"description": "async NoSql like map reduce function inside node.",
"version": "0.1.2",
"version": "0.2.2",
"homepage": "https://github.com/dominictarr/map-reduce",

@@ -6,0 +6,0 @@ "repository": {

@@ -45,2 +45,21 @@

exports ['map default to identity with initial set'] = function (test){
mapR({
on: [1,2,3],
initial: [],
reduce: function (col,value){
col.push(value)
return col
},
done: check
})
function check(err,results){
it(results).deepEqual([1,2,3])
test.done()
}
}
exports ['reduce defaults to collect'] = function (test){

@@ -47,0 +66,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