Package: node-tape / 4.9.1-1

0002-Replace-for-each-package-by-lodash.foreach.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From 4c8d6729de86817c8804e8a50c083253222cdbf8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Mon, 3 Apr 2017 22:18:02 +0200
Subject: Replace for-each package by lodash.foreach

Forwarded: no
---
 lib/test.js             | 2 +-
 package.json            | 2 +-
 test/end-as-callback.js | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/test.js b/lib/test.js
index 5fee85a..f8b7f5c 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -6,7 +6,7 @@ var EventEmitter = require('events').EventEmitter;
 var trim = require('string.prototype.trim');
 var bind = require('function-bind');
 var has = bind.call(Function.call, Object.prototype.hasOwnProperty);
-var forEach = require('for-each');
+var forEach = require('lodash.foreach');
 var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
 var toLowerCase = bind.call(Function.call, String.prototype.toLowerCase);
 
diff --git a/package.json b/package.json
index 48beb49..543fcaf 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "dependencies": {
         "deep-equal": "~1.0.1",
         "defined": "~1.0.0",
-        "for-each": "~0.3.3",
+        "lodash.foreach": ">4.0",
         "function-bind": "~1.1.1",
         "glob": "~7.1.2",
         "inherits": "~2.0.3",
diff --git a/test/end-as-callback.js b/test/end-as-callback.js
index f8791c0..3f48ef4 100644
--- a/test/end-as-callback.js
+++ b/test/end-as-callback.js
@@ -1,5 +1,5 @@
 var tap = require("tap");
-var forEach = require("for-each");
+var forEach = require("lodash.foreach");
 var tape = require("../");
 var concat = require('concat-stream');