Commit b19da31 committed Jan 4, 2021 Verified
1 parent 04da90b commit b19da31 Copy full SHA for b19da31
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ var inherits = require('inherits');
6
6
var through = require ( 'through' ) ;
7
7
var resumer = require ( 'resumer' ) ;
8
8
var inspect = require ( 'object-inspect' ) ;
9
- var bind = require ( 'function -bind' ) ;
9
+ var callBound = require ( 'call -bind/callBound ' ) ;
10
10
var has = require ( 'has' ) ;
11
- var regexpTest = bind . call ( Function . call , RegExp . prototype . test ) ;
11
+ var regexpTest = callBound ( ' RegExp.prototype.test' ) ;
12
12
var yamlIndicators = / : | - | \? / ;
13
13
var nextTick = typeof setImmediate !== 'undefined'
14
14
? setImmediate
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ var EventEmitter = require('events').EventEmitter;
8
8
var has = require ( 'has' ) ;
9
9
var isRegExp = require ( 'is-regex' ) ;
10
10
var trim = require ( 'string.prototype.trim' ) ;
11
- var bind = require ( 'function -bind' ) ;
11
+ var callBound = require ( 'call -bind/callBound ' ) ;
12
12
var forEach = require ( 'for-each' ) ;
13
13
var inspect = require ( 'object-inspect' ) ;
14
14
var is = require ( 'object-is' ) ;
15
- var isEnumerable = bind . call ( Function . call , Object . prototype . propertyIsEnumerable ) ;
16
- var toLowerCase = bind . call ( Function . call , String . prototype . toLowerCase ) ;
17
- var isProto = bind . call ( Function . call , Object . prototype . isPrototypeOf ) ;
18
- var $test = bind . call ( Function . call , RegExp . prototype . test ) ;
19
- var objectToString = bind . call ( Function . call , Object . prototype . toString ) ;
15
+ var isEnumerable = callBound ( ' Object.prototype.propertyIsEnumerable' ) ;
16
+ var toLowerCase = callBound ( ' String.prototype.toLowerCase' ) ;
17
+ var isProto = callBound ( ' Object.prototype.isPrototypeOf' ) ;
18
+ var $test = callBound ( ' RegExp.prototype.test' ) ;
19
+ var objectToString = callBound ( ' Object.prototype.toString' ) ;
20
20
21
21
module . exports = Test ;
22
22
Original file line number Diff line number Diff line change 22
22
"test" : " test"
23
23
},
24
24
"dependencies" : {
25
+ "call-bind" : " ^1.0.0" ,
25
26
"deep-equal" : " ^2.0.5" ,
26
27
"defined" : " ^1.0.0" ,
27
28
"dotignore" : " ^0.1.2" ,
28
29
"for-each" : " ^0.3.3" ,
29
- "function-bind" : " ^1.1.1" ,
30
30
"glob" : " ^7.1.6" ,
31
31
"has" : " ^1.0.3" ,
32
32
"inherits" : " ^2.0.4" ,
You can’t perform that action at this time.
0 commit comments