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

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:45 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 4a44be1a882ca5f8447fab935c064a349b86e494
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 | 5 ++---
 2 files changed, 3 insertions(+), 4 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..263eea0 100644
--- a/package.json
+++ b/package.json
@@ -1,4 +1,4 @@
-{
+1{
   "name": "shell-quote",
   "version": "1.6.1",
   "description": "quote and parse shell commands",
@@ -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