string.prototype.split
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -8,2 +8,13 @@ # Changelog | ||
## [v1.0.6](https://github.com/es-shims/String.prototype.split/compare/v1.0.5...v1.0.6) - 2022-04-08 | ||
### Commits | ||
- [actions] reuse common workflows [`bb283ec`](https://github.com/es-shims/String.prototype.split/commit/bb283eca97bb62d8ba511078c3b2ea9e3faa69df) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`2009e5c`](https://github.com/es-shims/String.prototype.split/commit/2009e5c8c2d344e4b79bd3809c69aba464286271) | ||
- [actions] update codecov uploader [`0ec83c6`](https://github.com/es-shims/String.prototype.split/commit/0ec83c6b43fca83fbdc0108f67a1265b6be953f8) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`148a49c`](https://github.com/es-shims/String.prototype.split/commit/148a49c2d9f02e44dce64221597dc377cd1c5294) | ||
- [Deps] update `es-abstract`, `regexp.prototype.flags` [`003e2bc`](https://github.com/es-shims/String.prototype.split/commit/003e2bc6e39366e938273e8faf39126a1d84c890) | ||
- [Robustness] `test` observably looks up `exec` on the object [`a6f8a68`](https://github.com/es-shims/String.prototype.split/commit/a6f8a688a3fdf6950d1984404a73796a6bbdbc81) | ||
## [v1.0.5](https://github.com/es-shims/String.prototype.split/compare/v1.0.4...v1.0.5) - 2021-10-04 | ||
@@ -10,0 +21,0 @@ |
@@ -17,3 +17,2 @@ 'use strict'; | ||
var $exec = callBound('RegExp.prototype.exec'); | ||
var $test = callBound('RegExp.prototype.test'); | ||
@@ -89,3 +88,3 @@ var compliantExecNpcg = typeof $exec(/()??/, '')[1] === 'undefined'; // NPCG: nonparticipating capturing group | ||
if (lastLastIndex === string.length) { | ||
if (lastLength || !$test(separatorCopy, '')) { | ||
if (lastLength || !$exec(separatorCopy, '')) { | ||
$push(output, ''); | ||
@@ -92,0 +91,0 @@ } |
{ | ||
"name": "string.prototype.split", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "An ES spec-compliant `String.prototype.split` shim/polyfill/replacement that works as far down as ES3", | ||
@@ -56,18 +56,18 @@ "main": "index.js", | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.19.1", | ||
"es-abstract": "^1.19.2", | ||
"get-intrinsic": "^1.1.1", | ||
"is-regex": "^1.1.4", | ||
"regexp.prototype.flags": "^1.3.1" | ||
"regexp.prototype.flags": "^1.4.1" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.2.2", | ||
"@ljharb/eslint-config": "^18.0.0", | ||
"aud": "^1.1.5", | ||
"auto-changelog": "^2.3.0", | ||
"eslint": "^7.32.0", | ||
"@es-shims/api": "^2.2.3", | ||
"@ljharb/eslint-config": "^20.2.3", | ||
"aud": "^2.0.0", | ||
"auto-changelog": "^2.4.0", | ||
"eslint": "=8.8.0", | ||
"functions-have-names": "^1.2.2", | ||
"has-strict-mode": "^1.0.1", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.3.1" | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.5.3" | ||
}, | ||
@@ -74,0 +74,0 @@ "auto-changelog": { |
@@ -11,2 +11,3 @@ 'use strict'; | ||
t.test('bad first arg/receiver', { skip: !hasStrictMode }, function (st) { | ||
/* eslint no-useless-call: 0 */ | ||
st['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object'); | ||
@@ -13,0 +14,0 @@ st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29119
18
Updatedes-abstract@^1.19.2