Skip to content

Commit

Permalink
[Refactor] use call-bound and safe-regex-test directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 11, 2024
1 parent 097a9af commit 60a59db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 2 additions & 3 deletions implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ var ToString = require('es-abstract/2023/ToString');
var TrimString = require('es-abstract/2023/TrimString');
var ToInt32 = require('es-abstract/2023/ToInt32');

var regexTester = require('es-abstract/helpers/regexTester');

var callBound = require('call-bind/callBound');
var regexTester = require('safe-regex-test');
var callBound = require('call-bound');

var hasSign = regexTester(/^[-+]/);
var hasHexPrefix = regexTester(/^0[xX]/);
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
"url": "https://github.com/es-shims/parseInt/issues"
},
"homepage": "https://github.com/es-shims/parseInt#readme",
"dependencies": {
"call-bind": "^1.0.8",
"call-bound": "^1.0.2",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.5",
"globalthis": "^1.0.4",
"safe-regex-test": "^1.0.3"
},
"devDependencies": {
"@es-shims/api": "^2.5.1",
"@ljharb/eslint-config": "^21.1.1",
Expand All @@ -62,12 +70,6 @@
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0"
},
"dependencies": {
"call-bind": "^1.0.8",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.5",
"globalthis": "^1.0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
Expand Down

0 comments on commit 60a59db

Please sign in to comment.