Package: node-tape / 4.9.1-1

0001-Drop-has-package.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
50
51
52
53
54
From b8fd1b3060fde6642e7988e9a3666f08df7e195b 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:13:13 +0200
Subject: Drop has package

has package is trivial drop

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

diff --git a/lib/results.js b/lib/results.js
index 56fdc4b..34d5545 100644
--- a/lib/results.js
+++ b/lib/results.js
@@ -5,7 +5,7 @@ var through = require('through');
 var resumer = require('resumer');
 var inspect = require('object-inspect');
 var bind = require('function-bind');
-var has = require('has');
+var has = bind.call(Function.call, Object.prototype.hasOwnProperty);
 var regexpTest = bind.call(Function.call, RegExp.prototype.test);
 var yamlIndicators = /\:|\-|\?/;
 var nextTick = typeof setImmediate !== 'undefined'
diff --git a/lib/test.js b/lib/test.js
index d31c255..5fee85a 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -3,9 +3,9 @@ var defined = require('defined');
 var path = require('path');
 var inherits = require('inherits');
 var EventEmitter = require('events').EventEmitter;
-var has = require('has');
 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 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 354730b..48beb49 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,6 @@
         "for-each": "~0.3.3",
         "function-bind": "~1.1.1",
         "glob": "~7.1.2",
-        "has": "~1.0.3",
         "inherits": "~2.0.3",
         "minimist": "~1.2.0",
         "object-inspect": "~1.6.0",