Merge branch 'master' into dev-1

This commit is contained in:
Tobias Koppers 2020-03-20 08:22:24 +01:00
commit 575d6aa4f0
84 changed files with 905 additions and 395 deletions

View File

@ -12,7 +12,7 @@
**If the current behavior is a bug, please provide the steps to reproduce.**
<!-- A great way to do this is to provide your configuration via a GitHub gist. -->
<!-- Best provide a minimal reproduceable repo -->
<!-- Best provide a minimal reproducible repo -->
<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo -->
**What is the expected behavior?**

View File

@ -1 +1 @@
[Code of Conduct](https://js.foundation/community/code-of-conduct)
[Code of Conduct](https://github.com/openjs-foundation/code-and-learn/blob/master/CODE_OF_CONDUCT.md)

View File

@ -749,7 +749,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
* @medikoo for [modules-webmake](https://github.com/medikoo/modules-webmake), which is a similar project. webpack was born because I wanted Code Splitting for modules-webmake. Interestingly the [Code Splitting issue is still open](https://github.com/medikoo/modules-webmake/issues/7) (thanks also to @Phoscur for the discussion).
* @substack for [browserify](http://browserify.org/), which is a similar project and source for many ideas.
* @jrburke for [require.js](https://requirejs.org/), which is a similar project and source for many ideas.
* @defunctzombie for the [browser-field spec](https://gist.github.com/defunctzombie/4339901), which makes modules available for node.js, browserify and webpack.
* @defunctzombie for the [browser-field spec](https://github.com/defunctzombie/package-browser-field-spec), which makes modules available for node.js, browserify and webpack.
* Every early webpack user, which contributed to webpack by writing issues or PRs. You influenced the direction...
* @shama, @jhnns and @sokra for maintaining this project
* Everyone who has written a loader for webpack. You are the ecosystem...

View File

@ -2,7 +2,7 @@
/**
* @param {string} command process to run
* @param {string[]} args commandline arguments
* @param {string[]} args command line arguments
* @returns {Promise<void>} promise
*/
const runCommand = (command, args) => {

211
cspell.json Normal file
View File

@ -0,0 +1,211 @@
{
"version": "0.1",
"language": "en",
"words": [
"webpack",
"webpack's",
"entrypoint",
"entrypoints",
"splitted",
"dedupe",
"deduplication",
"deduplicating",
"unoptimized",
"prefetch",
"prefetching",
"prefetched",
"preload",
"preloading",
"preloaded",
"gzipping",
"submodule",
"submodules",
"typeof",
"devtool",
"wasm",
"webassembly",
"IIFE",
"IIFE's",
"bigint",
"unexception",
"etag",
"builtins",
"uncacheable",
"cacheable",
"mergeable",
"devtools",
"transpiled",
"mixins",
"subdir",
"errored",
"eval",
"multiplicator",
"finalizer",
"promisify",
"absolutify",
"camelcase",
"filebase",
"moduleid",
"modulehash",
"chunkfilename",
"chunkname",
"chunkhash",
"fullhash",
"contenthash",
"hashable",
"hotupdatechunk",
"middleware",
"middlewares",
"serializer",
"serializers",
"deserialization",
"referenceable",
"polyfilled",
"transpiling",
"transpile",
"transpiles",
"snapshotting",
"sourcemap",
"nosources",
"filepath",
"subpath",
"pathinfo",
"undelayed",
"microtask",
"microtasks",
"deopt",
"deopts",
"sandboxed",
"mangleable",
"passthrough",
"prioritise",
"booleanized",
"serializables",
"unreviewed",
"unshifted",
"nonrecursive",
"symlinked",
"subfolder",
"prettierrc",
"templated",
"templating",
"kibibytes",
"mebibytes",
"gibibytes",
"typechecker",
"recurse",
"preparsed",
"autocrlf",
"lcov",
"lcovonly",
"gcov",
"lintunit",
"instanceof",
"loglevel",
"runtime",
"runtimes",
"mimetype",
"testvalue",
"unusedkey",
"unusedvalue",
"performant",
"watchings",
"jsons",
"exitance",
"ident",
"idents",
"globstar",
"inversed",
"concated",
"RBDT",
"opensource",
"bugfix",
"bugfixes",
"declarators",
"rrrlll",
"undefine",
"finializer",
"quasis",
"hashs",
"functype",
"funcindex",
"Descr",
"valtype",
"informations",
"reexecuted",
"global's",
"unsplittable",
"chainable",
"metacharacters",
"Xarray",
"Xfactory",
"Xmodule",
"Xexports",
"moji",
"bitfield",
"precompute",
"toplevel",
"modulos",
"untaint",
"ufeff",
"timestamping",
"loadername",
"laof",
"cofounder",
"hashchange",
"popstate",
"hotpink",
"navigations",
"compat",
"noimport",
"tmpl",
"csvg",
"repo",
"repos",
"triaging",
"valign",
"returnfalse",
"return'development",
"overridables",
"overridable",
"webassemblyjs",
"fsevents",
"watchpack",
"tapable",
"junit",
"memfs",
"rimraf",
"estree",
"posthtml",
"MCEP",
"traceur",
"atlaskit",
"xxhashjs",
"systemjs",
"sokra",
"Koppers",
"Junya",
"Eoksni",
"Ewald",
"Larkin",
"Kees",
"Kluskens",
"Phoscur",
"defunctzombie",
"shama",
"jhnns",
"substack",
"MONEI",
"medikoo",
"webmake",
"jrburke",
"gitter",
"codecov",
"opencollective",
"dependabot"
],
"ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"],
"ignorePaths": ["**/dist/**"]
}

View File

@ -194,14 +194,6 @@ export type RuleSetCondition =
* Logical AND.
*/
and?: RuleSetConditions;
/**
* Exclude all modules matching any of these conditions.
*/
exclude?: RuleSetConditionOrConditions;
/**
* Exclude all modules matching not any of these conditions.
*/
include?: RuleSetConditionOrConditions;
/**
* Logical NOT.
*/
@ -210,10 +202,6 @@ export type RuleSetCondition =
* Logical OR.
*/
or?: RuleSetConditions;
/**
* Exclude all modules matching any of these conditions.
*/
test?: RuleSetConditionOrConditions;
};
/**
* A list of rule conditions.
@ -238,14 +226,6 @@ export type RuleSetConditionAbsolute =
* Logical AND.
*/
and?: RuleSetConditionsAbsolute;
/**
* Exclude all modules matching any of these conditions.
*/
exclude?: RuleSetConditionOrConditionsAbsolute;
/**
* Exclude all modules matching not any of these conditions.
*/
include?: RuleSetConditionOrConditionsAbsolute;
/**
* Logical NOT.
*/
@ -254,10 +234,6 @@ export type RuleSetConditionAbsolute =
* Logical OR.
*/
or?: RuleSetConditionsAbsolute;
/**
* Exclude all modules matching any of these conditions.
*/
test?: RuleSetConditionOrConditionsAbsolute;
};
/**
* A list of rule conditions matching an absolute path.
@ -439,7 +415,7 @@ export type HotUpdateFunction = string;
*/
export type HotUpdateMainFilename = string;
/**
* Wrap javascript code into IIFEs to avoid leaking into global scope.
* Wrap javascript code into IIFE's to avoid leaking into global scope.
*/
export type Iife = boolean;
/**
@ -622,7 +598,7 @@ export interface WebpackOptions {
*/
entry?: Entry;
/**
* Enables/Disables experiments (experiemental features with relax SemVer compatibility).
* Enables/Disables experiments (experimental features with relax SemVer compatibility).
*/
experiments?: Experiments;
/**
@ -893,7 +869,7 @@ export interface LibraryCustomUmdObject {
root?: string | string[];
}
/**
* Enables/Disables experiments (experiemental features with relax SemVer compatibility).
* Enables/Disables experiments (experimental features with relax SemVer compatibility).
*/
export interface Experiments {
/**
@ -917,7 +893,7 @@ export interface Experiments {
*/
mjs?: boolean;
/**
* Allow outputing javascript files as module source type.
* Allow output javascript files as module source type.
*/
outputModule?: boolean;
/**
@ -1618,7 +1594,7 @@ export interface Output {
*/
hotUpdateMainFilename?: HotUpdateMainFilename;
/**
* Wrap javascript code into IIFEs to avoid leaking into global scope.
* Wrap javascript code into IIFE's to avoid leaking into global scope.
*/
iife?: Iife;
/**
@ -1695,7 +1671,7 @@ export interface PerformanceOptions {
*/
hints?: false | "warning" | "error";
/**
* Filesize limit (in bytes) when exceeded, that webpack will provide performance hints.
* File size limit (in bytes) when exceeded, that webpack will provide performance hints.
*/
maxAssetSize?: number;
/**
@ -2075,7 +2051,7 @@ export interface OutputNormalized {
*/
hotUpdateMainFilename?: HotUpdateMainFilename;
/**
* Wrap javascript code into IIFEs to avoid leaking into global scope.
* Wrap javascript code into IIFE's to avoid leaking into global scope.
*/
iife?: Iife;
/**
@ -2164,7 +2140,7 @@ export interface WebpackOptionsNormalized {
*/
entry: EntryNormalized;
/**
* Enables/Disables experiments (experiemental features with relax SemVer compatibility).
* Enables/Disables experiments (experimental features with relax SemVer compatibility).
*/
experiments: Experiments;
/**

View File

@ -14,7 +14,7 @@ export interface AggressiveSplittingPluginOptions {
*/
entryChunkMultiplicator?: number;
/**
* Byte, maxsize of per file (Default: 50kiB).
* Byte, max size of per file (Default: 50kiB).
*/
maxSize?: number;
/**

View File

@ -3,14 +3,14 @@
const cp = require("child_process");
const examples = require("./examples");
const cmds = examples.map(function(dirname) {
const commands = examples.map(function(dirname) {
return "cd " + dirname + " && node build.js";
});
let failed = 0;
let i = 0;
for(const cmd of cmds) {
console.log(`[${++i}/${cmds.length}] ${cmd}`);
for(const cmd of commands) {
console.log(`[${++i}/${commands.length}] ${cmd}`);
try {
cp.execSync(cmd, { encoding: "utf-8" });
} catch(e) {

View File

@ -15,7 +15,7 @@ fs2.readFile("file");
import { readFile as readFile2 } from "./reexport-commonjs";
readFile2("file");
// import a CommonJs module for sideeffects
// import a CommonJs module for side effects
import "./example2";
```
@ -97,7 +97,7 @@ _fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
(0,_reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__.readFile)("file");
// import a CommonJs module for sideeffects
// import a CommonJs module for side effects

View File

@ -12,5 +12,5 @@ fs2.readFile("file");
import { readFile as readFile2 } from "./reexport-commonjs";
readFile2("file");
// import a CommonJs module for sideeffects
// import a CommonJs module for side effects
import "./example2";

View File

@ -59,7 +59,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// require the page with a dynamic require
// It's important that this require only matches the pages
// elsewise there is blood in the bundle. Here this is done with a
// otherwise there is blood in the bundle. Here this is done with a
// specific file prefix. It's also possible to use a directory,
// overwriting the RegExp with the ContextReplacementPlugin, or
// using the require.context method.
@ -119,7 +119,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// require the page with a dynamic require
// It's important that this require only matches the pages
// elsewise there is blood in the bundle. Here this is done with a
// otherwise there is blood in the bundle. Here this is done with a
// specific file prefix. It's also possible to use a directory,
// overwriting the RegExp with the ContextReplacementPlugin, or
// using the require.context method.

View File

@ -6,7 +6,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// require the page with a dynamic require
// It's important that this require only matches the pages
// elsewise there is blood in the bundle. Here this is done with a
// otherwise there is blood in the bundle. Here this is done with a
// specific file prefix. It's also possible to use a directory,
// overwriting the RegExp with the ContextReplacementPlugin, or
// using the require.context method.

View File

@ -4,7 +4,7 @@
// use our loader
console.dir(require("./loader!./file"));
// use buildin css loader
// use built-in css loader
console.dir(require("./test.css")); // default by extension
console.dir(require("!css-loader!./test.css")); // manual
```
@ -212,7 +212,7 @@ function toComment(sourceMap) {
// use our loader
console.dir(__webpack_require__(/*! ./loader!./file */ 1));
// use buildin css loader
// use built-in css loader
console.dir(__webpack_require__(/*! ./test.css */ 2)); // default by extension
console.dir(__webpack_require__(/*! css-loader!./test.css */ 2)); // manual

View File

@ -1,6 +1,6 @@
// use our loader
console.dir(require("./loader!./file"));
// use buildin css loader
// use built-in css loader
console.dir(require("./test.css")); // default by extension
console.dir(require("!css-loader!./test.css")); // manual

View File

@ -18,7 +18,7 @@ The following configuration is used:
The threshold is here 40 bytes, but by default (in a real application) 30kb.
Some modules are intentially duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes.
Some modules are intentionally duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes.
Note: decreasing `maxInitial/AsyncRequest` will increase duplication further to reduce the number of requests. Duplication doesn't affect initial page load, it only affects download size of navigations to other pages of the application.

View File

@ -18,7 +18,7 @@ The following configuration is used:
The threshold is here 40 bytes, but by default (in a real application) 30kb.
Some modules are intentially duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes.
Some modules are intentionally duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes.
Note: decreasing `maxInitial/AsyncRequest` will increase duplication further to reduce the number of requests. Duplication doesn't affect initial page load, it only affects download size of navigations to other pages of the application.

View File

@ -11,7 +11,7 @@ After being built by webpack, the output bundle contains `index.js` `a.js` `b.js
Advantages:
- Smaller bundles
- Faster bootup
- Faster boot up
# example.js

View File

@ -11,7 +11,7 @@ After being built by webpack, the output bundle contains `index.js` `a.js` `b.js
Advantages:
- Smaller bundles
- Faster bootup
- Faster boot up
# example.js

View File

@ -88,7 +88,7 @@ race = function(winner, ...runners) {
//# sourceMappingURL=bundle-source-map.js.map
```
```javascript
```json
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
```
@ -127,7 +127,7 @@ race = function(winner, ...runners) {
],[[0,0]]]);
```
```javascript
```json
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
```
@ -169,7 +169,7 @@ race = function(winner, ...runners) {
## nosources-source-map.js.map
```javascript
```json
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-nosources-source-map.js","sourceRoot":""}
```
@ -247,13 +247,13 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n
## cheap-module-source-map.js.map
```javascript
```json
{"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"mappings":";;;;;;;;;AAAA;AACA;;AADA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAFA;AACA;;AAIA;AACA;AADA;;;;A","sourceRoot":""}
```
## cheap-source-map.js.map
```javascript
```json
{"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
```

View File

@ -20,7 +20,7 @@ _{{webpack.config.js}}_
_{{dist/bundle-source-map.js}}_
```
```javascript
```json
_{{dist/bundle-source-map.js.map}}_
```
@ -30,7 +30,7 @@ _{{dist/bundle-source-map.js.map}}_
_{{dist/bundle-hidden-source-map.js}}_
```
```javascript
```json
_{{dist/bundle-hidden-source-map.js.map}}_
```
@ -42,7 +42,7 @@ _{{dist/bundle-inline-source-map.js}}_
## nosources-source-map.js.map
```javascript
```json
_{{dist/bundle-nosources-source-map.js.map}}_
```
@ -72,13 +72,13 @@ _{{dist/bundle-eval-cheap-module-source-map.js}}_
## cheap-module-source-map.js.map
```javascript
```json
_{{dist/bundle-cheap-module-source-map.js.map}}_
```
## cheap-source-map.js.map
```javascript
```json
_{{dist/bundle-cheap-source-map.js.map}}_
```

View File

@ -24,4 +24,4 @@ export const AlternativeCreateUserAction = async name => {
};
// Note: Using await import() at top-level doesn't make much sense
// except in rare cases. It will import modules sequencially.
// except in rare cases. It will import modules sequentially.

View File

@ -96,7 +96,7 @@ export const AlternativeCreateUserAction = async name => {
};
// Note: Using await import() at top-level doesn't make much sense
// except in rare cases. It will import modules sequencially.
// except in rare cases. It will import modules sequentially.
```
As `Actions.js` doesn't use any top-level-await nor `import await` it's not an async module.
@ -187,7 +187,7 @@ const AlternativeCreateUserAction = async name => {
};
// Note: Using await import() at top-level doesn't make much sense
// except in rare cases. It will import modules sequencially.
// except in rare cases. It will import modules sequentially.
/***/ })

View File

@ -30,7 +30,7 @@ const sortModules = modules => {
/**
* @param {Module[]} modules each module from throw
* @param {ModuleGraph} moduleGraph the module graph
* @returns {string} each message from provided moduels
* @returns {string} each message from provided modules
*/
const createModulesListMessage = (modules, moduleGraph) => {
return modules

View File

@ -1809,7 +1809,7 @@ class Compilation {
}
/**
* @param {Module} module moulde to report from
* @param {Module} module module to report from
* @param {DependenciesBlock[]} blocks blocks to report from
* @returns {void}
*/
@ -2074,7 +2074,7 @@ class Compilation {
moduleGraph.setDepth(module, 0);
/**
* @param {Module} module module for processeing
* @param {Module} module module for processing
* @returns {void}
*/
const processModule = module => {
@ -2281,7 +2281,7 @@ class Compilation {
}
this.logger.time("hashing: sort chunks");
// clone needed as sort below is inplace mutation
// clone needed as sort below is in place mutation
const chunks = Array.from(this.chunks);
/**
* sort here will bring all "falsy" values to the beginning

View File

@ -129,7 +129,7 @@ class Compiler {
/** @type {SyncHook<[NormalModuleFactory]>} */
normalModuleFactory: new SyncHook(["normalModuleFactory"]),
/** @type {SyncHook<[ContextModuleFactory]>} */
contextModuleFactory: new SyncHook(["contextModulefactory"]),
contextModuleFactory: new SyncHook(["contextModuleFactory"]),
/** @type {AsyncSeriesHook<[CompilationParams]>} */
beforeCompile: new AsyncSeriesHook(["params"]),
@ -640,7 +640,7 @@ class Compiler {
}
if (!info.immutable) {
// We wrote to this file before which has very likly a different content
// We wrote to this file before which has very likely a different content
// skip comparing and assume content is different for performance
// This case happens often during watch mode.
return processMissingFile();

View File

@ -435,7 +435,7 @@ class ContextModule extends Module {
getUserRequestMap(dependencies, chunkGraph) {
const moduleGraph = chunkGraph.moduleGraph;
// if we filter first we get a new array
// therefore we dont need to create a clone of dependencies explicitly
// therefore we don't need to create a clone of dependencies explicitly
// therefore the order of this is !important!
const sortedDependencies = dependencies
.filter(dependency => moduleGraph.getModule(dependency))
@ -467,7 +467,7 @@ class ContextModule extends Module {
let hasType = 0;
const comparator = compareModulesById(chunkGraph);
// if we filter first we get a new array
// therefore we dont need to create a clone of dependencies explicitly
// therefore we don't need to create a clone of dependencies explicitly
// therefore the order of this is !important!
const sortedModules = dependencies
.map(dependency => moduleGraph.getModule(dependency))
@ -1004,7 +1004,7 @@ module.exports = webpackEmptyAsyncContext;`;
// base penalty
let size = 160;
// if we dont have dependencies we stop here.
// if we don't have dependencies we stop here.
for (const dependency of this.dependencies) {
const element = /** @type {ContextElementDependency} */ (dependency);
size += 5 + element.userRequest.length;

View File

@ -287,13 +287,13 @@ module.exports = class ContextModuleFactory extends ModuleFactory {
if (!result) return callback(null, []);
const flattendResult = [];
const flattenedResult = [];
for (const item of result) {
if (item) flattendResult.push(...item);
if (item) flattenedResult.push(...item);
}
callback(null, flattendResult);
callback(null, flattenedResult);
}
);
});

View File

@ -28,12 +28,12 @@
*/
/**
* @typedef {Object} SynteticDependencyLocation
* @typedef {Object} SyntheticDependencyLocation
* @property {string} name
* @property {number=} index
*/
/** @typedef {SynteticDependencyLocation|RealDependencyLocation} DependencyLocation */
/** @typedef {SyntheticDependencyLocation|RealDependencyLocation} DependencyLocation */
/**
* @typedef {Object} ExportSpec

View File

@ -50,7 +50,7 @@ const INVALID = Symbol("invalid");
* @property {Map<string, string>=} fileHashes
* @property {Map<string, FileSystemInfoEntry>=} contextTimestamps
* @property {Map<string, string>=} contextHashes
* @property {Map<string, boolean>=} missingExistance
* @property {Map<string, boolean>=} missingExistence
* @property {Map<string, string>=} managedItemInfo
* @property {Set<Snapshot>=} children
*/
@ -191,7 +191,7 @@ const getManagedItem = (managedPath, path) => {
* @param {FileSystemInfoEntry} entry file system info entry
* @returns {boolean} existence flag
*/
const toExistance = entry => {
const toExistence = entry => {
return Boolean(entry);
};
@ -696,7 +696,7 @@ class FileSystemInfo {
/** @type {Map<string, string>} */
const contextHashes = new Map();
/** @type {Map<string, boolean>} */
const missingExistance = new Map();
const missingExistence = new Map();
/** @type {Map<string, string>} */
const managedItemInfo = new Map();
/** @type {Set<Snapshot>} */
@ -718,8 +718,8 @@ class FileSystemInfo {
if (contextTimestamps.size !== 0)
snapshot.contextTimestamps = contextTimestamps;
if (contextHashes.size !== 0) snapshot.contextHashes = contextHashes;
if (missingExistance.size !== 0)
snapshot.missingExistance = missingExistance;
if (missingExistence.size !== 0)
snapshot.missingExistence = missingExistence;
if (managedItemInfo.size !== 0)
snapshot.managedItemInfo = managedItemInfo;
if (children.size !== 0) snapshot.children = children;
@ -901,7 +901,7 @@ class FileSystemInfo {
children.add(commonSnapshot);
if (!snapshot.children) snapshot.children = new Set();
snapshot.children.add(commonSnapshot);
// Remove files from snaphot
// Remove files from snapshot
for (const path of commonMap.keys())
snapshot.fileTimestamps.delete(path);
// Create optimization entry
@ -1034,7 +1034,7 @@ class FileSystemInfo {
const cache = this._fileTimestamps.get(path);
if (cache !== undefined) {
if (cache !== "ignore") {
missingExistance.set(path, toExistance(cache));
missingExistence.set(path, toExistence(cache));
}
} else {
jobs++;
@ -1047,7 +1047,7 @@ class FileSystemInfo {
}
jobError();
} else {
missingExistance.set(path, toExistance(entry));
missingExistence.set(path, toExistence(entry));
jobDone();
}
});
@ -1114,10 +1114,10 @@ class FileSystemInfo {
snapshot2.contextHashes
);
}
if (snapshot1.missingExistance || snapshot2.missingExistance) {
snapshot.missingExistance = mergeMaps(
snapshot1.missingExistance,
snapshot2.missingExistance
if (snapshot1.missingExistence || snapshot2.missingExistence) {
snapshot.missingExistence = mergeMaps(
snapshot1.missingExistence,
snapshot2.missingExistence
);
}
if (snapshot1.managedItemInfo || snapshot2.managedItemInfo) {
@ -1161,7 +1161,7 @@ class FileSystemInfo {
fileHashes,
contextTimestamps,
contextHashes,
missingExistance,
missingExistence,
managedItemInfo,
children
} = snapshot;
@ -1208,7 +1208,7 @@ class FileSystemInfo {
* @param {boolean} snap entry from snapshot
* @returns {boolean} true, if ok
*/
const checkExistance = (path, current, snap) => {
const checkExistence = (path, current, snap) => {
if (!current !== !snap) {
// If existence of item differs
// it's invalid
@ -1400,13 +1400,13 @@ class FileSystemInfo {
}
}
}
if (missingExistance) {
for (const [path, existence] of missingExistance) {
if (missingExistence) {
for (const [path, existence] of missingExistence) {
const cache = this._fileTimestamps.get(path);
if (cache !== undefined) {
if (
cache !== "ignore" &&
!checkExistance(path, toExistance(cache), existence)
!checkExistence(path, toExistence(cache), existence)
) {
invalid();
return;
@ -1415,7 +1415,7 @@ class FileSystemInfo {
jobs++;
this.fileTimestampQueue.add(path, (err, entry) => {
if (err) return invalidWithError(path, err);
if (!checkExistance(path, toExistance(entry), existence)) {
if (!checkExistence(path, toExistence(entry), existence)) {
invalid();
} else {
jobDone();

View File

@ -256,15 +256,15 @@ class HotModuleReplacementPlugin {
}
if (!records.hash) initialPass = true;
const preHash = records.preHash || "x";
const prepreHash = records.prepreHash || "x";
const prePreHash = records.prePreHash || "x";
if (preHash === compilation.hash) {
recompilation = true;
compilation.modifyHash(prepreHash);
compilation.modifyHash(prePreHash);
return;
}
records.prepreHash = records.hash || "x";
records.prePreHash = records.hash || "x";
records.preHash = compilation.hash;
compilation.modifyHash(records.prepreHash);
compilation.modifyHash(records.prePreHash);
});
compilation.hooks.shouldGenerateChunkAssets.tap(
"HotModuleReplacementPlugin",

View File

@ -262,7 +262,7 @@ class MainTemplate {
options
);
},
"MainTemplate.getPublicPath is depreacted (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)",
"MainTemplate.getPublicPath is deprecated (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)",
"DEP_WEBPACK_MAIN_TEMPLATE_GET_PUBLIC_PATH"
);

View File

@ -527,7 +527,7 @@ class Module extends DependenciesBlock {
for (const originChunk of chunkGraph.getModuleChunksIterable(
fromModule
)) {
// return true if module this is not reachable from originChunk when ignoring cunk
// return true if module this is not reachable from originChunk when ignoring chunk
if (!this.isAccessibleInChunk(chunkGraph, originChunk, chunk))
return true;
}

View File

@ -16,6 +16,7 @@ ModuleFilenameHelpers.REGEXP_LOADERS_RESOURCE = /\[loaders\]\[resource\]/gi;
ModuleFilenameHelpers.RESOURCE = "[resource]";
ModuleFilenameHelpers.REGEXP_RESOURCE = /\[resource\]/gi;
ModuleFilenameHelpers.ABSOLUTE_RESOURCE_PATH = "[absolute-resource-path]";
// cSpell:words olute
ModuleFilenameHelpers.REGEXP_ABSOLUTE_RESOURCE_PATH = /\[abs(olute)?-?resource-?path\]/gi;
ModuleFilenameHelpers.RESOURCE_PATH = "[resource-path]";
ModuleFilenameHelpers.REGEXP_RESOURCE_PATH = /\[resource-?path\]/gi;

View File

@ -186,7 +186,7 @@ exports.startup = "__webpack_require__.x";
exports.startupNoDefault = "__webpack_require__.x (no default handler)";
/**
* interceptor for module exections
* interceptor for module executions
*/
exports.interceptModuleExecution = "__webpack_require__.i";

View File

@ -513,7 +513,7 @@ class RuntimeTemplate {
});
}
throw new Error(
`RuntimeTemplate.importStatment(): Module ${module.identifier()} has no id. This should not happen.`
`RuntimeTemplate.importStatement(): Module ${module.identifier()} has no id. This should not happen.`
);
}
const moduleId = this.moduleId({

View File

@ -329,7 +329,7 @@ class SourceMapDevToolPlugin {
continue;
}
// elsewise just append stars until we have a valid name
// otherwise just append stars until we have a valid name
while (hasName) {
sourceName += "*";
hasName = usedNamesSet.has(sourceName);

View File

@ -173,7 +173,7 @@ const replacePathVariables = (path, data, assetInfo) => {
// [id] - chunk.id (0.js)
// [name] - chunk.name (app.js)
// [chunkhash] - chunk.hash (7823t4t4.js)
// [contenthash] - chunk.contentHash[type] (3256urzg.js)
// [contenthash] - chunk.contentHash[type] (3256u3zg.js)
if (data.chunk) {
const chunk = data.chunk;

View File

@ -768,9 +768,9 @@ const visitModules = (
}
if (outdatedChunkGroupInfo.size > 0) {
logger.time("visitModules: check modules for revist");
logger.time("visitModules: check modules for revisit");
processOutdatedChunkGroupInfo();
logger.timeEnd("visitModules: check modules for revist");
logger.timeEnd("visitModules: check modules for revisit");
}
// Run queueDelayed when all items of the queue are processed
@ -932,7 +932,7 @@ const buildChunkGraph = (compilation, inputEntrypoints) => {
);
logger.timeEnd("connectChunkGroups");
// Cleaup work
// Cleanup work
logger.time("cleanup");
cleanupUnconnectedGroups(compilation, allCreatedChunkGroups);

View File

@ -210,7 +210,7 @@ class Pack {
*/
_optimizeSmallContent() {
// 1. Find all small content files
// Treat unused content files separatly to avoid
// Treat unused content files separately to avoid
// a merge-split cycle
/** @type {number[]} */
const smallUsedContents = [];

View File

@ -388,7 +388,7 @@ const applyOutputDefaults = (
const hasContentHash = filename.includes("[contenthash]");
// Anything changing depending on chunk is fine
if (hasChunkHash || hasContentHash || hasName || hasId) return filename;
// Elsewise prefix "[id]." in front of the basename to make it changing
// Otherwise prefix "[id]." in front of the basename to make it changing
return filename.replace(/(^|\/)([^/]*(?:\?|$))/, "$1[id].$2");
}
return "[id].js";

View File

@ -13,13 +13,13 @@ const NullDependency = require("./NullDependency");
/** @typedef {import("../Dependency")} Dependency */
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
/** @type {Record<string, { definition: string, content: string, reqs: string[] }>} */
/** @type {Record<string, { definition: string, content: string, requests: string[] }>} */
const DEFINITIONS = {
f: {
definition: "var __WEBPACK_AMD_DEFINE_RESULT__;",
content: `!(__WEBPACK_AMD_DEFINE_RESULT__ = (#).call(exports, __webpack_require__, exports, module),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,
reqs: [
requests: [
RuntimeGlobals.require,
RuntimeGlobals.exports,
RuntimeGlobals.module
@ -28,7 +28,7 @@ const DEFINITIONS = {
o: {
definition: "",
content: "!(module.exports = #)",
reqs: [RuntimeGlobals.module]
requests: [RuntimeGlobals.module]
},
of: {
definition:
@ -38,7 +38,7 @@ const DEFINITIONS = {
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
__WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,
reqs: [
requests: [
RuntimeGlobals.require,
RuntimeGlobals.exports,
RuntimeGlobals.module
@ -49,12 +49,12 @@ const DEFINITIONS = {
"var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;",
content: `!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, __WEBPACK_AMD_DEFINE_RESULT__ = (#).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,
reqs: [RuntimeGlobals.exports, RuntimeGlobals.module]
requests: [RuntimeGlobals.exports, RuntimeGlobals.module]
},
ao: {
definition: "",
content: "!(#, module.exports = #)",
reqs: [RuntimeGlobals.module]
requests: [RuntimeGlobals.module]
},
aof: {
definition:
@ -63,35 +63,35 @@ const DEFINITIONS = {
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,
reqs: [RuntimeGlobals.exports, RuntimeGlobals.module]
requests: [RuntimeGlobals.exports, RuntimeGlobals.module]
},
lf: {
definition: "var XXX, XXXmodule;",
content:
"!(XXXmodule = { id: YYY, exports: {}, loaded: false }, XXX = #.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule), XXXmodule.loaded = true, XXX === undefined && (XXX = XXXmodule.exports))",
reqs: [RuntimeGlobals.require, RuntimeGlobals.module]
requests: [RuntimeGlobals.require, RuntimeGlobals.module]
},
lo: {
definition: "var XXX;",
content: "!(XXX = #)",
reqs: []
requests: []
},
lof: {
definition: "var XXX, XXXfactory, XXXmodule;",
content:
"!(XXXfactory = (#), (typeof XXXfactory === 'function' ? (XXXmodule = { id: YYY, exports: {}, loaded: false }), (XXX = XXXfactory.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule)), (XXXmodule.loaded = true), XXX === undefined && (XXX = XXXmodule.exports) : XXX = XXXfactory))",
reqs: [RuntimeGlobals.require, RuntimeGlobals.module]
requests: [RuntimeGlobals.require, RuntimeGlobals.module]
},
laf: {
definition: "var __WEBPACK_AMD_DEFINE_ARRAY__, XXX, XXXexports;",
content:
"!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, XXX = (#).apply(XXXexports = {}, __WEBPACK_AMD_DEFINE_ARRAY__), XXX === undefined && (XXX = XXXexports))",
reqs: []
requests: []
},
lao: {
definition: "var XXX;",
content: "!(#, XXX = #)",
reqs: []
requests: []
},
laof: {
definition: "var XXXarray, XXXfactory, XXXexports, XXX;",
@ -100,7 +100,7 @@ const DEFINITIONS = {
((XXX = XXXfactory.apply(XXXexports = {}, XXXarray)), XXX === undefined && (XXX = XXXexports)) :
(XXX = XXXfactory)
))`,
reqs: []
requests: []
}
};
@ -157,8 +157,8 @@ AMDDefineDependency.Template = class AMDDefineDependencyTemplate extends NullDep
apply(dependency, source, { runtimeRequirements }) {
const dep = /** @type {AMDDefineDependency} */ (dependency);
const branch = this.branch(dep);
const { definition, content, reqs } = DEFINITIONS[branch];
for (const req of reqs) {
const { definition, content, requests } = DEFINITIONS[branch];
for (const req of requests) {
runtimeRequirements.add(req);
}
this.replace(dep, source, definition, content);

View File

@ -15,7 +15,7 @@
* @param {string} str String to quote
* @returns {string} Escaped string
*/
const quotemeta = str => {
const quoteMeta = str => {
return str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
};
@ -78,7 +78,7 @@ exports.create = (Dep, range, param, expr, options, contextOptions, parser) => {
const innerRegExp =
options.wrappedContextRegExp.source +
innerQuasis
.map(q => quotemeta(q.string) + options.wrappedContextRegExp.source)
.map(q => quoteMeta(q.string) + options.wrappedContextRegExp.source)
.join("");
// Example: `./context/pre${e}inner${e}inner2${e}post?query`
@ -90,7 +90,7 @@ exports.create = (Dep, range, param, expr, options, contextOptions, parser) => {
// query: "?query"
// regExp: /^\.\/pre.*inner.*inner2.*post$/
const regExp = new RegExp(
`^${quotemeta(prefix)}${innerRegExp}${quotemeta(postfix)}$`
`^${quoteMeta(prefix)}${innerRegExp}${quoteMeta(postfix)}$`
);
const dep = new Dep(
{
@ -167,7 +167,7 @@ exports.create = (Dep, range, param, expr, options, contextOptions, parser) => {
const { context, prefix } = splitContextFromPrefix(prefixRaw);
const { postfix, query } = splitQueryFromPostfix(postfixRaw);
const regExp = new RegExp(
`^${quotemeta(prefix)}${options.wrappedContextRegExp.source}${quotemeta(
`^${quoteMeta(prefix)}${options.wrappedContextRegExp.source}${quoteMeta(
postfix
)}$`
);

View File

@ -11,11 +11,11 @@ const lookup = (parent, mod) => {
if (mod.charAt(0) !== ".") return mod;
var path = parent.split("/");
var segs = mod.split("/");
var segments = mod.split("/");
path.pop();
for (let i = 0; i < segs.length; i++) {
const seg = segs[i];
for (let i = 0; i < segments.length; i++) {
const seg = segments[i];
if (seg === "..") {
path.pop();
} else if (seg !== ".") {

View File

@ -78,9 +78,11 @@ module.exports = class RequireEnsureDependenciesBlockParserPlugin {
parser.inScope([], () => {
for (const ee of dependenciesItems) {
if (ee.isString()) {
const edep = new RequireEnsureItemDependency(ee.string);
edep.loc = ee.loc || expr.loc;
depBlock.addDependency(edep);
const ensureDependency = new RequireEnsureItemDependency(
ee.string
);
ensureDependency.loc = ee.loc || expr.loc;
depBlock.addDependency(ensureDependency);
} else {
failed = true;
}

View File

@ -118,7 +118,7 @@ exports.getFullModuleName = getFullModuleName;
/**
* @param {Chunk} chunk the chunk
* @param {ChunkGraph} chunkGraph the chunk grph
* @param {ChunkGraph} chunkGraph the chunk graph
* @param {string} context context directory
* @param {string} delimiter delimiter for names
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
@ -145,7 +145,7 @@ exports.getShortChunkName = getShortChunkName;
/**
* @param {Chunk} chunk the chunk
* @param {ChunkGraph} chunkGraph the chunk grph
* @param {ChunkGraph} chunkGraph the chunk graph
* @param {string} context context directory
* @param {string} delimiter delimiter for names
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
@ -175,7 +175,7 @@ exports.getLongChunkName = getLongChunkName;
/**
* @param {Chunk} chunk the chunk
* @param {ChunkGraph} chunkGraph the chunk grph
* @param {ChunkGraph} chunkGraph the chunk graph
* @param {string} context context directory
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {string} full chunk name

View File

@ -359,7 +359,7 @@ class JavascriptParser extends Parser {
right.prefix.isString()
) {
// "left" + ("prefix" + inner + "postfix")
// => ("leftprefix" + inner + "postfix")
// => ("leftPrefix" + inner + "postfix")
res.setWrapped(
new BasicEvaluatedExpression()
.setString(left.string + right.prefix.string)
@ -395,7 +395,7 @@ class JavascriptParser extends Parser {
} else if (left.isWrapped()) {
if (left.postfix && left.postfix.isString() && right.isString()) {
// ("prefix" + inner + "postfix") + "right"
// => ("prefix" + inner + "postfixright")
// => ("prefix" + inner + "postfixRight")
res.setWrapped(
left.prefix,
new BasicEvaluatedExpression()
@ -1160,19 +1160,19 @@ class JavascriptParser extends Parser {
}
}
// Prewalking iterates the scope for variable declarations
prewalkStatements(statements) {
// Pre walking iterates the scope for variable declarations
preWalkStatements(statements) {
for (let index = 0, len = statements.length; index < len; index++) {
const statement = statements[index];
this.prewalkStatement(statement);
this.preWalkStatement(statement);
}
}
// Block-Prewalking iterates the scope for block variable declarations
blockPrewalkStatements(statements) {
// Block pre walking iterates the scope for block variable declarations
blockPreWalkStatements(statements) {
for (let index = 0, len = statements.length; index < len; index++) {
const statement = statements[index];
this.blockPrewalkStatement(statement);
this.blockPreWalkStatement(statement);
}
}
@ -1184,71 +1184,71 @@ class JavascriptParser extends Parser {
}
}
prewalkStatement(statement) {
preWalkStatement(statement) {
if (this.hooks.preStatement.call(statement)) return;
switch (statement.type) {
case "BlockStatement":
this.prewalkBlockStatement(statement);
this.preWalkBlockStatement(statement);
break;
case "DoWhileStatement":
this.prewalkDoWhileStatement(statement);
this.preWalkDoWhileStatement(statement);
break;
case "ForInStatement":
this.prewalkForInStatement(statement);
this.preWalkForInStatement(statement);
break;
case "ForOfStatement":
this.prewalkForOfStatement(statement);
this.preWalkForOfStatement(statement);
break;
case "ForStatement":
this.prewalkForStatement(statement);
this.preWalkForStatement(statement);
break;
case "FunctionDeclaration":
this.prewalkFunctionDeclaration(statement);
this.preWalkFunctionDeclaration(statement);
break;
case "IfStatement":
this.prewalkIfStatement(statement);
this.preWalkIfStatement(statement);
break;
case "LabeledStatement":
this.prewalkLabeledStatement(statement);
this.preWalkLabeledStatement(statement);
break;
case "SwitchStatement":
this.prewalkSwitchStatement(statement);
this.preWalkSwitchStatement(statement);
break;
case "TryStatement":
this.prewalkTryStatement(statement);
this.preWalkTryStatement(statement);
break;
case "VariableDeclaration":
this.prewalkVariableDeclaration(statement);
this.preWalkVariableDeclaration(statement);
break;
case "WhileStatement":
this.prewalkWhileStatement(statement);
this.preWalkWhileStatement(statement);
break;
case "WithStatement":
this.prewalkWithStatement(statement);
this.preWalkWithStatement(statement);
break;
}
}
blockPrewalkStatement(statement) {
blockPreWalkStatement(statement) {
if (this.hooks.blockPreStatement.call(statement)) return;
switch (statement.type) {
case "ImportDeclaration":
this.blockPrewalkImportDeclaration(statement);
this.blockPreWalkImportDeclaration(statement);
break;
case "ExportAllDeclaration":
this.blockPrewalkExportAllDeclaration(statement);
this.blockPreWalkExportAllDeclaration(statement);
break;
case "ExportDefaultDeclaration":
this.blockPrewalkExportDefaultDeclaration(statement);
this.blockPreWalkExportDefaultDeclaration(statement);
break;
case "ExportNamedDeclaration":
this.blockPrewalkExportNamedDeclaration(statement);
this.blockPreWalkExportNamedDeclaration(statement);
break;
case "VariableDeclaration":
this.blockPrewalkVariableDeclaration(statement);
this.blockPreWalkVariableDeclaration(statement);
break;
case "ClassDeclaration":
this.blockPrewalkClassDeclaration(statement);
this.blockPreWalkClassDeclaration(statement);
break;
}
}
@ -1324,14 +1324,14 @@ class JavascriptParser extends Parser {
}
// Real Statements
prewalkBlockStatement(statement) {
this.prewalkStatements(statement.body);
preWalkBlockStatement(statement) {
this.preWalkStatements(statement.body);
}
walkBlockStatement(statement) {
this.inBlockScope(() => {
const body = statement.body;
this.blockPrewalkStatements(body);
this.blockPreWalkStatements(body);
this.walkStatements(body);
});
}
@ -1340,10 +1340,10 @@ class JavascriptParser extends Parser {
this.walkExpression(statement.expression);
}
prewalkIfStatement(statement) {
this.prewalkStatement(statement.consequent);
preWalkIfStatement(statement) {
this.preWalkStatement(statement.consequent);
if (statement.alternate) {
this.prewalkStatement(statement.alternate);
this.preWalkStatement(statement.alternate);
}
}
@ -1364,8 +1364,8 @@ class JavascriptParser extends Parser {
}
}
prewalkLabeledStatement(statement) {
this.prewalkStatement(statement.body);
preWalkLabeledStatement(statement) {
this.preWalkStatement(statement.body);
}
walkLabeledStatement(statement) {
@ -1377,8 +1377,8 @@ class JavascriptParser extends Parser {
this.walkStatement(statement.body);
}
prewalkWithStatement(statement) {
this.prewalkStatement(statement.body);
preWalkWithStatement(statement) {
this.preWalkStatement(statement.body);
}
walkWithStatement(statement) {
@ -1386,8 +1386,8 @@ class JavascriptParser extends Parser {
this.walkStatement(statement.body);
}
prewalkSwitchStatement(statement) {
this.prewalkSwitchCases(statement.cases);
preWalkSwitchStatement(statement) {
this.preWalkSwitchCases(statement.cases);
}
walkSwitchStatement(statement) {
@ -1407,10 +1407,10 @@ class JavascriptParser extends Parser {
this.walkTerminatingStatement(statement);
}
prewalkTryStatement(statement) {
this.prewalkStatement(statement.block);
if (statement.handler) this.prewalkCatchClause(statement.handler);
if (statement.finializer) this.prewalkStatement(statement.finializer);
preWalkTryStatement(statement) {
this.preWalkStatement(statement.block);
if (statement.handler) this.preWalkCatchClause(statement.handler);
if (statement.finializer) this.preWalkStatement(statement.finializer);
}
walkTryStatement(statement) {
@ -1425,8 +1425,8 @@ class JavascriptParser extends Parser {
if (statement.finalizer) this.walkStatement(statement.finalizer);
}
prewalkWhileStatement(statement) {
this.prewalkStatement(statement.body);
preWalkWhileStatement(statement) {
this.preWalkStatement(statement.body);
}
walkWhileStatement(statement) {
@ -1434,8 +1434,8 @@ class JavascriptParser extends Parser {
this.walkStatement(statement.body);
}
prewalkDoWhileStatement(statement) {
this.prewalkStatement(statement.body);
preWalkDoWhileStatement(statement) {
this.preWalkStatement(statement.body);
}
walkDoWhileStatement(statement) {
@ -1443,20 +1443,20 @@ class JavascriptParser extends Parser {
this.walkExpression(statement.test);
}
prewalkForStatement(statement) {
preWalkForStatement(statement) {
if (statement.init) {
if (statement.init.type === "VariableDeclaration") {
this.prewalkStatement(statement.init);
this.preWalkStatement(statement.init);
}
}
this.prewalkStatement(statement.body);
this.preWalkStatement(statement.body);
}
walkForStatement(statement) {
this.inBlockScope(() => {
if (statement.init) {
if (statement.init.type === "VariableDeclaration") {
this.blockPrewalkVariableDeclaration(statement.init);
this.blockPreWalkVariableDeclaration(statement.init);
this.walkStatement(statement.init);
} else {
this.walkExpression(statement.init);
@ -1471,7 +1471,7 @@ class JavascriptParser extends Parser {
const body = statement.body;
if (body.type === "BlockStatement") {
// no need to add additional scope
this.blockPrewalkStatements(body.body);
this.blockPreWalkStatements(body.body);
this.walkStatements(body.body);
} else {
this.walkStatement(body);
@ -1479,17 +1479,17 @@ class JavascriptParser extends Parser {
});
}
prewalkForInStatement(statement) {
preWalkForInStatement(statement) {
if (statement.left.type === "VariableDeclaration") {
this.prewalkVariableDeclaration(statement.left);
this.preWalkVariableDeclaration(statement.left);
}
this.prewalkStatement(statement.body);
this.preWalkStatement(statement.body);
}
walkForInStatement(statement) {
this.inBlockScope(() => {
if (statement.left.type === "VariableDeclaration") {
this.blockPrewalkVariableDeclaration(statement.left);
this.blockPreWalkVariableDeclaration(statement.left);
this.walkVariableDeclaration(statement.left);
} else {
this.walkPattern(statement.left);
@ -1498,7 +1498,7 @@ class JavascriptParser extends Parser {
const body = statement.body;
if (body.type === "BlockStatement") {
// no need to add additional scope
this.blockPrewalkStatements(body.body);
this.blockPreWalkStatements(body.body);
this.walkStatements(body.body);
} else {
this.walkStatement(body);
@ -1506,20 +1506,20 @@ class JavascriptParser extends Parser {
});
}
prewalkForOfStatement(statement) {
preWalkForOfStatement(statement) {
if (statement.await && this.scope.topLevelScope === true) {
this.hooks.topLevelAwait.call(statement);
}
if (statement.left.type === "VariableDeclaration") {
this.prewalkVariableDeclaration(statement.left);
this.preWalkVariableDeclaration(statement.left);
}
this.prewalkStatement(statement.body);
this.preWalkStatement(statement.body);
}
walkForOfStatement(statement) {
this.inBlockScope(() => {
if (statement.left.type === "VariableDeclaration") {
this.blockPrewalkVariableDeclaration(statement.left);
this.blockPreWalkVariableDeclaration(statement.left);
this.walkVariableDeclaration(statement.left);
} else {
this.walkPattern(statement.left);
@ -1528,7 +1528,7 @@ class JavascriptParser extends Parser {
const body = statement.body;
if (body.type === "BlockStatement") {
// no need to add additional scope
this.blockPrewalkStatements(body.body);
this.blockPreWalkStatements(body.body);
this.walkStatements(body.body);
} else {
this.walkStatement(body);
@ -1537,7 +1537,7 @@ class JavascriptParser extends Parser {
}
// Declarations
prewalkFunctionDeclaration(statement) {
preWalkFunctionDeclaration(statement) {
if (statement.id) {
this.defineVariable(statement.id.name);
}
@ -1552,7 +1552,7 @@ class JavascriptParser extends Parser {
}
if (statement.body.type === "BlockStatement") {
this.detectMode(statement.body.body);
this.prewalkStatement(statement.body);
this.preWalkStatement(statement.body);
this.walkStatement(statement.body);
} else {
this.walkExpression(statement.body);
@ -1561,7 +1561,7 @@ class JavascriptParser extends Parser {
this.scope.topLevelScope = wasTopLevel;
}
blockPrewalkImportDeclaration(statement) {
blockPreWalkImportDeclaration(statement) {
const source = statement.source.value;
this.hooks.import.call(statement, source);
for (const specifier of statement.specifiers) {
@ -1618,7 +1618,7 @@ class JavascriptParser extends Parser {
}
}
blockPrewalkExportNamedDeclaration(statement) {
blockPreWalkExportNamedDeclaration(statement) {
let source;
if (statement.source) {
source = statement.source.value;
@ -1630,8 +1630,8 @@ class JavascriptParser extends Parser {
if (
!this.hooks.exportDeclaration.call(statement, statement.declaration)
) {
this.prewalkStatement(statement.declaration);
this.blockPrewalkStatement(statement.declaration);
this.preWalkStatement(statement.declaration);
this.blockPreWalkStatement(statement.declaration);
let index = 0;
this.enterDeclaration(statement.declaration, def => {
this.hooks.exportSpecifier.call(statement, def, def, index++);
@ -1677,9 +1677,9 @@ class JavascriptParser extends Parser {
}
}
blockPrewalkExportDefaultDeclaration(statement) {
this.prewalkStatement(statement.declaration);
this.blockPrewalkStatement(statement.declaration);
blockPreWalkExportDefaultDeclaration(statement) {
this.preWalkStatement(statement.declaration);
this.blockPreWalkStatement(statement.declaration);
if (
statement.declaration.id &&
statement.declaration.type !== "FunctionExpression" &&
@ -1729,27 +1729,27 @@ class JavascriptParser extends Parser {
}
}
blockPrewalkExportAllDeclaration(statement) {
blockPreWalkExportAllDeclaration(statement) {
const source = statement.source.value;
this.hooks.exportImport.call(statement, source);
this.hooks.exportImportSpecifier.call(statement, source, null, null, 0);
}
prewalkVariableDeclaration(statement) {
preWalkVariableDeclaration(statement) {
if (statement.kind !== "var") return;
this._prewalkVariableDeclaration(statement, this.hooks.varDeclarationVar);
this._preWalkVariableDeclaration(statement, this.hooks.varDeclarationVar);
}
blockPrewalkVariableDeclaration(statement) {
blockPreWalkVariableDeclaration(statement) {
if (statement.kind === "var") return;
const hookMap =
statement.kind === "const"
? this.hooks.varDeclarationConst
: this.hooks.varDeclarationLet;
this._prewalkVariableDeclaration(statement, hookMap);
this._preWalkVariableDeclaration(statement, hookMap);
}
_prewalkVariableDeclaration(statement, hookMap) {
_preWalkVariableDeclaration(statement, hookMap) {
for (const declarator of statement.declarations) {
switch (declarator.type) {
case "VariableDeclarator": {
@ -1800,7 +1800,7 @@ class JavascriptParser extends Parser {
}
}
blockPrewalkClassDeclaration(statement) {
blockPreWalkClassDeclaration(statement) {
if (statement.id) {
this.defineVariable(statement.id.name);
}
@ -1810,10 +1810,10 @@ class JavascriptParser extends Parser {
this.walkClass(statement);
}
prewalkSwitchCases(switchCases) {
preWalkSwitchCases(switchCases) {
for (let index = 0, len = switchCases.length; index < len; index++) {
const switchCase = switchCases[index];
this.prewalkStatements(switchCase.consequent);
this.preWalkStatements(switchCase.consequent);
}
}
@ -1828,8 +1828,8 @@ class JavascriptParser extends Parser {
}
}
prewalkCatchClause(catchClause) {
this.prewalkStatement(catchClause.body);
preWalkCatchClause(catchClause) {
this.preWalkStatement(catchClause.body);
}
walkCatchClause(catchClause) {
@ -1841,7 +1841,7 @@ class JavascriptParser extends Parser {
});
this.walkPattern(catchClause.param);
}
this.blockPrewalkStatement(catchClause.body);
this.blockPreWalkStatement(catchClause.body);
this.walkStatement(catchClause.body);
});
}
@ -2032,7 +2032,7 @@ class JavascriptParser extends Parser {
}
if (expression.body.type === "BlockStatement") {
this.detectMode(expression.body.body);
this.prewalkStatement(expression.body);
this.preWalkStatement(expression.body);
this.walkStatement(expression.body);
} else {
this.walkExpression(expression.body);
@ -2050,7 +2050,7 @@ class JavascriptParser extends Parser {
}
if (expression.body.type === "BlockStatement") {
this.detectMode(expression.body.body);
this.prewalkStatement(expression.body);
this.preWalkStatement(expression.body);
this.walkStatement(expression.body);
} else {
this.walkExpression(expression.body);
@ -2269,7 +2269,7 @@ class JavascriptParser extends Parser {
}
if (functionExpression.body.type === "BlockStatement") {
this.detectMode(functionExpression.body.body);
this.prewalkStatement(functionExpression.body);
this.preWalkStatement(functionExpression.body);
this.walkStatement(functionExpression.body);
} else {
this.walkExpression(functionExpression.body);
@ -2904,8 +2904,8 @@ class JavascriptParser extends Parser {
this.statementStartPos = NaN;
if (this.hooks.program.call(ast, comments) === undefined) {
this.detectMode(ast.body);
this.prewalkStatements(ast.body);
this.blockPrewalkStatements(ast.body);
this.preWalkStatements(ast.body);
this.blockPreWalkStatements(ast.body);
this.walkStatements(ast.body);
}
this.hooks.finish.call(ast, comments);

View File

@ -34,15 +34,15 @@ exports.evaluateToBoolean = value => {
exports.evaluateToIdentifier = (identifier, rootInfo, getMembers, truthy) => {
return function identifierExpression(expr) {
let evex = new BasicEvaluatedExpression()
let evaluatedExpression = new BasicEvaluatedExpression()
.setIdentifier(identifier, rootInfo, getMembers)
.setRange(expr.range);
if (truthy === true) {
evex = evex.setTruthy();
evaluatedExpression = evaluatedExpression.setTruthy();
} else if (truthy === false) {
evex = evex.setFalsy();
evaluatedExpression = evaluatedExpression.setFalsy();
}
return evex;
return evaluatedExpression;
};
};

View File

@ -242,7 +242,7 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin {
const { auxiliaryComment, namedDefine, names } = options;
const getAuxilaryComment = type => {
const getAuxiliaryComment = type => {
if (auxiliaryComment) {
if (typeof auxiliaryComment === "string")
return "\t//" + auxiliaryComment + "\n";
@ -255,12 +255,12 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin {
return new ConcatSource(
new OriginalSource(
"(function webpackUniversalModuleDefinition(root, factory) {\n" +
getAuxilaryComment("commonjs2") +
getAuxiliaryComment("commonjs2") +
" if(typeof exports === 'object' && typeof module === 'object')\n" +
" module.exports = factory(" +
externalsRequireArray("commonjs2") +
");\n" +
getAuxilaryComment("amd") +
getAuxiliaryComment("amd") +
" else if(typeof define === 'function' && define.amd)\n" +
(requiredExternals.length > 0
? names.amd && namedDefine === true
@ -284,14 +284,14 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin {
");\n"
: " define([], " + amdFactory + ");\n") +
(names.root || names.commonjs
? getAuxilaryComment("commonjs") +
? getAuxiliaryComment("commonjs") +
" else if(typeof exports === 'object')\n" +
" exports[" +
libraryName(names.commonjs || names.root) +
"] = factory(" +
externalsRequireArray("commonjs") +
");\n" +
getAuxilaryComment("root") +
getAuxiliaryComment("root") +
" else\n" +
" " +
replaceKeys(

View File

@ -288,7 +288,7 @@ class AggressiveSplittingPlugin {
}
}
// Also add all unused historial splits (after the used ones)
// Also add all unused historical splits (after the used ones)
// They can still be used in some future compilation
const recordedSplits =
compilation.records && compilation.records.aggressiveSplits;

View File

@ -647,7 +647,7 @@ const getHarmonyExportImportedSpecifierDependencyExports = (
class ConcatenatedModule extends Module {
/**
* @param {Module} rootModule the root module of the concatenation
* @param {Set<Module>} modules all modules in the concantenation (including the root module)
* @param {Set<Module>} modules all modules in the concatenation (including the root module)
* @param {ModuleGraph} moduleGraph the module graph
* @param {Object=} associatedObjectForCache object for caching
* @returns {ConcatenatedModule} the module
@ -681,7 +681,7 @@ class ConcatenatedModule extends Module {
* @param {string} options.identifier the identifier of the module
* @param {Module=} options.rootModule the root module of the concatenation
* @param {Set<Module>=} options.modules all concatenated modules
* @param {TODO=} options.orderedConcatenationList the list of concentated modules and externals
* @param {TODO=} options.orderedConcatenationList the list of concated modules and externals
*/
constructor({ identifier, rootModule, modules, orderedConcatenationList }) {
super("javascript/esm", null);
@ -992,7 +992,7 @@ class ConcatenatedModule extends Module {
const runtimeRequirements = new Set();
const requestShortener = runtimeTemplate.requestShortener;
// Metainfo for each module
// Meta info for each module
const modulesWithInfo = this._getModulesWithInfo(moduleGraph);
// Create mapping from module to info

View File

@ -54,7 +54,7 @@ class FlagIncludedChunksPlugin {
i++;
}
// interate all chunks to generate bitmaps
// iterate all chunks to generate bitmaps
/** @type {WeakMap<Chunk, number>} */
const chunkModulesHash = new WeakMap();
for (const chunk of chunks) {

View File

@ -93,7 +93,7 @@ class LimitChunkCountPlugin {
(a, b) => a.bIdx - b.bIdx
);
// we keep a mappng from chunk to all combinations
// we keep a mapping from chunk to all combinations
// but this mapping is not kept up-to-date with deletions
// so `deleted` flag need to be considered when iterating this
/** @type {Map<Chunk, Set<ChunkCombination>>} */

View File

@ -86,7 +86,7 @@ class MinChunkSizePlugin {
return extendedPair;
})
.sort((a, b) => {
// sadly javascript does an inplace sort here
// sadly javascript does an in place sort here
// sort by size
const diff = b[0] - a[0];
if (diff !== 0) return diff;

View File

@ -22,7 +22,7 @@ class MinMaxSizeWarning extends WebpackError {
`${keysMessage}\n` +
`Configured minSize (${SizeFormatHelpers.formatSize(minSize)}) is ` +
`bigger than maxSize (${SizeFormatHelpers.formatSize(maxSize)}).\n` +
"This seem to be a invalid optimiziation.splitChunks configuration."
"This seem to be a invalid optimization.splitChunks configuration."
);
}
}

View File

@ -284,7 +284,7 @@ class ModuleConcatenationPlugin {
// cache failures to add modules
const failureCache = new Map();
// potential optional import candiates
// potential optional import candidates
/** @type {Set<Module>} */
const candidates = new Set();
@ -297,13 +297,13 @@ class ModuleConcatenationPlugin {
// _tryToAdd modifies the config even if it fails
// so make sure to only accept changes when it succeed
const backup = currentConfiguration.snapshot();
const impCandiates = new Set();
const impCandidates = new Set();
const problem = this._tryToAdd(
compilation,
currentConfiguration,
imp,
possibleInners,
impCandiates,
impCandidates,
failureCache
);
if (problem) {
@ -313,7 +313,7 @@ class ModuleConcatenationPlugin {
// roll back
currentConfiguration.rollback(backup);
} else {
for (const c of impCandiates) {
for (const c of impCandidates) {
candidates.add(c);
}
}
@ -341,7 +341,7 @@ class ModuleConcatenationPlugin {
`${concatConfigurations.length} concat configurations`
);
// HACK: Sort configurations by length and start with the longest one
// to get the biggers groups possible. Used modules are marked with usedModules
// to get the biggest groups possible. Used modules are marked with usedModules
// TODO: Allow to reuse existing configuration while trying to add dependencies.
// This would improve performance. O(n^2) -> O(n)
logger.time(`sort concat configurations`);
@ -548,7 +548,7 @@ class ModuleConcatenationPlugin {
}
}
// Add imports to possible candiates list
// Add imports to possible candidates list
for (const imp of this._getImports(compilation, module)) {
candidates.add(imp);
}

View File

@ -720,7 +720,7 @@ module.exports = class SplitChunksPlugin {
}
// Create key for maps
// When it has a name we use the name as key
// Elsewise we create the key from chunks and cache group key
// Otherwise we create the key from chunks and cache group key
// This automatically merges equal names
const key =
cacheGroup.key +

View File

@ -231,7 +231,7 @@ class RuleSetCompiler {
throw this.error(
path,
condition,
`Unexcepted ${typeof condition} when condition was expected`
`Unexpected ${typeof condition} when condition was expected`
);
}
@ -281,7 +281,7 @@ class RuleSetCompiler {
throw this.error(
`${path}.${key}`,
condition[key],
`Unexcepted property ${key} in condition`
`Unexpected property ${key} in condition`
);
}
}

View File

@ -281,7 +281,7 @@ class FileMiddleware extends SerializerMiddleware {
)
);
// As final step atomatically update the index file to have a consistent pack again
// As final step automatically update the index file to have a consistent pack again
await new Promise(resolve => {
this.fs.rename(filename + "_", filename, err => {
if (err) return reject(err);

View File

@ -435,7 +435,7 @@ class ObjectMiddleware extends SerializerMiddleware {
};
if (read() !== CURRENT_VERSION)
throw new Error("Version missmatch, serializer changed");
throw new Error("Version mismatch, serializer changed");
let currentPos = 0;
const referenceable = [];

View File

@ -659,7 +659,7 @@ const PREFERRED_ORDERS = {
"separator!",
"entries",
"separator!",
"filtredEntries"
"filteredEntries"
],
loggingEntry: ["message", "trace", "children"],
"chunkGroup.childAssets[]": ["type", "children"]

View File

@ -51,7 +51,7 @@ const flatten = (targetSet, toDeepMerge) => {
*/
class LazySet {
/**
* @param {Iterable<T>=} iterable init interable
* @param {Iterable<T>=} iterable init iterable
*/
constructor(iterable) {
/** @type {Set<T>} */

View File

@ -40,7 +40,7 @@ const intersect = sets => {
* Checks if a set is the subset of another set
* @template T
* @param {Set<T>} bigSet a Set which contains the original elements to compare against
* @param {Set<T>} smallSet the set whos elements might be contained inside of bigSet
* @param {Set<T>} smallSet the set whose elements might be contained inside of bigSet
* @returns {boolean} returns true if smallSet contains all elements inside of the bigSet
*/
const isSubset = (bigSet, smallSet) => {

View File

@ -13,15 +13,15 @@
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @template T @typedef {function(T, T): -1|0|1} Comparator */
/** @template TArg @template T @typedef {function(TArg, T, T): -1|0|1} RawParamizedComparator */
/** @template TArg @template T @typedef {function(TArg): Comparator<T>} ParamizedComparator */
/** @template TArg @template T @typedef {function(TArg, T, T): -1|0|1} RawParameterizedComparator */
/** @template TArg @template T @typedef {function(TArg): Comparator<T>} ParameterizedComparator */
/**
* @template T
* @param {RawParamizedComparator<any, T>} fn comparator with argument
* @returns {ParamizedComparator<any, T>} comparator
* @param {RawParameterizedComparator<any, T>} fn comparator with argument
* @returns {ParameterizedComparator<any, T>} comparator
*/
const createCachedParamizedComparator = fn => {
const createCachedParameterizedComparator = fn => {
/** @type {WeakMap<object, Comparator<T>>} */
const map = new WeakMap();
return arg => {
@ -67,8 +67,8 @@ exports.compareModulesByIdentifier = (a, b) => {
const compareModulesById = (chunkGraph, a, b) => {
return compareIds(chunkGraph.getModuleId(a), chunkGraph.getModuleId(b));
};
/** @type {ParamizedComparator<ChunkGraph, Module>} */
exports.compareModulesById = createCachedParamizedComparator(
/** @type {ParameterizedComparator<ChunkGraph, Module>} */
exports.compareModulesById = createCachedParameterizedComparator(
compareModulesById
);
@ -137,8 +137,8 @@ const compareModulesByPostOrderIndexOrIdentifier = (moduleGraph, a, b) => {
if (cmp !== 0) return cmp;
return compareIds(a.identifier(), b.identifier());
};
/** @type {ParamizedComparator<ModuleGraph, Module>} */
exports.compareModulesByPostOrderIndexOrIdentifier = createCachedParamizedComparator(
/** @type {ParameterizedComparator<ModuleGraph, Module>} */
exports.compareModulesByPostOrderIndexOrIdentifier = createCachedParameterizedComparator(
compareModulesByPostOrderIndexOrIdentifier
);
@ -156,8 +156,8 @@ const compareModulesByPreOrderIndexOrIdentifier = (moduleGraph, a, b) => {
if (cmp !== 0) return cmp;
return compareIds(a.identifier(), b.identifier());
};
/** @type {ParamizedComparator<ModuleGraph, Module>} */
exports.compareModulesByPreOrderIndexOrIdentifier = createCachedParamizedComparator(
/** @type {ParameterizedComparator<ModuleGraph, Module>} */
exports.compareModulesByPreOrderIndexOrIdentifier = createCachedParameterizedComparator(
compareModulesByPreOrderIndexOrIdentifier
);
@ -172,8 +172,8 @@ const compareModulesByIdOrIdentifier = (chunkGraph, a, b) => {
if (cmp !== 0) return cmp;
return compareIds(a.identifier(), b.identifier());
};
/** @type {ParamizedComparator<ChunkGraph, Module>} */
exports.compareModulesByIdOrIdentifier = createCachedParamizedComparator(
/** @type {ParameterizedComparator<ChunkGraph, Module>} */
exports.compareModulesByIdOrIdentifier = createCachedParameterizedComparator(
compareModulesByIdOrIdentifier
);
@ -186,8 +186,8 @@ exports.compareModulesByIdOrIdentifier = createCachedParamizedComparator(
const compareChunks = (chunkGraph, a, b) => {
return chunkGraph.compareChunks(a, b);
};
/** @type {ParamizedComparator<ChunkGraph, Chunk>} */
exports.compareChunks = createCachedParamizedComparator(compareChunks);
/** @type {ParameterizedComparator<ChunkGraph, Chunk>} */
exports.compareChunks = createCachedParameterizedComparator(compareChunks);
/**
* @param {string|number} a first id

View File

@ -5,7 +5,7 @@
"use strict";
const quotemeta = str => {
const quoteMeta = str => {
return str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
};
@ -93,7 +93,7 @@ const getCommonSuffix = items => {
const itemsToRegexp = itemsArr => {
if (itemsArr.length === 1) {
return quotemeta(itemsArr[0]);
return quoteMeta(itemsArr[0]);
}
const finishedItems = [];
@ -106,7 +106,7 @@ const itemsToRegexp = itemsArr => {
}
// special case for only single char items
if (countOfSingleCharItems === itemsArr.length) {
return `[${quotemeta(itemsArr.sort().join(""))}]`;
return `[${quoteMeta(itemsArr.sort().join(""))}]`;
}
const items = new Set(itemsArr.sort());
if (countOfSingleCharItems > 2) {
@ -117,7 +117,7 @@ const itemsToRegexp = itemsArr => {
items.delete(item);
}
}
finishedItems.push(`[${quotemeta(singleCharItems)}]`);
finishedItems.push(`[${quoteMeta(singleCharItems)}]`);
}
// special case for 2 items with common prefix/suffix
@ -125,9 +125,9 @@ const itemsToRegexp = itemsArr => {
const prefix = getCommonPrefix(itemsArr);
const suffix = getCommonSuffix(itemsArr);
if (prefix.length > 0 || suffix.length > 0) {
return `${quotemeta(prefix)}${itemsToRegexp(
return `${quoteMeta(prefix)}${itemsToRegexp(
itemsArr.map(i => i.slice(prefix.length, -suffix.length || undefined))
)}${quotemeta(suffix)}`;
)}${quoteMeta(suffix)}`;
}
}
@ -137,7 +137,7 @@ const itemsToRegexp = itemsArr => {
const a = it.next().value;
const b = it.next().value;
if (a.length > 0 && b.length > 0 && a.slice(-1) === b.slice(-1)) {
return `${itemsToRegexp([a.slice(0, -1), b.slice(0, -1)])}${quotemeta(
return `${itemsToRegexp([a.slice(0, -1), b.slice(0, -1)])}${quoteMeta(
a.slice(-1)
)}`;
}
@ -156,7 +156,7 @@ const itemsToRegexp = itemsArr => {
for (const prefixedItems of prefixed) {
const prefix = getCommonPrefix(prefixedItems);
finishedItems.push(
`${quotemeta(prefix)}${itemsToRegexp(
`${quoteMeta(prefix)}${itemsToRegexp(
prefixedItems.map(i => i.slice(prefix.length))
)}`
);
@ -177,13 +177,13 @@ const itemsToRegexp = itemsArr => {
finishedItems.push(
`${itemsToRegexp(
suffixedItems.map(i => i.slice(0, -suffix.length))
)}${quotemeta(suffix)}`
)}${quoteMeta(suffix)}`
);
}
// TODO further optimize regexp, i. e.
// use ranges: (1|2|3|4|a) => [1-4a]
const conditional = finishedItems.concat(Array.from(items, quotemeta));
const conditional = finishedItems.concat(Array.from(items, quoteMeta));
if (conditional.length === 1) return conditional[0];
return `(${conditional.join("|")})`;
};

View File

@ -271,7 +271,7 @@ module.exports = ({ maxSize, minSize, items, getSize, getKey }) => {
const problemTypes = getToSmallTypes(initialGroup.size, minSize);
if (problemTypes.size > 0) {
// We hit an edgecase where the working set is already smaller than minSize
// We hit an edge case where the working set is already smaller than minSize
// We merge problematic nodes with the smallest result node to keep minSize intact
const problemNodes = initialGroup.popNodes(
n => getNumberOfMatchingSizeTypes(n.size, problemTypes) > 0
@ -364,21 +364,21 @@ module.exports = ({ maxSize, minSize, items, getSize, getKey }) => {
// and queue them up
const rightNodes = [group.nodes[right + 1]];
/** @type {number[]} */
const rightSimilaries = [];
const rightSimilarities = [];
for (let i = right + 2; i < group.nodes.length; i++) {
rightSimilaries.push(group.similarities[i - 1]);
rightSimilarities.push(group.similarities[i - 1]);
rightNodes.push(group.nodes[i]);
}
queue.push(new Group(rightNodes, rightSimilaries));
queue.push(new Group(rightNodes, rightSimilarities));
const leftNodes = [group.nodes[0]];
/** @type {number[]} */
const leftSimilaries = [];
const leftSimilarities = [];
for (let i = 1; i < left; i++) {
leftSimilaries.push(group.similarities[i - 1]);
leftSimilarities.push(group.similarities[i - 1]);
leftNodes.push(group.nodes[i]);
}
queue.push(new Group(leftNodes, leftSimilaries));
queue.push(new Group(leftNodes, leftSimilarities));
}
}
}

View File

@ -7,7 +7,7 @@
const path = require("path");
const WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/;
const SEGEMENTS_SPLIT_REGEXP = /([|!])/;
const SEGMENTS_SPLIT_REGEXP = /([|!])/;
const WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g;
/**
@ -207,7 +207,7 @@ const makeCacheable = fn => {
*/
const _makePathsRelative = (context, identifier) => {
return identifier
.split(SEGEMENTS_SPLIT_REGEXP)
.split(SEGMENTS_SPLIT_REGEXP)
.map(str => absoluteToRequest(context, str))
.join("");
};

View File

@ -7,6 +7,7 @@
const validate = require("schema-utils");
/* cSpell:disable */
const DID_YOU_MEAN = {
rules: "module.rules",
loaders: "module.rules or module.rules.*.use",
@ -31,6 +32,7 @@ const DID_YOU_MEAN = {
automaticNamePrefix:
"optimization.splitChunks.[cacheGroups.*].idHint (BREAKING CHANGE since webpack 5)"
};
/* cSpell:enable */
const validateSchema = (schema, options) => {
validate(schema, options, {

View File

@ -236,7 +236,7 @@ class WasmChunkLoadingRuntimeModule extends RuntimeModule {
"var installedWasmModules = {};",
"",
// This function is used to delay reading the installed wasm module promises
// by a microtask. Sorting them doesn't help because there are egdecases where
// by a microtask. Sorting them doesn't help because there are edge cases where
// sorting is not possible (modules splitted into different chunks).
// So we not even trying and solve this by a microtask delay.
"function promiseResolve() { return Promise.resolve(); }",

View File

@ -203,7 +203,7 @@ const rewriteImportedGlobals = state => bin => {
if (init.id === "get_global") {
node.globalType.mutability = "var";
const initialGlobalidx = init.args[0];
const initialGlobalIdx = init.args[0];
node.init = [
createDefaultInitForGlobal(node.globalType),
@ -216,7 +216,7 @@ const rewriteImportedGlobals = state => bin => {
* They have the same indices as the init params, so use the
* same index.
*/
t.instruction("get_local", [initialGlobalidx]),
t.instruction("get_local", [initialGlobalIdx]),
t.instruction("set_global", [t.indexLiteral(newGlobals.length)])
);
}

View File

@ -95,7 +95,7 @@ module.exports = class WebAssemblyInInitialChunkError extends WebpackError {
);
const message = `WebAssembly module is included in initial chunk.
This is not allowed, because WebAssembly download and compilation must happen asynchronous.
Add an async splitpoint (i. e. import()) somewhere between your entrypoint and the WebAssembly module:
Add an async split point (i. e. import()) somewhere between your entrypoint and the WebAssembly module:
${moduleChains.map(s => `* ${s}`).join("\n")}`;
super(message);

View File

@ -99,10 +99,10 @@ class WebAssemblyParser extends Parser {
const descriptor = node.descr;
if (descriptor.exportType === "Func") {
const funcidx = descriptor.id.value;
const funcIdx = descriptor.id.value;
/** @type {t.FuncSignature} */
const funcSignature = moduleContext.getFunction(funcidx);
const funcSignature = moduleContext.getFunction(funcIdx);
const incompatibleType = getJsIncompatibleTypeOfFuncSignature(
funcSignature
@ -160,7 +160,7 @@ class WebAssemblyParser extends Parser {
} else if (t.isFuncImportDescr(node.descr) === true) {
const incompatibleType = getJsIncompatibleType(node.descr.signature);
if (incompatibleType) {
onlyDirectImport = `Non-JS-compatible Func Sigurature (${incompatibleType})`;
onlyDirectImport = `Non-JS-compatible Func Signature (${incompatibleType})`;
}
} else if (t.isGlobalType(node.descr) === true) {
const type = node.descr.valtype;

View File

@ -39,6 +39,7 @@
"coffee-loader": "^0.9.0",
"coffeescript": "^2.3.2",
"coveralls": "^3.0.2",
"cspell": "^4.0.55",
"css-loader": "^3.2.0",
"es6-promise-polyfill": "^1.1.1",
"eslint": "^6.1.0",
@ -129,9 +130,10 @@
"type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
"pretest": "yarn lint",
"prelint": "yarn setup",
"lint": "yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint",
"lint": "yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint && yarn spellcheck",
"code-lint": "eslint . --ext '.js' --cache",
"type-lint": "tsc --pretty",
"spellcheck": "cspell \"{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}\" \"*.md\"",
"special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/format-file-header && node tooling/compile-to-definitions",
"special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/format-file-header --write && node tooling/compile-to-definitions --write",
"fix": "yarn code-lint --fix && yarn special-lint-fix",
@ -154,6 +156,9 @@
"lint-staged": {
"*.js|{lib,setup,bin,hot,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}": [
"eslint --cache"
],
"*.md|{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}": [
"cspell"
]
},
"jest": {

View File

@ -386,7 +386,7 @@
]
},
"Experiments": {
"description": "Enables/Disables experiments (experiemental features with relax SemVer compatibility).",
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
"type": "object",
"additionalProperties": false,
"properties": {
@ -411,7 +411,7 @@
"type": "boolean"
},
"outputModule": {
"description": "Allow outputing javascript files as module source type.",
"description": "Allow output javascript files as module source type.",
"type": "boolean"
},
"syncWebAssembly": {
@ -687,7 +687,7 @@
"absolutePath": false
},
"Iife": {
"description": "Wrap javascript code into IIFEs to avoid leaking into global scope.",
"description": "Wrap javascript code into IIFE's to avoid leaking into global scope.",
"type": "boolean"
},
"InfrastructureLogging": {
@ -1916,7 +1916,7 @@
"enum": [false, "warning", "error"]
},
"maxAssetSize": {
"description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints.",
"description": "File size limit (in bytes) when exceeded, that webpack will provide performance hints.",
"type": "number"
},
"maxEntrypointSize": {
@ -2234,22 +2234,6 @@
}
]
},
"exclude": {
"description": "Exclude all modules matching any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditions"
}
]
},
"include": {
"description": "Exclude all modules matching not any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditions"
}
]
},
"not": {
"description": "Logical NOT.",
"anyOf": [
@ -2265,14 +2249,6 @@
"$ref": "#/definitions/RuleSetConditions"
}
]
},
"test": {
"description": "Exclude all modules matching any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditions"
}
]
}
}
}
@ -2308,22 +2284,6 @@
}
]
},
"exclude": {
"description": "Exclude all modules matching any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
},
"include": {
"description": "Exclude all modules matching not any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
},
"not": {
"description": "Logical NOT.",
"anyOf": [
@ -2339,14 +2299,6 @@
"$ref": "#/definitions/RuleSetConditionsAbsolute"
}
]
},
"test": {
"description": "Exclude all modules matching any of these conditions.",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
}
}
}

View File

@ -12,7 +12,7 @@
"type": "number"
},
"maxSize": {
"description": "Byte, maxsize of per file (Default: 50kiB).",
"description": "Byte, max size of per file (Default: 50kiB).",
"type": "number"
},
"minSize": {

View File

@ -73,7 +73,7 @@ function exec(command, args, description) {
});
cp.on("exit", exitCode => {
if (exitCode) {
reject(`${description} failed with exitcode ${exitCode}`);
reject(`${description} failed with exit code ${exitCode}`);
} else {
resolve();
}
@ -94,7 +94,7 @@ function execGetOutput(command, args, description) {
});
cp.on("exit", exitCode => {
if (exitCode) {
reject(`${description} failed with exitcode ${exitCode}`);
reject(`${description} failed with exit code ${exitCode}`);
} else {
resolve(
Buffer.concat(buffers)

View File

@ -15,10 +15,10 @@ describe("Dependencies", () => {
for (const dep of Object.keys(content)) {
describe(dep, () => {
const info = content[dep];
it("should resolve to a npm package", () => {
it("should resolve to an npm package", () => {
expect(info.resolved).toMatch(/^https:\/\/registry\.yarnpkg\.com\//);
});
it("should have a integrity hash", () => {
it("should have an integrity hash", () => {
expect(info.integrity).toMatch(/^(sha1|sha512)-/);
});
});

View File

@ -48,9 +48,9 @@ Stats cases are similar to configCases except specifically focusing on the `expe
By default, the "expected" outcome is a pain to write by hand so instead when statsCases are run, runner is checking output using jest's awesome snapshot functionality.
Basically you don't need to write any expected behaviors your self. The assumption is that the stats output from your test code is what you expect.
Basically you don't need to write any expected behaviors yourself. The assumption is that the stats output from your test code is what you expect.
Please follow the approach described bellow:
Please follow the approach described below:
* write your test code in `statsCases/` folder by creating a separate folder for it, for example `statsCases/some-file-import-stats/index.js`

View File

@ -2492,11 +2492,11 @@ LOG from webpack.buildChunkGraph
<t> visitModules: visiting: Xms
<t> visitModules: calculating available modules: Xms
<t> visitModules: merging available modules: Xms
<t> visitModules: check modules for revist: Xms
<t> visitModules: check modules for revisit: Xms
<t> visitModules: visiting: Xms
<t> visitModules: calculating available modules: Xms
<t> visitModules: merging available modules: Xms
<t> visitModules: check modules for revist: Xms
<t> visitModules: check modules for revisit: Xms
<t> visitModules: visiting: Xms
<t> visitModules: Xms
<t> connectChunkGroups: Xms
@ -3575,12 +3575,12 @@ Child switched:
WARNING in SplitChunksPlugin
Cache group defaultVendors
Configured minSize (1000 bytes) is bigger than maxSize (100 bytes).
This seem to be a invalid optimiziation.splitChunks configuration.
This seem to be a invalid optimization.splitChunks configuration.
WARNING in SplitChunksPlugin
Fallback cache group
Configured minSize (1000 bytes) is bigger than maxSize (100 bytes).
This seem to be a invalid optimiziation.splitChunks configuration.
This seem to be a invalid optimization.splitChunks configuration.
Child zero-min:
Entrypoint main = zero-min-869.js zero-min-410.js zero-min-main-10f51d07.js zero-min-main-3c98d7c3.js zero-min-main-6bb16544.js zero-min-main-1df31ce3.js zero-min-main-2f7dcf2e.js zero-min-main-e7c5ace7.js zero-min-main-5cfff2c6.js zero-min-main-1443e336.js zero-min-main-77a8c116.js zero-min-main-89a43a0f.js zero-min-main-12217e1d.js

View File

@ -11,7 +11,7 @@ const style = {
};
// When --write is set, files will be written in place
// Elsewise it only prints outdated files
// Otherwise it only prints outdated files
const doWrite = process.argv.includes("--write");
const makeSchemas = () => {

View File

@ -2,7 +2,7 @@ const path = require("path");
const fs = require("fs");
// When --write is set, files will be written in place
// Elsewise it only prints outdated files
// Otherwise it only prints outdated files
const doWrite = process.argv.includes("--write");
const allFiles = new Set();

View File

@ -7,7 +7,7 @@ const schemasDir = path.resolve(__dirname, "../schemas");
const baseDefs = new Map(Object.entries(baseSchema.definitions));
// When --write is set, files will be written in place
// Elsewise it only prints outdated files
// Otherwise it only prints outdated files
const doWrite = process.argv.includes("--write");
const sortObjectAlphabetically = obj => {

View File

@ -4,11 +4,11 @@ const ts = require("typescript");
const program = require("./typescript-program");
// When --override is set, base jsdoc will override sub class jsdoc
// Elsewise on a conflict it will create a merge conflict in the file
// Otherwise on a conflict it will create a merge conflict in the file
const override = process.argv.includes("--override");
// When --write is set, files will be written in place
// Elsewise it only prints outdated files
// Otherwise it only prints outdated files
const doWrite = process.argv.includes("--write");
const typeChecker = program.getTypeChecker();

View File

@ -1,4 +1,4 @@
// loosly based on https://github.com/plantain-00/type-coverage
// loosely based on https://github.com/plantain-00/type-coverage
const path = require("path");
const fs = require("fs");

405
yarn.lock
View File

@ -415,6 +415,11 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.42.tgz#8d0c1f480339efedb3e46070e22dd63e0430dd11"
integrity sha512-K1DPVvnBCPxzD+G51/cxVIoc2X8uUVl1zpJeE6iKcgHMj4+tbat5Xu4TjV7v2QSDbIeAfLi2hIk+u2+s0MlpUQ==
"@types/is-glob@^4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@types/is-glob/-/is-glob-4.0.1.tgz#a93eec1714172c8eb3225a1cc5eb88c2477b7d00"
integrity sha512-k3RS5HyBPu4h+5hTmIEfPB2rl5P3LnGdQEZrV2b9OWTJVtsUQ2VBcedqYKGqxvZqle5UALUXdSfVA8nf3HfyWQ==
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff"
@ -440,7 +445,19 @@
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.3.tgz#bdfd69d61e464dcc81b25159c270d75a73c1a636"
integrity sha512-Il2DtDVRGDcqjDtE+rF8iqg1CArehSK84HZJCT7AMITlyXRBpuPhqGLDQMowraqqu1coEaimg4ZOqggt6L6L+A==
"@types/node@>=4.5.0", "@types/node@^12.6.9":
"@types/mkdirp@^0.5.2":
version "0.5.2"
resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f"
integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg==
dependencies:
"@types/node" "*"
"@types/node@*":
version "13.9.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.1.tgz#96f606f8cd67fb018847d9b61e93997dabdefc72"
integrity sha512-E6M6N0blf/jiZx8Q3nb0vNaswQeEyn0XlupO+xN6DtJ6r6IT4nXrTry7zhIfYvFCl3/8Cu6WIysmUBKiqV0bqQ==
"@types/node@^12.6.9":
version "12.12.29"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.29.tgz#46275f028b4e463b9ac5fefc1d08bc66cc193f25"
integrity sha512-yo8Qz0ygADGFptISDj3pOC9wXfln/5pQaN/ysDIzOaAWXt73cNHmtEC8zSO2Y+kse/txmwIAJzkYZ5fooaS5DQ==
@ -1459,7 +1476,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
dependencies:
delayed-stream "~1.0.0"
commander@^2.20.0, commander@~2.20.3:
commander@^2.20.0, commander@^2.20.3, commander@~2.20.3:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
@ -1469,6 +1486,13 @@ commander@^4.0.1:
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
comment-json@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/comment-json/-/comment-json-1.1.3.tgz#6986c3330fee0c4c9e00c2398cd61afa5d8f239e"
integrity sha1-aYbDMw/uDEyeAMI5jNYa+l2PI54=
dependencies:
json-parser "^1.0.0"
comment-parser@^0.7.2:
version "0.7.2"
resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.2.tgz#baf6d99b42038678b81096f15b630d18142f4b8a"
@ -1494,6 +1518,18 @@ concat-map@0.0.1:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
configstore@^5.0.0, configstore@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96"
integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==
dependencies:
dot-prop "^5.2.0"
graceful-fs "^4.1.2"
make-dir "^3.0.0"
unique-string "^2.0.0"
write-file-atomic "^3.0.0"
xdg-basedir "^4.0.0"
console-control-strings@^1.0.0, console-control-strings@~1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
@ -1585,6 +1621,260 @@ cross-spawn@^7.0.0:
shebang-command "^2.0.0"
which "^2.0.1"
crypto-random-string@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==
cspell-dict-bash@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/cspell-dict-bash/-/cspell-dict-bash-1.0.3.tgz#e3cf0e2dbe56f18c68a16c3eb8037d418e88c3cd"
integrity sha512-pEGuoZXhgqhpmmvdEoNY/XYDrypI37y0Z09VgKTHEblzTHo++vLyd4Z8r1SY3kJ2eQejduz4IL7ZGXqgtEp2vw==
dependencies:
configstore "^5.0.0"
cspell-dict-companies@^1.0.20:
version "1.0.20"
resolved "https://registry.yarnpkg.com/cspell-dict-companies/-/cspell-dict-companies-1.0.20.tgz#75c76f6128cebdcfd8c89a0d62e37635f4a1cefe"
integrity sha512-LpDV5YMNV0vG8/LA4S8bbHNwaxI3gHTsCe0XZSGMRFlxO3bWWhi3Il3KB3pdDArDaopTGZKCMXDQsYFy5WHhQA==
dependencies:
configstore "^5.0.0"
cspell-dict-cpp@^1.1.26:
version "1.1.26"
resolved "https://registry.yarnpkg.com/cspell-dict-cpp/-/cspell-dict-cpp-1.1.26.tgz#67e3f8d26ec2c49d305b086013935f0b0fade2e0"
integrity sha512-ywY7X6UzC5BC7fQhyRAwZHurl52GjwnY6D2wG57JJ/bcT5IsJOWpLAjHORtUH2AcCp6BSAKR6wxl6/bqSuKHJw==
dependencies:
configstore "^5.0.0"
cspell-dict-django@^1.0.15:
version "1.0.15"
resolved "https://registry.yarnpkg.com/cspell-dict-django/-/cspell-dict-django-1.0.15.tgz#a0faec617cab280bd9ef942d1b2a6a5634e5c143"
integrity sha512-heppo6ZEGgv+cVPDLr24miG8xIn3E5SEGFBGHyNLyGqt8sHzeG3eNKhjKOJCC0hG/fq0ZECbE5q4691LvH24/Q==
dependencies:
configstore "^5.0.0"
cspell-dict-dotnet@^1.0.14:
version "1.0.14"
resolved "https://registry.yarnpkg.com/cspell-dict-dotnet/-/cspell-dict-dotnet-1.0.14.tgz#780c3143d340e3211be27df7cfd2d9d1f82b24c5"
integrity sha512-gTuh94tNAVMS4XmVCK2AsFgKp2mXBk2b8+f2GLCw2K8HY6QUHlvOJg051JJrZABRW/lAoquKZuqssSo9B1mgng==
dependencies:
configstore "^5.0.0"
cspell-dict-elixir@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/cspell-dict-elixir/-/cspell-dict-elixir-1.0.13.tgz#f3d08b27d2ee2a25fcae5050820d5680028e95d5"
integrity sha512-KWDO4NeV3QuMlZxSWpN0sPiFN4GE5AzlDi75eSKRvq/f1+pxgxgXQ5zLNPnDbr2EOSJBV34paZwI+7PvCiTTgA==
dependencies:
configstore "^5.0.0"
cspell-dict-en-gb@^1.1.16:
version "1.1.16"
resolved "https://registry.yarnpkg.com/cspell-dict-en-gb/-/cspell-dict-en-gb-1.1.16.tgz#75155e43c21e972ac2f60117b69fd53b5701335f"
integrity sha512-PBzHF40fVj+6Adm3dV3/uhkE2Ptu8W+WJ28socBDDpEfedFMwnC0rpxvAgmKJlLc0OYsn07/yzRnt9srisNrLg==
dependencies:
configstore "^5.0.0"
cspell-dict-en_us@^1.2.25:
version "1.2.25"
resolved "https://registry.yarnpkg.com/cspell-dict-en_us/-/cspell-dict-en_us-1.2.25.tgz#68803f4e12ba928b2d13e009e9a425458c8f33f9"
integrity sha512-owr04YQAO86wMR0nSup8d7Ogkm23vIOoQsPtIMFou1OA2XLUu13Xhla/Cs+qFzopakpcblvRuMSel0RomkAo7g==
dependencies:
configstore "^5.0.0"
cspell-dict-fonts@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/cspell-dict-fonts/-/cspell-dict-fonts-1.0.5.tgz#df96979e07d68cd186fe20eae0113e939d880c4f"
integrity sha512-R9A/MVDzqEQbwXaZhmNJ7bSzzkH5YSJ5UDr3wDRk7FXzNNcuJ4J9WRbkDjCDnoVfg0kCx0FeEp0fme+PbLTeng==
dependencies:
configstore "^5.0.0"
cspell-dict-fullstack@^1.0.22:
version "1.0.22"
resolved "https://registry.yarnpkg.com/cspell-dict-fullstack/-/cspell-dict-fullstack-1.0.22.tgz#54122342ff408082f904c6c20e3facb36df0762c"
integrity sha512-k8Op1ltkgKnMTTo/kgkywE0htwi+3EtYrPPWk+mD9o3IFgC6yLKA89Tkrd0kEEPR3qJvC4gQJmGJns6Y25v0Zg==
dependencies:
configstore "^5.0.0"
cspell-dict-golang@^1.1.14:
version "1.1.14"
resolved "https://registry.yarnpkg.com/cspell-dict-golang/-/cspell-dict-golang-1.1.14.tgz#5567d823a3e58b8f4c783bea185e95580008d47e"
integrity sha512-V9TQQjoTgdLTpLNczEjoF+BO+CkdmuZlD6J71SCT8sczSP0FLz4QkL1MpqiL0lhdnbtASsjs+oCF53Y+dWdh9g==
dependencies:
configstore "^5.0.0"
cspell-dict-haskell@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/cspell-dict-haskell/-/cspell-dict-haskell-1.0.4.tgz#98a3a00fb72d39f3b94aa019fac7ed86ab73dbd8"
integrity sha512-Wy5EE446icPbsi8bLqSCOtxS5Z6QDLGNBvz6Nh+yvuLf7Nb8mU6NQmfSYH/yMfJoVGa5bpcmv8pQtJV4I2E5Tg==
dependencies:
configstore "^5.0.0"
cspell-dict-html-symbol-entities@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/cspell-dict-html-symbol-entities/-/cspell-dict-html-symbol-entities-1.0.13.tgz#41b770fa08f82b20f9e3c7f234a320bbb1dee851"
integrity sha512-u8BARt4r5rdUee7Yw6ejsD69WLib9l+pyBr4UUIZovhCUccddm2LkS9GDJUqWtCf/frZpoTnmpuW/NPWVVG6pQ==
dependencies:
configstore "^5.0.0"
cspell-dict-java@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/cspell-dict-java/-/cspell-dict-java-1.0.12.tgz#d0220153984a0ccf6bbd69617f324ab11ce4a3fe"
integrity sha512-9pg5IrCEZGlWLgv8qGjxzzca19egfBYrbnuiWhJNLbBGBOTWrwYjFqbLQtMJReXUtWikWLY0KCzRZlCGusr7bw==
dependencies:
configstore "^5.0.0"
cspell-dict-latex@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/cspell-dict-latex/-/cspell-dict-latex-1.0.13.tgz#cdbbc2ebda7b82d44a3574d53b6f5b9a6d0644bb"
integrity sha512-UZqGJQ82mkzseqdF7kWXIrA07VD91W7rWx16DCThDBMohOsFdvCymUUgr0pM90FuqmldSiD+Gi1FayDSyPdNtQ==
dependencies:
configstore "^5.0.0"
cspell-dict-lorem-ipsum@^1.0.10:
version "1.0.10"
resolved "https://registry.yarnpkg.com/cspell-dict-lorem-ipsum/-/cspell-dict-lorem-ipsum-1.0.10.tgz#3828f43b4df35b258d5d31e4e539c2f6d3f3ce14"
integrity sha512-UlboQ3xH+D3l+hemLO4J5yz8EM60SH91f1dJIy2s94AeePZXtwYh1hTFM5dEsXI2CAQkfTu3ZdPWflLsInPfrA==
dependencies:
configstore "^5.0.0"
cspell-dict-php@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/cspell-dict-php/-/cspell-dict-php-1.0.13.tgz#83cdab21e52d036303b321bf9bca27a9820661a6"
integrity sha512-RP5XST+hWEqWxlLISS3sXxsQa2YXOWx8X5LcxQHvEGdb1hMNypXxw9V53th7S+hfUTPKJrbUIzckYZp4j8TS4A==
dependencies:
configstore "^5.0.0"
cspell-dict-powershell@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/cspell-dict-powershell/-/cspell-dict-powershell-1.0.6.tgz#2cd32028fb2c7894f4eb7ff202eeec02a8138825"
integrity sha512-rwxt/fG3Nr7tQaV7e38ilz8qWfXrf5Ie+MQC6Mw/ddjT4wLOkGvruUqtJA/USoDE9PFG12KoarFsWlVXv/nwPA==
dependencies:
configstore "^5.0.0"
cspell-dict-python@^1.0.20:
version "1.0.20"
resolved "https://registry.yarnpkg.com/cspell-dict-python/-/cspell-dict-python-1.0.20.tgz#39509b4cbaf5cbe9b5ceab9440eeeb42c04f6323"
integrity sha512-BiV8LnH9YNxvkUbVwTyDpZhOuRjPr8cE+nxpuPDbCHmVJmlLsDlg8MXTcJH8I+OFjoz6YdBX6yqK1bi55Aioow==
dependencies:
configstore "^5.0.0"
cspell-dict-ruby@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/cspell-dict-ruby/-/cspell-dict-ruby-1.0.3.tgz#bbda30306af9c9274b8848005d9f73f1d3513651"
integrity sha512-uFxUyGj9SRASfnd75lcpkoNvMYHNWmqkFmS9ZruL61M1RmFx9eekuEY74nK11qsb/E4o6yPtGAQH4SrotF9SwQ==
dependencies:
configstore "^5.0.0"
cspell-dict-rust@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/cspell-dict-rust/-/cspell-dict-rust-1.0.12.tgz#323eedd0137d8019df08f02d9c1956d9778d0baa"
integrity sha512-bMt70/aQL2OcadZRtWfPIF/mHWX9JNOGq92UUU2ka+9C3OPBP/TuyYiHhUWt67y/CoIyEQ7/5uAtjX8paLf14w==
dependencies:
configstore "^5.0.0"
cspell-dict-scala@^1.0.11:
version "1.0.11"
resolved "https://registry.yarnpkg.com/cspell-dict-scala/-/cspell-dict-scala-1.0.11.tgz#42533b2c850fe6eb64946708fd19e66824b842a7"
integrity sha512-bmAQjapvcceJaiwGTkBd9n2L9GaqpmFDKe5S19WQDsWqjFiDwQ+r47td3TU7yWjOLPqp72h9X/XGzDJFvQEPcg==
dependencies:
configstore "^5.0.0"
cspell-dict-software-terms@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/cspell-dict-software-terms/-/cspell-dict-software-terms-1.0.6.tgz#ecbf6d1f0c8b3f987e69a60a77fca07ad5d7225c"
integrity sha512-W9ugGS5dNMWDV27gY5qC+RlckP340q5vzrf6xTzlJ9ikh4c3PymAHne23FH7WwjMbFW7eSbQFddIcRgjXcxbdA==
dependencies:
configstore "^5.0.0"
cspell-dict-typescript@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/cspell-dict-typescript/-/cspell-dict-typescript-1.0.3.tgz#89d540fdca9c5e22416b42084f737ffe169eaf42"
integrity sha512-j6sVvLUuPCTw5Iqc1D1zB3mWJQTMNshEOmChJfz8vFeBMbu7oj61rLbnhnn2x8kXguKmWN5jhhKnsBIp++jRZA==
dependencies:
configstore "^5.0.0"
cspell-glob@^0.1.17:
version "0.1.17"
resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-0.1.17.tgz#e8dad6eedc23bc3e98175f2077df25e7e3212a8a"
integrity sha512-gAiKakWJbHay6cobcJnX1+XhNCFYqR7CJM5GPiEpRZ5RFXYR46fYbkVwTdg3sqbFLErJtghQj/0s5Xa0q9NJpQ==
dependencies:
micromatch "^4.0.2"
cspell-io@^4.0.20:
version "4.0.20"
resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-4.0.20.tgz#4aecc054852c712e96e075eb270dbbbc4482fca1"
integrity sha512-fomz1P308XgyyxaOEKdNbh82Ac4AKaz26p4JszV7YkJrGDsXMoByTQjVqdDloNN8FchogSEpLPeQoIg648exBA==
dependencies:
iconv-lite "^0.4.24"
iterable-to-stream "^1.0.1"
cspell-lib@^4.1.21:
version "4.1.21"
resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-4.1.21.tgz#7321652e5bb8d5a1b0a1372d42d125dc275f4161"
integrity sha512-mcbYQRO9GeLjUU3fTrJEwD17pF/t4YlgYoEqVQkLgR0kCQ5exMFlj8II4UQHgNevx8GMJGpqQ9+fM6ZhCYKIzQ==
dependencies:
comment-json "^1.1.3"
configstore "^5.0.1"
cspell-dict-bash "^1.0.3"
cspell-dict-companies "^1.0.20"
cspell-dict-cpp "^1.1.26"
cspell-dict-django "^1.0.15"
cspell-dict-dotnet "^1.0.14"
cspell-dict-elixir "^1.0.13"
cspell-dict-en-gb "^1.1.16"
cspell-dict-en_us "^1.2.25"
cspell-dict-fonts "^1.0.5"
cspell-dict-fullstack "^1.0.22"
cspell-dict-golang "^1.1.14"
cspell-dict-haskell "^1.0.4"
cspell-dict-html-symbol-entities "^1.0.13"
cspell-dict-java "^1.0.12"
cspell-dict-latex "^1.0.13"
cspell-dict-lorem-ipsum "^1.0.10"
cspell-dict-php "^1.0.13"
cspell-dict-powershell "^1.0.6"
cspell-dict-python "^1.0.20"
cspell-dict-ruby "^1.0.3"
cspell-dict-rust "^1.0.12"
cspell-dict-scala "^1.0.11"
cspell-dict-software-terms "^1.0.6"
cspell-dict-typescript "^1.0.3"
cspell-io "^4.0.20"
cspell-trie-lib "^4.1.8"
cspell-util-bundle "^4.0.9"
fs-extra "^8.1.0"
gensequence "^3.0.3"
vscode-uri "^2.1.1"
cspell-trie-lib@^4.1.8:
version "4.1.8"
resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-4.1.8.tgz#cc40c863c8c03920c61e5330c3acfcaf9871e40f"
integrity sha512-G0Jpybwxyl7rG3c4tzrROEVmiKAsyIjaDdnGxkzOFkl4tjcZeCh7GIVrqLyyk3VWslrWMVvmQi1/eLDccagepw==
dependencies:
gensequence "^3.0.3"
cspell-util-bundle@^4.0.9:
version "4.0.9"
resolved "https://registry.yarnpkg.com/cspell-util-bundle/-/cspell-util-bundle-4.0.9.tgz#9e6a7f3dcd4aef1b9c6743d33d09379cf94ecd08"
integrity sha512-+xhIGJAkPxD7aKl97S0E34B5dF+HSTSoEL6M2f6Y46tusFGc9VdhA/iIZQooZZx2RQy4WaHw/ABfsRfxtnFVLw==
cspell@^4.0.55:
version "4.0.55"
resolved "https://registry.yarnpkg.com/cspell/-/cspell-4.0.55.tgz#4295b88c9cb7b1bf7290027212913203be5f3f9d"
integrity sha512-LmBk2VNrBSXFPOpmhJalqYGdDF1x68H4wI3c7RDMRLfG/zOaFoZUEuJUYOC07tFXDosczXMu38Qt9cnEVZmrAA==
dependencies:
chalk "^2.4.2"
commander "^2.20.3"
comment-json "^1.1.3"
cspell-glob "^0.1.17"
cspell-lib "^4.1.21"
fs-extra "^8.1.0"
gensequence "^3.0.3"
get-stdin "^7.0.0"
glob "^7.1.6"
minimatch "^3.0.4"
css-loader@^3.2.0:
version "3.4.2"
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-3.4.2.tgz#d3fdb3358b43f233b78501c5ed7b1c6da6133202"
@ -1793,6 +2083,13 @@ domexception@^1.0.1:
dependencies:
webidl-conversions "^4.0.2"
dot-prop@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.2.0.tgz#c34ecc29556dc45f1f4c22697b6f4904e0cc4fcb"
integrity sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==
dependencies:
is-obj "^2.0.0"
ecc-jsbn@~0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"
@ -2087,7 +2384,7 @@ espree@^6.1.2:
acorn-jsx "^5.1.0"
eslint-visitor-keys "^1.1.0"
esprima@2.7.x, esprima@^2.7.1:
esprima@2.7.x, esprima@^2.7.0, esprima@^2.7.1:
version "2.7.3"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
integrity sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=
@ -2453,6 +2750,15 @@ fragment-cache@^0.2.1:
dependencies:
map-cache "^0.2.2"
fs-extra@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
dependencies:
graceful-fs "^4.2.0"
jsonfile "^4.0.0"
universalify "^0.1.0"
fs-minipass@^1.2.5:
version "1.2.7"
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7"
@ -2524,6 +2830,11 @@ gauge@~2.7.3:
strip-ansi "^3.0.1"
wide-align "^1.1.0"
gensequence@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/gensequence/-/gensequence-3.0.3.tgz#5e76326bb893147e80d6f2ae495c7e9a2795f7cc"
integrity sha512-KM4L8AfWAfjIvdnBhl7erj35iBNf75pP0+8Ww3BKssVEBv95Dqu40cG62kAyVXtuLplb96wh/GUr+GhM6YG9gQ==
gensync@^1.0.0-beta.1:
version "1.0.0-beta.1"
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269"
@ -2630,7 +2941,7 @@ globals@^12.1.0:
dependencies:
type-fest "^0.8.1"
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3:
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
@ -3071,6 +3382,11 @@ is-obj@^1.0.1:
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8=
is-obj@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
is-observable@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-observable/-/is-observable-1.1.0.tgz#b3e986c8f44de950867cab5403f5a3465005975e"
@ -3235,6 +3551,11 @@ istanbul@^0.4.5:
which "^1.1.1"
wordwrap "^1.0.0"
iterable-to-stream@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/iterable-to-stream/-/iterable-to-stream-1.0.1.tgz#37e86baacf6b1a0e9233dad4eb526d0423d08bf3"
integrity sha512-O62gD5ADMUGtJoOoM9U6LQ7i4byPXUNoHJ6mqsmkQJcom331ZJGDApWgDESWyBMEHEJRjtHozgIiTzYo9RU4UA==
jest-changed-files@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-25.1.0.tgz#73dae9a7d9949fdfa5c278438ce8f2ff3ec78131"
@ -3691,6 +4012,13 @@ json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2:
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==
json-parser@^1.0.0:
version "1.1.5"
resolved "https://registry.yarnpkg.com/json-parser/-/json-parser-1.1.5.tgz#e62ec5261d1a6a5fc20e812a320740c6d9005677"
integrity sha1-5i7FJh0aal/CDoEqMgdAxtkAVnc=
dependencies:
esprima "^2.7.0"
json-schema-ref-parser@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-6.1.0.tgz#30af34aeab5bee0431da805dac0eb21b574bf63d"
@ -3701,18 +4029,22 @@ json-schema-ref-parser@^6.1.0:
ono "^4.0.11"
json-schema-to-typescript@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/json-schema-to-typescript/-/json-schema-to-typescript-8.1.0.tgz#c92174a3f70d5eb68646c1ab16cb6bcba6d1cbee"
integrity sha512-SGGX82OofMggPDUIO6+GYc14g8bew4ETtEif9G8I9SSXYFVHPSfoNE0AaNcfTFwI/xHSepHRse4aMurAtc8+mw==
version "8.2.0"
resolved "https://registry.yarnpkg.com/json-schema-to-typescript/-/json-schema-to-typescript-8.2.0.tgz#a859f836df89db63c5f17a6c9c2f1dea93e8dd9b"
integrity sha512-yvi4v9oLeJzJCktt+Zta6kOgEu8R93gNMZUJYo83aAPxoG0qB+cXIxVg5xa6gmdNkyffjH9Ebw1rvyaJKIor5A==
dependencies:
"@types/is-glob" "^4.0.1"
"@types/json-schema" "^7.0.3"
"@types/node" ">=4.5.0"
"@types/mkdirp" "^0.5.2"
"@types/prettier" "^1.16.1"
cli-color "^1.4.0"
glob "^7.1.4"
is-glob "^4.0.1"
json-schema-ref-parser "^6.1.0"
json-stringify-safe "^5.0.1"
lodash "^4.17.11"
minimist "^1.2.0"
mkdirp "^0.5.1"
mz "^2.7.0"
prettier "^1.19.1"
stdin "0.0.1"
@ -3745,11 +4077,18 @@ json5@^1.0.1:
minimist "^1.2.0"
json5@^2.1.0, json5@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz#81b6cb04e9ba496f1c7005d07b4368a2638f90b6"
integrity sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==
version "2.1.2"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.2.tgz#43ef1f0af9835dd624751a6b7fa48874fb2d608e"
integrity sha512-MoUOQ4WdiN3yxhm7NEVJSJrieAo5hNSLQ5sj05OTRHPL9HOBy8u4Bu88jsC1jvqAdN+E1bJmsUcZH+1HQxliqQ==
dependencies:
minimist "^1.2.0"
minimist "^1.2.5"
jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
optionalDependencies:
graceful-fs "^4.1.6"
jsprim@^1.2.2:
version "1.4.1"
@ -4091,9 +4430,9 @@ map-visit@^1.0.0:
object-visit "^1.0.0"
memfs@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.1.1.tgz#3a23799a783102d40b13595cb25a7b39605bbcd0"
integrity sha512-A6QWLLH6HolvLeACaEc6WAAxU7c7iAvVgeyp1iDwzSIbwfGUjR4x9bAFUVq3YtSVFCYQAx4Nw2o4TEYAfH+lAg==
version "3.1.2"
resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.1.2.tgz#2bb51600dacec67ed35677b1185abb708b7d2ad6"
integrity sha512-YubKuE+RGSdpZcRq2Nih8HcHj3LrqndsDFNB9IFjrgwzdM4eq+fImlDMfNm/HdRhYRkLdUecHGIpdz+wyrqlDg==
dependencies:
fs-monkey "1.0.0"
@ -4250,10 +4589,10 @@ minimist@0.0.8:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
minimist@^1.1.1, minimist@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
minimist@~0.0.1:
version "0.0.10"
@ -5239,9 +5578,9 @@ react-is@^16.8.1, react-is@^16.8.4:
integrity sha512-INBT1QEgtcCCgvccr5/86CfD71fw9EPmDxgiJX4I2Ddr6ZsV6iFXsuby+qWJPtmNuMY0zByTsG4468P7nHuNWA==
react@^16.8.0:
version "16.13.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.13.0.tgz#d046eabcdf64e457bbeed1e792e235e1b9934cf7"
integrity sha512-TSavZz2iSLkq5/oiE7gnFzmURKZMltmi193rm5HEoUDAXpzT9Kzw6oNZnGoai/4+fUnm7FqS5dwgUL34TujcWQ==
version "16.13.1"
resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e"
integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
@ -6456,6 +6795,18 @@ unique-slug@^2.0.0:
dependencies:
imurmurhash "^0.1.4"
unique-string@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d"
integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==
dependencies:
crypto-random-string "^2.0.0"
universalify@^0.1.0:
version "0.1.2"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
unset-value@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
@ -6554,6 +6905,11 @@ void-elements@^2.0.1:
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
integrity sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=
vscode-uri@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.1.1.tgz#5aa1803391b6ebdd17d047f51365cf62c38f6e90"
integrity sha512-eY9jmGoEnVf8VE8xr5znSah7Qt1P/xsCdErz+g8HYZtJ7bZqKH5E3d+6oVNm1AC/c6IHUDokbmVXKOi4qPAC9A==
w3c-hr-time@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"
@ -6767,6 +7123,11 @@ ws@^7.0.0:
resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.1.tgz#03ed52423cd744084b2cf42ed197c8b65a936b8e"
integrity sha512-sucePNSafamSKoOqoNfBd8V0StlkzJKL2ZAhGQinCfNQ+oacw+Pk7lcdAElecBF2VkLNZRiIb5Oi1Q5lVUVt2A==
xdg-basedir@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13"
integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==
xml-name-validator@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"