Skip to content

Commit 81018fb

Browse files
committed
[Refactor] replace code with extracted call-bind-apply-helpers
1 parent 0fc311d commit 81018fb

File tree

8 files changed

+3
-45
lines changed

8 files changed

+3
-45
lines changed

helpers/actualApply.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

helpers/applyBind.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

helpers/callBindBasic.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

helpers/functionApply.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

helpers/functionCall.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

helpers/reflectApply.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var setFunctionLength = require('set-function-length');
44

55
var $defineProperty = require('es-define-property');
66

7-
var callBindBasic = require('./helpers/callBindBasic');
8-
var applyBind = require('./helpers/applyBind');
7+
var callBindBasic = require('call-bind-apply-helpers');
8+
var applyBind = require('call-bind-apply-helpers/applyBind');
99

1010
module.exports = function callBind(originalFunction) {
1111
var func = callBindBasic(arguments);

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
},
5151
"homepage": "https://github.com/ljharb/call-bind#readme",
5252
"dependencies": {
53+
"call-bind-apply-helpers": "^1.0.0",
5354
"es-define-property": "^1.0.0",
54-
"es-errors": "^1.3.0",
55-
"function-bind": "^1.1.2",
5655
"get-intrinsic": "^1.2.4",
5756
"set-function-length": "^1.2.2"
5857
},

0 commit comments

Comments
 (0)