map-reduce
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -89,3 +89,3 @@ /* | ||
*/ | ||
exports.id = | ||
exports.identity = | ||
@@ -92,0 +92,0 @@ function (emit, value, key) { |
{ | ||
"name": "map-reduce", | ||
"description": "async NoSql like map reduce function inside node.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/dominictarr/map-reduce", | ||
@@ -11,12 +11,9 @@ "repository": { | ||
"author": "Dominic Tarr <dominic.tarr@gmail.com> (http://bit.ly/dominictarr)", | ||
"main": "map-reduce.js", | ||
"directories": { | ||
"lib": "." | ||
"main": "./map-reduce.js", | ||
"devDependencies": { | ||
"it-is": "0.0.x" | ||
}, | ||
"scripts": { | ||
"test": "meta-test test/*.js" | ||
}, | ||
"engines": { | ||
"node": ">=0.2.0" | ||
} | ||
} |
@@ -54,3 +54,3 @@ var mapR = require('map-reduce') | ||
exports ['dont catch callback'] = function (test){ | ||
exports ['dont catch in callback'] = function (test){ | ||
var err = new Error('this is the example error') | ||
@@ -65,3 +65,2 @@ , ended = 0 | ||
ended ++ | ||
console.log('**********************8') | ||
throw err | ||
@@ -68,0 +67,0 @@ } |
var mapR = require('../map-reduce') | ||
var mapR = require('map-reduce') | ||
, it = require('it-is').style('colour') | ||
@@ -10,5 +10,3 @@ | ||
on: [1,2,3], | ||
map: function (emit,value){ | ||
emit.next(value) | ||
}, | ||
map: mapR.identity, | ||
reduce: function (col,value){ | ||
@@ -15,0 +13,0 @@ col = col || [] |
7910
1
269