From f5aa29ee57efeb8cd5cce54713bc9389114187b8 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 20 Dec 2024 10:53:23 -0800 Subject: [PATCH] [Refactor] use `call-bound` directly --- implementation.js | 2 +- index.js | 2 +- package.json | 1 + polyfill.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/implementation.js b/implementation.js index ee5ad84..61450fb 100644 --- a/implementation.js +++ b/implementation.js @@ -7,7 +7,7 @@ var ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity'); var ToObject = require('es-object-atoms/ToObject'); var ToString = require('es-abstract/2024/ToString'); -var callBound = require('call-bind/callBound'); +var callBound = require('call-bound'); var isNegativeZero = require('is-negative-zero'); var isString = require('is-string'); var $Object = require('es-object-atoms'); diff --git a/index.js b/index.js index 231073d..917554f 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ var define = require('define-properties'); var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible'); -var callBound = require('call-bind/callBound'); +var callBound = require('call-bound'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); diff --git a/package.json b/package.json index cfa06f8..d5bb31b 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ }, "dependencies": { "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-abstract": "^1.23.6", "es-object-atoms": "^1.0.0", diff --git a/polyfill.js b/polyfill.js index 9973b0e..626d893 100644 --- a/polyfill.js +++ b/polyfill.js @@ -1,7 +1,7 @@ 'use strict'; var callBind = require('call-bind'); -var callBound = require('call-bind/callBound'); +var callBound = require('call-bound'); var $indexOf = callBound('Array.prototype.indexOf', true); var $arrayIndexOfApply = callBind.apply(Array.prototype.indexOf);