diff --git a/tools/node_modules/eslint/README.md b/tools/node_modules/eslint/README.md index 998a961bbb1af3..e1978ce48ea0c5 100644 --- a/tools/node_modules/eslint/README.md +++ b/tools/node_modules/eslint/README.md @@ -249,9 +249,9 @@ The following companies, organizations, and individuals support ESLint's ongoing
C(A/m)&&L("overflow"),h*=m}var v=t.length+1;i=q(s-u,v,0==u),C(s/v)>A-o&&L("overflow"),o+=C(s/v),s%=v,t.splice(s++,0,o)}return String.fromCodePoint.apply(String,t)}function c(e){var r=[],t=(e=z(e)).length,a=128,s=0,o=72,i=!0,n=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var h=c.value;h<128&&r.push(k(h))}}catch(e){n=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(n)throw l}}var d=r.length,f=d;for(d&&r.push("-");f1){r[0]=r[0].slice(0,-1);for(var t=r.length-1,o=1;o\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
-//RFC 2141
-const handler = {
- scheme: "urn",
- parse: function (components, options) {
- const matches = components.path && components.path.match(URN_PARSE);
- let urnComponents = components;
- if (matches) {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = matches[1].toLowerCase();
- const nss = matches[2];
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
- urnComponents.nid = nid;
- urnComponents.nss = nss;
- urnComponents.path = undefined;
- if (schemeHandler) {
- urnComponents = schemeHandler.parse(urnComponents, options);
- }
- }
- else {
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
- }
- return urnComponents;
- },
- serialize: function (urnComponents, options) {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = urnComponents.nid;
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
- if (schemeHandler) {
- urnComponents = schemeHandler.serialize(urnComponents, options);
- }
- const uriComponents = urnComponents;
- const nss = urnComponents.nss;
- uriComponents.path = `${nid || options.nid}:${nss}`;
- return uriComponents;
- },
-};
-export default handler;
+import { SCHEMES } from "../uri";
+const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
+const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
+const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
+const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
+const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$");
+const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$");
+const URN_PARSE = /^([^\:]+)\:(.*)/;
+const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
+//RFC 2141
+const handler = {
+ scheme: "urn",
+ parse: function (components, options) {
+ const matches = components.path && components.path.match(URN_PARSE);
+ let urnComponents = components;
+ if (matches) {
+ const scheme = options.scheme || urnComponents.scheme || "urn";
+ const nid = matches[1].toLowerCase();
+ const nss = matches[2];
+ const urnScheme = `${scheme}:${options.nid || nid}`;
+ const schemeHandler = SCHEMES[urnScheme];
+ urnComponents.nid = nid;
+ urnComponents.nss = nss;
+ urnComponents.path = undefined;
+ if (schemeHandler) {
+ urnComponents = schemeHandler.parse(urnComponents, options);
+ }
+ }
+ else {
+ urnComponents.error = urnComponents.error || "URN can not be parsed.";
+ }
+ return urnComponents;
+ },
+ serialize: function (urnComponents, options) {
+ const scheme = options.scheme || urnComponents.scheme || "urn";
+ const nid = urnComponents.nid;
+ const urnScheme = `${scheme}:${options.nid || nid}`;
+ const schemeHandler = SCHEMES[urnScheme];
+ if (schemeHandler) {
+ urnComponents = schemeHandler.serialize(urnComponents, options);
+ }
+ const uriComponents = urnComponents;
+ const nss = urnComponents.nss;
+ uriComponents.path = `${nid || options.nid}:${nss}`;
+ return uriComponents;
+ },
+};
+export default handler;
//# sourceMappingURL=urn.js.map
\ No newline at end of file
diff --git a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/ws.js b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/ws.js
new file mode 100755
index 00000000000000..9277f035a0bddd
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/ws.js
@@ -0,0 +1,41 @@
+function isSecure(wsComponents) {
+ return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
+}
+//RFC 6455
+const handler = {
+ scheme: "ws",
+ domainHost: true,
+ parse: function (components, options) {
+ const wsComponents = components;
+ //indicate if the secure flag is set
+ wsComponents.secure = isSecure(wsComponents);
+ //construct resouce name
+ wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');
+ wsComponents.path = undefined;
+ wsComponents.query = undefined;
+ return wsComponents;
+ },
+ serialize: function (wsComponents, options) {
+ //normalize the default port
+ if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
+ wsComponents.port = undefined;
+ }
+ //ensure scheme matches secure flag
+ if (typeof wsComponents.secure === 'boolean') {
+ wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws');
+ wsComponents.secure = undefined;
+ }
+ //reconstruct path from resource name
+ if (wsComponents.resourceName) {
+ const [path, query] = wsComponents.resourceName.split('?');
+ wsComponents.path = (path && path !== '/' ? path : undefined);
+ wsComponents.query = query;
+ wsComponents.resourceName = undefined;
+ }
+ //forbid fragment component
+ wsComponents.fragment = undefined;
+ return wsComponents;
+ }
+};
+export default handler;
+//# sourceMappingURL=ws.js.map
\ No newline at end of file
diff --git a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/wss.js b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/wss.js
new file mode 100755
index 00000000000000..d1e22ccd6e0cc5
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/schemes/wss.js
@@ -0,0 +1,9 @@
+import ws from "./ws";
+const handler = {
+ scheme: "wss",
+ domainHost: ws.domainHost,
+ parse: ws.parse,
+ serialize: ws.serialize
+};
+export default handler;
+//# sourceMappingURL=wss.js.map
\ No newline at end of file
diff --git a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/uri.js b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/uri.js
old mode 100644
new mode 100755
index 2fb6d713e3a587..659ce2651cea1d
--- a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/uri.js
+++ b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/uri.js
@@ -270,9 +270,9 @@ function _recomposeAuthority(components, options) {
//normalize IP hosts, add brackets and escape zone separator for IPv6
uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => "[" + $1 + ($2 ? "%25" + $2 : "") + "]"));
}
- if (typeof components.port === "number") {
+ if (typeof components.port === "number" || typeof components.port === "string") {
uriTokens.push(":");
- uriTokens.push(components.port.toString(10));
+ uriTokens.push(String(components.port));
}
return uriTokens.length ? uriTokens.join("") : undefined;
}
diff --git a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/util.js b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/util.js
old mode 100644
new mode 100755
index 45af46fe547b94..072711efdbfe37
--- a/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/util.js
+++ b/tools/node_modules/eslint/node_modules/uri-js/dist/esnext/util.js
@@ -1,36 +1,36 @@
-export function merge(...sets) {
- if (sets.length > 1) {
- sets[0] = sets[0].slice(0, -1);
- const xl = sets.length - 1;
- for (let x = 1; x < xl; ++x) {
- sets[x] = sets[x].slice(1, -1);
- }
- sets[xl] = sets[xl].slice(1);
- return sets.join('');
- }
- else {
- return sets[0];
- }
-}
-export function subexp(str) {
- return "(?:" + str + ")";
-}
-export function typeOf(o) {
- return o === undefined ? "undefined" : (o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase());
-}
-export function toUpperCase(str) {
- return str.toUpperCase();
-}
-export function toArray(obj) {
- return obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];
-}
-export function assign(target, source) {
- const obj = target;
- if (source) {
- for (const key in source) {
- obj[key] = source[key];
- }
- }
- return obj;
-}
+export function merge(...sets) {
+ if (sets.length > 1) {
+ sets[0] = sets[0].slice(0, -1);
+ const xl = sets.length - 1;
+ for (let x = 1; x < xl; ++x) {
+ sets[x] = sets[x].slice(1, -1);
+ }
+ sets[xl] = sets[xl].slice(1);
+ return sets.join('');
+ }
+ else {
+ return sets[0];
+ }
+}
+export function subexp(str) {
+ return "(?:" + str + ")";
+}
+export function typeOf(o) {
+ return o === undefined ? "undefined" : (o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase());
+}
+export function toUpperCase(str) {
+ return str.toUpperCase();
+}
+export function toArray(obj) {
+ return obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];
+}
+export function assign(target, source) {
+ const obj = target;
+ if (source) {
+ for (const key in source) {
+ obj[key] = source[key];
+ }
+ }
+ return obj;
+}
//# sourceMappingURL=util.js.map
\ No newline at end of file
diff --git a/tools/node_modules/eslint/node_modules/uri-js/package.json b/tools/node_modules/eslint/node_modules/uri-js/package.json
old mode 100644
new mode 100755
index 229833d7c8c4c3..5d55c3598416c5
--- a/tools/node_modules/eslint/node_modules/uri-js/package.json
+++ b/tools/node_modules/eslint/node_modules/uri-js/package.json
@@ -28,6 +28,14 @@
"directories": {
"test": "tests"
},
+ "files": [
+ "dist",
+ "package.json",
+ "yarn.lock",
+ "README.md",
+ "CHANGELOG",
+ "LICENSE"
+ ],
"homepage": "https://github.com/garycourt/uri-js",
"keywords": [
"URI",
@@ -37,6 +45,8 @@
"UUID",
"HTTP",
"HTTPS",
+ "WS",
+ "WSS",
"MAILTO",
"RFC3986",
"RFC3987",
@@ -48,6 +58,7 @@
"RFC4291",
"RFC5952",
"RFC6068",
+ "RFC6455",
"RFC6874"
],
"license": "BSD-2-Clause",
@@ -61,10 +72,11 @@
"build": "npm run build:esnext && npm run build:es5 && npm run build:es5:min",
"build:es5": "rollup -c && cp dist/esnext/uri.d.ts dist/es5/uri.all.d.ts && npm run build:es5:fix-sourcemap",
"build:es5:fix-sourcemap": "sorcery -i dist/es5/uri.all.js",
- "build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts",
+ "build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts",
"build:esnext": "tsc",
+ "clean": "rm -rf dist",
"test": "mocha -u mocha-qunit-ui dist/es5/uri.all.js tests/tests.js"
},
"types": "dist/es5/uri.all.d.ts",
- "version": "4.2.2"
+ "version": "4.4.0"
}
\ No newline at end of file
diff --git a/tools/node_modules/eslint/package.json b/tools/node_modules/eslint/package.json
index a0b031f6e9baf1..dfccc0d238731b 100644
--- a/tools/node_modules/eslint/package.json
+++ b/tools/node_modules/eslint/package.json
@@ -12,6 +12,7 @@
"bundleDependencies": false,
"dependencies": {
"@babel/code-frame": "^7.0.0",
+ "@eslint/eslintrc": "^0.1.0",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -22,7 +23,7 @@
"eslint-scope": "^5.1.0",
"eslint-utils": "^2.1.0",
"eslint-visitor-keys": "^1.3.0",
- "espree": "^7.2.0",
+ "espree": "^7.3.0",
"esquery": "^1.2.0",
"esutils": "^2.0.2",
"file-entry-cache": "^5.0.1",
@@ -153,5 +154,5 @@
"test:cli": "mocha",
"webpack": "node Makefile.js webpack"
},
- "version": "7.6.0"
+ "version": "7.8.0"
}
\ No newline at end of file