Update ESLint-related packages
R=jacktfranklin@chromium.org
No-Presubmit: True
Bug: none
Change-Id: I52dc24b12e350787085c5e3d131cface7ea87142
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3060705
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
diff --git a/node_modules/is-regex/.eslintignore b/node_modules/is-regex/.eslintignore
new file mode 100644
index 0000000..404abb2
--- /dev/null
+++ b/node_modules/is-regex/.eslintignore
@@ -0,0 +1 @@
+coverage/
diff --git a/node_modules/is-regex/.github/workflows/rebase.yml b/node_modules/is-regex/.github/workflows/rebase.yml
deleted file mode 100644
index 436cb79..0000000
--- a/node_modules/is-regex/.github/workflows/rebase.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-name: Automatic Rebase
-
-on: [pull_request]
-
-jobs:
- _:
- name: "Automatic Rebase"
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v1
- - uses: ljharb/rebase@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/node_modules/is-regex/.nycrc b/node_modules/is-regex/.nycrc
new file mode 100644
index 0000000..a69aa2d
--- /dev/null
+++ b/node_modules/is-regex/.nycrc
@@ -0,0 +1,10 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "exclude": [
+ "coverage",
+ "test",
+ "test-corejs.js"
+ ]
+}
diff --git a/node_modules/is-regex/.travis.yml b/node_modules/is-regex/.travis.yml
deleted file mode 100644
index 2d1c1d2..0000000
--- a/node_modules/is-regex/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-version: ~> 1.0
-language: node_js
-os:
- - linux
-import:
- - ljharb/travis-ci:node/all.yml
- - ljharb/travis-ci:node/pretest.yml
- - ljharb/travis-ci:node/posttest.yml
- - ljharb/travis-ci:node/coverage.yml
-matrix:
- allow_failures:
- - env: COVERAGE=true
diff --git a/node_modules/is-regex/CHANGELOG.md b/node_modules/is-regex/CHANGELOG.md
index 8e0f466..3b2a48c 100644
--- a/node_modules/is-regex/CHANGELOG.md
+++ b/node_modules/is-regex/CHANGELOG.md
@@ -5,6 +5,33 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [v1.1.3](https://github.com/inspect-js/is-regex/compare/v1.1.2...v1.1.3) - 2021-05-07
+
+### Commits
+
+- [actions] use `node/install` instead of `node/run`; use `codecov` action [`c681ab9`](https://github.com/inspect-js/is-regex/commit/c681ab99c07f8b3b7ae5f652b3105a30bce94f69)
+- [Fix] do not use `Object.prototype.toString` when `Symbol.toStringTag` is shammed [`ca019fd`](https://github.com/inspect-js/is-regex/commit/ca019fdb828dc7d32e323213403ac9995d8604e3)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`605a66f`](https://github.com/inspect-js/is-regex/commit/605a66f278900f1c8ae9d1dfcec31e5f61b10ad3)
+- [readme] add actions and codecov badges [`8d7c6f0`](https://github.com/inspect-js/is-regex/commit/8d7c6f0e007bd982f21b958e0abc98b8a84e2a24)
+- [meta] use `prepublishOnly` script for npm 7+ [`8e50e91`](https://github.com/inspect-js/is-regex/commit/8e50e91f51aa5038745526710ef2e030527982a7)
+- [Deps] update `has-symbols` [`4742c81`](https://github.com/inspect-js/is-regex/commit/4742c81260c3db9a8c9ef57110981fb6175f58e0)
+
+## [v1.1.2](https://github.com/inspect-js/is-regex/compare/v1.1.1...v1.1.2) - 2021-02-01
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`cc1686e`](https://github.com/inspect-js/is-regex/commit/cc1686e25f446ca6948f43b3f180d6e55e31fb4e)
+- [readme] fix repo URLs; remove travis badge [`d1d1da6`](https://github.com/inspect-js/is-regex/commit/d1d1da647bb4e91589606f12470cd27a47b3bb81)
+- [meta] do not publish github action workflow files [`9f84b99`](https://github.com/inspect-js/is-regex/commit/9f84b993a995f057b4d2d097ef47b1ff9c84115d)
+- [Tests] run `nyc` on all tests [`c37aab9`](https://github.com/inspect-js/is-regex/commit/c37aab9d332c4834b08ada94736c45ab1d39cd2f)
+- [Robustness] use `call-bind` [`fbb61bf`](https://github.com/inspect-js/is-regex/commit/fbb61bf3e19ccc178e6ed1e0d7ab9cc7c7167393)
+- [actions] add "Allow Edits" workflow [`9022b53`](https://github.com/inspect-js/is-regex/commit/9022b53cb05b0f105cd179800cf96e055b249f08)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`d60f28f`](https://github.com/inspect-js/is-regex/commit/d60f28f7f2fb21dade7bce302b3e0246206423d3)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`2c35c43`](https://github.com/inspect-js/is-regex/commit/2c35c437edf3eeb37129eea2404d8f465d27620f)
+- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`1009e25`](https://github.com/inspect-js/is-regex/commit/1009e259d49a63753dc6e79e2b876a30c00c6de6)
+- [meta] gitignore coverage output [`3b5fa9e`](https://github.com/inspect-js/is-regex/commit/3b5fa9ed2882c65ee81dff979f79f1a2751d3772)
+- [actions] update workflows [`1843ef6`](https://github.com/inspect-js/is-regex/commit/1843ef65b8b8c24a44e91bc4ed5ee60dffc31c2d)
+
## [v1.1.1](https://github.com/inspect-js/is-regex/compare/v1.1.0...v1.1.1) - 2020-08-03
### Commits
diff --git a/node_modules/is-regex/README.md b/node_modules/is-regex/README.md
index 05baa0e..d61332b 100644
--- a/node_modules/is-regex/README.md
+++ b/node_modules/is-regex/README.md
@@ -1,6 +1,7 @@
-#is-regex <sup>[![Version Badge][2]][1]</sup>
+# is-regex <sup>[![Version Badge][2]][1]</sup>
-[![Build Status][3]][4]
+[![github actions][actions-image]][actions-url]
+[![coverage][codecov-image]][codecov-url]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
@@ -8,8 +9,6 @@
[![npm badge][11]][1]
-[![browser support][9]][10]
-
Is this value a JS regex?
This module works cross-realm/iframe, and despite ES6 @@toStringTag.
@@ -37,18 +36,17 @@
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/is-regex
-[2]: http://versionbadg.es/ljharb/is-regex.svg
-[3]: https://travis-ci.org/ljharb/is-regex.svg
-[4]: https://travis-ci.org/ljharb/is-regex
-[5]: https://david-dm.org/ljharb/is-regex.svg
-[6]: https://david-dm.org/ljharb/is-regex
-[7]: https://david-dm.org/ljharb/is-regex/dev-status.svg
-[8]: https://david-dm.org/ljharb/is-regex#info=devDependencies
-[9]: https://ci.testling.com/ljharb/is-regex.png
-[10]: https://ci.testling.com/ljharb/is-regex
+[2]: https://versionbadg.es/inspect-js/is-regex.svg
+[5]: https://david-dm.org/inspect-js/is-regex.svg
+[6]: https://david-dm.org/inspect-js/is-regex
+[7]: https://david-dm.org/inspect-js/is-regex/dev-status.svg
+[8]: https://david-dm.org/inspect-js/is-regex#info=devDependencies
[11]: https://nodei.co/npm/is-regex.png?downloads=true&stars=true
-[license-image]: http://img.shields.io/npm/l/is-regex.svg
+[license-image]: https://img.shields.io/npm/l/is-regex.svg
[license-url]: LICENSE
-[downloads-image]: http://img.shields.io/npm/dm/is-regex.svg
-[downloads-url]: http://npm-stat.com/charts.html?package=is-regex
-
+[downloads-image]: https://img.shields.io/npm/dm/is-regex.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=is-regex
+[codecov-image]: https://codecov.io/gh/inspect-js/is-regex/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/inspect-js/is-regex/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-regex
+[actions-url]: https://github.com/inspect-js/is-regex/actions
diff --git a/node_modules/is-regex/index.js b/node_modules/is-regex/index.js
index 3db4b92..80a2d33 100644
--- a/node_modules/is-regex/index.js
+++ b/node_modules/is-regex/index.js
@@ -1,15 +1,16 @@
'use strict';
-var hasSymbols = require('has-symbols')();
-var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
-var hasOwnProperty;
-var regexExec;
+var callBound = require('call-bind/callBound');
+var hasSymbols = require('has-symbols/shams')();
+var hasToStringTag = hasSymbols && !!Symbol.toStringTag;
+var has;
+var $exec;
var isRegexMarker;
var badStringifier;
if (hasToStringTag) {
- hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
- regexExec = Function.call.bind(RegExp.prototype.exec);
+ has = callBound('Object.prototype.hasOwnProperty');
+ $exec = callBound('RegExp.prototype.exec');
isRegexMarker = {};
var throwRegexMarker = function () {
@@ -25,7 +26,7 @@
}
}
-var toStr = Object.prototype.toString;
+var $toString = callBound('Object.prototype.toString');
var gOPD = Object.getOwnPropertyDescriptor;
var regexClass = '[object RegExp]';
@@ -37,13 +38,13 @@
}
var descriptor = gOPD(value, 'lastIndex');
- var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
+ var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
if (!hasLastIndexDataProperty) {
return false;
}
try {
- regexExec(value, badStringifier);
+ $exec(value, badStringifier);
} catch (e) {
return e === isRegexMarker;
}
@@ -54,5 +55,5 @@
return false;
}
- return toStr.call(value) === regexClass;
+ return $toString(value) === regexClass;
};
diff --git a/node_modules/is-regex/package.json b/node_modules/is-regex/package.json
index 44f0607..39644c9 100644
--- a/node_modules/is-regex/package.json
+++ b/node_modules/is-regex/package.json
@@ -1,6 +1,6 @@
{
"name": "is-regex",
- "version": "1.1.1",
+ "version": "1.1.3",
"description": "Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag",
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
@@ -9,12 +9,14 @@
"license": "MIT",
"main": "index.js",
"scripts": {
- "prepublish": "safe-publish-latest",
+ "prepublishOnly": "safe-publish-latest",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
- "test": "npm run tests-only",
- "tests-only": "node --harmony --es-staging test",
+ "test": "npm run tests-only && npm run test:harmony",
+ "tests-only": "nyc node test",
+ "test:harmony": "nyc node --harmony --es-staging test",
+ "test:corejs": "nyc tape test-corejs.js",
"posttest": "npx aud --production",
- "coverage": "covert test/index.js",
"lint": "eslint .",
"eccheck": "eclint check *.js **/*.js > /dev/null",
"version": "auto-changelog && git add CHANGELOG.md",
@@ -22,12 +24,12 @@
},
"repository": {
"type": "git",
- "url": "git://github.com/ljharb/is-regex.git"
+ "url": "git://github.com/inspect-js/is-regex.git"
},
"bugs": {
- "url": "https://github.com/ljharb/is-regex/issues"
+ "url": "https://github.com/inspect-js/is-regex/issues"
},
- "homepage": "https://github.com/ljharb/is-regex",
+ "homepage": "https://github.com/inspect-js/is-regex",
"keywords": [
"regex",
"regexp",
@@ -37,21 +39,23 @@
"expression"
],
"dependencies": {
- "has-symbols": "^1.0.1"
+ "call-bind": "^1.0.2",
+ "has-symbols": "^1.0.2"
},
"devDependencies": {
- "@ljharb/eslint-config": "^17.1.0",
- "aud": "^1.1.2",
- "auto-changelog": "^2.2.0",
- "covert": "^1.1.1",
+ "@ljharb/eslint-config": "^17.6.0",
+ "aud": "^1.1.5",
+ "auto-changelog": "^2.2.1",
+ "core-js": "^3.12.0",
"eclint": "^2.8.1",
- "eslint": "^7.6.0",
+ "eslint": "^7.26.0",
"foreach": "^2.0.5",
+ "nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
- "tape": "^5.0.1"
+ "tape": "^5.2.2"
},
"testling": {
- "files": "test.js",
+ "files": "test/index.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
@@ -60,8 +64,7 @@
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
- "opera/10.0..12.0",
- "opera/15.0..latest",
+ "opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
diff --git a/node_modules/is-regex/test/index.js b/node_modules/is-regex/test/index.js
index 934c3d9..93ea4e4 100644
--- a/node_modules/is-regex/test/index.js
+++ b/node_modules/is-regex/test/index.js
@@ -1,7 +1,7 @@
'use strict';
-var hasSymbols = require('has-symbols')();
-var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
+var hasSymbols = require('has-symbols/shams')();
+var hasToStringTag = hasSymbols && !!Symbol.toStringTag;
var forEach = require('foreach');
var test = require('tape');
var isRegex = require('..');