Add stylelint dependency
This also adds CC-BY-4.0 to the list of accepted licenses.
DISABLE_THIRD_PARTY_CHECK=update dependencies
Bug: chromium:1083142
Change-Id: I8612de2fba52dae32eeb71af79d5aacfde52142b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2220097
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
diff --git a/node_modules/clone-regexp/index.d.ts b/node_modules/clone-regexp/index.d.ts
new file mode 100644
index 0000000..9005e81
--- /dev/null
+++ b/node_modules/clone-regexp/index.d.ts
@@ -0,0 +1,77 @@
+declare namespace cloneRegexp {
+ interface Options {
+ /**
+ Modifies the [`source`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source) property of the cloned `RegExp` instance.
+ */
+ source?: string;
+
+ /**
+ Modifies the [`global`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global) property of the cloned `RegExp` instance.
+ */
+ global?: boolean;
+
+ /**
+ Modifies the [`ignoreCase`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase) property of the cloned `RegExp` instance.
+ */
+ ignoreCase?: boolean;
+
+ /**
+ Modifies the [`multiline`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline) property of the cloned `RegExp` instance.
+ */
+ multiline?: boolean;
+
+ /**
+ Modifies the [`dotAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll) property of the cloned `RegExp` instance.
+ */
+ dotAll?: boolean;
+
+ /**
+ Modifies the [`sticky`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky) property of the cloned `RegExp` instance.
+ */
+ sticky?: boolean;
+
+ /**
+ Modifies the [`unicode`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode) property of the cloned `RegExp` instance.
+ */
+ unicode?: boolean;
+
+ /**
+ Modifies the [`lastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex) property of the cloned `RegExp` instance.
+ */
+ lastIndex?: number;
+ }
+}
+
+/**
+Clone and modify a [RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) instance.
+
+@param regexp - Regex to clone.
+
+@example
+```
+import cloneRegexp = require('clone-regexp');
+
+const regex = /[a-z]/gi;
+
+cloneRegexp(regex);
+//=> /[a-z]/gi
+
+cloneRegexp(regex) === regex;
+//=> false
+
+cloneRegexp(regex, {global: false});
+//=> /[a-z]/i
+
+cloneRegexp(regex, {multiline: true});
+//=> /[a-z]/gim
+
+cloneRegexp(regex, {source: 'unicorn'});
+//=> /unicorn/gi
+```
+*/
+declare function cloneRegexp(
+ regexp: RegExp,
+ options?: cloneRegexp.Options
+): RegExp;
+
+export = cloneRegexp;
diff --git a/node_modules/clone-regexp/index.js b/node_modules/clone-regexp/index.js
new file mode 100644
index 0000000..24edae6
--- /dev/null
+++ b/node_modules/clone-regexp/index.js
@@ -0,0 +1,29 @@
+'use strict';
+const isRegexp = require('is-regexp');
+
+const flagMap = {
+ global: 'g',
+ ignoreCase: 'i',
+ multiline: 'm',
+ dotAll: 's',
+ sticky: 'y',
+ unicode: 'u'
+};
+
+module.exports = (regexp, options = {}) => {
+ if (!isRegexp(regexp)) {
+ throw new TypeError('Expected a RegExp instance');
+ }
+
+ const flags = Object.keys(flagMap).map(flag => (
+ (typeof options[flag] === 'boolean' ? options[flag] : regexp[flag]) ? flagMap[flag] : ''
+ )).join('');
+
+ const clonedRegexp = new RegExp(options.source || regexp.source, flags);
+
+ clonedRegexp.lastIndex = typeof options.lastIndex === 'number' ?
+ options.lastIndex :
+ regexp.lastIndex;
+
+ return clonedRegexp;
+};
diff --git a/node_modules/clone-regexp/license b/node_modules/clone-regexp/license
new file mode 100644
index 0000000..e7af2f7
--- /dev/null
+++ b/node_modules/clone-regexp/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/clone-regexp/package.json b/node_modules/clone-regexp/package.json
new file mode 100644
index 0000000..5af7881
--- /dev/null
+++ b/node_modules/clone-regexp/package.json
@@ -0,0 +1,41 @@
+{
+ "author": {
+ "email": "sindresorhus@gmail.com",
+ "name": "Sindre Sorhus",
+ "url": "sindresorhus.com"
+ },
+ "dependencies": {
+ "is-regexp": "^2.0.0"
+ },
+ "description": "Clone and modify a RegExp instance",
+ "devDependencies": {
+ "ava": "^1.4.1",
+ "tsd": "^0.7.2",
+ "xo": "^0.24.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "regexp",
+ "regex",
+ "re",
+ "regular",
+ "expression",
+ "clone",
+ "duplicate",
+ "modify",
+ "mutate"
+ ],
+ "license": "MIT",
+ "name": "clone-regexp",
+ "repository": "sindresorhus/clone-regexp",
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "version": "2.2.0"
+}
\ No newline at end of file
diff --git a/node_modules/clone-regexp/readme.md b/node_modules/clone-regexp/readme.md
new file mode 100644
index 0000000..f749947
--- /dev/null
+++ b/node_modules/clone-regexp/readme.md
@@ -0,0 +1,58 @@
+# clone-regexp [](https://travis-ci.org/sindresorhus/clone-regexp)
+
+> Clone and modify a [RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) instance
+
+
+## Install
+
+```
+$ npm install clone-regexp
+```
+
+
+## Usage
+
+```js
+const cloneRegexp = require('clone-regexp');
+
+const regex = /[a-z]/gi;
+
+cloneRegexp(regex);
+//=> /[a-z]/gi
+
+cloneRegexp(regex) === regex;
+//=> false
+
+cloneRegexp(regex, {global: false});
+//=> /[a-z]/i
+
+cloneRegexp(regex, {multiline: true});
+//=> /[a-z]/gim
+
+cloneRegexp(regex, {source: 'unicorn'});
+//=> /unicorn/gi
+```
+
+
+## API
+
+### cloneRegexp(regexp, [options])
+
+#### regex
+
+Type: `RegExp`
+
+Regex to clone.
+
+
+#### options
+
+Type: `Object`<br>
+Properties: [`source`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source) [`global`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global) [`ignoreCase`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase) [`multiline`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline) [`dotAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll) [`sticky`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky) [`unicode`](http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/#RegExp) [`lastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)
+
+Optionally modify the cloned `RegExp` instance.
+
+
+## License
+
+MIT © [Sindre Sorhus](https://sindresorhus.com)