[Pkg-javascript-commits] [node-shell-quote] 134/137: Replace array-map by call to function

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 0e43d3fe942015e0a711d0c7d85ff42c1aa20167
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Mon Aug 21 13:59:47 2017 +0200

    Replace array-map by call to function
    
    Does not need this package for nodejs >= 6
    
    forwarded: no
---
 index.js     | 2 +-
 package.json | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 730186b..75c19a5 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
 var json = typeof JSON !== undefined ? JSON : require('jsonify');
-var map = require('array-map');
+var map = function(a,f) { return a.map(f); };
 var filter = require('array-filter');
 var reduce = require('array-reduce');
 
diff --git a/package.json b/package.json
index 1b98b28..9e3526d 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,6 @@
   "dependencies": {
     "jsonify": "~0.0.0",
     "array-filter": "~0.0.0",
-    "array-reduce": "~0.0.0",
-    "array-map": "~0.0.0"
+    "array-reduce": "~0.0.0"
   }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list