Selaa lähdekoodia

删除无用包3

wangsy 11 kuukautta sitten
vanhempi
commit
52da9fdf5f
100 muutettua tiedostoa jossa 0 lisäystä ja 13960 poistoa
  1. 0 1561
      node_modules.bak/webpack-cli/CHANGELOG.md
  2. 0 20
      node_modules.bak/webpack-cli/LICENSE
  3. 0 112
      node_modules.bak/webpack-cli/README.md
  4. 0 63
      node_modules.bak/webpack-cli/bin/.eslintrc.js
  5. 0 366
      node_modules.bak/webpack-cli/bin/cli.js
  6. 0 504
      node_modules.bak/webpack-cli/bin/config/config-yargs.js
  7. 0 1989
      node_modules.bak/webpack-cli/bin/config/optionsSchema.json
  8. 0 20
      node_modules.bak/webpack-cli/bin/config/webpackConfigurationSchema.json
  9. 0 28
      node_modules.bak/webpack-cli/bin/utils/constants.js
  10. 0 562
      node_modules.bak/webpack-cli/bin/utils/convert-argv.js
  11. 0 33
      node_modules.bak/webpack-cli/bin/utils/errorHelpers.js
  12. 0 24
      node_modules.bak/webpack-cli/bin/utils/prepareOptions.js
  13. 0 142
      node_modules.bak/webpack-cli/bin/utils/prompt-command.js
  14. 0 21
      node_modules.bak/webpack-cli/bin/utils/validate-options.js
  15. 0 203
      node_modules.bak/webpack-cli/package.json
  16. 0 113
      node_modules.bak/webpack-dev-middleware/CHANGELOG.md
  17. 0 20
      node_modules.bak/webpack-dev-middleware/LICENSE
  18. 0 451
      node_modules.bak/webpack-dev-middleware/README.md
  19. 0 108
      node_modules.bak/webpack-dev-middleware/index.js
  20. 0 3
      node_modules.bak/webpack-dev-middleware/lib/DevMiddlewareError.js
  21. 0 106
      node_modules.bak/webpack-dev-middleware/lib/context.js
  22. 0 140
      node_modules.bak/webpack-dev-middleware/lib/fs.js
  23. 0 136
      node_modules.bak/webpack-dev-middleware/lib/middleware.js
  24. 0 32
      node_modules.bak/webpack-dev-middleware/lib/reporter.js
  25. 0 188
      node_modules.bak/webpack-dev-middleware/lib/util.js
  26. 0 108
      node_modules.bak/webpack-dev-middleware/package.json
  27. 0 374
      node_modules.bak/webpack-dev-server/CHANGELOG.md
  28. 0 20
      node_modules.bak/webpack-dev-server/LICENSE
  29. 0 163
      node_modules.bak/webpack-dev-server/README.md
  30. 0 191
      node_modules.bak/webpack-dev-server/bin/cli-flags.js
  31. 0 187
      node_modules.bak/webpack-dev-server/bin/options.js
  32. 0 167
      node_modules.bak/webpack-dev-server/bin/webpack-dev-server.js
  33. 0 25
      node_modules.bak/webpack-dev-server/client/clients/BaseClient.js
  34. 0 78
      node_modules.bak/webpack-dev-server/client/clients/SockJSClient.js
  35. 0 78
      node_modules.bak/webpack-dev-server/client/clients/WebsocketClient.js
  36. 0 1
      node_modules.bak/webpack-dev-server/client/index.bundle.js
  37. 0 176
      node_modules.bak/webpack-dev-server/client/index.js
  38. 0 25
      node_modules.bak/webpack-dev-server/client/live.bundle.js
  39. 0 1
      node_modules.bak/webpack-dev-server/client/live.html
  40. 0 120
      node_modules.bak/webpack-dev-server/client/overlay.js
  41. 0 52
      node_modules.bak/webpack-dev-server/client/socket.js
  42. 0 1
      node_modules.bak/webpack-dev-server/client/sockjs.bundle.js
  43. 0 88
      node_modules.bak/webpack-dev-server/client/utils/createSocketUrl.js
  44. 0 22
      node_modules.bak/webpack-dev-server/client/utils/getCurrentScriptSource.js
  45. 0 49
      node_modules.bak/webpack-dev-server/client/utils/log.js
  46. 0 55
      node_modules.bak/webpack-dev-server/client/utils/reloadApp.js
  47. 0 14
      node_modules.bak/webpack-dev-server/client/utils/sendMessage.js
  48. 0 1036
      node_modules.bak/webpack-dev-server/lib/Server.js
  49. 0 499
      node_modules.bak/webpack-dev-server/lib/options.json
  50. 0 9
      node_modules.bak/webpack-dev-server/lib/servers/BaseServer.js
  51. 0 74
      node_modules.bak/webpack-dev-server/lib/servers/SockJSServer.js
  52. 0 72
      node_modules.bak/webpack-dev-server/lib/servers/WebsocketServer.js
  53. 0 160
      node_modules.bak/webpack-dev-server/lib/utils/addEntries.js
  54. 0 22
      node_modules.bak/webpack-dev-server/lib/utils/colors.js
  55. 0 69
      node_modules.bak/webpack-dev-server/lib/utils/createCertificate.js
  56. 0 233
      node_modules.bak/webpack-dev-server/lib/utils/createConfig.js
  57. 0 29
      node_modules.bak/webpack-dev-server/lib/utils/createDomain.js
  58. 0 23
      node_modules.bak/webpack-dev-server/lib/utils/createLogger.js
  59. 0 3
      node_modules.bak/webpack-dev-server/lib/utils/defaultPort.js
  60. 0 7
      node_modules.bak/webpack-dev-server/lib/utils/defaultTo.js
  61. 0 39
      node_modules.bak/webpack-dev-server/lib/utils/findPort.js
  62. 0 45
      node_modules.bak/webpack-dev-server/lib/utils/getCertificate.js
  63. 0 37
      node_modules.bak/webpack-dev-server/lib/utils/getSocketClientPath.js
  64. 0 42
      node_modules.bak/webpack-dev-server/lib/utils/getSocketServerImplementation.js
  65. 0 10
      node_modules.bak/webpack-dev-server/lib/utils/getVersions.js
  66. 0 41
      node_modules.bak/webpack-dev-server/lib/utils/normalizeOptions.js
  67. 0 44
      node_modules.bak/webpack-dev-server/lib/utils/processOptions.js
  68. 0 98
      node_modules.bak/webpack-dev-server/lib/utils/routes.js
  69. 0 21
      node_modules.bak/webpack-dev-server/lib/utils/runBonjour.js
  70. 0 37
      node_modules.bak/webpack-dev-server/lib/utils/runOpen.js
  71. 0 21
      node_modules.bak/webpack-dev-server/lib/utils/setupExitSignals.js
  72. 0 61
      node_modules.bak/webpack-dev-server/lib/utils/status.js
  73. 0 13
      node_modules.bak/webpack-dev-server/lib/utils/tryParseInt.js
  74. 0 73
      node_modules.bak/webpack-dev-server/lib/utils/updateCompiler.js
  75. 0 182
      node_modules.bak/webpack-dev-server/package.json
  76. 0 0
      node_modules.bak/webpack-dev-server/ssl/.gitkeep
  77. 0 16
      node_modules.bak/webpack-log/CHANGELOG.md
  78. 0 21
      node_modules.bak/webpack-log/LICENSE
  79. 0 132
      node_modules.bak/webpack-log/README.md
  80. 0 72
      node_modules.bak/webpack-log/package.json
  81. 0 80
      node_modules.bak/webpack-log/src/index.js
  82. 0 91
      node_modules.bak/webpack-log/src/loglevel/LogLevel.js
  83. 0 140
      node_modules.bak/webpack-log/src/loglevel/MethodFactory.js
  84. 0 60
      node_modules.bak/webpack-log/src/loglevel/PrefixFactory.js
  85. 0 64
      node_modules.bak/webpack-log/src/loglevel/index.js
  86. 0 21
      node_modules.bak/webpack-sources/LICENSE
  87. 0 230
      node_modules.bak/webpack-sources/README.md
  88. 0 80
      node_modules.bak/webpack-sources/lib/CachedSource.js
  89. 0 91
      node_modules.bak/webpack-sources/lib/ConcatSource.js
  90. 0 49
      node_modules.bak/webpack-sources/lib/LineToLineMappedSource.js
  91. 0 70
      node_modules.bak/webpack-sources/lib/OriginalSource.js
  92. 0 95
      node_modules.bak/webpack-sources/lib/PrefixSource.js
  93. 0 38
      node_modules.bak/webpack-sources/lib/RawSource.js
  94. 0 330
      node_modules.bak/webpack-sources/lib/ReplaceSource.js
  95. 0 46
      node_modules.bak/webpack-sources/lib/Source.js
  96. 0 37
      node_modules.bak/webpack-sources/lib/SourceAndMapMixin.js
  97. 0 57
      node_modules.bak/webpack-sources/lib/SourceMapSource.js
  98. 0 185
      node_modules.bak/webpack-sources/lib/applySourceMap.js
  99. 0 15
      node_modules.bak/webpack-sources/lib/index.js
  100. 0 0
      node_modules.bak/webpack-sources/package.json

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1561
node_modules.bak/webpack-cli/CHANGELOG.md


+ 0 - 20
node_modules.bak/webpack-cli/LICENSE

@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0 - 112
node_modules.bak/webpack-cli/README.md

@@ -1,112 +0,0 @@
-<div align="center">
-    <a href="https://github.com/webpack/webpack-cli">
-        <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
-    </a>
-</div>
-
-<h1 align="center">webpack CLI</h1>
-
-<p align="center">
-  The official CLI of webpack
-</p>
-<br>
-
-[![npm][npm]][npm-url]
-[![Build Status][build-status]][build-status-url]
-[![Build2 Status][build-status-azure]][build-status-azure-url]
-[![deps][deps]][deps-url]
-[![Code Climate][maintainability]][maintainability-url]
-[![chat on gitter][chat]][chat-url]
-[![Install Size][size]][size-url]
-[![Downloads][downloads]][downloads-url]
-[![lerna][lerna]][lerna-url]
-[![GitHub contributors][contributors]][contributors-url]
-
--   [About](#about)
-    -   [How to install](#how-to-install)
--   [Packages](#packages)
-    -   [Commands](#commands)
-    -   [Utilities](#utilities)
--   [Getting started](#getting-started)
--   [webpack CLI Scaffolds](#webpack-cli-scaffolds)
--   [Contributing and Internal Documentation](#contributing-and-internal-documentation)
--   [Open Collective](#open-collective)
-
-## About
-
-webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration.
-
-### How to install
-
-When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed!
-
-Otherwise `npm install --save-dev webpack-cli` or `yarn add webpack-cli --dev` will install it.
-
-## Packages
-
-We organize webpack CLI as a multi-package repository using [lerna](https://github.com/lerna/lerna). Every command has a dedicated subfolder in the `packages` Folder. Here's a summary of commands provided by the CLI.
-
-### Commands
-
-Supporting developers is an important task for webpack CLI. Thus, webpack CLI provides different commands for many common tasks.
-
--   [`webpack-cli init`](./packages/init/README.md#webpack-cli-init) - Create a new webpack configuration.
--   [`webpack-cli info`](./packages/info/README.md#webpack-cli-info) - Returns information related to the local environment.
--   [`webpack-cli migrate`](./packages/migrate/README.md#webpack-cli-migrate) - Migrate project from one version to another.
--   [`webpack-cli generate-plugin`](./packages/generate-plugin/README.md#webpack-cli-generate-plugin) - Initiate new plugin project.
--   [`webpack-cli generate-loader`](./packages/generate-loader/README.md#webpack-cli-generate-loader) - Initiate new loader project.
--   [`webpack-cli serve`](./packages/serve/README.md#webpack-cli-serve) - Use webpack with a development server that provides live reloading.
-
-### Utilities
-
-The project also has several utility packages which are used by other commands
-
--   [`utils`](./packages/utils/README.md) - Several utilities used across webpack-cli.
--   [`generators`](./packages/generators/README.md) - Contains all webpack-cli related yeoman generators.
--   [`webpack-scaffold`](./packages/webpack-scaffold/README.md) - Utilities to create a webpack scaffold.
-
-## Getting started
-
-When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed! Otherwise, you would need to install webpack CLI and the packages you want to use. If we want to use the `init` command to create a new `webpack.config.js` configuration file:
-
-```sh
-npm i webpack-cli @webpack-cli/init
-npx webpack-cli init
-```
-
-You will be prompted for some questions about what how you want to generate your config file when running the `init` command so webpack CLI can provide the best fitting configuration.
-
-## webpack CLI Scaffolds
-
-With v3 of webpack CLI, we introduced scaffolding as an integral part of the CLI. Our goal is to simplify the creation of webpack configurations for different purposes. Additionally, sharing such solutions with the community is beneficial and with webpack, we want to allow this. We provide `webpack-scaffold` as a utility suite for creating these scaffolds. It contains functions that could be of use for creating a scaffold yourself.
-
-You can read more about [Scaffolding](https://webpack.js.org/guides/scaffolding), learn [How to compose a webpack-scaffold?](https://webpack.js.org/contribute/writing-a-scaffold) or generate one with [webpack-scaffold-starter](https://github.com/rishabh3112/webpack-scaffold-starter).
-
-## Contributing and Internal Documentation
-
-The webpack family welcomes any contributor, small or big. We are happy to elaborate, guide you through the source code and find issues you might want to work on! To get started have a look at our [documentation on contributing](./.github/CONTRIBUTING.md).
-
-## Open Collective
-
-If you like **webpack**, please consider donating to our [Open Collective](https://opencollective.com/webpack) to help us maintain it.
-
-[build-status]: https://travis-ci.org/webpack/webpack-cli.svg
-[build-status-url]: https://travis-ci.org/webpack/webpack-cli
-[build-status-azure]: https://dev.azure.com/webpack/webpack/_apis/build/status/webpack.webpack-cli
-[build-status-azure-url]: https://dev.azure.com/webpack/webpack/_build/latest?definitionId=4
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-[contributors]: https://img.shields.io/github/contributors/webpack/webpack-cli.svg
-[contributors-url]: https://github.com/webpack/webpack-cli/graphs/contributors
-[deps]: https://img.shields.io/david/webpack/webpack.svg
-[deps-url]: https://david-dm.org/webpack/webpack-cli
-[downloads]: https://img.shields.io/npm/dw/webpack-cli.svg
-[downloads-url]: https://www.npmjs.com/package/webpack-cli
-[lerna]: https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg
-[lerna-url]: http://www.lernajs.io/
-[npm]: https://img.shields.io/npm/v/webpack-cli.svg
-[npm-url]: https://www.npmjs.com/package/webpack-cli
-[maintainability]: https://codeclimate.com/github/webpack/webpack-cli/badges/gpa.svg
-[maintainability-url]: https://codeclimate.com/github/webpack/webpack-cli
-[size]: https://packagephobia.now.sh/badge?p=webpack-cli
-[size-url]: https://packagephobia.now.sh/result?p=webpack-cli

+ 0 - 63
node_modules.bak/webpack-cli/bin/.eslintrc.js

@@ -1,63 +0,0 @@
-module.exports = {
-	root: true,
-	plugins: ["node"],
-	extends: ["../.eslintrc.js", "plugin:node/recommended"],
-	env: {
-		node: true,
-		es6: true,
-		jest: true
-	},
-	parserOptions: { ecmaVersion: 2017, sourceType: "module" },
-	rules: {
-		"node/no-unsupported-features": ["error", { version: 6 }],
-		"node/no-deprecated-api": "error",
-		"node/no-missing-import": "error",
-		"node/no-missing-require": [
-			"error",
-			{
-				resolvePaths: ["./packages"],
-				allowModules: [
-					"webpack",
-					"@webpack-cli/generators",
-					"@webpack-cli/init",
-					"@webpack-cli/migrate",
-					"@webpack-cli/utils",
-					"@webpack-cli/generate-loader",
-					"@webpack-cli/generate-plugin",
-					"@webpack-cli/webpack-scaffold"
-				]
-			}
-		],
-		"node/no-unpublished-bin": "error",
-		"node/no-unpublished-require": [
-			"error",
-			{
-				allowModules: [
-					"webpack",
-					"webpack-dev-server",
-					"@webpack-cli/generators",
-					"@webpack-cli/init",
-					"@webpack-cli/migrate",
-					"@webpack-cli/utils",
-					"@webpack-cli/generate-loader",
-					"@webpack-cli/generate-plugin",
-					"@webpack-cli/webpack-scaffold"
-				]
-			}
-		],
-		"node/no-extraneous-require": [
-			"error",
-			{
-				allowModules: [
-					"@webpack-cli/migrate",
-					"@webpack-cli/generators",
-					"@webpack-cli/utils",
-					"@webpack-cli/generate-loader",
-					"@webpack-cli/generate-plugin",
-					"@webpack-cli/webpack-scaffold"
-				]
-			}
-		],
-		"node/process-exit-as-throw": "error"
-	}
-};

+ 0 - 366
node_modules.bak/webpack-cli/bin/cli.js

@@ -1,366 +0,0 @@
-#!/usr/bin/env node
-
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-
-const { NON_COMPILATION_ARGS } = require("./utils/constants");
-
-(function() {
-	// wrap in IIFE to be able to use return
-
-	const importLocal = require("import-local");
-	// Prefer the local installation of webpack-cli
-	if (importLocal(__filename)) {
-		return;
-	}
-
-	require("v8-compile-cache");
-
-	const ErrorHelpers = require("./utils/errorHelpers");
-
-	const NON_COMPILATION_CMD = process.argv.find(arg => {
-		if (arg === "serve") {
-			global.process.argv = global.process.argv.filter(a => a !== "serve");
-			process.argv = global.process.argv;
-		}
-		return NON_COMPILATION_ARGS.find(a => a === arg);
-	});
-
-	if (NON_COMPILATION_CMD) {
-		return require("./utils/prompt-command")(NON_COMPILATION_CMD, ...process.argv);
-	}
-
-	const yargs = require("yargs").usage(`webpack-cli ${require("../package.json").version}
-
-Usage: webpack-cli [options]
-       webpack-cli [options] --entry <entry> --output <output>
-       webpack-cli [options] <entries...> --output <output>
-       webpack-cli <command> [options]
-
-For more information, see https://webpack.js.org/api/cli/.`);
-
-	require("./config/config-yargs")(yargs);
-
-	// yargs will terminate the process early when the user uses help or version.
-	// This causes large help outputs to be cut short (https://github.com/nodejs/node/wiki/API-changes-between-v0.10-and-v4#process).
-	// To prevent this we use the yargs.parse API and exit the process normally
-	yargs.parse(process.argv.slice(2), (err, argv, output) => {
-		Error.stackTraceLimit = 30;
-
-		// arguments validation failed
-		if (err && output) {
-			console.error(output);
-			process.exitCode = 1;
-			return;
-		}
-
-		// help or version info
-		if (output) {
-			console.log(output);
-			return;
-		}
-
-		if (argv.verbose) {
-			argv["display"] = "verbose";
-		}
-
-		let options;
-		try {
-			options = require("./utils/convert-argv")(argv);
-		} catch (err) {
-			if (err.code === "MODULE_NOT_FOUND") {
-				const moduleName = err.message.split("'")[1];
-				let instructions = "";
-				let errorMessage = "";
-
-				if (moduleName === "webpack") {
-					errorMessage = `\n${moduleName} not installed`;
-					instructions = `Install webpack to start bundling: \u001b[32m\n  $ npm install --save-dev ${moduleName}\n`;
-
-					if (process.env.npm_execpath !== undefined && process.env.npm_execpath.includes("yarn")) {
-						instructions = `Install webpack to start bundling: \u001b[32m\n $ yarn add ${moduleName} --dev\n`;
-					}
-					Error.stackTraceLimit = 1;
-					console.error(`${errorMessage}\n\n${instructions}`);
-					process.exitCode = 1;
-					return;
-				}
-			}
-
-			if (err.name !== "ValidationError") {
-				throw err;
-			}
-
-			const stack = ErrorHelpers.cleanUpWebpackOptions(err.stack, err.message);
-			const message = err.message + "\n" + stack;
-
-			if (argv.color) {
-				console.error(`\u001b[1m\u001b[31m${message}\u001b[39m\u001b[22m`);
-			} else {
-				console.error(message);
-			}
-
-			process.exitCode = 1;
-			return;
-		}
-
-		/**
-		 * When --silent flag is present, an object with a no-op write method is
-		 * used in place of process.stout
-		 */
-		const stdout = argv.silent ? { write: () => {} } : process.stdout;
-
-		function ifArg(name, fn, init) {
-			if (Array.isArray(argv[name])) {
-				if (init) init();
-				argv[name].forEach(fn);
-			} else if (typeof argv[name] !== "undefined") {
-				if (init) init();
-				fn(argv[name], -1);
-			}
-		}
-
-		function processOptions(options) {
-			// process Promise
-			if (typeof options.then === "function") {
-				options.then(processOptions).catch(function(err) {
-					console.error(err.stack || err);
-					// eslint-disable-next-line no-process-exit
-					process.exit(1);
-				});
-				return;
-			}
-
-			const firstOptions = [].concat(options)[0];
-			const statsPresetToOptions = require("webpack").Stats.presetToOptions;
-
-			let outputOptions = options.stats;
-			if (typeof outputOptions === "boolean" || typeof outputOptions === "string") {
-				outputOptions = statsPresetToOptions(outputOptions);
-			} else if (!outputOptions) {
-				outputOptions = {};
-			}
-
-			ifArg("display", function(preset) {
-				outputOptions = statsPresetToOptions(preset);
-			});
-
-			outputOptions = Object.create(outputOptions);
-			if (Array.isArray(options) && !outputOptions.children) {
-				outputOptions.children = options.map(o => o.stats);
-			}
-			if (typeof outputOptions.context === "undefined") outputOptions.context = firstOptions.context;
-
-			ifArg("env", function(value) {
-				if (outputOptions.env) {
-					outputOptions._env = value;
-				}
-			});
-
-			ifArg("json", function(bool) {
-				if (bool) {
-					outputOptions.json = bool;
-					outputOptions.modules = bool;
-				}
-			});
-
-			if (typeof outputOptions.colors === "undefined") outputOptions.colors = require("supports-color").stdout;
-
-			ifArg("sort-modules-by", function(value) {
-				outputOptions.modulesSort = value;
-			});
-
-			ifArg("sort-chunks-by", function(value) {
-				outputOptions.chunksSort = value;
-			});
-
-			ifArg("sort-assets-by", function(value) {
-				outputOptions.assetsSort = value;
-			});
-
-			ifArg("display-exclude", function(value) {
-				outputOptions.exclude = value;
-			});
-
-			if (!outputOptions.json) {
-				if (typeof outputOptions.cached === "undefined") outputOptions.cached = false;
-				if (typeof outputOptions.cachedAssets === "undefined") outputOptions.cachedAssets = false;
-
-				ifArg("display-chunks", function(bool) {
-					if (bool) {
-						outputOptions.modules = false;
-						outputOptions.chunks = true;
-						outputOptions.chunkModules = true;
-					}
-				});
-
-				ifArg("display-entrypoints", function(bool) {
-					outputOptions.entrypoints = bool;
-				});
-
-				ifArg("display-reasons", function(bool) {
-					if (bool) outputOptions.reasons = true;
-				});
-
-				ifArg("display-depth", function(bool) {
-					if (bool) outputOptions.depth = true;
-				});
-
-				ifArg("display-used-exports", function(bool) {
-					if (bool) outputOptions.usedExports = true;
-				});
-
-				ifArg("display-provided-exports", function(bool) {
-					if (bool) outputOptions.providedExports = true;
-				});
-
-				ifArg("display-optimization-bailout", function(bool) {
-					if (bool) outputOptions.optimizationBailout = bool;
-				});
-
-				ifArg("display-error-details", function(bool) {
-					if (bool) outputOptions.errorDetails = true;
-				});
-
-				ifArg("display-origins", function(bool) {
-					if (bool) outputOptions.chunkOrigins = true;
-				});
-
-				ifArg("display-max-modules", function(value) {
-					outputOptions.maxModules = +value;
-				});
-
-				ifArg("display-cached", function(bool) {
-					if (bool) outputOptions.cached = true;
-				});
-
-				ifArg("display-cached-assets", function(bool) {
-					if (bool) outputOptions.cachedAssets = true;
-				});
-
-				if (!outputOptions.exclude) outputOptions.exclude = ["node_modules", "bower_components", "components"];
-
-				if (argv["display-modules"]) {
-					outputOptions.maxModules = Infinity;
-					outputOptions.exclude = undefined;
-					outputOptions.modules = true;
-				}
-			}
-
-			ifArg("hide-modules", function(bool) {
-				if (bool) {
-					outputOptions.modules = false;
-					outputOptions.chunkModules = false;
-				}
-			});
-
-			ifArg("info-verbosity", function(value) {
-				outputOptions.infoVerbosity = value;
-			});
-
-			ifArg("build-delimiter", function(value) {
-				outputOptions.buildDelimiter = value;
-			});
-
-			const webpack = require("webpack");
-
-			let lastHash = null;
-			let compiler;
-			try {
-				compiler = webpack(options);
-			} catch (err) {
-				if (err.name === "WebpackOptionsValidationError") {
-					if (argv.color) console.error(`\u001b[1m\u001b[31m${err.message}\u001b[39m\u001b[22m`);
-					else console.error(err.message);
-					// eslint-disable-next-line no-process-exit
-					process.exit(1);
-				}
-
-				throw err;
-			}
-
-			if (argv.progress) {
-				const ProgressPlugin = require("webpack").ProgressPlugin;
-				new ProgressPlugin({
-					profile: argv.profile
-				}).apply(compiler);
-			}
-			if (outputOptions.infoVerbosity === "verbose") {
-				if (argv.w) {
-					compiler.hooks.watchRun.tap("WebpackInfo", compilation => {
-						const compilationName = compilation.name ? compilation.name : "";
-						console.error("\nCompilation " + compilationName + " starting…\n");
-					});
-				} else {
-					compiler.hooks.beforeRun.tap("WebpackInfo", compilation => {
-						const compilationName = compilation.name ? compilation.name : "";
-						console.error("\nCompilation " + compilationName + " starting…\n");
-					});
-				}
-				compiler.hooks.done.tap("WebpackInfo", compilation => {
-					const compilationName = compilation.name ? compilation.name : "";
-					console.error("\nCompilation " + compilationName + " finished\n");
-				});
-			}
-
-			function compilerCallback(err, stats) {
-				if (!options.watch || err) {
-					// Do not keep cache anymore
-					compiler.purgeInputFileSystem();
-				}
-				if (err) {
-					lastHash = null;
-					console.error(err.stack || err);
-					if (err.details) console.error(err.details);
-					process.exitCode = 1;
-					return;
-				}
-				if (outputOptions.json) {
-					stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
-				} else if (stats.hash !== lastHash) {
-					lastHash = stats.hash;
-					if (stats.compilation && stats.compilation.errors.length !== 0) {
-						const errors = stats.compilation.errors;
-						if (errors[0].name === "EntryModuleNotFoundError") {
-							console.error("\n\u001b[1m\u001b[31mInsufficient number of arguments or no entry found.");
-							console.error(
-								"\u001b[1m\u001b[31mAlternatively, run 'webpack(-cli) --help' for usage info.\u001b[39m\u001b[22m\n"
-							);
-						}
-					}
-					const statsString = stats.toString(outputOptions);
-					const delimiter = outputOptions.buildDelimiter ? `${outputOptions.buildDelimiter}\n` : "";
-					if (statsString) stdout.write(`${statsString}\n${delimiter}`);
-				}
-				if (!options.watch && stats.hasErrors()) {
-					process.exitCode = 2;
-				}
-			}
-			if (firstOptions.watch || options.watch) {
-				const watchOptions =
-					firstOptions.watchOptions || options.watchOptions || firstOptions.watch || options.watch || {};
-				if (watchOptions.stdin) {
-					process.stdin.on("end", function(_) {
-						process.exit(); // eslint-disable-line
-					});
-					process.stdin.resume();
-				}
-				compiler.watch(watchOptions, compilerCallback);
-				if (outputOptions.infoVerbosity !== "none") console.error("\nwebpack is watching the files…\n");
-			} else {
-				compiler.run((err, stats) => {
-					if (compiler.close) {
-						compiler.close(err2 => {
-							compilerCallback(err || err2, stats);
-						});
-					} else {
-						compilerCallback(err, stats);
-					}
-				});
-			}
-		}
-		processOptions(options);
-	});
-})();

+ 0 - 504
node_modules.bak/webpack-cli/bin/config/config-yargs.js

@@ -1,504 +0,0 @@
-const optionsSchema = require("../config/optionsSchema.json");
-
-const { GROUPS } = require("../utils/constants");
-
-const {
-	CONFIG_GROUP,
-	BASIC_GROUP,
-	MODULE_GROUP,
-	OUTPUT_GROUP,
-	ADVANCED_GROUP,
-	RESOLVE_GROUP,
-	OPTIMIZE_GROUP,
-	DISPLAY_GROUP
-} = GROUPS;
-
-const nestedProperties = ["anyOf", "oneOf", "allOf"];
-
-const resolveSchema = schema => {
-	let current = schema;
-	if (schema && typeof schema === "object" && "$ref" in schema) {
-		const path = schema.$ref.split("/");
-		for (const element of path) {
-			if (element === "#") {
-				current = optionsSchema;
-			} else {
-				current = current[element];
-			}
-		}
-	}
-	return current;
-};
-
-const findPropertyInSchema = (schema, property, subProperty) => {
-	if (!schema) return null;
-	if (subProperty) {
-		if (schema[property] && typeof schema[property] === "object" && subProperty in schema[property]) {
-			return resolveSchema(schema[property][subProperty]);
-		}
-	} else {
-		if (property in schema) return resolveSchema(schema[property]);
-	}
-	for (const name of nestedProperties) {
-		if (schema[name]) {
-			for (const item of schema[name]) {
-				const resolvedItem = resolveSchema(item);
-				const result = findPropertyInSchema(resolvedItem, property, subProperty);
-				if (result) return result;
-			}
-		}
-	}
-	return undefined;
-};
-
-const getSchemaInfo = (path, property, subProperty) => {
-	const pathSegments = path.split(".");
-	let current = optionsSchema;
-	for (const segment of pathSegments) {
-		if (segment === "*") {
-			current = findPropertyInSchema(current, "additionalProperties") || findPropertyInSchema(current, "items");
-		} else {
-			current = findPropertyInSchema(current, "properties", segment);
-		}
-		if (!current) return undefined;
-	}
-	return findPropertyInSchema(current, property, subProperty);
-};
-
-module.exports = function(yargs) {
-	yargs
-		.help("help")
-		.alias("help", "h")
-		.version()
-		.alias("version", "v")
-		.options({
-			config: {
-				type: "string",
-				describe: "Path to the config file",
-				group: CONFIG_GROUP,
-				defaultDescription: "webpack.config.js or webpackfile.js",
-				requiresArg: true
-			},
-			"config-register": {
-				type: "array",
-				alias: "r",
-				describe: "Preload one or more modules before loading the webpack configuration",
-				group: CONFIG_GROUP,
-				defaultDescription: "module id or path",
-				requiresArg: true
-			},
-			"config-name": {
-				type: "string",
-				describe: "Name of the config to use",
-				group: CONFIG_GROUP,
-				requiresArg: true
-			},
-			env: {
-				describe: "Environment passed to the config, when it is a function",
-				group: CONFIG_GROUP
-			},
-			mode: {
-				type: getSchemaInfo("mode", "type"),
-				choices: getSchemaInfo("mode", "enum"),
-				describe: getSchemaInfo("mode", "description"),
-				group: CONFIG_GROUP,
-				requiresArg: true
-			},
-			context: {
-				type: getSchemaInfo("context", "type"),
-				describe: getSchemaInfo("context", "description"),
-				group: BASIC_GROUP,
-				defaultDescription: "The current directory",
-				requiresArg: true
-			},
-			entry: {
-				type: "string",
-				describe: getSchemaInfo("entry", "description"),
-				group: BASIC_GROUP,
-				requiresArg: true
-			},
-			"no-cache": {
-				type: "boolean",
-				describe: "Disables cached builds",
-				group: BASIC_GROUP
-			},
-			"module-bind": {
-				type: "string",
-				describe: "Bind an extension to a loader",
-				group: MODULE_GROUP,
-				requiresArg: true
-			},
-			"module-bind-post": {
-				type: "string",
-				describe: "Bind an extension to a post loader",
-				group: MODULE_GROUP,
-				requiresArg: true
-			},
-			"module-bind-pre": {
-				type: "string",
-				describe: "Bind an extension to a pre loader",
-				group: MODULE_GROUP,
-				requiresArg: true
-			},
-			output: {
-				alias: "o",
-				describe: "The output path and file for compilation assets",
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"output-path": {
-				type: "string",
-				describe: getSchemaInfo("output.path", "description"),
-				group: OUTPUT_GROUP,
-				defaultDescription: "The current directory",
-				requiresArg: true
-			},
-			"output-filename": {
-				type: "string",
-				describe: getSchemaInfo("output.filename", "description"),
-				group: OUTPUT_GROUP,
-				defaultDescription: "[name].js",
-				requiresArg: true
-			},
-			"output-chunk-filename": {
-				type: "string",
-				describe: getSchemaInfo("output.chunkFilename", "description"),
-				group: OUTPUT_GROUP,
-				defaultDescription: "filename with [id] instead of [name] or [id] prefixed",
-				requiresArg: true
-			},
-			"output-source-map-filename": {
-				type: "string",
-				describe: getSchemaInfo("output.sourceMapFilename", "description"),
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"output-public-path": {
-				type: "string",
-				describe: getSchemaInfo("output.publicPath", "description"),
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"output-jsonp-function": {
-				type: "string",
-				describe: getSchemaInfo("output.jsonpFunction", "description"),
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"output-pathinfo": {
-				type: "boolean",
-				describe: getSchemaInfo("output.pathinfo", "description"),
-				group: OUTPUT_GROUP
-			},
-			"output-library": {
-				type: "array",
-				describe: "Expose the exports of the entry point as library",
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"output-library-target": {
-				type: "string",
-				describe: getSchemaInfo("output.libraryTarget", "description"),
-				choices: getSchemaInfo("output.libraryTarget", "enum"),
-				group: OUTPUT_GROUP,
-				requiresArg: true
-			},
-			"records-input-path": {
-				type: "string",
-				describe: getSchemaInfo("recordsInputPath", "description"),
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			"records-output-path": {
-				type: "string",
-				describe: getSchemaInfo("recordsOutputPath", "description"),
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			"records-path": {
-				type: "string",
-				describe: getSchemaInfo("recordsPath", "description"),
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			define: {
-				type: "string",
-				describe: "Define any free var in the bundle",
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			target: {
-				type: "string",
-				describe: getSchemaInfo("target", "description"),
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			cache: {
-				type: "boolean",
-				describe: getSchemaInfo("cache", "description"),
-				default: null,
-				group: ADVANCED_GROUP,
-				defaultDescription: "It's enabled by default when watching"
-			},
-			watch: {
-				type: "boolean",
-				alias: "w",
-				describe: getSchemaInfo("watch", "description"),
-				group: BASIC_GROUP
-			},
-			"watch-stdin": {
-				type: "boolean",
-				alias: "stdin",
-				describe: getSchemaInfo("watchOptions.stdin", "description"),
-				group: ADVANCED_GROUP
-			},
-			"watch-aggregate-timeout": {
-				describe: getSchemaInfo("watchOptions.aggregateTimeout", "description"),
-				type: getSchemaInfo("watchOptions.aggregateTimeout", "type"),
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			"watch-poll": {
-				type: "string",
-				describe: getSchemaInfo("watchOptions.poll", "description"),
-				group: ADVANCED_GROUP
-			},
-			hot: {
-				type: "boolean",
-				describe: "Enables Hot Module Replacement",
-				group: ADVANCED_GROUP
-			},
-			debug: {
-				type: "boolean",
-				describe: "Switch loaders to debug mode",
-				group: BASIC_GROUP
-			},
-			devtool: {
-				type: "string",
-				describe: getSchemaInfo("devtool", "description"),
-				group: BASIC_GROUP,
-				requiresArg: true
-			},
-			"resolve-alias": {
-				type: "string",
-				describe: getSchemaInfo("resolve.alias", "description"),
-				group: RESOLVE_GROUP,
-				requiresArg: true
-			},
-			"resolve-extensions": {
-				type: "array",
-				describe: getSchemaInfo("resolve.alias", "description"),
-				group: RESOLVE_GROUP,
-				requiresArg: true
-			},
-			"resolve-loader-alias": {
-				type: "string",
-				describe: "Setup a loader alias for resolving",
-				group: RESOLVE_GROUP,
-				requiresArg: true
-			},
-			"optimize-max-chunks": {
-				describe: "Try to keep the chunk count below a limit",
-				group: OPTIMIZE_GROUP,
-				requiresArg: true
-			},
-			"optimize-min-chunk-size": {
-				describe: getSchemaInfo("optimization.splitChunks.minSize", "description"),
-				group: OPTIMIZE_GROUP,
-				requiresArg: true
-			},
-			"optimize-minimize": {
-				type: "boolean",
-				describe: getSchemaInfo("optimization.minimize", "description"),
-				group: OPTIMIZE_GROUP
-			},
-			prefetch: {
-				type: "string",
-				describe: "Prefetch this request (Example: --prefetch ./file.js)",
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			provide: {
-				type: "string",
-				describe: "Provide these modules as free vars in all modules (Example: --provide jQuery=jquery)",
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			"labeled-modules": {
-				type: "boolean",
-				describe: "Enables labeled modules",
-				group: ADVANCED_GROUP
-			},
-			plugin: {
-				type: "string",
-				describe: "Load this plugin",
-				group: ADVANCED_GROUP,
-				requiresArg: true
-			},
-			bail: {
-				type: getSchemaInfo("bail", "type"),
-				describe: getSchemaInfo("bail", "description"),
-				group: ADVANCED_GROUP,
-				default: null
-			},
-			profile: {
-				type: "boolean",
-				describe: getSchemaInfo("profile", "description"),
-				group: ADVANCED_GROUP,
-				default: null
-			},
-			d: {
-				type: "boolean",
-				describe: "shortcut for --debug --devtool eval-cheap-module-source-map --output-pathinfo",
-				group: BASIC_GROUP
-			},
-			p: {
-				type: "boolean",
-				// eslint-disable-next-line quotes
-				describe: 'shortcut for --optimize-minimize --define process.env.NODE_ENV="production"',
-				group: BASIC_GROUP
-			},
-			silent: {
-				type: "boolean",
-				describe: "Prevent output from being displayed in stdout"
-			},
-			json: {
-				type: "boolean",
-				alias: "j",
-				describe: "Prints the result as JSON."
-			},
-			progress: {
-				type: "boolean",
-				describe: "Print compilation progress in percentage",
-				group: BASIC_GROUP
-			},
-			color: {
-				type: "boolean",
-				alias: "colors",
-				default: function supportsColor() {
-					return require("supports-color").stdout;
-				},
-				group: DISPLAY_GROUP,
-				describe: "Force colors on the console"
-			},
-			"no-color": {
-				type: "boolean",
-				alias: "no-colors",
-				group: DISPLAY_GROUP,
-				describe: "Force no colors on the console"
-			},
-			"sort-modules-by": {
-				type: "string",
-				group: DISPLAY_GROUP,
-				describe: "Sorts the modules list by property in module"
-			},
-			"sort-chunks-by": {
-				type: "string",
-				group: DISPLAY_GROUP,
-				describe: "Sorts the chunks list by property in chunk"
-			},
-			"sort-assets-by": {
-				type: "string",
-				group: DISPLAY_GROUP,
-				describe: "Sorts the assets list by property in asset"
-			},
-			"hide-modules": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Hides info about modules"
-			},
-			"display-exclude": {
-				type: "string",
-				group: DISPLAY_GROUP,
-				describe: "Exclude modules in the output"
-			},
-			"display-modules": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display even excluded modules in the output"
-			},
-			"display-max-modules": {
-				type: "number",
-				group: DISPLAY_GROUP,
-				describe: "Sets the maximum number of visible modules in output"
-			},
-			"display-chunks": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display chunks in the output"
-			},
-			"display-entrypoints": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display entry points in the output"
-			},
-			"display-origins": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display origins of chunks in the output"
-			},
-			"display-cached": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display also cached modules in the output"
-			},
-			"display-cached-assets": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display also cached assets in the output"
-			},
-			"display-reasons": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display reasons about module inclusion in the output"
-			},
-			"display-depth": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display distance from entry point for each module"
-			},
-			"display-used-exports": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display information about used exports in modules (Tree Shaking)"
-			},
-			"display-provided-exports": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display information about exports provided from modules"
-			},
-			"display-optimization-bailout": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display information about why optimization bailed out for modules"
-			},
-			"display-error-details": {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Display details about errors"
-			},
-			display: {
-				type: "string",
-				choices: ["", "verbose", "detailed", "normal", "minimal", "errors-only", "none"],
-				group: DISPLAY_GROUP,
-				describe: "Select display preset"
-			},
-			verbose: {
-				type: "boolean",
-				group: DISPLAY_GROUP,
-				describe: "Show more details"
-			},
-			"info-verbosity": {
-				type: "string",
-				default: "info",
-				choices: ["none", "info", "verbose"],
-				group: DISPLAY_GROUP,
-				describe: "Controls the output of lifecycle messaging e.g. Started watching files..."
-			},
-			"build-delimiter": {
-				type: "string",
-				group: DISPLAY_GROUP,
-				describe: "Display custom text after build output"
-			}
-		});
-};

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1989
node_modules.bak/webpack-cli/bin/config/optionsSchema.json


+ 0 - 20
node_modules.bak/webpack-cli/bin/config/webpackConfigurationSchema.json

@@ -1,20 +0,0 @@
-{
-  "anyOf": [
-    {
-      "type": "object",
-      "description": "A webpack configuration object."
-    },
-    {
-      "type": "array",
-      "description": "An array of webpack configuration objects.",
-      "items": {
-        "description": "A webpack configuration object.",
-        "type": "object"
-      }
-    },
-    {
-      "instanceof": "Promise",
-      "description": "A promise that resolves with a configuration object, or an array of configuration objects."
-    }
-  ]
-}

+ 0 - 28
node_modules.bak/webpack-cli/bin/utils/constants.js

@@ -1,28 +0,0 @@
-const NON_COMPILATION_ARGS = ["init", "migrate", "serve", "generate-loader", "generate-plugin", "info"];
-
-const CONFIG_GROUP = "Config options:";
-const BASIC_GROUP = "Basic options:";
-const MODULE_GROUP = "Module options:";
-const OUTPUT_GROUP = "Output options:";
-const ADVANCED_GROUP = "Advanced options:";
-const RESOLVE_GROUP = "Resolving options:";
-const OPTIMIZE_GROUP = "Optimizing options:";
-const DISPLAY_GROUP = "Stats options:";
-const GROUPS = {
-	CONFIG_GROUP,
-	BASIC_GROUP,
-	MODULE_GROUP,
-	OUTPUT_GROUP,
-	ADVANCED_GROUP,
-	RESOLVE_GROUP,
-	OPTIMIZE_GROUP,
-	DISPLAY_GROUP
-};
-
-const WEBPACK_OPTIONS_FLAG = "WEBPACK_OPTIONS";
-
-module.exports = {
-	NON_COMPILATION_ARGS,
-	GROUPS,
-	WEBPACK_OPTIONS_FLAG
-};

+ 0 - 562
node_modules.bak/webpack-cli/bin/utils/convert-argv.js

@@ -1,562 +0,0 @@
-const path = require("path");
-const fs = require("fs");
-fs.existsSync = fs.existsSync || path.existsSync;
-const interpret = require("interpret");
-const prepareOptions = require("./prepareOptions");
-const findup = require("findup-sync");
-const validateOptions = require("./validate-options");
-
-module.exports = function(...args) {
-	const argv = args[1] || args[0];
-	const options = [];
-	// Shortcuts
-	if (argv.d) {
-		argv.debug = true;
-		argv["output-pathinfo"] = true;
-		if (!argv.devtool) {
-			argv.devtool = "eval-cheap-module-source-map";
-		}
-		if (!argv.mode) {
-			argv.mode = "development";
-		}
-	}
-	if (argv.p) {
-		argv["optimize-minimize"] = true;
-		// eslint-disable-next-line quotes
-		argv["define"] = [].concat(argv["define"] || []).concat('process.env.NODE_ENV="production"');
-		if (!argv.mode) {
-			argv.mode = "production";
-		}
-	}
-
-	if (argv.output) {
-		let output = argv.output;
-		if (!path.isAbsolute(argv.o)) {
-			output = path.resolve(process.cwd(), output);
-		}
-		argv["output-filename"] = path.basename(output);
-		argv["output-path"] = path.dirname(output);
-	}
-
-	let configFileLoaded = false;
-	let configFiles = [];
-	const extensions = Object.keys(interpret.extensions).sort(function(a, b) {
-		return a === ".js" ? -1 : b === ".js" ? 1 : a.length - b.length;
-	});
-
-	let i;
-	if (argv.config) {
-		const getConfigExtension = function getConfigExtension(configPath) {
-			for (i = extensions.length - 1; i >= 0; i--) {
-				const tmpExt = extensions[i];
-				if (configPath.indexOf(tmpExt, configPath.length - tmpExt.length) > -1) {
-					return tmpExt;
-				}
-			}
-			return path.extname(configPath);
-		};
-
-		const mapConfigArg = function mapConfigArg(configArg) {
-			const resolvedPath = path.resolve(configArg);
-			const extension = getConfigExtension(resolvedPath);
-			return {
-				path: resolvedPath,
-				ext: extension
-			};
-		};
-
-		const configArgList = Array.isArray(argv.config) ? argv.config : [argv.config];
-		configFiles = configArgList.map(mapConfigArg);
-	} else {
-		const defaultConfigFileNames = ["webpack.config", "webpackfile"].join("|");
-		const webpackConfigFileRegExp = `(${defaultConfigFileNames})(${extensions.join("|")})`;
-		const pathToWebpackConfig = findup(webpackConfigFileRegExp);
-
-		if (pathToWebpackConfig) {
-			const resolvedPath = path.resolve(pathToWebpackConfig);
-			const actualConfigFileName = path.basename(resolvedPath);
-			const ext = actualConfigFileName.replace(new RegExp(defaultConfigFileNames), "");
-			configFiles.push({
-				path: resolvedPath,
-				ext
-			});
-		}
-	}
-	if (configFiles.length > 0) {
-		const registerCompiler = function registerCompiler(moduleDescriptor) {
-			if (moduleDescriptor) {
-				if (typeof moduleDescriptor === "string") {
-					require(moduleDescriptor);
-				} else if (!Array.isArray(moduleDescriptor)) {
-					moduleDescriptor.register(require(moduleDescriptor.module));
-				} else {
-					for (let i = 0; i < moduleDescriptor.length; i++) {
-						try {
-							registerCompiler(moduleDescriptor[i]);
-							break;
-						} catch (e) {
-							// do nothing
-						}
-					}
-				}
-			}
-		};
-
-		const requireConfig = function requireConfig(configPath) {
-			let options = (function WEBPACK_OPTIONS() {
-				if (argv.configRegister && argv.configRegister.length) {
-					module.paths.unshift(path.resolve(process.cwd(), "node_modules"), process.cwd());
-					argv.configRegister.forEach(dep => {
-						require(dep);
-					});
-					return require(path.resolve(process.cwd(), configPath));
-				} else {
-					return require(path.resolve(process.cwd(), configPath));
-				}
-			})();
-			options = prepareOptions(options, argv);
-			return options;
-		};
-
-		configFiles.forEach(function(file) {
-			registerCompiler(interpret.extensions[file.ext]);
-			options.push(requireConfig(file.path));
-		});
-		configFileLoaded = true;
-	}
-
-	if (!configFileLoaded) {
-		return processConfiguredOptions();
-	} else if (options.length === 1) {
-		return processConfiguredOptions(options[0]);
-	} else {
-		return processConfiguredOptions(options);
-	}
-
-	function processConfiguredOptions(options) {
-		if (options) {
-			validateOptions(options);
-		} else {
-			options = {};
-		}
-
-		// process Promise
-		if (typeof options.then === "function") {
-			return options.then(processConfiguredOptions);
-		}
-
-		// process ES6 default
-		if (typeof options === "object" && typeof options.default === "object") {
-			return processConfiguredOptions(options.default);
-		}
-
-		// filter multi-config by name
-		if (Array.isArray(options) && argv["config-name"]) {
-			const namedOptions = options.filter(function(opt) {
-				return opt.name === argv["config-name"];
-			});
-			if (namedOptions.length === 0) {
-				console.error("Configuration with name '" + argv["config-name"] + "' was not found.");
-				process.exit(-1); // eslint-disable-line
-			} else if (namedOptions.length === 1) {
-				return processConfiguredOptions(namedOptions[0]);
-			}
-			options = namedOptions;
-		}
-
-		if (Array.isArray(options)) {
-			options.forEach(processOptions);
-		} else {
-			processOptions(options);
-		}
-
-		if (argv.context) {
-			options.context = path.resolve(argv.context);
-		}
-		if (!options.context) {
-			options.context = process.cwd();
-		}
-
-		if (argv.watch) {
-			options.watch = true;
-		}
-
-		if (argv["watch-aggregate-timeout"]) {
-			options.watchOptions = options.watchOptions || {};
-			options.watchOptions.aggregateTimeout = +argv["watch-aggregate-timeout"];
-		}
-
-		if (typeof argv["watch-poll"] !== "undefined") {
-			options.watchOptions = options.watchOptions || {};
-			if (argv["watch-poll"] === "true" || argv["watch-poll"] === "") options.watchOptions.poll = true;
-			else if (!isNaN(argv["watch-poll"])) options.watchOptions.poll = +argv["watch-poll"];
-		}
-
-		if (argv["watch-stdin"]) {
-			options.watchOptions = options.watchOptions || {};
-			options.watchOptions.stdin = true;
-			options.watch = true;
-		}
-
-		return options;
-	}
-
-	function processOptions(options) {
-		function ifArg(name, fn, init, finalize) {
-			const isArray = Array.isArray(argv[name]);
-			const isSet = typeof argv[name] !== "undefined" && argv[name] !== null;
-			if (!isArray && !isSet) return;
-
-			init && init();
-			if (isArray) argv[name].forEach(fn);
-			else if (isSet) fn(argv[name], -1);
-			finalize && finalize();
-		}
-
-		function ifArgPair(name, fn, init, finalize) {
-			ifArg(
-				name,
-				function(content, idx) {
-					const i = content.indexOf("=");
-					if (i < 0) {
-						return fn(null, content, idx);
-					} else {
-						return fn(content.substr(0, i), content.substr(i + 1), idx);
-					}
-				},
-				init,
-				finalize
-			);
-		}
-
-		function ifBooleanArg(name, fn) {
-			ifArg(name, function(bool) {
-				if (bool) {
-					fn();
-				}
-			});
-		}
-
-		function mapArgToBoolean(name, optionName) {
-			ifArg(name, function(bool) {
-				if (bool === true) options[optionName || name] = true;
-				else if (bool === false) options[optionName || name] = false;
-			});
-		}
-
-		function loadPlugin(name) {
-			const loadUtils = require("loader-utils");
-			let args;
-			try {
-				const p = name && name.indexOf("?");
-				if (p > -1) {
-					args = loadUtils.parseQuery(name.substring(p));
-					name = name.substring(0, p);
-				}
-			} catch (e) {
-				console.log("Invalid plugin arguments " + name + " (" + e + ").");
-				process.exit(-1); // eslint-disable-line
-			}
-
-			let path;
-			try {
-				const resolve = require("enhanced-resolve");
-				path = resolve.sync(process.cwd(), name);
-			} catch (e) {
-				console.log("Cannot resolve plugin " + name + ".");
-				process.exit(-1); // eslint-disable-line
-			}
-			let Plugin;
-			try {
-				Plugin = require(path);
-			} catch (e) {
-				console.log("Cannot load plugin " + name + ". (" + path + ")");
-				throw e;
-			}
-			try {
-				return new Plugin(args);
-			} catch (e) {
-				console.log("Cannot instantiate plugin " + name + ". (" + path + ")");
-				throw e;
-			}
-		}
-
-		function ensureObject(parent, name, force) {
-			if (force || typeof parent[name] !== "object" || parent[name] === null) {
-				parent[name] = {};
-			}
-		}
-
-		function ensureArray(parent, name) {
-			if (!Array.isArray(parent[name])) {
-				parent[name] = [];
-			}
-		}
-
-		function addPlugin(options, plugin) {
-			ensureArray(options, "plugins");
-			options.plugins.unshift(plugin);
-		}
-
-		ifArg("mode", function(value) {
-			options.mode = value;
-		});
-
-		ifArgPair(
-			"entry",
-			function(name, entry) {
-				if (typeof options.entry[name] !== "undefined" && options.entry[name] !== null) {
-					options.entry[name] = [].concat(options.entry[name]).concat(entry);
-				} else {
-					options.entry[name] = entry;
-				}
-			},
-			function() {
-				ensureObject(options, "entry", true);
-			}
-		);
-
-		function bindRules(arg) {
-			ifArgPair(
-				arg,
-				function(name, binding) {
-					if (name === null) {
-						name = binding;
-						binding += "-loader";
-					}
-					const rule = {
-						test: new RegExp("\\." + name.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") + "$"), // eslint-disable-line no-useless-escape
-						loader: binding
-					};
-					if (arg === "module-bind-pre") {
-						rule.enforce = "pre";
-					} else if (arg === "module-bind-post") {
-						rule.enforce = "post";
-					}
-					options.module.rules.push(rule);
-				},
-				function() {
-					ensureObject(options, "module");
-					ensureArray(options.module, "rules");
-				}
-			);
-		}
-		bindRules("module-bind");
-		bindRules("module-bind-pre");
-		bindRules("module-bind-post");
-
-		let defineObject;
-		ifArgPair(
-			"define",
-			function(name, value) {
-				if (name === null) {
-					name = value;
-					value = true;
-				}
-				defineObject[name] = value;
-			},
-			function() {
-				defineObject = {};
-			},
-			function() {
-				const DefinePlugin = require("webpack").DefinePlugin;
-				addPlugin(options, new DefinePlugin(defineObject));
-			}
-		);
-
-		ifArg("output-path", function(value) {
-			ensureObject(options, "output");
-			options.output.path = path.resolve(value);
-		});
-
-		ifArg("output-filename", function(value) {
-			ensureObject(options, "output");
-
-			options.output.filename = value;
-		});
-
-		ifArg("output-chunk-filename", function(value) {
-			ensureObject(options, "output");
-			options.output.chunkFilename = value;
-		});
-
-		ifArg("output-source-map-filename", function(value) {
-			ensureObject(options, "output");
-			options.output.sourceMapFilename = value;
-		});
-
-		ifArg("output-public-path", function(value) {
-			ensureObject(options, "output");
-			options.output.publicPath = value;
-		});
-
-		ifArg("output-jsonp-function", function(value) {
-			ensureObject(options, "output");
-			options.output.jsonpFunction = value;
-		});
-
-		ifBooleanArg("output-pathinfo", function() {
-			ensureObject(options, "output");
-			options.output.pathinfo = true;
-		});
-
-		ifArg("output-library", function(value) {
-			ensureObject(options, "output");
-			ensureArray(options.output, "library");
-			options.output.library.push(value);
-		});
-
-		ifArg("output-library-target", function(value) {
-			ensureObject(options, "output");
-			options.output.libraryTarget = value;
-		});
-
-		ifArg("records-input-path", function(value) {
-			options.recordsInputPath = path.resolve(value);
-		});
-
-		ifArg("records-output-path", function(value) {
-			options.recordsOutputPath = path.resolve(value);
-		});
-
-		ifArg("records-path", function(value) {
-			options.recordsPath = path.resolve(value);
-		});
-
-		ifArg("target", function(value) {
-			options.target = value;
-		});
-
-		mapArgToBoolean("cache");
-
-		ifBooleanArg("hot", function() {
-			const HotModuleReplacementPlugin = require("webpack").HotModuleReplacementPlugin;
-			addPlugin(options, new HotModuleReplacementPlugin());
-		});
-
-		ifBooleanArg("no-cache", function() {
-			options.cache = false;
-		});
-
-		ifBooleanArg("debug", function() {
-			const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
-			addPlugin(
-				options,
-				new LoaderOptionsPlugin({
-					debug: true
-				})
-			);
-		});
-
-		ifArg("devtool", function(value) {
-			options.devtool = value;
-		});
-
-		function processResolveAlias(arg, key) {
-			ifArgPair(arg, function(name, value) {
-				if (!name) {
-					throw new Error("--" + arg + " <string>=<string>");
-				}
-				ensureObject(options, key);
-				ensureObject(options[key], "alias");
-				options[key].alias[name] = value;
-			});
-		}
-		processResolveAlias("resolve-alias", "resolve");
-		processResolveAlias("resolve-loader-alias", "resolveLoader");
-
-		ifArg("resolve-extensions", function(value) {
-			ensureObject(options, "resolve");
-			if (Array.isArray(value)) {
-				options.resolve.extensions = value;
-			} else {
-				options.resolve.extensions = value.split(/,\s*/);
-			}
-		});
-
-		ifArg("optimize-max-chunks", function(value) {
-			const LimitChunkCountPlugin = require("webpack").optimize.LimitChunkCountPlugin;
-			addPlugin(
-				options,
-				new LimitChunkCountPlugin({
-					maxChunks: parseInt(value, 10)
-				})
-			);
-		});
-
-		ifArg("optimize-min-chunk-size", function(value) {
-			const MinChunkSizePlugin = require("webpack").optimize.MinChunkSizePlugin;
-			addPlugin(
-				options,
-				new MinChunkSizePlugin({
-					minChunkSize: parseInt(value, 10)
-				})
-			);
-		});
-
-		ifBooleanArg("optimize-minimize", function() {
-			const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
-			addPlugin(
-				options,
-				new LoaderOptionsPlugin({
-					minimize: true
-				})
-			);
-		});
-
-		ifArg("prefetch", function(request) {
-			const PrefetchPlugin = require("webpack").PrefetchPlugin;
-			addPlugin(options, new PrefetchPlugin(request));
-		});
-
-		ifArg("provide", function(value) {
-			const idx = value.indexOf("=");
-			let name;
-			if (idx >= 0) {
-				name = value.substr(0, idx);
-				value = value.substr(idx + 1);
-			} else {
-				name = value;
-			}
-			const ProvidePlugin = require("webpack").ProvidePlugin;
-			addPlugin(options, new ProvidePlugin(name, value));
-		});
-
-		ifArg("plugin", function(value) {
-			addPlugin(options, loadPlugin(value));
-		});
-
-		mapArgToBoolean("bail");
-
-		mapArgToBoolean("profile");
-
-		if (argv._.length > 0) {
-			ensureObject(options, "entry", true);
-
-			const addTo = function addTo(name, entry) {
-				if (options.entry[name]) {
-					if (!Array.isArray(options.entry[name])) {
-						options.entry[name] = [options.entry[name]];
-					}
-					options.entry[name].push(entry);
-				} else {
-					options.entry[name] = entry;
-				}
-			};
-			argv._.forEach(function(content) {
-				const i = content.indexOf("=");
-				const j = content.indexOf("?");
-				if (i < 0 || (j >= 0 && j < i)) {
-					const resolved = path.resolve(content);
-					if (fs.existsSync(resolved)) {
-						addTo("main", `${resolved}${fs.statSync(resolved).isDirectory() ? path.sep : ""}`);
-					} else {
-						addTo("main", content);
-					}
-				} else {
-					addTo(content.substr(0, i), content.substr(i + 1));
-				}
-			});
-		}
-	}
-};

+ 0 - 33
node_modules.bak/webpack-cli/bin/utils/errorHelpers.js

@@ -1,33 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-const { WEBPACK_OPTIONS_FLAG } = require("./constants");
-
-exports.cutOffByFlag = (stack, flag) => {
-	stack = stack.split("\n");
-	for (let i = 0; i < stack.length; i++) if (stack[i].indexOf(flag) >= 0) stack.length = i;
-	return stack.join("\n");
-};
-
-exports.cutOffWebpackOptions = stack => exports.cutOffByFlag(stack, WEBPACK_OPTIONS_FLAG);
-
-exports.cutOffMultilineMessage = (stack, message) => {
-	stack = stack.split("\n");
-	message = message.split("\n");
-
-	return stack
-		.reduce(
-			(acc, line, idx) => (line === message[idx] || line === `Error: ${message[idx]}` ? acc : acc.concat(line)),
-			[]
-		)
-		.join("\n");
-};
-
-exports.cleanUpWebpackOptions = (stack, message) => {
-	stack = exports.cutOffWebpackOptions(stack);
-	stack = exports.cutOffMultilineMessage(stack, message);
-	return stack;
-};

+ 0 - 24
node_modules.bak/webpack-cli/bin/utils/prepareOptions.js

@@ -1,24 +0,0 @@
-"use strict";
-
-module.exports = function prepareOptions(options, argv) {
-	argv = argv || {};
-	options = handleExport(options);
-
-	return Array.isArray(options)
-		? options.map(_options => handleFunction(_options, argv))
-		: handleFunction(options, argv);
-};
-
-function handleExport(options) {
-	const isES6DefaultExported =
-		typeof options === "object" && options !== null && typeof options.default !== "undefined";
-
-	return isES6DefaultExported ? options.default : options;
-}
-
-function handleFunction(options, argv) {
-	if (typeof options === "function") {
-		options = options(argv.env, argv);
-	}
-	return options;
-}

+ 0 - 142
node_modules.bak/webpack-cli/bin/utils/prompt-command.js

@@ -1,142 +0,0 @@
-// based on https://github.com/webpack/webpack/blob/master/bin/webpack.js
-
-/**
- * @param {string} command process to run
- * @param {string[]} args commandline arguments
- * @returns {Promise<void>} promise
- */
-const runCommand = (command, args) => {
-	const cp = require("child_process");
-	return new Promise((resolve, reject) => {
-		const executedCommand = cp.spawn(command, args, {
-			stdio: "inherit",
-			shell: true
-		});
-
-		executedCommand.on("error", error => {
-			reject(error);
-		});
-
-		executedCommand.on("exit", code => {
-			if (code === 0) {
-				resolve();
-			} else {
-				reject();
-			}
-		});
-	});
-};
-
-const npmGlobalRoot = () => {
-	const cp = require("child_process");
-	return new Promise((resolve, reject) => {
-		const command = cp.spawn("npm", ["root", "-g"]);
-		command.on("error", error => reject(error));
-		command.stdout.on("data", data => resolve(data.toString()));
-		command.stderr.on("data", data => reject(data));
-	});
-};
-
-const runWhenInstalled = (packages, pathForCmd, ...args) => {
-	const currentPackage = require(pathForCmd);
-	const func = currentPackage.default;
-	if (typeof func !== "function") {
-		throw new Error(`@webpack-cli/${packages} failed to export a default function`);
-	}
-	return func(...args);
-};
-
-module.exports = function promptForInstallation(packages, ...args) {
-	const nameOfPackage = "@webpack-cli/" + packages;
-	let packageIsInstalled = false;
-	let pathForCmd;
-	try {
-		const path = require("path");
-		const fs = require("fs");
-		pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages);
-		if (!fs.existsSync(pathForCmd)) {
-			const globalModules = require("global-modules");
-			pathForCmd = globalModules + "/@webpack-cli/" + packages;
-			require.resolve(pathForCmd);
-		} else {
-			require.resolve(pathForCmd);
-		}
-		packageIsInstalled = true;
-	} catch (err) {
-		packageIsInstalled = false;
-	}
-	if (!packageIsInstalled) {
-		const path = require("path");
-		const fs = require("fs");
-		const readLine = require("readline");
-		const isYarn = fs.existsSync(path.resolve(process.cwd(), "yarn.lock"));
-
-		const packageManager = isYarn ? "yarn" : "npm";
-		const options = ["install", "-D", nameOfPackage];
-
-		if (isYarn) {
-			options[0] = "add";
-		}
-
-		if (packages === "init") {
-			if (isYarn) {
-				options.splice(1, 1); // remove '-D'
-				options.splice(0, 0, "global");
-			} else {
-				options[1] = "-g";
-			}
-		}
-
-		const commandToBeRun = `${packageManager} ${options.join(" ")}`;
-
-		const question = `Would you like to install ${packages}? (That will run ${commandToBeRun}) (yes/NO) : `;
-
-		console.error(`The command moved into a separate package: ${nameOfPackage}`);
-		const questionInterface = readLine.createInterface({
-			input: process.stdin,
-			output: process.stdout
-		});
-		questionInterface.question(question, answer => {
-			questionInterface.close();
-			switch (answer.toLowerCase()) {
-				case "y":
-				case "yes":
-				case "1": {
-					runCommand(packageManager, options)
-						.then(_ => {
-							if (packages === "init") {
-								npmGlobalRoot()
-									.then(root => {
-										const pathtoInit = path.resolve(root.trim(), "@webpack-cli", "init");
-										return pathtoInit;
-									})
-									.then(pathForInit => {
-										return require(pathForInit).default(...args);
-									})
-									.catch(error => {
-										console.error(error);
-										process.exitCode = 1;
-									});
-								return;
-							}
-
-							pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages);
-							return runWhenInstalled(packages, pathForCmd, ...args);
-						})
-						.catch(error => {
-							console.error(error);
-							process.exitCode = 1;
-						});
-					break;
-				}
-				default: {
-					console.error(`${nameOfPackage} needs to be installed in order to run the command.`);
-					process.exitCode = 1;
-					break;
-				}
-			}
-		});
-	} else {
-		return runWhenInstalled(packages, pathForCmd, ...args);
-	}
-};

+ 0 - 21
node_modules.bak/webpack-cli/bin/utils/validate-options.js

@@ -1,21 +0,0 @@
-const webpackConfigurationSchema = require("../config/webpackConfigurationSchema.json");
-const validateSchema = require("webpack").validateSchema;
-
-module.exports = function validateOptions(options) {
-	let error;
-	try {
-		const errors = validateSchema(webpackConfigurationSchema, options);
-		if (errors && errors.length > 0) {
-			const { WebpackOptionsValidationError } = require("webpack");
-			error = new WebpackOptionsValidationError(errors);
-		}
-	} catch (err) {
-		error = err;
-	}
-
-	if (error) {
-		console.error(error.message);
-		// eslint-disable-next-line no-process-exit
-		process.exit(-1);
-	}
-};

+ 0 - 203
node_modules.bak/webpack-cli/package.json

@@ -1,203 +0,0 @@
-{
-  "_from": "webpack-cli@^3.3.1",
-  "_id": "webpack-cli@3.3.12",
-  "_inBundle": false,
-  "_integrity": "sha1-lOmtoIFFPNCqYJyZ5QABL9OtLUo=",
-  "_location": "/webpack-cli",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "webpack-cli@^3.3.1",
-    "name": "webpack-cli",
-    "escapedName": "webpack-cli",
-    "rawSpec": "^3.3.1",
-    "saveSpec": null,
-    "fetchSpec": "^3.3.1"
-  },
-  "_requiredBy": [
-    "/"
-  ],
-  "_resolved": "https://registry.nlark.com/webpack-cli/download/webpack-cli-3.3.12.tgz?cache=0&sync_timestamp=1620306707979&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwebpack-cli%2Fdownload%2Fwebpack-cli-3.3.12.tgz",
-  "_shasum": "94e9ada081453cd0aa609c99e500012fd3ad2d4a",
-  "_spec": "webpack-cli@^3.3.1",
-  "_where": "D:\\朗通信息\\icssDService",
-  "bin": {
-    "webpack-cli": "bin/cli.js"
-  },
-  "bugs": {
-    "url": "https://github.com/webpack/webpack-cli/issues"
-  },
-  "bundleDependencies": false,
-  "config": {
-    "commitizen": {
-      "path": "./node_modules/cz-customizable"
-    },
-    "cz-customizable": {
-      "config": "./.cz-config.js"
-    }
-  },
-  "dependencies": {
-    "chalk": "^2.4.2",
-    "cross-spawn": "^6.0.5",
-    "enhanced-resolve": "^4.1.1",
-    "findup-sync": "^3.0.0",
-    "global-modules": "^2.0.0",
-    "import-local": "^2.0.0",
-    "interpret": "^1.4.0",
-    "loader-utils": "^1.4.0",
-    "supports-color": "^6.1.0",
-    "v8-compile-cache": "^2.1.1",
-    "yargs": "^13.3.2"
-  },
-  "deprecated": false,
-  "description": "CLI for webpack & friends",
-  "devDependencies": {
-    "@babel/preset-env": "^7.8.3",
-    "@babel/register": "7.8.3",
-    "@commitlint/cli": "8.1.0",
-    "@commitlint/config-lerna-scopes": "8.0.0",
-    "@commitlint/travis-cli": "8.0.0",
-    "@strictsoftware/typedoc-plugin-monorepo": "0.2.1",
-    "@types/jest": "24.9.1",
-    "@types/node": "12.0.8",
-    "@typescript-eslint/eslint-plugin": "1.10.2",
-    "@typescript-eslint/parser": "1.10.2",
-    "babel-preset-env": "^1.7.0",
-    "babel-preset-jest": "24.9.0",
-    "codecov": "3.5.0",
-    "commitizen": "4.0.3",
-    "commitlint": "^8.1.0",
-    "commitlint-config-cz": "0.12.0",
-    "conventional-changelog-cli": "2.0.21",
-    "cz-customizable": "6.2.0",
-    "eslint": "5.16.0",
-    "eslint-config-prettier": "5.0.0",
-    "eslint-plugin-node": "9.1.0",
-    "eslint-plugin-prettier": "3.1.0",
-    "esm": "3.2.25",
-    "execa": "1.0.0",
-    "husky": "2.4.1",
-    "jest": "24.9.0",
-    "jest-cli": "24.9.0",
-    "jest-junit": "6.4.0",
-    "lerna": "3.15.0",
-    "lint-staged": "8.2.1",
-    "nyc": "14.1.1",
-    "prettier": "1.18.2",
-    "prettier-eslint-cli": "5.0.0",
-    "readable-stream": "3.4.0",
-    "rimraf": "2.6.3",
-    "schema-utils": "1.0.0",
-    "ts-jest": "24.0.2",
-    "ts-node": "8.3.0",
-    "typescript": "3.5.2",
-    "webpack": "4.x.x",
-    "webpack-dev-server": "3.7.2"
-  },
-  "engines": {
-    "node": ">=6.11.5"
-  },
-  "files": [
-    "bin",
-    "scripts"
-  ],
-  "homepage": "https://github.com/webpack/webpack-cli#readme",
-  "husky": {
-    "hooks": {
-      "pre-commit": "lint-staged",
-      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
-    }
-  },
-  "jest": {
-    "testPathIgnorePatterns": [
-      "/node_modules/"
-    ],
-    "testEnvironment": "node",
-    "collectCoverage": true,
-    "coverageReporters": [
-      "json",
-      "html",
-      "cobertura"
-    ],
-    "transform": {
-      "^.+\\.(ts)?$": "ts-jest"
-    },
-    "testRegex": [
-      "/__tests__/.*\\.(test.js|test.ts)$",
-      "/test/.*\\.(test.js|test.ts)$"
-    ],
-    "moduleFileExtensions": [
-      "ts",
-      "js",
-      "json"
-    ]
-  },
-  "keywords": [
-    "webpack",
-    "cli",
-    "scaffolding",
-    "module",
-    "bundler",
-    "web"
-  ],
-  "license": "MIT",
-  "lint-staged": {
-    "*.md": [
-      "prettier --parser markdown --write",
-      "git add"
-    ],
-    "{packages,bin}/**/!(__testfixtures__)/**.js": [
-      "eslint --fix",
-      "git add"
-    ],
-    "*.ts": [
-      "npm run format:ts",
-      "git add"
-    ],
-    "*.js": [
-      "npm run format:js",
-      "git add"
-    ]
-  },
-  "main": "./bin/cli.js",
-  "name": "webpack-cli",
-  "nyc": {
-    "include": [
-      "bin/**.js",
-      "packages/**/*.js"
-    ],
-    "reporter": [
-      "lcov"
-    ],
-    "all": true
-  },
-  "peerDependencies": {
-    "webpack": "4.x.x"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/webpack/webpack-cli.git"
-  },
-  "scripts": {
-    "bootstrap": "npm run clean:all && npm install && lerna bootstrap",
-    "build": "tsc",
-    "changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile CHANGELOG.md --same-file",
-    "clean:all": "rimraf node_modules packages/*/{node_modules}",
-    "format": "npm run format:js && npm run format:ts",
-    "format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
-    "format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
-    "lint": "eslint \"./bin/*.js\" \"./bin/**/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.ts\"  \"packages/**/!(node_modules)/**/*.ts\"",
-    "pretest": "npm run build && npm run lint",
-    "publish:monorepo": "npm run format && npm run test && lerna publish -m \"chore: monorepo version update\"",
-    "reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov",
-    "test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit",
-    "test:ci": "nyc jest --maxWorkers=$(nproc) --reporters=default --reporters=jest-junit",
-    "test:cli": "nyc jest test/ --maxWorkers=4 --reporters=default --reporters=jest-junit",
-    "test:packages": "nyc jest packages/ --maxWorkers=4 --reporters=default --reporters=jest-junit",
-    "travis:integration": "npm run build && npm run test && npm run reportCoverage",
-    "travis:lint": "npm run build && npm run lint",
-    "watch": "npm run build && tsc -w"
-  },
-  "version": "3.3.12"
-}

+ 0 - 113
node_modules.bak/webpack-dev-middleware/CHANGELOG.md

@@ -1,113 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-### [3.7.3](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.2...v3.7.3) (2020-12-15)
-
-
-### Bug Fixes
-
-* peer dependencies with webpack@5 ([#798](https://github.com/webpack/webpack-dev-middleware/issues/798)) ([71b2bdf](https://github.com/webpack/webpack-dev-middleware/commit/71b2bdf))
-
-### [3.7.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.1...v3.7.2) (2019-09-28)
-
-
-### Bug Fixes
-
-* compatibility with webpack@5 ([#473](https://github.com/webpack/webpack-dev-middleware/issues/473)) ([63da9ae](https://github.com/webpack/webpack-dev-middleware/commit/63da9ae))
-* memory leak when `writeToDisk` used ([#472](https://github.com/webpack/webpack-dev-middleware/issues/472)) ([6730076](https://github.com/webpack/webpack-dev-middleware/commit/6730076))
-
-### [3.7.1](https://github.com/webpack/webpack-dev-middleware/compare/v3.7.0...v3.7.1) (2019-09-03)
-
-
-### Bug Fixes
-
-* directly used mkdirp instead of through Webpack ([#436](https://github.com/webpack/webpack-dev-middleware/issues/436)) ([dff39a1](https://github.com/webpack/webpack-dev-middleware/commit/dff39a1))
-* displayStats only logged ([#427](https://github.com/webpack/webpack-dev-middleware/issues/427)) ([98deaf4](https://github.com/webpack/webpack-dev-middleware/commit/98deaf4))
-* the `writeToFile` option has compatibility with webpack@5 ([#459](https://github.com/webpack/webpack-dev-middleware/issues/459)) ([5c90e1e](https://github.com/webpack/webpack-dev-middleware/commit/5c90e1e))
-
-## [3.7.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.6.2...v3.7.0) (2019-05-15)
-
-
-### Features
-
-* support `HEAD` method by default ([#398](https://github.com/webpack/webpack-dev-middleware/issues/398)) ([ec3d5eb](https://github.com/webpack/webpack-dev-middleware/commit/ec3d5eb))
-
-
-
-<a name="3.6.2"></a>
-## [3.6.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.6.1...v3.6.2) (2019-04-03)
-
-
-### Bug Fixes
-
-* check existence of `res.getHeader` and set the correct Content-Type ([#385](https://github.com/webpack/webpack-dev-middleware/issues/385)) ([56dc705](https://github.com/webpack/webpack-dev-middleware/commit/56dc705))
-
-
-
-## [3.6.1](https://github.com/webpack/webpack-dev-middleware/compare/v3.6.0...v3.6.1) (2019-03-06)
-
-
-### Bug Fixes
-
-* do not overwrite Content-Type if header already exists ([#377](https://github.com/webpack/webpack-dev-middleware/issues/377)) ([b2a6fed](https://github.com/webpack/webpack-dev-middleware/commit/b2a6fed))
-
-
-
-<a name="3.5.2"></a>
-## [3.5.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.5.1...v3.5.2) (2019-02-06)
-
-
-### Bug Fixes
-
-* don't add charset to `usdz` file type ([#357](https://github.com/webpack/webpack-dev-middleware/issues/357)) ([b135b3d](https://github.com/webpack/webpack-dev-middleware/commit/b135b3d))
-
-
-
-<a name="3.5.1"></a>
-## [3.5.1](https://github.com/webpack/webpack-dev-middleware/compare/v3.5.0...v3.5.1) (2019-01-17)
-
-
-### Bug Fixes
-
-* remove querystring from filenames when writing to disk ([#361](https://github.com/webpack/webpack-dev-middleware/issues/361)) ([90d0d94](https://github.com/webpack/webpack-dev-middleware/commit/90d0d94))
-
-
-
-<a name="3.5.0"></a>
-# [3.5.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.4.0...v3.5.0) (2019-01-04)
-
-
-### Bug Fixes
-
-* **middleware:** do not add 'null' to Content-Type ([#355](https://github.com/webpack/webpack-dev-middleware/issues/355)) ([cf4d7a9](https://github.com/webpack/webpack-dev-middleware/commit/cf4d7a9))
-
-
-### Features
-
-* allow to redefine `mimeTypes` (possible to use `force` option) ([#349](https://github.com/webpack/webpack-dev-middleware/issues/349)) ([e56a181](https://github.com/webpack/webpack-dev-middleware/commit/e56a181))
-
-
-
-<a name="3.3.0"></a>
-# [3.3.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.2.0...v3.3.0) (2018-09-10)
-
-
-### Features
-
-* **middleware:** expose the memory filesystem (`response.locals.fs`) ([#337](https://github.com/webpack/webpack-dev-middleware/issues/337)) ([f9a138e](https://github.com/webpack/webpack-dev-middleware/commit/f9a138e))
-
-
-
-<a name="3.2.0"></a>
-# [3.2.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.1.3...v3.2.0) (2018-08-23)
-
-
-### Bug Fixes
-
-* **package:** 18 security vulnerabilities ([#329](https://github.com/webpack/webpack-dev-middleware/issues/329)) ([5951de9](https://github.com/webpack/webpack-dev-middleware/commit/5951de9))
-
-
-### Features
-
-* **middleware:** add `methods` option (`options.methods`) ([#319](https://github.com/webpack/webpack-dev-middleware/issues/319)) ([fe6bb86](https://github.com/webpack/webpack-dev-middleware/commit/fe6bb86))

+ 0 - 20
node_modules.bak/webpack-dev-middleware/LICENSE

@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0 - 451
node_modules.bak/webpack-dev-middleware/README.md

@@ -1,451 +0,0 @@
-<div align="center">
-  <a href="https://github.com/webpack/webpack">
-    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
-  </a>
-</div>
-
-[![npm][npm]][npm-url]
-[![node][node]][node-url]
-[![deps][deps]][deps-url]
-[![tests][tests]][tests-url]
-[![coverage][cover]][cover-url]
-[![chat][chat]][chat-url]
-[![size][size]][size-url]
-
-# webpack-dev-middleware
-
-An express-style development middleware for use with [webpack](https://webpack.js.org)
-bundles and allows for serving of the files emitted from webpack.
-This should be used for **development only**.
-
-Some of the benefits of using this middleware include:
-
-- No files are written to disk, rather it handles files in memory
-- If files changed in watch mode, the middleware delays requests until compiling
-  has completed.
-- Supports hot module reload (HMR).
-
-## Requirements
-
-This module requires a minimum of Node v6.9.0 and Webpack v4.0.0, and must be used with a
-server that accepts express-style middleware.
-
-## Getting Started
-
-First thing's first, install the module:
-
-```console
-npm install webpack-dev-middleware --save-dev
-```
-
-_Note: We do not recommend installing this module globally._
-
-## Usage
-
-```js
-const webpack = require('webpack');
-const middleware = require('webpack-dev-middleware');
-const compiler = webpack({
-  // webpack options
-});
-const express = require('express');
-const app = express();
-
-app.use(
-  middleware(compiler, {
-    // webpack-dev-middleware options
-  })
-);
-
-app.listen(3000, () => console.log('Example app listening on port 3000!'));
-```
-
-## Options
-
-The middleware accepts an `options` Object. The following is a property reference
-for the Object.
-
-_Note: The `publicPath` property is required, whereas all other options are optional_
-
-### methods
-
-Type: `Array`  
-Default: `[ 'GET', 'HEAD' ]`
-
-This property allows a user to pass the list of HTTP request methods accepted by the server.
-
-### headers
-
-Type: `Object`  
-Default: `undefined`
-
-This property allows a user to pass custom HTTP headers on each request. eg.
-`{ "X-Custom-Header": "yes" }`
-
-### index
-
-Type: `String`  
-Default: `undefined`
-
-"index.html",
-// The index path for web server, defaults to "index.html".
-// If falsy (but not undefined), the server will not respond to requests to the root URL.
-
-### lazy
-
-Type: `Boolean`  
-Default: `undefined`
-
-This option instructs the module to operate in 'lazy' mode, meaning that it won't
-recompile when files change, but rather on each request.
-
-### logger
-
-Type: `Object`  
-Default: [`webpack-log`](https://github.com/webpack-contrib/webpack-log/blob/master/index.js)
-
-In the rare event that a user would like to provide a custom logging interface,
-this property allows the user to assign one. The module leverages
-[`webpack-log`](https://github.com/webpack-contrib/webpack-log#readme)
-for creating the [`loglevelnext`](https://github.com/shellscape/loglevelnext#readme)
-logging management by default. Any custom logger must adhere to the same
-exports for compatibility. Specifically, all custom loggers must have the
-following exported methods at a minimum:
-
-- `log.trace`
-- `log.debug`
-- `log.info`
-- `log.warn`
-- `log.error`
-
-Please see the documentation for `loglevel` for more information.
-
-### logLevel
-
-Type: `String`  
-Default: `'info'`
-
-This property defines the level of messages that the module will log. Valid levels
-include:
-
-- `trace`
-- `debug`
-- `info`
-- `warn`
-- `error`
-- `silent`
-
-Setting a log level means that all other levels below it will be visible in the
-console. Setting `logLevel: 'silent'` will hide all console output. The module
-leverages [`webpack-log`](https://github.com/webpack-contrib/webpack-log#readme)
-for logging management, and more information can be found on its page.
-
-### logTime
-
-Type: `Boolean`  
-Default: `false`
-
-If `true` the log output of the module will be prefixed by a timestamp in the
-`HH:mm:ss` format.
-
-### mimeTypes
-
-Type: `Object`  
-Default: `null`
-
-This property allows a user to register custom mime types or extension mappings.
-eg. `mimeTypes: { 'text/html': [ 'phtml' ] }`.
-
-By default node-mime will throw an error if you try to map a type to an extension
-that is already assigned to another type. Passing `force: true` will suppress this behavior
-(overriding any previous mapping).
-eg. `mimeTypes: { typeMap: { 'text/html': [ 'phtml' ] } }, force: true }`.
-
-Please see the documentation for
-[`node-mime`](https://github.com/broofa/node-mime#mimedefinetypemap-force--false) for more information.
-
-### publicPath
-
-Type: `String`  
-_Required_
-
-The public path that the middleware is bound to. _Best Practice: use the same
-`publicPath` defined in your webpack config. For more information about
-`publicPath`, please see
-[the webpack documentation](https://webpack.js.org/guides/public-path)._
-
-### reporter
-
-Type: `Object`  
-Default: `undefined`
-
-Allows users to provide a custom reporter to handle logging within the module.
-Please see the [default reporter](/lib/reporter.js)
-for an example.
-
-### serverSideRender
-
-Type: `Boolean`  
-Default: `undefined`
-
-Instructs the module to enable or disable the server-side rendering mode. Please
-see [Server-Side Rendering](#server-side-rendering) for more information.
-
-### stats
-
-Type: `Object`  
-Default: `{ context: process.cwd() }`
-
-Options for formatting statistics displayed during and after compile. For more
-information and property details, please see the
-[webpack documentation](https://webpack.js.org/configuration/stats/#stats).
-
-### watchOptions
-
-Type: `Object`  
-Default: `{ aggregateTimeout: 200 }`
-
-The module accepts an `Object` containing options for file watching, which is
-passed directly to the compiler provided. For more information on watch options
-please see the [webpack documentation](https://webpack.js.org/configuration/watch/#watchoptions)
-
-### writeToDisk
-
-Type: `Boolean|Function`  
-Default: `false`
-
-If `true`, the option will instruct the module to write files to the configured
-location on disk as specified in your `webpack` config file. _Setting
-`writeToDisk: true` won't change the behavior of the `webpack-dev-middleware`,
-and bundle files accessed through the browser will still be served from memory._
-This option provides the same capabilities as the
-[`WriteFilePlugin`](https://github.com/gajus/write-file-webpack-plugin/pulls).
-
-This option also accepts a `Function` value, which can be used to filter which
-files are written to disk. The function follows the same premise as
-[`Array#filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)
-in which a return value of `false` _will not_ write the file, and a return value
-of `true` _will_ write the file to disk. eg.
-
-```js
-{
-  writeToDisk: (filePath) => {
-    return /superman\.css$/.test(filePath);
-  };
-}
-```
-
-### fs
-
-Type: `Object`  
-Default: `MemoryFileSystem`
-
-Set the default file system which will be used by webpack as primary destination of generated files. Default is set to webpack's default file system: [memory-fs](https://github.com/webpack/memory-fs). This option isn't affected by the [writeToDisk](#writeToDisk) option.
-
-**Note:** As of 3.5.x version of the middleware you have to provide `.join()` method to the `fs` instance manually. This can be done simply by using `path.join`:
-
-```js
-fs.join = path.join; // no need to bind
-```
-
-## API
-
-`webpack-dev-middleware` also provides convenience methods that can be use to
-interact with the middleware at runtime:
-
-### `close(callback)`
-
-Instructs a webpack-dev-middleware instance to stop watching for file changes.
-
-### Parameters
-
-#### callback
-
-Type: `Function`
-
-A function executed once the middleware has stopped watching.
-
-### `invalidate()`
-
-Instructs a webpack-dev-middleware instance to recompile the bundle.
-e.g. after a change to the configuration.
-
-```js
-const webpack = require('webpack');
-const compiler = webpack({ ... });
-const middleware = require('webpack-dev-middleware');
-const instance = middleware(compiler);
-
-app.use(instance);
-
-setTimeout(() => {
-  // After a short delay the configuration is changed and a banner plugin is added
-  // to the config
-  compiler.apply(new webpack.BannerPlugin('A new banner'));
-
-  // Recompile the bundle with the banner plugin:
-  instance.invalidate();
-}, 1000);
-```
-
-### `waitUntilValid(callback)`
-
-Executes a callback function when the compiler bundle is valid, typically after
-compilation.
-
-### Parameters
-
-#### callback
-
-Type: `Function`
-
-A function executed when the bundle becomes valid. If the bundle is
-valid at the time of calling, the callback is executed immediately.
-
-```js
-const webpack = require('webpack');
-const compiler = webpack({ ... });
-const middleware = require('webpack-dev-middleware');
-const instance = middleware(compiler);
-
-app.use(instance);
-
-instance.waitUntilValid(() => {
-  console.log('Package is in a valid state');
-});
-```
-
-## Known Issues
-
-### Multiple Successive Builds
-
-Watching (by means of `lazy: false`) will frequently cause multiple compilations
-as the bundle changes during compilation. This is due in part to cross-platform
-differences in file watchers, so that webpack doesn't loose file changes when
-watched files change rapidly. If you run into this situation, please make use of
-the [`TimeFixPlugin`](https://github.com/egoist/time-fix-plugin).
-
-## Server-Side Rendering
-
-_Note: this feature is experimental and may be removed or changed completely in the future._
-
-In order to develop an app using server-side rendering, we need access to the
-[`stats`](https://github.com/webpack/docs/wiki/node.js-api#stats), which is
-generated with each build.
-
-With server-side rendering enabled, `webpack-dev-middleware` sets the `stat` to
-`res.locals.webpackStats` and the memory filesystem to `res.locals.fs` before invoking the next middleware, allowing a
-developer to render the page body and manage the response to clients.
-
-_Note: Requests for bundle files will still be handled by
-`webpack-dev-middleware` and all requests will be pending until the build
-process is finished with server-side rendering enabled._
-
-Example Implementation:
-
-```js
-const webpack = require('webpack');
-const compiler = webpack({
-  // webpack options
-});
-const isObject = require('is-object');
-const middleware = require('webpack-dev-middleware');
-
-// This function makes server rendering of asset references consistent with different webpack chunk/entry configurations
-function normalizeAssets(assets) {
-  if (isObject(assets)) {
-    return Object.values(assets);
-  }
-
-  return Array.isArray(assets) ? assets : [assets];
-}
-
-app.use(middleware(compiler, { serverSideRender: true }));
-
-// The following middleware would not be invoked until the latest build is finished.
-app.use((req, res) => {
-  const assetsByChunkName = res.locals.webpackStats.toJson().assetsByChunkName;
-  const fs = res.locals.fs;
-  const outputPath = res.locals.webpackStats.toJson().outputPath;
-
-  // then use `assetsByChunkName` for server-sider rendering
-  // For example, if you have only one main chunk:
-  res.send(`
-<html>
-  <head>
-    <title>My App</title>
-    <style>
-    ${normalizeAssets(assetsByChunkName.main)
-      .filter((path) => path.endsWith('.css'))
-      .map((path) => fs.readFileSync(outputPath + '/' + path))
-      .join('\n')}
-    </style>
-  </head>
-  <body>
-    <div id="root"></div>
-    ${normalizeAssets(assetsByChunkName.main)
-      .filter((path) => path.endsWith('.js'))
-      .map((path) => `<script src="${path}"></script>`)
-      .join('\n')}
-  </body>
-</html>
-  `);
-});
-```
-
-## Support
-
-We do our best to keep Issues in the repository focused on bugs, features, and
-needed modifications to the code for the module. Because of that, we ask users
-with general support, "how-to", or "why isn't this working" questions to try one
-of the other support channels that are available.
-
-Your first-stop-shop for support for webpack-dev-server should by the excellent
-[documentation][docs-url] for the module. If you see an opportunity for improvement
-of those docs, please head over to the [webpack.js.org repo][wjo-url] and open a
-pull request.
-
-From there, we encourage users to visit the [webpack Gitter chat][chat-url] and
-talk to the fine folks there. If your quest for answers comes up dry in chat,
-head over to [StackOverflow][stack-url] and do a quick search or open a new
-question. Remember; It's always much easier to answer questions that include your
-`webpack.config.js` and relevant files!
-
-If you're twitter-savvy you can tweet [#webpack][hash-url] with your question
-and someone should be able to reach out and lend a hand.
-
-If you have discovered a :bug:, have a feature suggestion, or would like to see
-a modification, please feel free to create an issue on Github. _Note: The issue
-template isn't optional, so please be sure not to remove it, and please fill it
-out completely._
-
-## Contributing
-
-Please take a moment to read our contributing guidelines if you haven't yet done so.
-
-[CONTRIBUTING](./.github/CONTRIBUTING.md)
-
-## License
-
-[MIT](./LICENSE)
-
-[npm]: https://img.shields.io/npm/v/webpack-dev-middleware.svg
-[npm-url]: https://npmjs.com/package/webpack-dev-middleware
-[node]: https://img.shields.io/node/v/webpack-dev-middleware.svg
-[node-url]: https://nodejs.org
-[deps]: https://david-dm.org/webpack/webpack-dev-middleware.svg
-[deps-url]: https://david-dm.org/webpack/webpack-dev-middleware
-[tests]: https://dev.azure.com/webpack/webpack-dev-middleware/_apis/build/status/webpack.webpack-dev-middleware?branchName=master
-[tests-url]: https://dev.azure.com/webpack/webpack-dev-middleware/_build/latest?definitionId=8&branchName=master
-[cover]: https://codecov.io/gh/webpack/webpack-dev-middleware/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack/webpack-dev-middleware
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-[size]: https://packagephobia.now.sh/badge?p=webpack-dev-middleware
-[size-url]: https://packagephobia.now.sh/result?p=webpack-dev-middleware
-[docs-url]: https://webpack.js.org/guides/development/#using-webpack-dev-middleware
-[hash-url]: https://twitter.com/search?q=webpack
-[middleware-url]: https://github.com/webpack/webpack-dev-middleware
-[stack-url]: https://stackoverflow.com/questions/tagged/webpack-dev-middleware
-[uglify-url]: https://github.com/webpack-contrib/uglifyjs-webpack-plugin
-[wjo-url]: https://github.com/webpack/webpack.js.org

+ 0 - 108
node_modules.bak/webpack-dev-middleware/index.js

@@ -1,108 +0,0 @@
-'use strict';
-
-const mime = require('mime');
-
-const createContext = require('./lib/context');
-const middleware = require('./lib/middleware');
-const reporter = require('./lib/reporter');
-const { setFs, toDisk } = require('./lib/fs');
-const { getFilenameFromUrl, noop, ready } = require('./lib/util');
-
-const defaults = {
-  logLevel: 'info',
-  logTime: false,
-  logger: null,
-  mimeTypes: null,
-  reporter,
-  stats: {
-    colors: true,
-    context: process.cwd(),
-  },
-  watchOptions: {
-    aggregateTimeout: 200,
-  },
-  writeToDisk: false,
-};
-
-module.exports = function wdm(compiler, opts) {
-  const options = Object.assign({}, defaults, opts);
-
-  // defining custom MIME type
-  if (options.mimeTypes) {
-    const typeMap = options.mimeTypes.typeMap || options.mimeTypes;
-    const force = !!options.mimeTypes.force;
-    mime.define(typeMap, force);
-  }
-
-  const context = createContext(compiler, options);
-
-  // start watching
-  if (!options.lazy) {
-    context.watching = compiler.watch(options.watchOptions, (err) => {
-      if (err) {
-        context.log.error(err.stack || err);
-        if (err.details) {
-          context.log.error(err.details);
-        }
-      }
-    });
-  } else {
-    if (typeof options.filename === 'string') {
-      const filename = options.filename
-        .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') // eslint-disable-line no-useless-escape
-        .replace(/\\\[[a-z]+\\\]/gi, '.+');
-
-      options.filename = new RegExp(`^[/]{0,1}${filename}$`);
-    }
-
-    context.state = true;
-  }
-
-  if (options.writeToDisk) {
-    toDisk(context);
-  }
-
-  setFs(context, compiler);
-
-  return Object.assign(middleware(context), {
-    close(callback) {
-      // eslint-disable-next-line no-param-reassign
-      callback = callback || noop;
-
-      if (context.watching) {
-        context.watching.close(callback);
-      } else {
-        callback();
-      }
-    },
-
-    context,
-
-    fileSystem: context.fs,
-
-    getFilenameFromUrl: getFilenameFromUrl.bind(
-      this,
-      context.options.publicPath,
-      context.compiler
-    ),
-
-    invalidate(callback) {
-      // eslint-disable-next-line no-param-reassign
-      callback = callback || noop;
-
-      if (context.watching) {
-        ready(context, callback, {});
-        context.watching.invalidate();
-      } else {
-        callback();
-      }
-    },
-
-    waitUntilValid(callback) {
-      // eslint-disable-next-line no-param-reassign
-      callback = callback || noop;
-
-      ready(context, callback, {});
-    },
-  });
-};

+ 0 - 3
node_modules.bak/webpack-dev-middleware/lib/DevMiddlewareError.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = class DevMiddlewareError extends Error {};

+ 0 - 106
node_modules.bak/webpack-dev-middleware/lib/context.js

@@ -1,106 +0,0 @@
-'use strict';
-
-const weblog = require('webpack-log');
-
-module.exports = function ctx(compiler, options) {
-  const context = {
-    state: false,
-    webpackStats: null,
-    callbacks: [],
-    options,
-    compiler,
-    watching: null,
-    forceRebuild: false,
-  };
-
-  if (options.logger) {
-    context.log = options.logger;
-  } else {
-    context.log = weblog({
-      level: options.logLevel || 'info',
-      name: 'wdm',
-      timestamp: options.logTime,
-    });
-  }
-
-  const { log } = context;
-
-  function done(stats) {
-    // We are now on valid state
-    context.state = true;
-    context.webpackStats = stats;
-
-    // Do the stuff in nextTick, because bundle may be invalidated
-    // if a change happened while compiling
-    process.nextTick(() => {
-      // check if still in valid state
-      if (!context.state) {
-        return;
-      }
-
-      // print webpack output
-      context.options.reporter(context.options, {
-        log,
-        state: true,
-        stats,
-      });
-
-      // execute callback that are delayed
-      const cbs = context.callbacks;
-      context.callbacks = [];
-      cbs.forEach((cb) => {
-        cb(stats);
-      });
-    });
-
-    // In lazy mode, we may issue another rebuild
-    if (context.forceRebuild) {
-      context.forceRebuild = false;
-      rebuild();
-    }
-  }
-
-  function invalid(callback) {
-    if (context.state) {
-      context.options.reporter(context.options, {
-        log,
-        state: false,
-      });
-    }
-
-    // We are now in invalid state
-    context.state = false;
-    if (typeof callback === 'function') {
-      callback();
-    }
-  }
-
-  function rebuild() {
-    if (context.state) {
-      context.state = false;
-      context.compiler.run((err) => {
-        if (err) {
-          log.error(err.stack || err);
-          if (err.details) {
-            log.error(err.details);
-          }
-        }
-      });
-    } else {
-      context.forceRebuild = true;
-    }
-  }
-
-  context.rebuild = rebuild;
-  context.compiler.hooks.invalid.tap('WebpackDevMiddleware', invalid);
-  context.compiler.hooks.run.tap('WebpackDevMiddleware', invalid);
-  context.compiler.hooks.done.tap('WebpackDevMiddleware', done);
-  context.compiler.hooks.watchRun.tap(
-    'WebpackDevMiddleware',
-    (comp, callback) => {
-      invalid(callback);
-    }
-  );
-
-  return context;
-};

+ 0 - 140
node_modules.bak/webpack-dev-middleware/lib/fs.js

@@ -1,140 +0,0 @@
-'use strict';
-
-const fs = require('fs');
-const path = require('path');
-
-const MemoryFileSystem = require('memory-fs');
-const mkdirp = require('mkdirp');
-const { colors } = require('webpack-log');
-
-const DevMiddlewareError = require('./DevMiddlewareError');
-
-module.exports = {
-  toDisk(context) {
-    const compilers = context.compiler.compilers || [context.compiler];
-
-    for (const compiler of compilers) {
-      compiler.hooks.emit.tap('WebpackDevMiddleware', (compilation) => {
-        if (compiler.hasWebpackDevMiddlewareAssetEmittedCallback) {
-          return;
-        }
-
-        compiler.hooks.assetEmitted.tapAsync(
-          'WebpackDevMiddleware',
-          (file, info, callback) => {
-            let targetPath = null;
-            let content = null;
-
-            // webpack@5
-            if (info.compilation) {
-              ({ targetPath, content } = info);
-            } else {
-              let targetFile = file;
-
-              const queryStringIdx = targetFile.indexOf('?');
-
-              if (queryStringIdx >= 0) {
-                targetFile = targetFile.substr(0, queryStringIdx);
-              }
-
-              let { outputPath } = compiler;
-
-              // TODO Why? Need remove in future major release
-              if (outputPath === '/') {
-                outputPath = compiler.context;
-              }
-
-              outputPath = compilation.getPath(outputPath, {});
-              content = info;
-              targetPath = path.join(outputPath, targetFile);
-            }
-
-            const { writeToDisk: filter } = context.options;
-            const allowWrite =
-              filter && typeof filter === 'function'
-                ? filter(targetPath)
-                : true;
-
-            if (!allowWrite) {
-              return callback();
-            }
-
-            const { log } = context;
-            const dir = path.dirname(targetPath);
-
-            return mkdirp(dir, (mkdirpError) => {
-              if (mkdirpError) {
-                return callback(mkdirpError);
-              }
-
-              return fs.writeFile(targetPath, content, (writeFileError) => {
-                if (writeFileError) {
-                  return callback(writeFileError);
-                }
-
-                log.debug(
-                  colors.cyan(
-                    `Asset written to disk: ${path.relative(
-                      process.cwd(),
-                      targetPath
-                    )}`
-                  )
-                );
-
-                return callback();
-              });
-            });
-          }
-        );
-        compiler.hasWebpackDevMiddlewareAssetEmittedCallback = true;
-      });
-    }
-  },
-
-  setFs(context, compiler) {
-    if (
-      typeof compiler.outputPath === 'string' &&
-      !path.posix.isAbsolute(compiler.outputPath) &&
-      !path.win32.isAbsolute(compiler.outputPath)
-    ) {
-      throw new DevMiddlewareError(
-        '`output.path` needs to be an absolute path or `/`.'
-      );
-    }
-
-    let fileSystem;
-
-    // store our files in memory
-    const isConfiguredFs = context.options.fs;
-    const isMemoryFs =
-      !isConfiguredFs &&
-      !compiler.compilers &&
-      compiler.outputFileSystem instanceof MemoryFileSystem;
-
-    if (isConfiguredFs) {
-      // eslint-disable-next-line no-shadow
-      const { fs } = context.options;
-
-      if (typeof fs.join !== 'function') {
-        // very shallow check
-        throw new Error(
-          'Invalid options: options.fs.join() method is expected'
-        );
-      }
-
-      // eslint-disable-next-line no-param-reassign
-      compiler.outputFileSystem = fs;
-      fileSystem = fs;
-    } else if (isMemoryFs) {
-      fileSystem = compiler.outputFileSystem;
-    } else {
-      fileSystem = new MemoryFileSystem();
-
-      // eslint-disable-next-line no-param-reassign
-      compiler.outputFileSystem = fileSystem;
-    }
-
-    // eslint-disable-next-line no-param-reassign
-    context.fs = fileSystem;
-  },
-};

+ 0 - 136
node_modules.bak/webpack-dev-middleware/lib/middleware.js

@@ -1,136 +0,0 @@
-'use strict';
-
-const path = require('path');
-
-const mime = require('mime');
-
-const DevMiddlewareError = require('./DevMiddlewareError');
-const {
-  getFilenameFromUrl,
-  handleRangeHeaders,
-  handleRequest,
-  ready,
-} = require('./util');
-
-// Do not add a charset to the Content-Type header of these file types
-// otherwise the client will fail to render them correctly.
-const NonCharsetFileTypes = /\.(wasm|usdz)$/;
-
-module.exports = function wrapper(context) {
-  return function middleware(req, res, next) {
-    // fixes #282. credit @cexoso. in certain edge situations res.locals is
-    // undefined.
-    // eslint-disable-next-line no-param-reassign
-    res.locals = res.locals || {};
-
-    function goNext() {
-      if (!context.options.serverSideRender) {
-        return next();
-      }
-
-      return new Promise((resolve) => {
-        ready(
-          context,
-          () => {
-            // eslint-disable-next-line no-param-reassign
-            res.locals.webpackStats = context.webpackStats;
-            // eslint-disable-next-line no-param-reassign
-            res.locals.fs = context.fs;
-
-            resolve(next());
-          },
-          req
-        );
-      });
-    }
-
-    const acceptedMethods = context.options.methods || ['GET', 'HEAD'];
-
-    if (acceptedMethods.indexOf(req.method) === -1) {
-      return goNext();
-    }
-
-    let filename = getFilenameFromUrl(
-      context.options.publicPath,
-      context.compiler,
-      req.url
-    );
-
-    if (filename === false) {
-      return goNext();
-    }
-
-    return new Promise((resolve) => {
-      handleRequest(context, filename, processRequest, req);
-      // eslint-disable-next-line consistent-return
-      function processRequest() {
-        try {
-          let stat = context.fs.statSync(filename);
-
-          if (!stat.isFile()) {
-            if (stat.isDirectory()) {
-              let { index } = context.options;
-
-              // eslint-disable-next-line no-undefined
-              if (index === undefined || index === true) {
-                index = 'index.html';
-              } else if (!index) {
-                throw new DevMiddlewareError('next');
-              }
-
-              filename = path.posix.join(filename, index);
-              stat = context.fs.statSync(filename);
-
-              if (!stat.isFile()) {
-                throw new DevMiddlewareError('next');
-              }
-            } else {
-              throw new DevMiddlewareError('next');
-            }
-          }
-        } catch (e) {
-          return resolve(goNext());
-        }
-
-        // server content
-        let content = context.fs.readFileSync(filename);
-
-        content = handleRangeHeaders(content, req, res);
-
-        let contentType = mime.getType(filename) || '';
-
-        if (!NonCharsetFileTypes.test(filename)) {
-          contentType += '; charset=UTF-8';
-        }
-
-        if (!res.getHeader || !res.getHeader('Content-Type')) {
-          res.setHeader('Content-Type', contentType);
-        }
-
-        res.setHeader('Content-Length', content.length);
-
-        const { headers } = context.options;
-
-        if (headers) {
-          for (const name in headers) {
-            if ({}.hasOwnProperty.call(headers, name)) {
-              res.setHeader(name, context.options.headers[name]);
-            }
-          }
-        }
-
-        // Express automatically sets the statusCode to 200, but not all servers do (Koa).
-        // eslint-disable-next-line no-param-reassign
-        res.statusCode = res.statusCode || 200;
-
-        if (res.send) {
-          res.send(content);
-        } else {
-          res.end(content);
-        }
-
-        resolve();
-      }
-    });
-  };
-};

+ 0 - 32
node_modules.bak/webpack-dev-middleware/lib/reporter.js

@@ -1,32 +0,0 @@
-'use strict';
-
-module.exports = function reporter(middlewareOptions, options) {
-  const { log, state, stats } = options;
-
-  if (state) {
-    const displayStats = middlewareOptions.stats !== false;
-    const statsString = stats.toString(middlewareOptions.stats);
-
-    // displayStats only logged
-    if (displayStats && statsString.trim().length) {
-      if (stats.hasErrors()) {
-        log.error(statsString);
-      } else if (stats.hasWarnings()) {
-        log.warn(statsString);
-      } else {
-        log.info(statsString);
-      }
-    }
-
-    let message = 'Compiled successfully.';
-
-    if (stats.hasErrors()) {
-      message = 'Failed to compile.';
-    } else if (stats.hasWarnings()) {
-      message = 'Compiled with warnings.';
-    }
-    log.info(message);
-  } else {
-    log.info('Compiling...');
-  }
-};

+ 0 - 188
node_modules.bak/webpack-dev-middleware/lib/util.js

@@ -1,188 +0,0 @@
-'use strict';
-
-const path = require('path');
-const { parse } = require('url');
-const querystring = require('querystring');
-
-const parseRange = require('range-parser');
-
-const HASH_REGEXP = /[0-9a-f]{10,}/;
-
-// support for multi-compiler configuration
-// see: https://github.com/webpack/webpack-dev-server/issues/641
-function getPaths(publicPath, compiler, url) {
-  const compilers = compiler && compiler.compilers;
-  if (Array.isArray(compilers)) {
-    let compilerPublicPath;
-
-    // the path portion of compilerPublicPath
-    let compilerPublicPathBase;
-
-    for (let i = 0; i < compilers.length; i++) {
-      compilerPublicPath =
-        compilers[i].options &&
-        compilers[i].options.output &&
-        compilers[i].options.output.publicPath;
-
-      if (compilerPublicPath) {
-        compilerPublicPathBase =
-          compilerPublicPath.indexOf('/') === 0
-            ? compilerPublicPath // eslint-disable-next-line
-            : // handle the case where compilerPublicPath is a URL with hostname
-              parse(compilerPublicPath).pathname;
-
-        // check the url vs the path part of the compilerPublicPath
-        if (url.indexOf(compilerPublicPathBase) === 0) {
-          return {
-            publicPath: compilerPublicPath,
-            outputPath: compilers[i].outputPath,
-          };
-        }
-      }
-    }
-  }
-  return {
-    publicPath,
-    outputPath: compiler.outputPath,
-  };
-}
-
-// eslint-disable-next-line consistent-return
-function ready(context, fn, req) {
-  if (context.state) {
-    return fn(context.webpackStats);
-  }
-
-  context.log.info(`wait until bundle finished: ${req.url || fn.name}`);
-  context.callbacks.push(fn);
-}
-
-module.exports = {
-  getFilenameFromUrl(pubPath, compiler, url) {
-    const { outputPath, publicPath } = getPaths(pubPath, compiler, url);
-    // localPrefix is the folder our bundle should be in
-    const localPrefix = parse(publicPath || '/', false, true);
-    const urlObject = parse(url);
-    let filename;
-
-    const hostNameIsTheSame = localPrefix.hostname === urlObject.hostname;
-
-    // publicPath has the hostname that is not the same as request url's, should fail
-    if (
-      localPrefix.hostname !== null &&
-      urlObject.hostname !== null &&
-      !hostNameIsTheSame
-    ) {
-      return false;
-    }
-
-    // publicPath is not in url, so it should fail
-    if (publicPath && hostNameIsTheSame && url.indexOf(publicPath) !== 0) {
-      return false;
-    }
-
-    // strip localPrefix from the start of url
-    if (urlObject.pathname.indexOf(localPrefix.pathname) === 0) {
-      filename = urlObject.pathname.substr(localPrefix.pathname.length);
-    }
-
-    if (
-      !urlObject.hostname &&
-      localPrefix.hostname &&
-      url.indexOf(localPrefix.path) !== 0
-    ) {
-      return false;
-    }
-
-    let uri = outputPath;
-
-    /* istanbul ignore if */
-    if (process.platform === 'win32') {
-      // Path Handling for Microsoft Windows
-      if (filename) {
-        uri = path.posix.join(outputPath || '', querystring.unescape(filename));
-
-        if (!path.win32.isAbsolute(uri)) {
-          uri = `/${uri}`;
-        }
-      }
-
-      return uri;
-    }
-
-    // Path Handling for all other operating systems
-    if (filename) {
-      uri = path.posix.join(outputPath || '', filename);
-
-      if (!path.posix.isAbsolute(uri)) {
-        uri = `/${uri}`;
-      }
-    }
-
-    // if no matches, use outputPath as filename
-    return querystring.unescape(uri);
-  },
-
-  handleRangeHeaders(content, req, res) {
-    // assumes express API. For other servers, need to add logic to access
-    // alternative header APIs
-    res.setHeader('Accept-Ranges', 'bytes');
-
-    if (req.headers.range) {
-      const ranges = parseRange(content.length, req.headers.range);
-
-      // unsatisfiable
-      if (ranges === -1) {
-        res.setHeader('Content-Range', `bytes */${content.length}`);
-        // eslint-disable-next-line no-param-reassign
-        res.statusCode = 416;
-      }
-
-      // valid (syntactically invalid/multiple ranges are treated as a
-      // regular response)
-      if (ranges !== -2 && ranges.length === 1) {
-        const { length } = content;
-
-        // Content-Range
-        // eslint-disable-next-line no-param-reassign
-        res.statusCode = 206;
-        res.setHeader(
-          'Content-Range',
-          `bytes ${ranges[0].start}-${ranges[0].end}/${length}`
-        );
-
-        // eslint-disable-next-line no-param-reassign
-        content = content.slice(ranges[0].start, ranges[0].end + 1);
-      }
-    }
-
-    return content;
-  },
-
-  handleRequest(context, filename, processRequest, req) {
-    // in lazy mode, rebuild on bundle request
-    if (
-      context.options.lazy &&
-      (!context.options.filename || context.options.filename.test(filename))
-    ) {
-      context.rebuild();
-    }
-
-    if (HASH_REGEXP.test(filename)) {
-      try {
-        if (context.fs.statSync(filename).isFile()) {
-          processRequest();
-          return;
-        }
-      } catch (e) {
-        // eslint-disable-line
-      }
-    }
-
-    ready(context, processRequest, req);
-  },
-
-  noop: () => {},
-
-  ready,
-};

+ 0 - 108
node_modules.bak/webpack-dev-middleware/package.json

@@ -1,108 +0,0 @@
-{
-  "_from": "webpack-dev-middleware@^3.6.2",
-  "_id": "webpack-dev-middleware@3.7.3",
-  "_inBundle": false,
-  "_integrity": "sha1-Bjk3KxQyYuK4SrldO5GnWXBhwsU=",
-  "_location": "/webpack-dev-middleware",
-  "_phantomChildren": {
-    "errno": "0.1.8",
-    "readable-stream": "2.3.7"
-  },
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "webpack-dev-middleware@^3.6.2",
-    "name": "webpack-dev-middleware",
-    "escapedName": "webpack-dev-middleware",
-    "rawSpec": "^3.6.2",
-    "saveSpec": null,
-    "fetchSpec": "^3.6.2"
-  },
-  "_requiredBy": [
-    "#DEV:/",
-    "/webpack-dev-server"
-  ],
-  "_resolved": "https://registry.nlark.com/webpack-dev-middleware/download/webpack-dev-middleware-3.7.3.tgz",
-  "_shasum": "0639372b143262e2b84ab95d3b91a7597061c2c5",
-  "_spec": "webpack-dev-middleware@^3.6.2",
-  "_where": "D:\\朗通信息\\icssDService",
-  "author": {
-    "name": "Tobias Koppers @sokra"
-  },
-  "bugs": {
-    "url": "https://github.com/webpack/webpack-dev-middleware/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "memory-fs": "^0.4.1",
-    "mime": "^2.4.4",
-    "mkdirp": "^0.5.1",
-    "range-parser": "^1.2.1",
-    "webpack-log": "^2.0.0"
-  },
-  "deprecated": false,
-  "description": "A development middleware for webpack",
-  "devDependencies": {
-    "@babel/cli": "^7.6.2",
-    "@babel/core": "^7.6.2",
-    "@babel/preset-env": "^7.6.2",
-    "@commitlint/cli": "^8.2.0",
-    "@commitlint/config-conventional": "^8.2.0",
-    "@webpack-contrib/defaults": "^5.0.2",
-    "@webpack-contrib/eslint-config-webpack": "^3.0.0",
-    "babel-jest": "^24.9.0",
-    "commitlint-azure-pipelines-cli": "^1.0.2",
-    "cross-env": "^5.2.1",
-    "del": "^4.1.1",
-    "del-cli": "^1.1.0",
-    "eslint": "^6.4.0",
-    "eslint-plugin-import": "^2.18.2",
-    "eslint-plugin-prettier": "^3.1.1",
-    "express": "^4.17.1",
-    "file-loader": "^4.2.0",
-    "husky": "^3.0.7",
-    "jest": "^24.9.0",
-    "jest-junit": "^8.0.0",
-    "lint-staged": "^9.4.0",
-    "prettier": "^1.18.2",
-    "standard-version": "^7.0.0",
-    "supertest": "^4.0.2",
-    "webpack": "^4.41.0"
-  },
-  "engines": {
-    "node": ">= 6"
-  },
-  "files": [
-    "lib",
-    "index.js"
-  ],
-  "homepage": "https://github.com/webpack/webpack-dev-middleware",
-  "keywords": [
-    "webpack",
-    "middleware",
-    "develompent"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "webpack-dev-middleware",
-  "peerDependencies": {
-    "webpack": "^4.0.0 || ^5.0.0"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/webpack/webpack-dev-middleware.git"
-  },
-  "scripts": {
-    "commitlint": "commitlint --from=master",
-    "defaults": "webpack-defaults",
-    "lint": "eslint --cache lib test",
-    "pretest": "npm run lint",
-    "release": "standard-version",
-    "security": "npm audit",
-    "test": "npm run test:coverage",
-    "test:coverage": "npm run test:only -- --coverage",
-    "test:only": "jest",
-    "test:watch": "npm run test:only --watch"
-  },
-  "version": "3.7.3"
-}

+ 0 - 374
node_modules.bak/webpack-dev-server/CHANGELOG.md

@@ -1,374 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-### [3.11.2](https://github.com/webpack/webpack-dev-server/compare/v3.11.1...v3.11.2) (2021-01-13)
-
-
-### Bug Fixes
-
-* cli arguments for `serve` command ([a5fe337](https://github.com/webpack/webpack-dev-server/commit/a5fe3372e306e3c90a5e63e452e3e9ee9a745875))
-
-### [3.11.1](https://github.com/webpack/webpack-dev-server/compare/v3.11.0...v3.11.1) (2020-12-29)
-
-
-### Bug Fixes
-
-* the `open` option works using `webpack serve` without value ([#2948](https://github.com/webpack/webpack-dev-server/issues/2948)) ([4837dc9](https://github.com/webpack/webpack-dev-server/commit/4837dc92b944f8b4cdd7d6e3420367cf338e7f75))
-* vulnerable deps ([#2949](https://github.com/webpack/webpack-dev-server/issues/2949)) ([78dde50](https://github.com/webpack/webpack-dev-server/commit/78dde50f520c8b78de14272a4ae4cee1281bf2e3))
-
-## [3.11.0](https://github.com/webpack/webpack-dev-server/compare/v3.10.3...v3.11.0) (2020-05-08)
-
-
-### Features
-
-* add icons for directory viewer ([#2441](https://github.com/webpack/webpack-dev-server/issues/2441)) ([e953d01](https://github.com/webpack/webpack-dev-server/commit/e953d01ca93764dabe38cedad8e7b9ef4e7f04bc))
-* allow multiple `contentBasePublicPath` paths ([#2489](https://github.com/webpack/webpack-dev-server/issues/2489)) ([c6bdfe4](https://github.com/webpack/webpack-dev-server/commit/c6bdfe4afb2ce3612c02142954c68a8e657c3915))
-* emit progress-update ([#2498](https://github.com/webpack/webpack-dev-server/issues/2498)) ([4808abd](https://github.com/webpack/webpack-dev-server/commit/4808abd434bac0511da688aee861f7e2d8b0c81c)), closes [#1666](https://github.com/webpack/webpack-dev-server/issues/1666)
-* add invalidate endpoint ([#2493](https://github.com/webpack/webpack-dev-server/issues/2493)) ([89ffb86](https://github.com/webpack/webpack-dev-server/commit/89ffb86cd26425c59e3937ca06a2c804a01b8f1d))
-* allow open option to accept an object ([#2492](https://github.com/webpack/webpack-dev-server/issues/2492)) ([adeb92e](https://github.com/webpack/webpack-dev-server/commit/adeb92e1e37551a6cbf3063942d6c2c7efbdff10))
-
-
-### Bug Fixes
-
-* do not swallow errors from server ([#2512](https://github.com/webpack/webpack-dev-server/issues/2512)) ([06583f2](https://github.com/webpack/webpack-dev-server/commit/06583f268b70f4a9715e4b747b1557055c419086))
-* security vulnerability in yargs-parser ([#2566](https://github.com/webpack/webpack-dev-server/issues/2566)) ([41d1d0c](https://github.com/webpack/webpack-dev-server/commit/41d1d0cf99f53df0569991a85489d3c8bc095af5))
-* don't crash on setupExitSignals(undefined) ([#2507](https://github.com/webpack/webpack-dev-server/issues/2507)) ([0d5c681](https://github.com/webpack/webpack-dev-server/commit/0d5c68143d780e631cdaf09081822fc87d7cb3ba))
-* support entry descriptor (closes [#2453](https://github.com/webpack/webpack-dev-server/issues/2453)) ([#2465](https://github.com/webpack/webpack-dev-server/issues/2465)) ([8bbef6a](https://github.com/webpack/webpack-dev-server/commit/8bbef6adf6ae5f6a3109ecd4a6246223d2f77cb2))
-* update jquery ([#2516](https://github.com/webpack/webpack-dev-server/issues/2516)) ([99ccfd8](https://github.com/webpack/webpack-dev-server/commit/99ccfd84d1db566aa4ed77c441c4674bc4e986df))
-
-### [3.10.3](https://github.com/webpack/webpack-dev-server/compare/v3.10.2...v3.10.3) (2020-02-05)
-
-
-### Bug Fixes
-
-* forward error requests to the proxy ([#2425](https://github.com/webpack/webpack-dev-server/issues/2425)) ([e291cd4](https://github.com/webpack/webpack-dev-server/commit/e291cd4922f66c5c69dfd1fd3839812cfa502de5))
-
-### [3.10.2](https://github.com/webpack/webpack-dev-server/compare/v3.10.0...v3.10.2) (2020-01-31)
-
-
-### Bug Fixes
-
-* fallthrough non `GET` and `HEAD` request to routes ([#2374](https://github.com/webpack/webpack-dev-server/issues/2374)) ([ebe8eca](https://github.com/webpack/webpack-dev-server/commit/ebe8eca37957a9009f8627e7dfb82699606846de))
-* add an optional peer dependency on webpack-cli ([#2396](https://github.com/webpack/webpack-dev-server/issues/2396)) ([aa365df](https://github.com/webpack/webpack-dev-server/commit/aa365dfd7e86c5dca31304bd5dcfe9bb9b767b40))
-* add heartbeat for the websocket server ([#2404](https://github.com/webpack/webpack-dev-server/issues/2404)) ([1a7c827](https://github.com/webpack/webpack-dev-server/commit/1a7c8273de5a5b164c63c9919950babd7ecfaadb))
-
-### [3.10.1](https://github.com/webpack/webpack-dev-server/compare/v3.10.0...v3.10.1) (2019-12-19)
-
-
-### Bug Fixes
-
-* ie11 compatibility ([1306abe](https://github.com/webpack/webpack-dev-server/commit/1306abeb8c5fd125952cdc177fdf38c2c31b3c4f))
-
-## [3.10.0](https://github.com/webpack/webpack-dev-server/compare/v3.9.0...v3.10.0) (2019-12-18)
-
-
-### Features
-
-* **client:** allow sock port to use location's port (`sockPort: 'location'`) ([#2341](https://github.com/webpack/webpack-dev-server/issues/2341)) ([dc10d06](https://github.com/webpack/webpack-dev-server/commit/dc10d0647413ad57814b684b5f6ef3659531f0f6))
-* **server:** add `contentBasePublicPath` option ([#2150](https://github.com/webpack/webpack-dev-server/issues/2150)) ([cee700d](https://github.com/webpack/webpack-dev-server/commit/cee700d59aff644a499ee310c4a32d5c5693e559))
-
-
-### Bug Fixes
-
-* **client:** don't override protocol for socket connection to 127.0.0.1 ([#2303](https://github.com/webpack/webpack-dev-server/issues/2303)) ([3a31917](https://github.com/webpack/webpack-dev-server/commit/3a31917a02818dabb3dc549e3e4994618475d131)), closes [#2302](https://github.com/webpack/webpack-dev-server/issues/2302)
-* **server:** respect sockPath on transportMode: 'ws' ([#2310](https://github.com/webpack/webpack-dev-server/issues/2310)) ([#2311](https://github.com/webpack/webpack-dev-server/issues/2311)) ([e188542](https://github.com/webpack/webpack-dev-server/commit/e188542d888dbb55be64c9da2f747343b73c319f))
-* https on chrome linux ([#2330](https://github.com/webpack/webpack-dev-server/issues/2330)) ([dc8b475](https://github.com/webpack/webpack-dev-server/commit/dc8b47510e24649edb38e5a07579be389898189e))
-* support webpack@5 ([#2359](https://github.com/webpack/webpack-dev-server/issues/2359)) ([8f89c01](https://github.com/webpack/webpack-dev-server/commit/8f89c0188579a419dc68021f8bc0fbeae70cbe5d))
-
-## [3.9.0](https://github.com/webpack/webpack-dev-server/compare/v3.8.2...v3.9.0) (2019-10-22)
-
-
-### Bug Fixes
-
-* add `hostname` and `port` to bonjour name to prevent name collisions ([#2276](https://github.com/webpack/webpack-dev-server/issues/2276)) ([d8af2d9](https://github.com/webpack/webpack-dev-server/commit/d8af2d9))
-* add `extKeyUsage` to self-signed cert ([#2274](https://github.com/webpack/webpack-dev-server/issues/2274)) ([a4dbc3b](https://github.com/webpack/webpack-dev-server/commit/a4dbc3b))
-
-
-### Features
-
-* add multiple `openPage` support ([#2266](https://github.com/webpack/webpack-dev-server/issues/2266)) ([c9e9178](https://github.com/webpack/webpack-dev-server/commit/c9e9178))
-
-### [3.8.2](https://github.com/webpack/webpack-dev-server/compare/v3.8.1...v3.8.2) (2019-10-02)
-
-### Security
-
-* update `selfsigned` package
-
-### [3.8.1](https://github.com/webpack/webpack-dev-server/compare/v3.8.0...v3.8.1) (2019-09-16)
-
-
-### Bug Fixes
-
-* add null check for connection.headers ([#2200](https://github.com/webpack/webpack-dev-server/issues/2200)) ([7964997](https://github.com/webpack/webpack-dev-server/commit/7964997))
-* false positive for an absolute path in the `ContentBase` option on windows ([#2202](https://github.com/webpack/webpack-dev-server/issues/2202)) ([68ecf78](https://github.com/webpack/webpack-dev-server/commit/68ecf78))
-* add status in quiet log level ([#2235](https://github.com/webpack/webpack-dev-server/issues/2235)) ([7e2224e](https://github.com/webpack/webpack-dev-server/commit/7e2224e))
-* scriptHost in client ([#2246](https://github.com/webpack/webpack-dev-server/issues/2246)) ([00903f6](https://github.com/webpack/webpack-dev-server/commit/00903f6))
-
-## [3.8.0](https://github.com/webpack/webpack-dev-server/compare/v3.7.2...v3.8.0) (2019-08-09)
-
-
-### Bug Fixes
-
-* **server:** fix setupExitSignals usage ([#2181](https://github.com/webpack/webpack-dev-server/issues/2181)) ([bbe410e](https://github.com/webpack/webpack-dev-server/commit/bbe410e))
-* **server:** set port before instantiating server ([#2143](https://github.com/webpack/webpack-dev-server/issues/2143)) ([cfbf229](https://github.com/webpack/webpack-dev-server/commit/cfbf229))
-* check for name of HotModuleReplacementPlugin to avoid RangeError ([#2146](https://github.com/webpack/webpack-dev-server/issues/2146)) ([4579775](https://github.com/webpack/webpack-dev-server/commit/4579775))
-* **server:** check for external urls in array ([#1980](https://github.com/webpack/webpack-dev-server/issues/1980)) ([fa78347](https://github.com/webpack/webpack-dev-server/commit/fa78347))
-* **server:** fix header check for socket server ([#2077](https://github.com/webpack/webpack-dev-server/issues/2077)) ([7f51859](https://github.com/webpack/webpack-dev-server/commit/7f51859))
-* **server:** stricter headers security check ([#2092](https://github.com/webpack/webpack-dev-server/issues/2092)) ([078ddca](https://github.com/webpack/webpack-dev-server/commit/078ddca))
-
-
-### Features
-
-* **server:** add transportMode ([#2116](https://github.com/webpack/webpack-dev-server/issues/2116)) ([b5b9cb4](https://github.com/webpack/webpack-dev-server/commit/b5b9cb4))
-* **server:** serverMode 'ws' option ([#2082](https://github.com/webpack/webpack-dev-server/issues/2082)) ([04483f4](https://github.com/webpack/webpack-dev-server/commit/04483f4))
-* **server/client:** made progress option available to API ([#1961](https://github.com/webpack/webpack-dev-server/issues/1961)) ([56274e4](https://github.com/webpack/webpack-dev-server/commit/56274e4))
-
-### Potential Breaking changes
-
-We have migrated `serverMode` and `clientMode` to `transportMode` as an experimental option. If you want to use this feature, you have to change your settings. 
-
-Related PR: https://github.com/webpack/webpack-dev-server/pull/2116
-
-
-### [3.7.2](https://github.com/webpack/webpack-dev-server/compare/v3.7.1...v3.7.2) (2019-06-17)
-
-
-### Bug Fixes
-
-* **client:** add default fallback for client ([#2015](https://github.com/webpack/webpack-dev-server/issues/2015)) ([d26b444](https://github.com/webpack/webpack-dev-server/commit/d26b444))
-* **open:** set `wait: false` to run server.close successfully ([#2001](https://github.com/webpack/webpack-dev-server/issues/2001)) ([2b4cb52](https://github.com/webpack/webpack-dev-server/commit/2b4cb52))
-* **test:** fixed ProvidePlugin.test.js ([#2002](https://github.com/webpack/webpack-dev-server/issues/2002)) ([47453cb](https://github.com/webpack/webpack-dev-server/commit/47453cb))
-
-
-
-### [3.7.1](https://github.com/webpack/webpack-dev-server/compare/v3.7.0...v3.7.1) (2019-06-07)
-
-
-### Bug Fixes
-
-* retry finding port when port is null and get ports in sequence ([#1993](https://github.com/webpack/webpack-dev-server/issues/1993)) ([bc57514](https://github.com/webpack/webpack-dev-server/commit/bc57514))
-
-
-
-## [3.7.0](https://github.com/webpack/webpack-dev-server/compare/v3.6.0...v3.7.0) (2019-06-06)
-
-
-### Bug Fixes
-
-* change clientLogLevel order to be called first ([#1973](https://github.com/webpack/webpack-dev-server/issues/1973)) ([57c8c92](https://github.com/webpack/webpack-dev-server/commit/57c8c92))
-* es6 syntax in client ([#1982](https://github.com/webpack/webpack-dev-server/issues/1982)) ([802aa30](https://github.com/webpack/webpack-dev-server/commit/802aa30))
-
-
-
-## [3.6.0](https://github.com/webpack/webpack-dev-server/compare/v3.5.1...v3.6.0) (2019-06-05)
-
-
-### Bug Fixes
-
-* **config:** enable `--overlay` ([#1968](https://github.com/webpack/webpack-dev-server/issues/1968)) ([dc81e23](https://github.com/webpack/webpack-dev-server/commit/dc81e23))
-* **server:** don't ignore node_modules by default ([#1970](https://github.com/webpack/webpack-dev-server/issues/1970)) ([699f8b4](https://github.com/webpack/webpack-dev-server/commit/699f8b4)), closes [#1794](https://github.com/webpack/webpack-dev-server/issues/1794)
-
-
-### Features
-
-* **server:** add serverMode option ([#1937](https://github.com/webpack/webpack-dev-server/issues/1937)) ([44a8cde](https://github.com/webpack/webpack-dev-server/commit/44a8cde))
-
-
-
-### [3.5.1](https://github.com/webpack/webpack-dev-server/compare/v3.5.0...v3.5.1) (2019-06-01)
-
-
-### Bug Fixes
-
-* allow passing promise function of webpack.config.js ([#1947](https://github.com/webpack/webpack-dev-server/issues/1947)) ([8cf1053](https://github.com/webpack/webpack-dev-server/commit/8cf1053))
-
-
-
-## [3.5.0](https://github.com/webpack/webpack-dev-server/compare/v3.4.1...v3.5.0) (2019-05-31)
-
-
-### Bug Fixes
-
-* add client code for `electron-renderer` target ([#1935](https://github.com/webpack/webpack-dev-server/issues/1935)) ([9297988](https://github.com/webpack/webpack-dev-server/commit/9297988))
-* add client code for `node-webkit` target ([#1942](https://github.com/webpack/webpack-dev-server/issues/1942)) ([c6b2b1f](https://github.com/webpack/webpack-dev-server/commit/c6b2b1f))
-
-
-### Features
-
-* **server:** `onListening` option ([#1930](https://github.com/webpack/webpack-dev-server/issues/1930)) ([61d0cdf](https://github.com/webpack/webpack-dev-server/commit/61d0cdf))
-* **server:** add callback support for invalidate ([#1900](https://github.com/webpack/webpack-dev-server/issues/1900)) ([cd218ef](https://github.com/webpack/webpack-dev-server/commit/cd218ef))
-* **server:** add `WEBPACK_DEV_SERVER` env variable ([#1929](https://github.com/webpack/webpack-dev-server/issues/1929)) ([856169e](https://github.com/webpack/webpack-dev-server/commit/856169e))
-
-
-
-### [3.4.1](https://github.com/webpack/webpack-dev-server/compare/v3.4.0...v3.4.1) (2019-05-17)
-
-
-### Bug Fixes
-
-* add none and warning to clientLogLevel ([#1901](https://github.com/webpack/webpack-dev-server/issues/1901)) ([0ae9be8](https://github.com/webpack/webpack-dev-server/commit/0ae9be8))
-* broken hot reload ([#1903](https://github.com/webpack/webpack-dev-server/issues/1903)) ([6a444cd](https://github.com/webpack/webpack-dev-server/commit/6a444cd))
-
-
-
-## [3.4.0](https://github.com/webpack/webpack-dev-server/compare/v3.3.1...v3.4.0) (2019-05-17)
-
-
-### Bug Fixes
-
-* don't use self.location.port ([#1838](https://github.com/webpack/webpack-dev-server/issues/1838)) ([6d31984](https://github.com/webpack/webpack-dev-server/commit/6d31984))
-* do not include config files in dist ([#1883](https://github.com/webpack/webpack-dev-server/issues/1883)) ([c535bb2](https://github.com/webpack/webpack-dev-server/commit/c535bb2))
-* only add client entry to web targets ([#1775](https://github.com/webpack/webpack-dev-server/issues/1775)) ([cf4d0d0](https://github.com/webpack/webpack-dev-server/commit/cf4d0d0))
-* update clientLogLevel to match docs and error ([#1825](https://github.com/webpack/webpack-dev-server/issues/1825)) ([7f52bbf](https://github.com/webpack/webpack-dev-server/commit/7f52bbf))
-* add errors-warnings preset ([#1895](https://github.com/webpack/webpack-dev-server/issues/1895)) ([2a81ad2](https://github.com/webpack/webpack-dev-server/commit/2a81ad2))
-
-
-### Features
-
-* added injectClient option ([#1775](https://github.com/webpack/webpack-dev-server/issues/1775)) ([cf4d0d0](https://github.com/webpack/webpack-dev-server/commit/cf4d0d0))
-* added injectHot option ([#1775](https://github.com/webpack/webpack-dev-server/issues/1775)) ([cf4d0d0](https://github.com/webpack/webpack-dev-server/commit/cf4d0d0))
-* added sockPort option ([#1792](https://github.com/webpack/webpack-dev-server/issues/1792)) ([58d1682](https://github.com/webpack/webpack-dev-server/commit/58d1682))
-* added sockHost option ([#1858](https://github.com/webpack/webpack-dev-server/issues/1858)) ([f47dff2](https://github.com/webpack/webpack-dev-server/commit/f47dff2))
-* support HEAD method ([#1875](https://github.com/webpack/webpack-dev-server/issues/1875)) ([c2360e4](https://github.com/webpack/webpack-dev-server/commit/c2360e4))
-* added liveReload option ([#1889](https://github.com/webpack/webpack-dev-server/issues/1889)) ([fc4fe32](https://github.com/webpack/webpack-dev-server/commit/fc4fe32))
-* update express to 4.17 version
-
-
-## [3.3.1](https://github.com/webpack/webpack-dev-server/compare/v3.3.0...v3.3.1) (2019-04-09)
-
-
-### Bug Fixes
-
-* **regression:** always get necessary stats for hmr ([#1780](https://github.com/webpack/webpack-dev-server/issues/1780)) ([66b04a9](https://github.com/webpack/webpack-dev-server/commit/66b04a9))
-* **regression:** host and port can be undefined or null ([#1779](https://github.com/webpack/webpack-dev-server/issues/1779)) ([028ceee](https://github.com/webpack/webpack-dev-server/commit/028ceee))
-* only add entries after compilers have been created ([#1774](https://github.com/webpack/webpack-dev-server/issues/1774)) ([b31cbaa](https://github.com/webpack/webpack-dev-server/commit/b31cbaa))
-
-
-
-# [3.3.0](https://github.com/webpack/webpack-dev-server/compare/v3.2.1...v3.3.0) (2019-04-08)
-
-
-### Bug Fixes
-
-* compatibility with webpack-cli@3.3 ([#1754](https://github.com/webpack/webpack-dev-server/issues/1754)) ([fd7cb0d](https://github.com/webpack/webpack-dev-server/commit/fd7cb0d))
-* ignore proxy when bypass return false ([#1696](https://github.com/webpack/webpack-dev-server/issues/1696)) ([aa7de77](https://github.com/webpack/webpack-dev-server/commit/aa7de77))
-* respect stats option from webpack config ([#1665](https://github.com/webpack/webpack-dev-server/issues/1665)) ([efaa740](https://github.com/webpack/webpack-dev-server/commit/efaa740))
-* use location.port when location.hostname is used to infer HMR socket URL ([#1664](https://github.com/webpack/webpack-dev-server/issues/1664)) ([2f7f052](https://github.com/webpack/webpack-dev-server/commit/2f7f052))
-* don't crash with express.static.mime.types ([#1765](https://github.com/webpack/webpack-dev-server/issues/1765)) ([919ff77](https://github.com/webpack/webpack-dev-server/commit/919ff77))
-
-
-### Features
-
-* add option "serveIndex" to enable/disable serveIndex middleware ([#1752](https://github.com/webpack/webpack-dev-server/issues/1752)) ([d5d60cb](https://github.com/webpack/webpack-dev-server/commit/d5d60cb))
-* add webpack as argument to before and after options ([#1760](https://github.com/webpack/webpack-dev-server/issues/1760)) ([0984d4b](https://github.com/webpack/webpack-dev-server/commit/0984d4b))
-* http2 option to enable/disable HTTP/2 with HTTPS ([#1721](https://github.com/webpack/webpack-dev-server/issues/1721)) ([dcd2434](https://github.com/webpack/webpack-dev-server/commit/dcd2434))
-* random port retry logic ([#1692](https://github.com/webpack/webpack-dev-server/issues/1692)) ([419f02e](https://github.com/webpack/webpack-dev-server/commit/419f02e))
-* relax depth limit from chokidar for content base ([#1697](https://github.com/webpack/webpack-dev-server/issues/1697)) ([7ea9ab9](https://github.com/webpack/webpack-dev-server/commit/7ea9ab9))
-
-
-
-## [3.2.1](https://github.com/webpack/webpack-dev-server/compare/v3.2.0...v3.2.1) (2019-02-25)
-
-
-### Bug Fixes
-
-* deprecation message about `setup` now warning about `v4` ([#1684](https://github.com/webpack/webpack-dev-server/issues/1684)) ([523a6ec](https://github.com/webpack/webpack-dev-server/commit/523a6ec))
-* **regression:** allow `ca`, `key` and `cert` will be string ([#1676](https://github.com/webpack/webpack-dev-server/issues/1676)) ([b8d5c1e](https://github.com/webpack/webpack-dev-server/commit/b8d5c1e))
-* **regression:** handle `key`, `cert`, `cacert` and `pfx` in CLI ([#1688](https://github.com/webpack/webpack-dev-server/issues/1688)) ([4b2076c](https://github.com/webpack/webpack-dev-server/commit/4b2076c))
-* **regression:** problem with `idb-connector` after update `internal-ip` ([#1691](https://github.com/webpack/webpack-dev-server/issues/1691)) ([eb48691](https://github.com/webpack/webpack-dev-server/commit/eb48691))
-
-
-
-<a name="3.1.14"></a>
-## [3.1.14](https://github.com/webpack/webpack-dev-server/compare/v3.1.13...v3.1.14) (2018-12-24)
-
-
-### Bug Fixes
-
-* add workaround for Origin header in sockjs ([#1608](https://github.com/webpack/webpack-dev-server/issues/1608)) ([1dfd4fb](https://github.com/webpack/webpack-dev-server/commit/1dfd4fb))
-
-
-
-<a name="3.1.13"></a>
-## [3.1.13](https://github.com/webpack/webpack-dev-server/compare/v3.1.12...v3.1.13) (2018-12-22)
-
-
-### Bug Fixes
-
-* delete a comma for Node.js <= v7.x ([#1609](https://github.com/webpack/webpack-dev-server/issues/1609)) ([0bab1c0](https://github.com/webpack/webpack-dev-server/commit/0bab1c0))
-
-
-
-<a name="3.1.12"></a>
-## [3.1.12](https://github.com/webpack/webpack-dev-server/compare/v3.1.11...v3.1.12) (2018-12-22)
-
-
-### Bug Fixes
-
-* regression in `checkHost` for checking Origin header ([#1606](https://github.com/webpack/webpack-dev-server/issues/1606)) ([8bb3ca8](https://github.com/webpack/webpack-dev-server/commit/8bb3ca8))
-
-
-
-<a name="3.1.11"></a>
-## [3.1.11](https://github.com/webpack/webpack-dev-server/compare/v3.1.10...v3.1.11) (2018-12-21)
-
-
-### Bug Fixes
-
-* **bin/options:** correct check for color support (`options.color`) ([#1555](https://github.com/webpack/webpack-dev-server/issues/1555)) ([55398b5](https://github.com/webpack/webpack-dev-server/commit/55398b5))
-* **package:** update `spdy` v3.4.1...4.0.0 (assertion error) ([#1491](https://github.com/webpack/webpack-dev-server/issues/1491)) ([#1563](https://github.com/webpack/webpack-dev-server/issues/1563)) ([7a3a257](https://github.com/webpack/webpack-dev-server/commit/7a3a257))
-* **Server:** correct `node` version checks ([#1543](https://github.com/webpack/webpack-dev-server/issues/1543)) ([927a2b3](https://github.com/webpack/webpack-dev-server/commit/927a2b3))
-* **Server:** mime type for wasm in contentBase directory ([#1575](https://github.com/webpack/webpack-dev-server/issues/1575)) ([#1580](https://github.com/webpack/webpack-dev-server/issues/1580)) ([fadae5d](https://github.com/webpack/webpack-dev-server/commit/fadae5d))
-* add url for compatibility with webpack@5 ([#1598](https://github.com/webpack/webpack-dev-server/issues/1598)) ([#1599](https://github.com/webpack/webpack-dev-server/issues/1599)) ([68dd49a](https://github.com/webpack/webpack-dev-server/commit/68dd49a))
-* check origin header for websocket connection ([#1603](https://github.com/webpack/webpack-dev-server/issues/1603)) ([b3217ca](https://github.com/webpack/webpack-dev-server/commit/b3217ca))
-
-
-
-<a name="3.1.10"></a>
-## [3.1.10](https://github.com/webpack/webpack-dev-server/compare/v3.1.9...v3.1.10) (2018-10-23)
-
-
-### Bug Fixes
-
-* **options:** add `writeToDisk` option to schema ([#1520](https://github.com/webpack/webpack-dev-server/issues/1520)) ([d2f4902](https://github.com/webpack/webpack-dev-server/commit/d2f4902))
-* **package:** update `sockjs-client` v1.1.5...1.3.0 (`url-parse` vulnerability) ([#1537](https://github.com/webpack/webpack-dev-server/issues/1537)) ([e719959](https://github.com/webpack/webpack-dev-server/commit/e719959))
-* **Server:** set `tls.DEFAULT_ECDH_CURVE` to `'auto'` ([#1531](https://github.com/webpack/webpack-dev-server/issues/1531)) ([c12def3](https://github.com/webpack/webpack-dev-server/commit/c12def3))
-
-
-
-<a name="3.1.9"></a>
-## [3.1.9](https://github.com/webpack/webpack-dev-server/compare/v3.1.8...v3.1.9) (2018-09-24)
-
-
-
-<a name="3.1.8"></a>
-## [3.1.8](https://github.com/webpack/webpack-dev-server/compare/v3.1.7...v3.1.8) (2018-09-06)
-
-
-### Bug Fixes
-
-* **package:** `yargs` security vulnerability (`dependencies`) ([#1492](https://github.com/webpack/webpack-dev-server/issues/1492)) ([8fb67c9](https://github.com/webpack/webpack-dev-server/commit/8fb67c9))
-* **utils/createLogger:** ensure `quiet` always takes precedence (`options.quiet`) ([#1486](https://github.com/webpack/webpack-dev-server/issues/1486)) ([7a6ca47](https://github.com/webpack/webpack-dev-server/commit/7a6ca47))
-
-
-
-<a name="3.1.7"></a>
-## [3.1.7](https://github.com/webpack/webpack-dev-server/compare/v3.1.6...v3.1.7) (2018-08-29)
-
-
-### Bug Fixes
-
-* **Server:** don't use `spdy` on `node >= v10.0.0` ([#1451](https://github.com/webpack/webpack-dev-server/issues/1451)) ([8ab9eb6](https://github.com/webpack/webpack-dev-server/commit/8ab9eb6))
-
-
-
-<a name="3.1.6"></a>
-## [3.1.6](https://github.com/webpack/webpack-dev-server/compare/v3.1.5...v3.1.6) (2018-08-26)
-
-
-### Bug Fixes
-
-* **bin:** handle `process` signals correctly when the server isn't ready yet ([#1432](https://github.com/webpack/webpack-dev-server/issues/1432)) ([334c3a5](https://github.com/webpack/webpack-dev-server/commit/334c3a5))
-* **examples/cli:** correct template path in `open-page` example ([#1401](https://github.com/webpack/webpack-dev-server/issues/1401)) ([df30727](https://github.com/webpack/webpack-dev-server/commit/df30727))
-* **schema:** allow the `output` filename to be a `{Function}` ([#1409](https://github.com/webpack/webpack-dev-server/issues/1409)) ([e2220c4](https://github.com/webpack/webpack-dev-server/commit/e2220c4))

+ 0 - 20
node_modules.bak/webpack-dev-server/LICENSE

@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0 - 163
node_modules.bak/webpack-dev-server/README.md

@@ -1,163 +0,0 @@
-<div align="center">
-  <a href="https://github.com/webpack/webpack">
-    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
-  </a>
-</div>
-
-[![npm][npm]][npm-url]
-[![node][node]][node-url]
-[![deps][deps]][deps-url]
-[![tests][tests]][tests-url]
-[![coverage][cover]][cover-url]
-[![chat][chat]][chat-url]
-[![downloads][downloads]][npm-url]
-[![contributors][contributors]][contributors-url]
-
-# webpack-dev-server
-
-Use [webpack](https://webpack.js.org) with a development server that provides
-live reloading. This should be used for **development only**.
-
-It uses [webpack-dev-middleware][middleware-url] under the hood, which provides
-fast in-memory access to the webpack assets.
-
-## Table of Contents
-
-- [Getting Started](#getting-started)
-- [Usage](#usage)
-  - [With the CLI](#with-the-cli)
-  - [With NPM Scripts](#with-npm-scripts)
-  - [The Result](#the-result)
-- [Browser Support](#browser-support)
-- [Support](#support)
-- [Contributing](#contributing)
-- [Attribution](#attribution)
-- [License](#license)
-
-## Getting Started
-
-First things first, install the module:
-
-```console
-npm install webpack-dev-server --save-dev
-```
-
-_Note: While you can install and run webpack-dev-server globally, we recommend
-installing it locally. webpack-dev-server will always use a local installation
-over a global one._
-
-## Usage
-
-There are two main, recommended methods of using the module:
-
-### With the CLI
-
-The easiest way to use it is with the CLI. In the directory where your
-`webpack.config.js` is, run:
-
-```console
-node_modules/.bin/webpack-dev-server
-```
-
-_**Note**: Many CLI options are available with `webpack-dev-server`. Explore this [link](https://webpack.js.org/configuration/dev-server/)._
-
-### With NPM Scripts
-
-NPM package.json scripts are a convenient and useful means to run locally installed
-binaries without having to be concerned about their full paths. Simply define a
-script as such:
-
-```json
-"scripts": {
-  "start:dev": "webpack-dev-server"
-}
-```
-
-And run the following in your terminal/console:
-
-```console
-npm run start:dev
-```
-
-NPM will automagically reference the binary in `node_modules` for you, and
-execute the file or command.
-
-### The Result
-
-Either method will start a server instance and begin listening for connections
-from `localhost` on port `8080`.
-
-webpack-dev-server is configured by default to support live-reload of files as
-you edit your assets while the server is running.
-
-See [**the documentation**][docs-url] for more use cases and options.
-
-## Browser Support
-
-While `webpack-dev-server` transpiles the client (browser) scripts to an ES5
-state, the project only officially supports the _last two versions of major
-browsers_. We simply don't have the resources to support every whacky
-browser out there.
-
-If you find a bug with an obscure / old browser, we would actively welcome a
-Pull Request to resolve the bug.
-
-## Support
-
-We do our best to keep Issues in the repository focused on bugs, features, and
-needed modifications to the code for the module. Because of that, we ask users
-with general support, "how-to", or "why isn't this working" questions to try one
-of the other support channels that are available.
-
-Your first-stop-shop for support for webpack-dev-server should by the excellent
-[documentation][docs-url] for the module. If you see an opportunity for improvement
-of those docs, please head over to the [webpack.js.org repo][wjo-url] and open a
-pull request.
-
-From there, we encourage users to visit the [webpack Gitter chat][chat-url] and
-talk to the fine folks there. If your quest for answers comes up dry in chat,
-head over to [StackOverflow][stack-url] and do a quick search or open a new
-question. Remember; It's always much easier to answer questions that include your
-`webpack.config.js` and relevant files!
-
-If you're twitter-savvy you can tweet [#webpack][hash-url] with your question
-and someone should be able to reach out and lend a hand.
-
-If you have discovered a :bug:, have a feature suggestion, or would like to see
-a modification, please feel free to create an issue on Github. _Note: The issue
-template isn't optional, so please be sure not to remove it, and please fill it
-out completely._
-
-## Contributing
-
-We welcome your contributions! Please have a read of [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to get involved.
-
-## Attribution
-
-This project is heavily inspired by [peerigon/nof5](https://github.com/peerigon/nof5).
-
-## License
-
-#### [MIT](./LICENSE)
-
-[npm]: https://img.shields.io/npm/v/webpack-dev-server.svg
-[npm-url]: https://npmjs.com/package/webpack-dev-server
-[node]: https://img.shields.io/node/v/webpack-dev-server.svg
-[node-url]: https://nodejs.org
-[deps]: https://david-dm.org/webpack/webpack-dev-server.svg
-[deps-url]: https://david-dm.org/webpack/webpack-dev-server
-[tests]: https://dev.azure.com/webpack/webpack-dev-server/_apis/build/status/webpack.webpack-dev-server?branchName=master
-[tests-url]: https://dev.azure.com/webpack/webpack-dev-server/_build/latest?definitionId=7&branchName=master
-[cover]: https://codecov.io/gh/webpack/webpack-dev-server/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack/webpack-dev-server
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-[docs-url]: https://webpack.js.org/configuration/dev-server/#devserver
-[hash-url]: https://twitter.com/search?q=webpack
-[middleware-url]: https://github.com/webpack/webpack-dev-middleware
-[stack-url]: https://stackoverflow.com/questions/tagged/webpack-dev-server
-[uglify-url]: https://github.com/webpack-contrib/uglifyjs-webpack-plugin
-[wjo-url]: https://github.com/webpack/webpack.js.org
-[downloads]: https://img.shields.io/npm/dm/webpack-dev-server.svg
-[contributors-url]: https://github.com/webpack/webpack-dev-server/graphs/contributors
-[contributors]: https://img.shields.io/github/contributors/webpack/webpack-dev-server.svg

+ 0 - 191
node_modules.bak/webpack-dev-server/bin/cli-flags.js

@@ -1,191 +0,0 @@
-'use strict';
-
-const ADVANCED_GROUP = 'Advanced options:';
-const DISPLAY_GROUP = 'Stats options:';
-const SSL_GROUP = 'SSL options:';
-const CONNECTION_GROUP = 'Connection options:';
-const RESPONSE_GROUP = 'Response options:';
-const BASIC_GROUP = 'Basic options:';
-
-module.exports = {
-  devServer: [
-    {
-      name: 'bonjour',
-      type: Boolean,
-      describe: 'Broadcasts the server via ZeroConf networking on start',
-    },
-    {
-      name: 'lazy',
-      type: Boolean,
-      describe: 'Lazy',
-    },
-    {
-      name: 'liveReload',
-      type: Boolean,
-      describe: 'Enables/Disables live reloading on changing files',
-    },
-    {
-      name: 'serveIndex',
-      type: Boolean,
-      describe: 'Enables/Disables serveIndex middleware',
-    },
-    {
-      name: 'inline',
-      type: Boolean,
-      describe:
-        'Inline mode (set to false to disable including client scripts like livereload)',
-    },
-    {
-      name: 'profile',
-      type: Boolean,
-      describe: 'Print compilation profile data for progress steps',
-    },
-    {
-      name: 'progress',
-      type: Boolean,
-      describe: 'Print compilation progress in percentage',
-      group: BASIC_GROUP,
-    },
-    {
-      name: 'hot-only',
-      type: Boolean,
-      describe: 'Do not refresh page if HMR fails',
-      group: ADVANCED_GROUP,
-    },
-    {
-      name: 'stdin',
-      type: Boolean,
-      describe: 'close when stdin ends',
-    },
-    {
-      name: 'open',
-      type: [String, Boolean],
-      describe:
-        'Open the default browser, or optionally specify a browser name',
-    },
-    {
-      name: 'useLocalIp',
-      type: Boolean,
-      describe: 'Open default browser with local IP',
-    },
-    {
-      name: 'open-page',
-      type: String,
-      describe: 'Open default browser with the specified page',
-    },
-    {
-      name: 'client-log-level',
-      type: String,
-      group: DISPLAY_GROUP,
-      describe:
-        'Log level in the browser (trace, debug, info, warn, error or silent)',
-    },
-    {
-      name: 'https',
-      type: Boolean,
-      group: SSL_GROUP,
-      describe: 'HTTPS',
-    },
-    {
-      name: 'http2',
-      type: Boolean,
-      group: SSL_GROUP,
-      describe: 'HTTP/2, must be used with HTTPS',
-    },
-    {
-      name: 'key',
-      type: String,
-      describe: 'Path to a SSL key.',
-      group: SSL_GROUP,
-    },
-    {
-      name: 'cert',
-      type: String,
-      describe: 'Path to a SSL certificate.',
-      group: SSL_GROUP,
-    },
-    {
-      name: 'cacert',
-      type: String,
-      describe: 'Path to a SSL CA certificate.',
-      group: SSL_GROUP,
-    },
-    {
-      name: 'pfx',
-      type: String,
-      describe: 'Path to a SSL pfx file.',
-      group: SSL_GROUP,
-    },
-    {
-      name: 'pfx-passphrase',
-      type: String,
-      describe: 'Passphrase for pfx file.',
-      group: SSL_GROUP,
-    },
-    {
-      name: 'content-base',
-      type: String,
-      describe: 'A directory or URL to serve HTML content from.',
-      group: RESPONSE_GROUP,
-    },
-    {
-      name: 'watch-content-base',
-      type: Boolean,
-      describe: 'Enable live-reloading of the content-base.',
-      group: RESPONSE_GROUP,
-    },
-    {
-      name: 'history-api-fallback',
-      type: Boolean,
-      describe: 'Fallback to /index.html for Single Page Applications.',
-      group: RESPONSE_GROUP,
-    },
-    {
-      name: 'compress',
-      type: Boolean,
-      describe: 'Enable gzip compression',
-      group: RESPONSE_GROUP,
-    },
-    // findPort is currently not set up
-    {
-      name: 'port',
-      type: Number,
-      describe: 'The port',
-      group: CONNECTION_GROUP,
-    },
-    {
-      name: 'disable-host-check',
-      type: Boolean,
-      describe: 'Will not check the host',
-      group: CONNECTION_GROUP,
-    },
-    {
-      name: 'socket',
-      type: String,
-      describe: 'Socket to listen',
-      group: CONNECTION_GROUP,
-    },
-    {
-      name: 'public',
-      type: String,
-      describe: 'The public hostname/ip address of the server',
-      group: CONNECTION_GROUP,
-    },
-    {
-      name: 'host',
-      type: String,
-      describe: 'The hostname/ip address the server will bind to',
-      group: CONNECTION_GROUP,
-    },
-    // use command-line-args "multiple" option, allowing the usage: --allowed-hosts host1 host2 host3
-    // instead of the old, comma-separated syntax: --allowed-hosts host1,host2,host3
-    {
-      name: 'allowed-hosts',
-      type: String,
-      describe:
-        'A list of hosts that are allowed to access the dev server, separated by spaces',
-      group: CONNECTION_GROUP,
-      multiple: true,
-    },
-  ],
-};

+ 0 - 187
node_modules.bak/webpack-dev-server/bin/options.js

@@ -1,187 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  multiline-ternary,
-  space-before-function-paren
-*/
-const ADVANCED_GROUP = 'Advanced options:';
-const DISPLAY_GROUP = 'Stats options:';
-const SSL_GROUP = 'SSL options:';
-const CONNECTION_GROUP = 'Connection options:';
-const RESPONSE_GROUP = 'Response options:';
-const BASIC_GROUP = 'Basic options:';
-
-const options = {
-  bonjour: {
-    type: 'boolean',
-    describe: 'Broadcasts the server via ZeroConf networking on start',
-  },
-  lazy: {
-    type: 'boolean',
-    describe: 'Lazy',
-  },
-  liveReload: {
-    type: 'boolean',
-    describe: 'Enables/Disables live reloading on changing files',
-    default: true,
-  },
-  serveIndex: {
-    type: 'boolean',
-    describe: 'Enables/Disables serveIndex middleware',
-    default: true,
-  },
-  inline: {
-    type: 'boolean',
-    default: true,
-    describe:
-      'Inline mode (set to false to disable including client scripts like livereload)',
-  },
-  profile: {
-    type: 'boolean',
-    describe: 'Print compilation profile data for progress steps',
-  },
-  progress: {
-    type: 'boolean',
-    describe: 'Print compilation progress in percentage',
-    group: BASIC_GROUP,
-  },
-  'hot-only': {
-    type: 'boolean',
-    describe: 'Do not refresh page if HMR fails',
-    group: ADVANCED_GROUP,
-  },
-  stdin: {
-    type: 'boolean',
-    describe: 'close when stdin ends',
-  },
-  open: {
-    type: 'string',
-    describe: 'Open the default browser, or optionally specify a browser name',
-  },
-  useLocalIp: {
-    type: 'boolean',
-    describe: 'Open default browser with local IP',
-  },
-  'open-page': {
-    type: 'string',
-    describe: 'Open default browser with the specified page',
-    requiresArg: true,
-  },
-  color: {
-    type: 'boolean',
-    alias: 'colors',
-    default: function supportsColor() {
-      // Use `require('supports-color').stdout` for supports-color >= 5.0.0.
-      // See https://github.com/webpack/webpack-dev-server/pull/1555.
-      return require('supports-color').stdout;
-    },
-    group: DISPLAY_GROUP,
-    describe: 'Enables/Disables colors on the console',
-  },
-  info: {
-    type: 'boolean',
-    group: DISPLAY_GROUP,
-    default: true,
-    describe: 'Info',
-  },
-  quiet: {
-    type: 'boolean',
-    group: DISPLAY_GROUP,
-    describe: 'Quiet',
-  },
-  'client-log-level': {
-    type: 'string',
-    group: DISPLAY_GROUP,
-    default: 'info',
-    describe:
-      'Log level in the browser (trace, debug, info, warn, error or silent)',
-  },
-  https: {
-    type: 'boolean',
-    group: SSL_GROUP,
-    describe: 'HTTPS',
-  },
-  http2: {
-    type: 'boolean',
-    group: SSL_GROUP,
-    describe: 'HTTP/2, must be used with HTTPS',
-  },
-  key: {
-    type: 'string',
-    describe: 'Path to a SSL key.',
-    group: SSL_GROUP,
-  },
-  cert: {
-    type: 'string',
-    describe: 'Path to a SSL certificate.',
-    group: SSL_GROUP,
-  },
-  cacert: {
-    type: 'string',
-    describe: 'Path to a SSL CA certificate.',
-    group: SSL_GROUP,
-  },
-  pfx: {
-    type: 'string',
-    describe: 'Path to a SSL pfx file.',
-    group: SSL_GROUP,
-  },
-  'pfx-passphrase': {
-    type: 'string',
-    describe: 'Passphrase for pfx file.',
-    group: SSL_GROUP,
-  },
-  'content-base': {
-    type: 'string',
-    describe: 'A directory or URL to serve HTML content from.',
-    group: RESPONSE_GROUP,
-  },
-  'watch-content-base': {
-    type: 'boolean',
-    describe: 'Enable live-reloading of the content-base.',
-    group: RESPONSE_GROUP,
-  },
-  'history-api-fallback': {
-    type: 'boolean',
-    describe: 'Fallback to /index.html for Single Page Applications.',
-    group: RESPONSE_GROUP,
-  },
-  compress: {
-    type: 'boolean',
-    describe: 'Enable gzip compression',
-    group: RESPONSE_GROUP,
-  },
-  port: {
-    describe: 'The port',
-    group: CONNECTION_GROUP,
-  },
-  'disable-host-check': {
-    type: 'boolean',
-    describe: 'Will not check the host',
-    group: CONNECTION_GROUP,
-  },
-  socket: {
-    type: 'String',
-    describe: 'Socket to listen',
-    group: CONNECTION_GROUP,
-  },
-  public: {
-    type: 'string',
-    describe: 'The public hostname/ip address of the server',
-    group: CONNECTION_GROUP,
-  },
-  host: {
-    type: 'string',
-    default: 'localhost',
-    describe: 'The hostname/ip address the server will bind to',
-    group: CONNECTION_GROUP,
-  },
-  'allowed-hosts': {
-    type: 'string',
-    describe:
-      'A comma-delimited string of hosts that are allowed to access the dev server',
-    group: CONNECTION_GROUP,
-  },
-};
-
-module.exports = options;

+ 0 - 167
node_modules.bak/webpack-dev-server/bin/webpack-dev-server.js

@@ -1,167 +0,0 @@
-#!/usr/bin/env node
-
-'use strict';
-
-/* eslint-disable no-shadow, no-console */
-
-const fs = require('fs');
-const net = require('net');
-const debug = require('debug')('webpack-dev-server');
-const importLocal = require('import-local');
-const yargs = require('yargs');
-const webpack = require('webpack');
-const Server = require('../lib/Server');
-const setupExitSignals = require('../lib/utils/setupExitSignals');
-const colors = require('../lib/utils/colors');
-const processOptions = require('../lib/utils/processOptions');
-const createLogger = require('../lib/utils/createLogger');
-const getVersions = require('../lib/utils/getVersions');
-const options = require('./options');
-
-let server;
-const serverData = {
-  server: null,
-};
-// we must pass an object that contains the server object as a property so that
-// we can update this server property later, and setupExitSignals will be able to
-// recognize that the server has been instantiated, because we will set
-// serverData.server to the new server object.
-setupExitSignals(serverData);
-
-// Prefer the local installation of webpack-dev-server
-if (importLocal(__filename)) {
-  debug('Using local install of webpack-dev-server');
-
-  return;
-}
-
-try {
-  require.resolve('webpack-cli');
-} catch (err) {
-  console.error('The CLI moved into a separate package: webpack-cli');
-  console.error(
-    "Please install 'webpack-cli' in addition to webpack itself to use the CLI"
-  );
-  console.error('-> When using npm: npm i -D webpack-cli');
-  console.error('-> When using yarn: yarn add -D webpack-cli');
-
-  process.exitCode = 1;
-}
-
-yargs.usage(
-  `${getVersions()}\nUsage:  https://webpack.js.org/configuration/dev-server/`
-);
-
-// webpack-cli@3.3 path : 'webpack-cli/bin/config/config-yargs'
-let configYargsPath;
-try {
-  require.resolve('webpack-cli/bin/config/config-yargs');
-  configYargsPath = 'webpack-cli/bin/config/config-yargs';
-} catch (e) {
-  configYargsPath = 'webpack-cli/bin/config-yargs';
-}
-// eslint-disable-next-line import/no-extraneous-dependencies
-// eslint-disable-next-line import/no-dynamic-require
-require(configYargsPath)(yargs);
-
-// It is important that this is done after the webpack yargs config,
-// so it overrides webpack's version info.
-yargs.version(getVersions());
-yargs.options(options);
-
-const argv = yargs.argv;
-
-// webpack-cli@3.3 path : 'webpack-cli/bin/utils/convert-argv'
-let convertArgvPath;
-try {
-  require.resolve('webpack-cli/bin/utils/convert-argv');
-  convertArgvPath = 'webpack-cli/bin/utils/convert-argv';
-} catch (e) {
-  convertArgvPath = 'webpack-cli/bin/convert-argv';
-}
-// eslint-disable-next-line import/no-extraneous-dependencies
-// eslint-disable-next-line import/no-dynamic-require
-const config = require(convertArgvPath)(yargs, argv, {
-  outputFilename: '/bundle.js',
-});
-
-function startDevServer(config, options) {
-  const log = createLogger(options);
-
-  let compiler;
-
-  try {
-    compiler = webpack(config);
-  } catch (err) {
-    if (err instanceof webpack.WebpackOptionsValidationError) {
-      log.error(colors.error(options.stats.colors, err.message));
-      // eslint-disable-next-line no-process-exit
-      process.exit(1);
-    }
-
-    throw err;
-  }
-
-  try {
-    server = new Server(compiler, options, log);
-    serverData.server = server;
-  } catch (err) {
-    if (err.name === 'ValidationError') {
-      log.error(colors.error(options.stats.colors, err.message));
-      // eslint-disable-next-line no-process-exit
-      process.exit(1);
-    }
-
-    throw err;
-  }
-
-  if (options.socket) {
-    server.listeningApp.on('error', (e) => {
-      if (e.code === 'EADDRINUSE') {
-        const clientSocket = new net.Socket();
-
-        clientSocket.on('error', (err) => {
-          if (err.code === 'ECONNREFUSED') {
-            // No other server listening on this socket so it can be safely removed
-            fs.unlinkSync(options.socket);
-
-            server.listen(options.socket, options.host, (error) => {
-              if (error) {
-                throw error;
-              }
-            });
-          }
-        });
-
-        clientSocket.connect({ path: options.socket }, () => {
-          throw new Error('This socket is already used');
-        });
-      }
-    });
-
-    server.listen(options.socket, options.host, (err) => {
-      if (err) {
-        throw err;
-      }
-
-      // chmod 666 (rw rw rw)
-      const READ_WRITE = 438;
-
-      fs.chmod(options.socket, READ_WRITE, (err) => {
-        if (err) {
-          throw err;
-        }
-      });
-    });
-  } else {
-    server.listen(options.port, options.host, (err) => {
-      if (err) {
-        throw err;
-      }
-    });
-  }
-}
-
-processOptions(config, argv, (config, options) => {
-  startDevServer(config, options);
-});

+ 0 - 25
node_modules.bak/webpack-dev-server/client/clients/BaseClient.js

@@ -1,25 +0,0 @@
-'use strict';
-/* eslint-disable
-  no-unused-vars
-*/
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-module.exports = /*#__PURE__*/function () {
-  function BaseClient() {
-    _classCallCheck(this, BaseClient);
-  }
-
-  _createClass(BaseClient, null, [{
-    key: "getClientPath",
-    value: function getClientPath(options) {
-      throw new Error('Client needs implementation');
-    }
-  }]);
-
-  return BaseClient;
-}();

+ 0 - 78
node_modules.bak/webpack-dev-server/client/clients/SockJSClient.js

@@ -1,78 +0,0 @@
-'use strict';
-/* eslint-disable
-  no-unused-vars
-*/
-
-function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
-function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
-function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
-
-function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
-function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
-function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
-
-function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
-var SockJS = require('sockjs-client/dist/sockjs');
-
-var BaseClient = require('./BaseClient');
-
-module.exports = /*#__PURE__*/function (_BaseClient) {
-  _inherits(SockJSClient, _BaseClient);
-
-  var _super = _createSuper(SockJSClient);
-
-  function SockJSClient(url) {
-    var _this;
-
-    _classCallCheck(this, SockJSClient);
-
-    _this = _super.call(this);
-    _this.sock = new SockJS(url);
-
-    _this.sock.onerror = function (err) {// TODO: use logger to log the error event once client and client-src
-      // are reorganized to have the same directory structure
-    };
-
-    return _this;
-  }
-
-  _createClass(SockJSClient, [{
-    key: "onOpen",
-    value: function onOpen(f) {
-      this.sock.onopen = f;
-    }
-  }, {
-    key: "onClose",
-    value: function onClose(f) {
-      this.sock.onclose = f;
-    } // call f with the message string as the first argument
-
-  }, {
-    key: "onMessage",
-    value: function onMessage(f) {
-      this.sock.onmessage = function (e) {
-        f(e.data);
-      };
-    }
-  }], [{
-    key: "getClientPath",
-    value: function getClientPath(options) {
-      return require.resolve('./SockJSClient');
-    }
-  }]);
-
-  return SockJSClient;
-}(BaseClient);

+ 0 - 78
node_modules.bak/webpack-dev-server/client/clients/WebsocketClient.js

@@ -1,78 +0,0 @@
-'use strict';
-/* global WebSocket */
-
-/* eslint-disable
-  no-unused-vars
-*/
-
-function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
-function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
-function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
-
-function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
-function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
-function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
-
-function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
-var BaseClient = require('./BaseClient');
-
-module.exports = /*#__PURE__*/function (_BaseClient) {
-  _inherits(WebsocketClient, _BaseClient);
-
-  var _super = _createSuper(WebsocketClient);
-
-  function WebsocketClient(url) {
-    var _this;
-
-    _classCallCheck(this, WebsocketClient);
-
-    _this = _super.call(this);
-    _this.client = new WebSocket(url.replace(/^http/, 'ws'));
-
-    _this.client.onerror = function (err) {// TODO: use logger to log the error event once client and client-src
-      // are reorganized to have the same directory structure
-    };
-
-    return _this;
-  }
-
-  _createClass(WebsocketClient, [{
-    key: "onOpen",
-    value: function onOpen(f) {
-      this.client.onopen = f;
-    }
-  }, {
-    key: "onClose",
-    value: function onClose(f) {
-      this.client.onclose = f;
-    } // call f with the message string as the first argument
-
-  }, {
-    key: "onMessage",
-    value: function onMessage(f) {
-      this.client.onmessage = function (e) {
-        f(e.data);
-      };
-    }
-  }], [{
-    key: "getClientPath",
-    value: function getClientPath(options) {
-      return require.resolve('./WebsocketClient');
-    }
-  }]);
-
-  return WebsocketClient;
-}(BaseClient);

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1
node_modules.bak/webpack-dev-server/client/index.bundle.js


+ 0 - 176
node_modules.bak/webpack-dev-server/client/index.js

@@ -1,176 +0,0 @@
-'use strict';
-/* global __resourceQuery WorkerGlobalScope self */
-
-/* eslint prefer-destructuring: off */
-
-var stripAnsi = require('strip-ansi');
-
-var socket = require('./socket');
-
-var overlay = require('./overlay');
-
-var _require = require('./utils/log'),
-    log = _require.log,
-    setLogLevel = _require.setLogLevel;
-
-var sendMessage = require('./utils/sendMessage');
-
-var reloadApp = require('./utils/reloadApp');
-
-var createSocketUrl = require('./utils/createSocketUrl');
-
-var status = {
-  isUnloading: false,
-  currentHash: ''
-};
-var options = {
-  hot: false,
-  hotReload: true,
-  liveReload: false,
-  initial: true,
-  useWarningOverlay: false,
-  useErrorOverlay: false,
-  useProgress: false
-};
-var socketUrl = createSocketUrl(__resourceQuery);
-self.addEventListener('beforeunload', function () {
-  status.isUnloading = true;
-});
-
-if (typeof window !== 'undefined') {
-  var qs = window.location.search.toLowerCase();
-  options.hotReload = qs.indexOf('hotreload=false') === -1;
-}
-
-var onSocketMessage = {
-  hot: function hot() {
-    options.hot = true;
-    log.info('[WDS] Hot Module Replacement enabled.');
-  },
-  liveReload: function liveReload() {
-    options.liveReload = true;
-    log.info('[WDS] Live Reloading enabled.');
-  },
-  invalid: function invalid() {
-    log.info('[WDS] App updated. Recompiling...'); // fixes #1042. overlay doesn't clear if errors are fixed but warnings remain.
-
-    if (options.useWarningOverlay || options.useErrorOverlay) {
-      overlay.clear();
-    }
-
-    sendMessage('Invalid');
-  },
-  hash: function hash(_hash) {
-    status.currentHash = _hash;
-  },
-  'still-ok': function stillOk() {
-    log.info('[WDS] Nothing changed.');
-
-    if (options.useWarningOverlay || options.useErrorOverlay) {
-      overlay.clear();
-    }
-
-    sendMessage('StillOk');
-  },
-  'log-level': function logLevel(level) {
-    var hotCtx = require.context('webpack/hot', false, /^\.\/log$/);
-
-    if (hotCtx.keys().indexOf('./log') !== -1) {
-      hotCtx('./log').setLogLevel(level);
-    }
-
-    setLogLevel(level);
-  },
-  overlay: function overlay(value) {
-    if (typeof document !== 'undefined') {
-      if (typeof value === 'boolean') {
-        options.useWarningOverlay = false;
-        options.useErrorOverlay = value;
-      } else if (value) {
-        options.useWarningOverlay = value.warnings;
-        options.useErrorOverlay = value.errors;
-      }
-    }
-  },
-  progress: function progress(_progress) {
-    if (typeof document !== 'undefined') {
-      options.useProgress = _progress;
-    }
-  },
-  'progress-update': function progressUpdate(data) {
-    if (options.useProgress) {
-      log.info("[WDS] ".concat(data.percent, "% - ").concat(data.msg, "."));
-    }
-
-    sendMessage('Progress', data);
-  },
-  ok: function ok() {
-    sendMessage('Ok');
-
-    if (options.useWarningOverlay || options.useErrorOverlay) {
-      overlay.clear();
-    }
-
-    if (options.initial) {
-      return options.initial = false;
-    } // eslint-disable-line no-return-assign
-
-
-    reloadApp(options, status);
-  },
-  'content-changed': function contentChanged() {
-    log.info('[WDS] Content base changed. Reloading...');
-    self.location.reload();
-  },
-  warnings: function warnings(_warnings) {
-    log.warn('[WDS] Warnings while compiling.');
-
-    var strippedWarnings = _warnings.map(function (warning) {
-      return stripAnsi(warning);
-    });
-
-    sendMessage('Warnings', strippedWarnings);
-
-    for (var i = 0; i < strippedWarnings.length; i++) {
-      log.warn(strippedWarnings[i]);
-    }
-
-    if (options.useWarningOverlay) {
-      overlay.showMessage(_warnings);
-    }
-
-    if (options.initial) {
-      return options.initial = false;
-    } // eslint-disable-line no-return-assign
-
-
-    reloadApp(options, status);
-  },
-  errors: function errors(_errors) {
-    log.error('[WDS] Errors while compiling. Reload prevented.');
-
-    var strippedErrors = _errors.map(function (error) {
-      return stripAnsi(error);
-    });
-
-    sendMessage('Errors', strippedErrors);
-
-    for (var i = 0; i < strippedErrors.length; i++) {
-      log.error(strippedErrors[i]);
-    }
-
-    if (options.useErrorOverlay) {
-      overlay.showMessage(_errors);
-    }
-
-    options.initial = false;
-  },
-  error: function error(_error) {
-    log.error(_error);
-  },
-  close: function close() {
-    log.error('[WDS] Disconnected!');
-    sendMessage('Close');
-  }
-};
-socket(socketUrl, onSocketMessage);

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 25
node_modules.bak/webpack-dev-server/client/live.bundle.js


+ 0 - 1
node_modules.bak/webpack-dev-server/client/live.html

@@ -1 +0,0 @@
-<!DOCTYPE html><html><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/><script type="text/javascript" charset="utf-8" src="/__webpack_dev_server__/live.bundle.js"></script></head><body></body></html>

+ 0 - 120
node_modules.bak/webpack-dev-server/client/overlay.js

@@ -1,120 +0,0 @@
-'use strict'; // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
-// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
-
-var ansiHTML = require('ansi-html');
-
-var _require = require('html-entities'),
-    AllHtmlEntities = _require.AllHtmlEntities;
-
-var entities = new AllHtmlEntities();
-var colors = {
-  reset: ['transparent', 'transparent'],
-  black: '181818',
-  red: 'E36049',
-  green: 'B3CB74',
-  yellow: 'FFD080',
-  blue: '7CAFC2',
-  magenta: '7FACCA',
-  cyan: 'C3C2EF',
-  lightgrey: 'EBE7E3',
-  darkgrey: '6D7891'
-};
-var overlayIframe = null;
-var overlayDiv = null;
-var lastOnOverlayDivReady = null;
-ansiHTML.setColors(colors);
-
-function createOverlayIframe(onIframeLoad) {
-  var iframe = document.createElement('iframe');
-  iframe.id = 'webpack-dev-server-client-overlay';
-  iframe.src = 'about:blank';
-  iframe.style.position = 'fixed';
-  iframe.style.left = 0;
-  iframe.style.top = 0;
-  iframe.style.right = 0;
-  iframe.style.bottom = 0;
-  iframe.style.width = '100vw';
-  iframe.style.height = '100vh';
-  iframe.style.border = 'none';
-  iframe.style.zIndex = 9999999999;
-  iframe.onload = onIframeLoad;
-  return iframe;
-}
-
-function addOverlayDivTo(iframe) {
-  var div = iframe.contentDocument.createElement('div');
-  div.id = 'webpack-dev-server-client-overlay-div';
-  div.style.position = 'fixed';
-  div.style.boxSizing = 'border-box';
-  div.style.left = 0;
-  div.style.top = 0;
-  div.style.right = 0;
-  div.style.bottom = 0;
-  div.style.width = '100vw';
-  div.style.height = '100vh';
-  div.style.backgroundColor = 'rgba(0, 0, 0, 0.85)';
-  div.style.color = '#E8E8E8';
-  div.style.fontFamily = 'Menlo, Consolas, monospace';
-  div.style.fontSize = 'large';
-  div.style.padding = '2rem';
-  div.style.lineHeight = '1.2';
-  div.style.whiteSpace = 'pre-wrap';
-  div.style.overflow = 'auto';
-  iframe.contentDocument.body.appendChild(div);
-  return div;
-}
-
-function ensureOverlayDivExists(onOverlayDivReady) {
-  if (overlayDiv) {
-    // Everything is ready, call the callback right away.
-    onOverlayDivReady(overlayDiv);
-    return;
-  } // Creating an iframe may be asynchronous so we'll schedule the callback.
-  // In case of multiple calls, last callback wins.
-
-
-  lastOnOverlayDivReady = onOverlayDivReady;
-
-  if (overlayIframe) {
-    // We've already created it.
-    return;
-  } // Create iframe and, when it is ready, a div inside it.
-
-
-  overlayIframe = createOverlayIframe(function () {
-    overlayDiv = addOverlayDivTo(overlayIframe); // Now we can talk!
-
-    lastOnOverlayDivReady(overlayDiv);
-  }); // Zalgo alert: onIframeLoad() will be called either synchronously
-  // or asynchronously depending on the browser.
-  // We delay adding it so `overlayIframe` is set when `onIframeLoad` fires.
-
-  document.body.appendChild(overlayIframe);
-} // Successful compilation.
-
-
-function clear() {
-  if (!overlayDiv) {
-    // It is not there in the first place.
-    return;
-  } // Clean up and reset internal state.
-
-
-  document.body.removeChild(overlayIframe);
-  overlayDiv = null;
-  overlayIframe = null;
-  lastOnOverlayDivReady = null;
-} // Compilation with errors (e.g. syntax error or missing modules).
-
-
-function showMessage(messages) {
-  ensureOverlayDivExists(function (div) {
-    // Make it look similar to our terminal.
-    div.innerHTML = "<span style=\"color: #".concat(colors.red, "\">Failed to compile.</span><br><br>").concat(ansiHTML(entities.encode(messages[0])));
-  });
-}
-
-module.exports = {
-  clear: clear,
-  showMessage: showMessage
-};

+ 0 - 52
node_modules.bak/webpack-dev-server/client/socket.js

@@ -1,52 +0,0 @@
-'use strict';
-/* global __webpack_dev_server_client__ */
-
-/* eslint-disable
-  camelcase
-*/
-// this SockJSClient is here as a default fallback, in case inline mode
-// is off or the client is not injected. This will be switched to
-// WebsocketClient when it becomes the default
-// important: the path to SockJSClient here is made to work in the 'client'
-// directory, but is updated via the webpack compilation when compiled from
-// the 'client-src' directory
-
-var Client = typeof __webpack_dev_server_client__ !== 'undefined' ? __webpack_dev_server_client__ : // eslint-disable-next-line import/no-unresolved
-require('./clients/SockJSClient');
-var retries = 0;
-var client = null;
-
-var socket = function initSocket(url, handlers) {
-  client = new Client(url);
-  client.onOpen(function () {
-    retries = 0;
-  });
-  client.onClose(function () {
-    if (retries === 0) {
-      handlers.close();
-    } // Try to reconnect.
-
-
-    client = null; // After 10 retries stop trying, to prevent logspam.
-
-    if (retries <= 10) {
-      // Exponentially increase timeout to reconnect.
-      // Respectfully copied from the package `got`.
-      // eslint-disable-next-line no-mixed-operators, no-restricted-properties
-      var retryInMs = 1000 * Math.pow(2, retries) + Math.random() * 100;
-      retries += 1;
-      setTimeout(function () {
-        socket(url, handlers);
-      }, retryInMs);
-    }
-  });
-  client.onMessage(function (data) {
-    var msg = JSON.parse(data);
-
-    if (handlers[msg.type]) {
-      handlers[msg.type](msg.data);
-    }
-  });
-};
-
-module.exports = socket;

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1
node_modules.bak/webpack-dev-server/client/sockjs.bundle.js


+ 0 - 88
node_modules.bak/webpack-dev-server/client/utils/createSocketUrl.js

@@ -1,88 +0,0 @@
-'use strict';
-/* global self */
-
-var url = require('url');
-
-var getCurrentScriptSource = require('./getCurrentScriptSource');
-
-function createSocketUrl(resourceQuery, currentLocation) {
-  var urlParts;
-
-  if (typeof resourceQuery === 'string' && resourceQuery !== '') {
-    // If this bundle is inlined, use the resource query to get the correct url.
-    // format is like `?http://0.0.0.0:8096&sockPort=8097&sockHost=localhost`
-    urlParts = url.parse(resourceQuery // strip leading `?` from query string to get a valid URL
-    .substr(1) // replace first `&` with `?` to have a valid query string
-    .replace('&', '?'), true);
-  } else {
-    // Else, get the url from the <script> this file was called with.
-    var scriptHost = getCurrentScriptSource();
-    urlParts = url.parse(scriptHost || '/', true, true);
-  } // Use parameter to allow passing location in unit tests
-
-
-  if (typeof currentLocation === 'string' && currentLocation !== '') {
-    currentLocation = url.parse(currentLocation);
-  } else {
-    currentLocation = self.location;
-  }
-
-  return getSocketUrl(urlParts, currentLocation);
-}
-/*
- * Gets socket URL based on Script Source/Location
- * (scriptSrc: URL, location: URL) -> URL
- */
-
-
-function getSocketUrl(urlParts, loc) {
-  var auth = urlParts.auth,
-      query = urlParts.query;
-  var hostname = urlParts.hostname,
-      protocol = urlParts.protocol,
-      port = urlParts.port;
-
-  if (!port || port === '0') {
-    port = loc.port;
-  } // check ipv4 and ipv6 `all hostname`
-  // why do we need this check?
-  // hostname n/a for file protocol (example, when using electron, ionic)
-  // see: https://github.com/webpack/webpack-dev-server/pull/384
-
-
-  if ((hostname === '0.0.0.0' || hostname === '::') && loc.hostname && loc.protocol.indexOf('http') === 0) {
-    hostname = loc.hostname;
-  } // `hostname` can be empty when the script path is relative. In that case, specifying
-  // a protocol would result in an invalid URL.
-  // When https is used in the app, secure websockets are always necessary
-  // because the browser doesn't accept non-secure websockets.
-
-
-  if (hostname && hostname !== '127.0.0.1' && (loc.protocol === 'https:' || urlParts.hostname === '0.0.0.0')) {
-    protocol = loc.protocol;
-  } // all of these sock url params are optionally passed in through
-  // resourceQuery, so we need to fall back to the default if
-  // they are not provided
-
-
-  var sockHost = query.sockHost || hostname;
-  var sockPath = query.sockPath || '/sockjs-node';
-  var sockPort = query.sockPort || port;
-
-  if (sockPort === 'location') {
-    sockPort = loc.port;
-  }
-
-  return url.format({
-    protocol: protocol,
-    auth: auth,
-    hostname: sockHost,
-    port: sockPort,
-    // If sockPath is provided it'll be passed in via the resourceQuery as a
-    // query param so it has to be parsed out of the querystring in order for the
-    // client to open the socket to the correct location.
-    pathname: sockPath
-  });
-}
-
-module.exports = createSocketUrl;

+ 0 - 22
node_modules.bak/webpack-dev-server/client/utils/getCurrentScriptSource.js

@@ -1,22 +0,0 @@
-'use strict';
-
-function getCurrentScriptSource() {
-  // `document.currentScript` is the most accurate way to find the current script,
-  // but is not supported in all browsers.
-  if (document.currentScript) {
-    return document.currentScript.getAttribute('src');
-  } // Fall back to getting all scripts in the document.
-
-
-  var scriptElements = document.scripts || [];
-  var currentScript = scriptElements[scriptElements.length - 1];
-
-  if (currentScript) {
-    return currentScript.getAttribute('src');
-  } // Fail as there was no script to use.
-
-
-  throw new Error('[WDS] Failed to get current script source.');
-}
-
-module.exports = getCurrentScriptSource;

+ 0 - 49
node_modules.bak/webpack-dev-server/client/utils/log.js

@@ -1,49 +0,0 @@
-'use strict';
-
-var log = require('loglevel').getLogger('webpack-dev-server');
-
-var INFO = 'info';
-var WARN = 'warn';
-var ERROR = 'error';
-var DEBUG = 'debug';
-var TRACE = 'trace';
-var SILENT = 'silent'; // deprecated
-// TODO: remove these at major released
-// https://github.com/webpack/webpack-dev-server/pull/1825
-
-var WARNING = 'warning';
-var NONE = 'none'; // Set the default log level
-
-log.setDefaultLevel(INFO);
-
-function setLogLevel(level) {
-  switch (level) {
-    case INFO:
-    case WARN:
-    case ERROR:
-    case DEBUG:
-    case TRACE:
-      log.setLevel(level);
-      break;
-    // deprecated
-
-    case WARNING:
-      // loglevel's warning name is different from webpack's
-      log.setLevel('warn');
-      break;
-    // deprecated
-
-    case NONE:
-    case SILENT:
-      log.disableAll();
-      break;
-
-    default:
-      log.error("[WDS] Unknown clientLogLevel '".concat(level, "'"));
-  }
-}
-
-module.exports = {
-  log: log,
-  setLogLevel: setLogLevel
-};

+ 0 - 55
node_modules.bak/webpack-dev-server/client/utils/reloadApp.js

@@ -1,55 +0,0 @@
-'use strict';
-/* global WorkerGlobalScope self */
-
-var _require = require('./log'),
-    log = _require.log;
-
-function reloadApp(_ref, _ref2) {
-  var hotReload = _ref.hotReload,
-      hot = _ref.hot,
-      liveReload = _ref.liveReload;
-  var isUnloading = _ref2.isUnloading,
-      currentHash = _ref2.currentHash;
-
-  if (isUnloading || !hotReload) {
-    return;
-  }
-
-  if (hot) {
-    log.info('[WDS] App hot update...');
-
-    var hotEmitter = require('webpack/hot/emitter');
-
-    hotEmitter.emit('webpackHotUpdate', currentHash);
-
-    if (typeof self !== 'undefined' && self.window) {
-      // broadcast update to window
-      self.postMessage("webpackHotUpdate".concat(currentHash), '*');
-    }
-  } // allow refreshing the page only if liveReload isn't disabled
-  else if (liveReload) {
-      var rootWindow = self; // use parent window for reload (in case we're in an iframe with no valid src)
-
-      var intervalId = self.setInterval(function () {
-        if (rootWindow.location.protocol !== 'about:') {
-          // reload immediately if protocol is valid
-          applyReload(rootWindow, intervalId);
-        } else {
-          rootWindow = rootWindow.parent;
-
-          if (rootWindow.parent === rootWindow) {
-            // if parent equals current window we've reached the root which would continue forever, so trigger a reload anyways
-            applyReload(rootWindow, intervalId);
-          }
-        }
-      });
-    }
-
-  function applyReload(rootWindow, intervalId) {
-    clearInterval(intervalId);
-    log.info('[WDS] App updated. Reloading...');
-    rootWindow.location.reload();
-  }
-}
-
-module.exports = reloadApp;

+ 0 - 14
node_modules.bak/webpack-dev-server/client/utils/sendMessage.js

@@ -1,14 +0,0 @@
-'use strict';
-/* global __resourceQuery WorkerGlobalScope self */
-// Send messages to the outside, so plugins can consume it.
-
-function sendMsg(type, data) {
-  if (typeof self !== 'undefined' && (typeof WorkerGlobalScope === 'undefined' || !(self instanceof WorkerGlobalScope))) {
-    self.postMessage({
-      type: "webpack".concat(type),
-      data: data
-    }, '*');
-  }
-}
-
-module.exports = sendMsg;

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1036
node_modules.bak/webpack-dev-server/lib/Server.js


+ 0 - 499
node_modules.bak/webpack-dev-server/lib/options.json

@@ -1,499 +0,0 @@
-{
-  "type": "object",
-  "properties": {
-    "after": {
-      "instanceof": "Function"
-    },
-    "allowedHosts": {
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "before": {
-      "instanceof": "Function"
-    },
-    "bonjour": {
-      "type": "boolean"
-    },
-    "ca": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "instanceof": "Buffer"
-        }
-      ]
-    },
-    "cert": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "instanceof": "Buffer"
-        }
-      ]
-    },
-    "clientLogLevel": {
-      "enum": [
-        "info",
-        "warn",
-        "error",
-        "debug",
-        "trace",
-        "silent",
-        "none",
-        "warning"
-      ]
-    },
-    "compress": {
-      "type": "boolean"
-    },
-    "contentBasePublicPath": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "type": "array",
-          "items": {
-            "type": "string"
-          },
-          "minItems": 1
-        }
-      ]
-    },
-    "contentBase": {
-      "anyOf": [
-        {
-          "enum": [false]
-        },
-        {
-          "type": "number"
-        },
-        {
-          "type": "string"
-        },
-        {
-          "type": "array",
-          "items": {
-            "type": "string"
-          },
-          "minItems": 1
-        }
-      ]
-    },
-    "disableHostCheck": {
-      "type": "boolean"
-    },
-    "features": {
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "filename": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "instanceof": "RegExp"
-        },
-        {
-          "instanceof": "Function"
-        }
-      ]
-    },
-    "fs": {
-      "type": "object"
-    },
-    "headers": {
-      "type": "object"
-    },
-    "historyApiFallback": {
-      "anyOf": [
-        {
-          "type": "boolean"
-        },
-        {
-          "type": "object"
-        }
-      ]
-    },
-    "host": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "hot": {
-      "type": "boolean"
-    },
-    "hotOnly": {
-      "type": "boolean"
-    },
-    "http2": {
-      "type": "boolean"
-    },
-    "https": {
-      "anyOf": [
-        {
-          "type": "object"
-        },
-        {
-          "type": "boolean"
-        }
-      ]
-    },
-    "index": {
-      "type": "string"
-    },
-    "injectClient": {
-      "anyOf": [
-        {
-          "type": "boolean"
-        },
-        {
-          "instanceof": "Function"
-        }
-      ]
-    },
-    "injectHot": {
-      "anyOf": [
-        {
-          "type": "boolean"
-        },
-        {
-          "instanceof": "Function"
-        }
-      ]
-    },
-    "inline": {
-      "type": "boolean"
-    },
-    "key": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "instanceof": "Buffer"
-        }
-      ]
-    },
-    "lazy": {
-      "type": "boolean"
-    },
-    "liveReload": {
-      "type": "boolean"
-    },
-    "log": {
-      "instanceof": "Function"
-    },
-    "logLevel": {
-      "enum": ["info", "warn", "error", "debug", "trace", "silent"]
-    },
-    "logTime": {
-      "type": "boolean"
-    },
-    "mimeTypes": {
-      "type": "object"
-    },
-    "noInfo": {
-      "type": "boolean"
-    },
-    "onListening": {
-      "instanceof": "Function"
-    },
-    "open": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "type": "boolean"
-        },
-        {
-          "type": "object"
-        }
-      ]
-    },
-    "openPage": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "type": "array",
-          "items": {
-            "type": "string"
-          },
-          "minItems": 1
-        }
-      ]
-    },
-    "overlay": {
-      "anyOf": [
-        {
-          "type": "boolean"
-        },
-        {
-          "type": "object",
-          "properties": {
-            "errors": {
-              "type": "boolean"
-            },
-            "warnings": {
-              "type": "boolean"
-            }
-          }
-        }
-      ]
-    },
-    "pfx": {
-      "anyOf": [
-        {
-          "type": "string"
-        },
-        {
-          "instanceof": "Buffer"
-        }
-      ]
-    },
-    "pfxPassphrase": {
-      "type": "string"
-    },
-    "port": {
-      "anyOf": [
-        {
-          "type": "number"
-        },
-        {
-          "type": "string"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "profile": {
-      "type": "boolean"
-    },
-    "progress": {
-      "type": "boolean"
-    },
-    "proxy": {
-      "anyOf": [
-        {
-          "type": "object"
-        },
-        {
-          "type": "array",
-          "items": {
-            "anyOf": [
-              {
-                "type": "object"
-              },
-              {
-                "instanceof": "Function"
-              }
-            ]
-          },
-          "minItems": 1
-        }
-      ]
-    },
-    "public": {
-      "type": "string"
-    },
-    "publicPath": {
-      "type": "string"
-    },
-    "quiet": {
-      "type": "boolean"
-    },
-    "reporter": {
-      "instanceof": "Function"
-    },
-    "requestCert": {
-      "type": "boolean"
-    },
-    "serveIndex": {
-      "type": "boolean"
-    },
-    "serverSideRender": {
-      "type": "boolean"
-    },
-    "setup": {
-      "instanceof": "Function"
-    },
-    "sockHost": {
-      "type": "string"
-    },
-    "sockPath": {
-      "type": "string"
-    },
-    "sockPort": {
-      "anyOf": [
-        {
-          "type": "number"
-        },
-        {
-          "type": "string"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "socket": {
-      "type": "string"
-    },
-    "staticOptions": {
-      "type": "object"
-    },
-    "stats": {
-      "anyOf": [
-        {
-          "type": "object"
-        },
-        {
-          "type": "boolean"
-        },
-        {
-          "enum": [
-            "none",
-            "errors-only",
-            "errors-warnings",
-            "minimal",
-            "normal",
-            "verbose"
-          ]
-        }
-      ]
-    },
-    "transportMode": {
-      "anyOf": [
-        {
-          "type": "object",
-          "properties": {
-            "client": {
-              "type": "string"
-            },
-            "server": {
-              "anyOf": [
-                {
-                  "type": "string"
-                },
-                {
-                  "instanceof": "Function"
-                }
-              ]
-            }
-          },
-          "additionalProperties": false
-        },
-        {
-          "enum": ["sockjs", "ws"]
-        }
-      ]
-    },
-    "useLocalIp": {
-      "type": "boolean"
-    },
-    "warn": {
-      "instanceof": "Function"
-    },
-    "watchContentBase": {
-      "type": "boolean"
-    },
-    "watchOptions": {
-      "type": "object"
-    },
-    "writeToDisk": {
-      "anyOf": [
-        {
-          "type": "boolean"
-        },
-        {
-          "instanceof": "Function"
-        }
-      ]
-    }
-  },
-  "errorMessage": {
-    "properties": {
-      "after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)",
-      "allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserverallowedhosts)",
-      "before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)",
-      "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour)",
-      "ca": "should be {String|Buffer}",
-      "cert": "should be {String|Buffer}",
-      "clientLogLevel": "should be {String} and equal to one of the allowed values\n\n [ 'none', 'silent', 'info', 'debug', 'trace', 'error', 'warning', 'warn' ]\n\n (https://webpack.js.org/configuration/dev-server/#devserverclientloglevel)",
-      "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)",
-      "contentBase": "should be {Number|String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbase)",
-      "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)",
-      "features": "should be {Array}",
-      "filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserverfilename-)",
-      "fs": "should be {Object} (https://github.com/webpack/webpack-dev-middleware#fs)",
-      "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverheaders-)",
-      "historyApiFallback": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback)",
-      "host": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserverhost)",
-      "hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhot)",
-      "hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhotonly)",
-      "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttp2)",
-      "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttps)",
-      "index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverindex)",
-      "injectClient": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjectclient)",
-      "injectHot": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjecthot)",
-      "inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverinline)",
-      "key": "should be {String|Buffer}",
-      "lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlazy-)",
-      "liveReload": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlivereload-)",
-      "log": "should be {Function}",
-      "logLevel": "should be {String} and equal to one of the allowed values\n\n [ 'info', 'warn', 'error', 'debug', 'trace', 'silent' ]\n\n (https://github.com/webpack/webpack-dev-middleware#loglevel)",
-      "logTime": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#logtime)",
-      "mimeTypes": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devservermimetypes-)",
-      "noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservernoinfo-)",
-      "onListening": "should be {Function} (https://webpack.js.org/configuration/dev-server/#onlistening)",
-      "open": "should be {String|Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserveropen)",
-      "openPage": "should be {String|Array} (https://webpack.js.org/configuration/dev-server/#devserveropenpage)",
-      "overlay": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserveroverlay)",
-      "pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserverpfx)",
-      "pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpfxpassphrase)",
-      "port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)",
-      "profile": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprofile)",
-      "progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprogress---cli-only)",
-      "proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)",
-      "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)",
-      "publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublicpath-)",
-      "quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverquiet-)",
-      "reporter": "should be {Function} (https://github.com/webpack/webpack-dev-middleware#reporter)",
-      "requestCert": "should be {Boolean}",
-      "contentBasePublicPath": "should be {String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbasepublicpath)",
-      "serveIndex": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverserveindex)",
-      "serverSideRender": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#serversiderender)",
-      "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserversetup)",
-      "sockHost": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockhost)",
-      "sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversockpath)",
-      "sockPort": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockport)",
-      "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversocket)",
-      "staticOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverstaticoptions)",
-      "stats": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverstats-)",
-      "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)",
-      "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserveruselocalip)",
-      "warn": "should be {Function}",
-      "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverwatchcontentbase)",
-      "watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverwatchoptions-)",
-      "writeToDisk": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-)"
-    }
-  },
-  "additionalProperties": false
-}

+ 0 - 9
node_modules.bak/webpack-dev-server/lib/servers/BaseServer.js

@@ -1,9 +0,0 @@
-'use strict';
-
-// base class that users should extend if they are making their own
-// server implementation
-module.exports = class BaseServer {
-  constructor(server) {
-    this.server = server;
-  }
-};

+ 0 - 74
node_modules.bak/webpack-dev-server/lib/servers/SockJSServer.js

@@ -1,74 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  class-methods-use-this,
-  func-names
-*/
-const sockjs = require('sockjs');
-const BaseServer = require('./BaseServer');
-
-// Workaround for sockjs@~0.3.19
-// sockjs will remove Origin header, however Origin header is required for checking host.
-// See https://github.com/webpack/webpack-dev-server/issues/1604 for more information
-{
-  const SockjsSession = require('sockjs/lib/transport').Session;
-  const decorateConnection = SockjsSession.prototype.decorateConnection;
-  SockjsSession.prototype.decorateConnection = function(req) {
-    decorateConnection.call(this, req);
-    const connection = this.connection;
-    if (
-      connection.headers &&
-      !('origin' in connection.headers) &&
-      'origin' in req.headers
-    ) {
-      connection.headers.origin = req.headers.origin;
-    }
-  };
-}
-
-module.exports = class SockJSServer extends BaseServer {
-  // options has: error (function), debug (function), server (http/s server), path (string)
-  constructor(server) {
-    super(server);
-    this.socket = sockjs.createServer({
-      // Use provided up-to-date sockjs-client
-      sockjs_url: '/__webpack_dev_server__/sockjs.bundle.js',
-      // Limit useless logs
-      log: (severity, line) => {
-        if (severity === 'error') {
-          this.server.log.error(line);
-        } else {
-          this.server.log.debug(line);
-        }
-      },
-    });
-
-    this.socket.installHandlers(this.server.listeningApp, {
-      prefix: this.server.sockPath,
-    });
-  }
-
-  send(connection, message) {
-    // prevent cases where the server is trying to send data while connection is closing
-    if (connection.readyState !== 1) {
-      return;
-    }
-
-    connection.write(message);
-  }
-
-  close(connection) {
-    connection.close();
-  }
-
-  // f should be passed the resulting connection and the connection headers
-  onConnection(f) {
-    this.socket.on('connection', (connection) => {
-      f(connection, connection ? connection.headers : null);
-    });
-  }
-
-  onConnectionClose(connection, f) {
-    connection.on('close', f);
-  }
-};

+ 0 - 72
node_modules.bak/webpack-dev-server/lib/servers/WebsocketServer.js

@@ -1,72 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  class-methods-use-this
-*/
-const ws = require('ws');
-const BaseServer = require('./BaseServer');
-
-module.exports = class WebsocketServer extends BaseServer {
-  constructor(server) {
-    super(server);
-    this.wsServer = new ws.Server({
-      noServer: true,
-      path: this.server.sockPath,
-    });
-
-    this.server.listeningApp.on('upgrade', (req, sock, head) => {
-      if (!this.wsServer.shouldHandle(req)) {
-        return;
-      }
-
-      this.wsServer.handleUpgrade(req, sock, head, (connection) => {
-        this.wsServer.emit('connection', connection, req);
-      });
-    });
-
-    this.wsServer.on('error', (err) => {
-      this.server.log.error(err.message);
-    });
-
-    const noop = () => {};
-
-    setInterval(() => {
-      this.wsServer.clients.forEach((socket) => {
-        if (socket.isAlive === false) {
-          return socket.terminate();
-        }
-
-        socket.isAlive = false;
-        socket.ping(noop);
-      });
-    }, this.server.heartbeatInterval);
-  }
-
-  send(connection, message) {
-    // prevent cases where the server is trying to send data while connection is closing
-    if (connection.readyState !== 1) {
-      return;
-    }
-
-    connection.send(message);
-  }
-
-  close(connection) {
-    connection.close();
-  }
-
-  // f should be passed the resulting connection and the connection headers
-  onConnection(f) {
-    this.wsServer.on('connection', (connection, req) => {
-      connection.isAlive = true;
-      connection.on('pong', () => {
-        connection.isAlive = true;
-      });
-      f(connection, req.headers);
-    });
-  }
-
-  onConnectionClose(connection, f) {
-    connection.on('close', f);
-  }
-};

+ 0 - 160
node_modules.bak/webpack-dev-server/lib/utils/addEntries.js

@@ -1,160 +0,0 @@
-'use strict';
-
-const webpack = require('webpack');
-const createDomain = require('./createDomain');
-
-/**
- * A Entry, it can be of type string or string[] or Object<string | string[],string>
- * @typedef {(string[] | string | Object<string | string[],string>)} Entry
- */
-
-/**
- * Add entries Method
- * @param {?Object} config - Webpack config
- * @param {?Object} options - Dev-Server options
- * @param {?Object} server
- * @returns {void}
- */
-function addEntries(config, options, server) {
-  if (options.inline !== false) {
-    // we're stubbing the app in this method as it's static and doesn't require
-    // a server to be supplied. createDomain requires an app with the
-    // address() signature.
-
-    const app = server || {
-      address() {
-        return { port: options.port };
-      },
-    };
-
-    /** @type {string} */
-    const domain = createDomain(options, app);
-    /** @type {string} */
-    const sockHost = options.sockHost ? `&sockHost=${options.sockHost}` : '';
-    /** @type {string} */
-    const sockPath = options.sockPath ? `&sockPath=${options.sockPath}` : '';
-    /** @type {string} */
-    const sockPort = options.sockPort ? `&sockPort=${options.sockPort}` : '';
-    /** @type {string} */
-    const clientEntry = `${require.resolve(
-      '../../client/'
-    )}?${domain}${sockHost}${sockPath}${sockPort}`;
-
-    /** @type {(string[] | string)} */
-    let hotEntry;
-
-    if (options.hotOnly) {
-      hotEntry = require.resolve('webpack/hot/only-dev-server');
-    } else if (options.hot) {
-      hotEntry = require.resolve('webpack/hot/dev-server');
-    }
-    /**
-     * prependEntry Method
-     * @param {Entry} originalEntry
-     * @param {Entry} additionalEntries
-     * @returns {Entry}
-     */
-    const prependEntry = (originalEntry, additionalEntries) => {
-      if (typeof originalEntry === 'function') {
-        return () =>
-          Promise.resolve(originalEntry()).then((entry) =>
-            prependEntry(entry, additionalEntries)
-          );
-      }
-
-      if (typeof originalEntry === 'object' && !Array.isArray(originalEntry)) {
-        /** @type {Object<string,string>} */
-        const clone = {};
-
-        Object.keys(originalEntry).forEach((key) => {
-          // entry[key] should be a string here
-          const entryDescription = originalEntry[key];
-          if (typeof entryDescription === 'object' && entryDescription.import) {
-            clone[key] = Object.assign({}, entryDescription, {
-              import: prependEntry(entryDescription.import, additionalEntries),
-            });
-          } else {
-            clone[key] = prependEntry(entryDescription, additionalEntries);
-          }
-        });
-
-        return clone;
-      }
-
-      // in this case, entry is a string or an array.
-      // make sure that we do not add duplicates.
-      /** @type {Entry} */
-      const entriesClone = additionalEntries.slice(0);
-      [].concat(originalEntry).forEach((newEntry) => {
-        if (!entriesClone.includes(newEntry)) {
-          entriesClone.push(newEntry);
-        }
-      });
-      return entriesClone;
-    };
-
-    /**
-     *
-     * Description of the option for checkInject method
-     * @typedef {Function} checkInjectOptionsParam
-     * @param {Object} _config - compilerConfig
-     * @return {Boolean}
-     */
-
-    /**
-     *
-     * @param {Boolean | checkInjectOptionsParam} option - inject(Hot|Client) it is Boolean | fn => Boolean
-     * @param {Object} _config
-     * @param {Boolean} defaultValue
-     * @return {Boolean}
-     */
-    // eslint-disable-next-line no-shadow
-    const checkInject = (option, _config, defaultValue) => {
-      if (typeof option === 'boolean') return option;
-      if (typeof option === 'function') return option(_config);
-      return defaultValue;
-    };
-
-    // eslint-disable-next-line no-shadow
-    [].concat(config).forEach((config) => {
-      /** @type {Boolean} */
-      const webTarget = [
-        'web',
-        'webworker',
-        'electron-renderer',
-        'node-webkit',
-        undefined, // eslint-disable-line
-        null,
-      ].includes(config.target);
-      /** @type {Entry} */
-      const additionalEntries = checkInject(
-        options.injectClient,
-        config,
-        webTarget
-      )
-        ? [clientEntry]
-        : [];
-
-      if (hotEntry && checkInject(options.injectHot, config, true)) {
-        additionalEntries.push(hotEntry);
-      }
-
-      config.entry = prependEntry(config.entry || './src', additionalEntries);
-
-      if (options.hot || options.hotOnly) {
-        config.plugins = config.plugins || [];
-        if (
-          !config.plugins.find(
-            // Check for the name rather than the constructor reference in case
-            // there are multiple copies of webpack installed
-            (plugin) => plugin.constructor.name === 'HotModuleReplacementPlugin'
-          )
-        ) {
-          config.plugins.push(new webpack.HotModuleReplacementPlugin());
-        }
-      }
-    });
-  }
-}
-
-module.exports = addEntries;

+ 0 - 22
node_modules.bak/webpack-dev-server/lib/utils/colors.js

@@ -1,22 +0,0 @@
-'use strict';
-
-const colors = {
-  info(useColor, msg) {
-    if (useColor) {
-      // Make text blue and bold, so it *pops*
-      return `\u001b[1m\u001b[34m${msg}\u001b[39m\u001b[22m`;
-    }
-
-    return msg;
-  },
-  error(useColor, msg) {
-    if (useColor) {
-      // Make text red and bold, so it *pops*
-      return `\u001b[1m\u001b[31m${msg}\u001b[39m\u001b[22m`;
-    }
-
-    return msg;
-  },
-};
-
-module.exports = colors;

+ 0 - 69
node_modules.bak/webpack-dev-server/lib/utils/createCertificate.js

@@ -1,69 +0,0 @@
-'use strict';
-
-const selfsigned = require('selfsigned');
-
-function createCertificate(attributes) {
-  return selfsigned.generate(attributes, {
-    algorithm: 'sha256',
-    days: 30,
-    keySize: 2048,
-    extensions: [
-      // {
-      //   name: 'basicConstraints',
-      //   cA: true,
-      // },
-      {
-        name: 'keyUsage',
-        keyCertSign: true,
-        digitalSignature: true,
-        nonRepudiation: true,
-        keyEncipherment: true,
-        dataEncipherment: true,
-      },
-      {
-        name: 'extKeyUsage',
-        serverAuth: true,
-        clientAuth: true,
-        codeSigning: true,
-        timeStamping: true,
-      },
-      {
-        name: 'subjectAltName',
-        altNames: [
-          {
-            // type 2 is DNS
-            type: 2,
-            value: 'localhost',
-          },
-          {
-            type: 2,
-            value: 'localhost.localdomain',
-          },
-          {
-            type: 2,
-            value: 'lvh.me',
-          },
-          {
-            type: 2,
-            value: '*.lvh.me',
-          },
-          {
-            type: 2,
-            value: '[::1]',
-          },
-          {
-            // type 7 is IP
-            type: 7,
-            ip: '127.0.0.1',
-          },
-          {
-            type: 7,
-            ip: 'fe80::1',
-          },
-        ],
-      },
-    ],
-  });
-}
-
-module.exports = createCertificate;

+ 0 - 233
node_modules.bak/webpack-dev-server/lib/utils/createConfig.js

@@ -1,233 +0,0 @@
-'use strict';
-
-const path = require('path');
-const isAbsoluteUrl = require('is-absolute-url');
-const defaultTo = require('./defaultTo');
-
-function createConfig(config, argv, { port }) {
-  const firstWpOpt = Array.isArray(config) ? config[0] : config;
-  const options = firstWpOpt.devServer || {};
-
-  // This updates both config and firstWpOpt
-  firstWpOpt.mode = defaultTo(firstWpOpt.mode, 'development');
-
-  if (argv.bonjour) {
-    options.bonjour = true;
-  }
-
-  if (argv.host && (argv.host !== 'localhost' || !options.host)) {
-    options.host = argv.host;
-  }
-
-  if (argv.allowedHosts) {
-    options.allowedHosts = argv.allowedHosts.split(',');
-  }
-
-  if (argv.public) {
-    options.public = argv.public;
-  }
-
-  if (argv.socket) {
-    options.socket = argv.socket;
-  }
-
-  if (argv.sockHost) {
-    options.sockHost = argv.sockHost;
-  }
-
-  if (argv.sockPath) {
-    options.sockPath = argv.sockPath;
-  }
-
-  if (argv.sockPort) {
-    options.sockPort = argv.sockPort;
-  }
-
-  if (argv.liveReload === false) {
-    options.liveReload = false;
-  }
-
-  if (argv.profile) {
-    options.profile = argv.profile;
-  }
-
-  if (argv.progress) {
-    options.progress = argv.progress;
-  }
-
-  if (argv.overlay) {
-    options.overlay = argv.overlay;
-  }
-
-  if (!options.publicPath) {
-    // eslint-disable-next-line
-    options.publicPath =
-      (firstWpOpt.output && firstWpOpt.output.publicPath) || '';
-
-    if (
-      !isAbsoluteUrl(String(options.publicPath)) &&
-      options.publicPath[0] !== '/'
-    ) {
-      options.publicPath = `/${options.publicPath}`;
-    }
-  }
-
-  if (!options.filename && firstWpOpt.output && firstWpOpt.output.filename) {
-    options.filename = firstWpOpt.output && firstWpOpt.output.filename;
-  }
-
-  if (!options.watchOptions && firstWpOpt.watchOptions) {
-    options.watchOptions = firstWpOpt.watchOptions;
-  }
-
-  if (argv.stdin) {
-    process.stdin.on('end', () => {
-      // eslint-disable-next-line no-process-exit
-      process.exit(0);
-    });
-
-    process.stdin.resume();
-  }
-
-  // TODO https://github.com/webpack/webpack-dev-server/issues/616 (v4)
-  // We should prefer CLI arg under config, now we always prefer `hot` from `devServer`
-  if (!options.hot) {
-    options.hot = argv.hot;
-  }
-
-  // TODO https://github.com/webpack/webpack-dev-server/issues/616 (v4)
-  // We should prefer CLI arg under config, now we always prefer `hotOnly` from `devServer`
-  if (!options.hotOnly) {
-    options.hotOnly = argv.hotOnly;
-  }
-
-  // TODO https://github.com/webpack/webpack-dev-server/issues/616 (v4)
-  // We should prefer CLI arg under config, now we always prefer `clientLogLevel` from `devServer`
-  if (!options.clientLogLevel && argv.clientLogLevel) {
-    options.clientLogLevel = argv.clientLogLevel;
-  }
-
-  if (argv.contentBase) {
-    options.contentBase = argv.contentBase;
-
-    if (Array.isArray(options.contentBase)) {
-      options.contentBase = options.contentBase.map((p) => path.resolve(p));
-    } else if (/^[0-9]$/.test(options.contentBase)) {
-      options.contentBase = +options.contentBase;
-    } else if (!isAbsoluteUrl(String(options.contentBase))) {
-      options.contentBase = path.resolve(options.contentBase);
-    }
-  }
-  // It is possible to disable the contentBase by using
-  // `--no-content-base`, which results in arg["content-base"] = false
-  else if (argv.contentBase === false) {
-    options.contentBase = false;
-  }
-
-  if (argv.watchContentBase) {
-    options.watchContentBase = true;
-  }
-
-  if (!options.stats) {
-    options.stats = defaultTo(firstWpOpt.stats, {
-      cached: false,
-      cachedAssets: false,
-    });
-  }
-
-  if (
-    typeof options.stats === 'object' &&
-    typeof options.stats.colors === 'undefined' &&
-    argv.color
-  ) {
-    options.stats = Object.assign({}, options.stats, { colors: argv.color });
-  }
-
-  if (argv.lazy) {
-    options.lazy = true;
-  }
-
-  // TODO remove in `v4`
-  if (!argv.info) {
-    options.noInfo = true;
-  }
-
-  // TODO remove in `v4`
-  if (argv.quiet) {
-    options.quiet = true;
-  }
-
-  if (argv.https) {
-    options.https = true;
-  }
-
-  if (argv.http2) {
-    options.http2 = true;
-  }
-
-  if (argv.key) {
-    options.key = argv.key;
-  }
-
-  if (argv.cert) {
-    options.cert = argv.cert;
-  }
-
-  if (argv.cacert) {
-    options.ca = argv.cacert;
-  }
-
-  if (argv.pfx) {
-    options.pfx = argv.pfx;
-  }
-
-  if (argv.pfxPassphrase) {
-    options.pfxPassphrase = argv.pfxPassphrase;
-  }
-
-  if (argv.inline === false) {
-    options.inline = false;
-  }
-
-  if (argv.historyApiFallback) {
-    options.historyApiFallback = true;
-  }
-
-  if (argv.compress) {
-    options.compress = true;
-  }
-
-  if (argv.disableHostCheck) {
-    options.disableHostCheck = true;
-  }
-
-  if (argv.openPage) {
-    options.open = true;
-    options.openPage = argv.openPage.split(',');
-  }
-
-  if (typeof argv.open !== 'undefined') {
-    options.open = argv.open !== '' ? argv.open : true;
-  }
-
-  if (options.open && !options.openPage) {
-    options.openPage = '';
-  }
-
-  if (argv.useLocalIp) {
-    options.useLocalIp = true;
-  }
-
-  // Kind of weird, but ensures prior behavior isn't broken in cases
-  // that wouldn't throw errors. E.g. both argv.port and options.port
-  // were specified, but since argv.port is 8080, options.port will be
-  // tried first instead.
-  options.port =
-    argv.port === port
-      ? defaultTo(options.port, argv.port)
-      : defaultTo(argv.port, options.port);
-
-  return options;
-}
-
-module.exports = createConfig;

+ 0 - 29
node_modules.bak/webpack-dev-server/lib/utils/createDomain.js

@@ -1,29 +0,0 @@
-'use strict';
-
-const url = require('url');
-const ip = require('internal-ip');
-
-function createDomain(options, server) {
-  const protocol = options.https ? 'https' : 'http';
-  const hostname = options.useLocalIp
-    ? ip.v4.sync() || 'localhost'
-    : options.host || 'localhost';
-
-  // eslint-disable-next-line no-nested-ternary
-  const port = options.socket ? 0 : server ? server.address().port : 0;
-  // use explicitly defined public url
-  // (prefix with protocol if not explicitly given)
-  if (options.public) {
-    return /^[a-zA-Z]+:\/\//.test(options.public)
-      ? `${options.public}`
-      : `${protocol}://${options.public}`;
-  }
-  // the formatted domain (url without path) of the webpack server
-  return url.format({
-    protocol,
-    hostname,
-    port,
-  });
-}
-
-module.exports = createDomain;

+ 0 - 23
node_modules.bak/webpack-dev-server/lib/utils/createLogger.js

@@ -1,23 +0,0 @@
-'use strict';
-
-const log = require('webpack-log');
-
-function createLogger(options = {}) {
-  let level = options.logLevel || 'info';
-
-  if (options.noInfo === true) {
-    level = 'warn';
-  }
-
-  if (options.quiet === true) {
-    level = 'silent';
-  }
-
-  return log({
-    name: 'wds',
-    level,
-    timestamp: options.logTime,
-  });
-}
-
-module.exports = createLogger;

+ 0 - 3
node_modules.bak/webpack-dev-server/lib/utils/defaultPort.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = 8080;

+ 0 - 7
node_modules.bak/webpack-dev-server/lib/utils/defaultTo.js

@@ -1,7 +0,0 @@
-'use strict';
-
-function defaultTo(value, def) {
-  return value == null ? def : value;
-}
-
-module.exports = defaultTo;

+ 0 - 39
node_modules.bak/webpack-dev-server/lib/utils/findPort.js

@@ -1,39 +0,0 @@
-'use strict';
-
-const pRetry = require('p-retry');
-const portfinder = require('portfinder');
-const defaultPort = require('./defaultPort');
-const defaultTo = require('./defaultTo');
-const tryParseInt = require('./tryParseInt');
-
-function runPortFinder() {
-  return new Promise((resolve, reject) => {
-    portfinder.basePort = defaultPort;
-    portfinder.getPort((error, port) => {
-      if (error) {
-        return reject(error);
-      }
-
-      return resolve(port);
-    });
-  });
-}
-
-function findPort(port) {
-  if (port) {
-    return Promise.resolve(port);
-  }
-
-  // Try to find unused port and listen on it for 3 times,
-  // if port is not specified in options.
-  // Because NaN == null is false, defaultTo fails if parseInt returns NaN
-  // so the tryParseInt function is introduced to handle NaN
-  const defaultPortRetry = defaultTo(
-    tryParseInt(process.env.DEFAULT_PORT_RETRY),
-    3
-  );
-
-  return pRetry(runPortFinder, { retries: defaultPortRetry });
-}
-
-module.exports = findPort;

+ 0 - 45
node_modules.bak/webpack-dev-server/lib/utils/getCertificate.js

@@ -1,45 +0,0 @@
-'use strict';
-
-const path = require('path');
-const fs = require('fs');
-const del = require('del');
-const createCertificate = require('./createCertificate');
-
-function getCertificate(logger) {
-  // Use a self-signed certificate if no certificate was configured.
-  // Cycle certs every 24 hours
-  const certificatePath = path.join(__dirname, '../../ssl/server.pem');
-
-  let certificateExists = fs.existsSync(certificatePath);
-
-  if (certificateExists) {
-    const certificateTtl = 1000 * 60 * 60 * 24;
-    const certificateStat = fs.statSync(certificatePath);
-
-    const now = new Date();
-
-    // cert is more than 30 days old, kill it with fire
-    if ((now - certificateStat.ctime) / certificateTtl > 30) {
-      logger.info('SSL Certificate is more than 30 days old. Removing.');
-
-      del.sync([certificatePath], { force: true });
-
-      certificateExists = false;
-    }
-  }
-
-  if (!certificateExists) {
-    logger.info('Generating SSL Certificate');
-
-    const attributes = [{ name: 'commonName', value: 'localhost' }];
-    const pems = createCertificate(attributes);
-
-    fs.writeFileSync(certificatePath, pems.private + pems.cert, {
-      encoding: 'utf8',
-    });
-  }
-
-  return fs.readFileSync(certificatePath);
-}
-
-module.exports = getCertificate;

+ 0 - 37
node_modules.bak/webpack-dev-server/lib/utils/getSocketClientPath.js

@@ -1,37 +0,0 @@
-'use strict';
-
-function getSocketClientPath(options) {
-  let ClientImplementation;
-  let clientImplFound = true;
-  switch (typeof options.transportMode.client) {
-    case 'string':
-      // could be 'sockjs', 'ws', or a path that should be required
-      if (options.transportMode.client === 'sockjs') {
-        ClientImplementation = require('../../client/clients/SockJSClient');
-      } else if (options.transportMode.client === 'ws') {
-        ClientImplementation = require('../../client/clients/WebsocketClient');
-      } else {
-        try {
-          // eslint-disable-next-line import/no-dynamic-require
-          ClientImplementation = require(options.transportMode.client);
-        } catch (e) {
-          clientImplFound = false;
-        }
-      }
-      break;
-    default:
-      clientImplFound = false;
-  }
-
-  if (!clientImplFound) {
-    throw new Error(
-      "transportMode.client must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to " +
-        'a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient) ' +
-        'via require.resolve(...)'
-    );
-  }
-
-  return ClientImplementation.getClientPath(options);
-}
-
-module.exports = getSocketClientPath;

+ 0 - 42
node_modules.bak/webpack-dev-server/lib/utils/getSocketServerImplementation.js

@@ -1,42 +0,0 @@
-'use strict';
-
-function getSocketServerImplementation(options) {
-  let ServerImplementation;
-  let serverImplFound = true;
-  switch (typeof options.transportMode.server) {
-    case 'string':
-      // could be 'sockjs', in the future 'ws', or a path that should be required
-      if (options.transportMode.server === 'sockjs') {
-        ServerImplementation = require('../servers/SockJSServer');
-      } else if (options.transportMode.server === 'ws') {
-        ServerImplementation = require('../servers/WebsocketServer');
-      } else {
-        try {
-          // eslint-disable-next-line import/no-dynamic-require
-          ServerImplementation = require(options.transportMode.server);
-        } catch (e) {
-          serverImplFound = false;
-        }
-      }
-      break;
-    case 'function':
-      // potentially do more checks here to confirm that the user implemented this properlly
-      // since errors could be difficult to understand
-      ServerImplementation = options.transportMode.server;
-      break;
-    default:
-      serverImplFound = false;
-  }
-
-  if (!serverImplFound) {
-    throw new Error(
-      "transportMode.server must be a string denoting a default implementation (e.g. 'sockjs', 'ws'), a full path to " +
-        'a JS file which exports a class extending BaseServer (webpack-dev-server/lib/servers/BaseServer) ' +
-        'via require.resolve(...), or the class itself which extends BaseServer'
-    );
-  }
-
-  return ServerImplementation;
-}
-
-module.exports = getSocketServerImplementation;

+ 0 - 10
node_modules.bak/webpack-dev-server/lib/utils/getVersions.js

@@ -1,10 +0,0 @@
-'use strict';
-
-function getVersions() {
-  return (
-    `webpack-dev-server ${require('../../package.json').version}\n` +
-    `webpack ${require('webpack/package.json').version}`
-  );
-}
-
-module.exports = getVersions;

+ 0 - 41
node_modules.bak/webpack-dev-server/lib/utils/normalizeOptions.js

@@ -1,41 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  no-undefined
-*/
-
-function normalizeOptions(compiler, options) {
-  // Setup default value
-  options.contentBase =
-    options.contentBase !== undefined ? options.contentBase : process.cwd();
-
-  // Setup default value
-  options.contentBasePublicPath = options.contentBasePublicPath || '/';
-
-  // normalize transportMode option
-  if (options.transportMode === undefined) {
-    options.transportMode = {
-      server: 'sockjs',
-      client: 'sockjs',
-    };
-  } else {
-    switch (typeof options.transportMode) {
-      case 'string':
-        options.transportMode = {
-          server: options.transportMode,
-          client: options.transportMode,
-        };
-        break;
-      // if not a string, it is an object
-      default:
-        options.transportMode.server = options.transportMode.server || 'sockjs';
-        options.transportMode.client = options.transportMode.client || 'sockjs';
-    }
-  }
-
-  if (!options.watchOptions) {
-    options.watchOptions = {};
-  }
-}
-
-module.exports = normalizeOptions;

+ 0 - 44
node_modules.bak/webpack-dev-server/lib/utils/processOptions.js

@@ -1,44 +0,0 @@
-'use strict';
-
-const createConfig = require('./createConfig');
-const defaultPort = require('./defaultPort');
-const findPort = require('./findPort');
-
-function processOptions(config, argv, callback) {
-  // processOptions {Promise}
-  if (typeof config.then === 'function') {
-    config
-      .then((conf) => processOptions(conf, argv, callback))
-      .catch((err) => {
-        // eslint-disable-next-line no-console
-        console.error(err.stack || err);
-        // eslint-disable-next-line no-process-exit
-        process.exit(1);
-      });
-
-    return;
-  }
-
-  // Taken out of yargs because we must know if
-  // it wasn't given by the user, in which case
-  // we should use portfinder.
-  const options = createConfig(config, argv, { port: defaultPort });
-
-  if (options.socket) {
-    callback(config, options);
-  } else {
-    findPort(options.port)
-      .then((port) => {
-        options.port = port;
-        callback(config, options);
-      })
-      .catch((err) => {
-        // eslint-disable-next-line no-console
-        console.error(err.stack || err);
-        // eslint-disable-next-line no-process-exit
-        process.exit(1);
-      });
-  }
-}
-
-module.exports = processOptions;

+ 0 - 98
node_modules.bak/webpack-dev-server/lib/utils/routes.js

@@ -1,98 +0,0 @@
-'use strict';
-
-const { createReadStream } = require('fs');
-const { join } = require('path');
-
-const clientBasePath = join(__dirname, '..', '..', 'client');
-
-function routes(server) {
-  const app = server.app;
-  const middleware = server.middleware;
-  const options = server.options;
-
-  app.get('/__webpack_dev_server__/live.bundle.js', (req, res) => {
-    res.setHeader('Content-Type', 'application/javascript');
-
-    createReadStream(join(clientBasePath, 'live.bundle.js')).pipe(res);
-  });
-
-  app.get('/__webpack_dev_server__/sockjs.bundle.js', (req, res) => {
-    res.setHeader('Content-Type', 'application/javascript');
-
-    createReadStream(join(clientBasePath, 'sockjs.bundle.js')).pipe(res);
-  });
-
-  app.get('/webpack-dev-server.js', (req, res) => {
-    res.setHeader('Content-Type', 'application/javascript');
-
-    createReadStream(join(clientBasePath, 'index.bundle.js')).pipe(res);
-  });
-
-  app.get('/webpack-dev-server/invalidate', (_req, res) => {
-    server.invalidate();
-    res.end();
-  });
-
-  app.get('/webpack-dev-server/*', (req, res) => {
-    res.setHeader('Content-Type', 'text/html');
-
-    createReadStream(join(clientBasePath, 'live.html')).pipe(res);
-  });
-
-  app.get('/webpack-dev-server', (req, res) => {
-    res.setHeader('Content-Type', 'text/html');
-
-    res.write(
-      '<!DOCTYPE html><html><head><meta charset="utf-8"/></head><body>'
-    );
-
-    const outputPath = middleware.getFilenameFromUrl(options.publicPath || '/');
-    const filesystem = middleware.fileSystem;
-
-    writeDirectory(options.publicPath || '/', outputPath);
-
-    res.end('</body></html>');
-
-    function writeDirectory(baseUrl, basePath) {
-      const content = filesystem.readdirSync(basePath);
-
-      res.write('<ul>');
-
-      content.forEach((item) => {
-        const p = `${basePath}/${item}`;
-
-        if (filesystem.statSync(p).isFile()) {
-          res.write(`<li><a href="${baseUrl + item}">${item}</a></li>`);
-
-          if (/\.js$/.test(item)) {
-            const html = item.substr(0, item.length - 3);
-            const containerHref = baseUrl + html;
-
-            const magicHtmlHref =
-              baseUrl.replace(
-                // eslint-disable-next-line
-                /(^(https?:\/\/[^\/]+)?\/)/,
-                '$1webpack-dev-server/'
-              ) + html;
-
-            res.write(
-              `<li><a href="${containerHref}">${html}</a>` +
-                ` (magic html for ${item}) (<a href="${magicHtmlHref}">webpack-dev-server</a>)` +
-                `</li>`
-            );
-          }
-        } else {
-          res.write(`<li>${item}<br>`);
-
-          writeDirectory(`${baseUrl + item}/`, p);
-
-          res.write('</li>');
-        }
-      });
-
-      res.write('</ul>');
-    }
-  });
-}
-
-module.exports = routes;

+ 0 - 21
node_modules.bak/webpack-dev-server/lib/utils/runBonjour.js

@@ -1,21 +0,0 @@
-'use strict';
-
-function runBonjour({ port }) {
-  const bonjour = require('bonjour')();
-  const os = require('os');
-
-  bonjour.publish({
-    name: `Webpack Dev Server ${os.hostname()}:${port}`,
-    port,
-    type: 'http',
-    subtypes: ['webpack'],
-  });
-
-  process.on('exit', () => {
-    bonjour.unpublishAll(() => {
-      bonjour.destroy();
-    });
-  });
-}
-
-module.exports = runBonjour;

+ 0 - 37
node_modules.bak/webpack-dev-server/lib/utils/runOpen.js

@@ -1,37 +0,0 @@
-'use strict';
-
-const open = require('opn');
-const isAbsoluteUrl = require('is-absolute-url');
-
-function runOpen(uri, options, log) {
-  // https://github.com/webpack/webpack-dev-server/issues/1990
-  let openOptions = { wait: false };
-  let openOptionValue = '';
-
-  if (typeof options.open === 'string') {
-    openOptions = Object.assign({}, openOptions, { app: options.open });
-    openOptionValue = `: "${options.open}"`;
-  } else if (typeof options.open === 'object') {
-    openOptions = options.open;
-    openOptionValue = `: "${JSON.stringify(options.open)}"`;
-  }
-
-  const pages =
-    typeof options.openPage === 'string'
-      ? [options.openPage]
-      : options.openPage || [''];
-
-  return Promise.all(
-    pages.map((page) => {
-      const pageUrl = page && isAbsoluteUrl(page) ? page : `${uri}${page}`;
-
-      return open(pageUrl, openOptions).catch(() => {
-        log.warn(
-          `Unable to open "${pageUrl}" in browser${openOptionValue}. If you are running in a headless environment, please do not use the --open flag`
-        );
-      });
-    })
-  );
-}
-
-module.exports = runOpen;

+ 0 - 21
node_modules.bak/webpack-dev-server/lib/utils/setupExitSignals.js

@@ -1,21 +0,0 @@
-'use strict';
-
-const signals = ['SIGINT', 'SIGTERM'];
-
-function setupExitSignals(serverData) {
-  signals.forEach((signal) => {
-    process.on(signal, () => {
-      if (serverData && serverData.server) {
-        serverData.server.close(() => {
-          // eslint-disable-next-line no-process-exit
-          process.exit();
-        });
-      } else {
-        // eslint-disable-next-line no-process-exit
-        process.exit();
-      }
-    });
-  });
-}
-
-module.exports = setupExitSignals;

+ 0 - 61
node_modules.bak/webpack-dev-server/lib/utils/status.js

@@ -1,61 +0,0 @@
-'use strict';
-
-const logger = require('webpack-log');
-const colors = require('./colors');
-const runOpen = require('./runOpen');
-
-// TODO: don't emit logs when webpack-dev-server is used via Node.js API
-function status(uri, options, log, useColor) {
-  if (options.quiet === true) {
-    // Add temporary logger to output just the status of the dev server
-    log = logger({
-      name: 'wds',
-      level: 'info',
-      timestamp: options.logTime,
-    });
-  }
-
-  const contentBase = Array.isArray(options.contentBase)
-    ? options.contentBase.join(', ')
-    : options.contentBase;
-
-  if (options.socket) {
-    log.info(`Listening to socket at ${colors.info(useColor, options.socket)}`);
-  } else {
-    log.info(`Project is running at ${colors.info(useColor, uri)}`);
-  }
-
-  log.info(
-    `webpack output is served from ${colors.info(useColor, options.publicPath)}`
-  );
-
-  if (contentBase) {
-    log.info(
-      `Content not from webpack is served from ${colors.info(
-        useColor,
-        contentBase
-      )}`
-    );
-  }
-
-  if (options.historyApiFallback) {
-    log.info(
-      `404s will fallback to ${colors.info(
-        useColor,
-        options.historyApiFallback.index || '/index.html'
-      )}`
-    );
-  }
-
-  if (options.bonjour) {
-    log.info(
-      'Broadcasting "http" with subtype of "webpack" via ZeroConf DNS (Bonjour)'
-    );
-  }
-
-  if (options.open) {
-    runOpen(uri, options, log);
-  }
-}
-
-module.exports = status;

+ 0 - 13
node_modules.bak/webpack-dev-server/lib/utils/tryParseInt.js

@@ -1,13 +0,0 @@
-'use strict';
-
-function tryParseInt(input) {
-  const output = parseInt(input, 10);
-
-  if (Number.isNaN(output)) {
-    return null;
-  }
-
-  return output;
-}
-
-module.exports = tryParseInt;

+ 0 - 73
node_modules.bak/webpack-dev-server/lib/utils/updateCompiler.js

@@ -1,73 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  no-shadow,
-  no-undefined
-*/
-const webpack = require('webpack');
-const addEntries = require('./addEntries');
-const getSocketClientPath = require('./getSocketClientPath');
-
-function updateCompiler(compiler, options) {
-  if (options.inline !== false) {
-    const findHMRPlugin = (config) => {
-      if (!config.plugins) {
-        return undefined;
-      }
-
-      return config.plugins.find(
-        (plugin) => plugin.constructor === webpack.HotModuleReplacementPlugin
-      );
-    };
-
-    const compilers = [];
-    const compilersWithoutHMR = [];
-    let webpackConfig;
-    if (compiler.compilers) {
-      webpackConfig = [];
-      compiler.compilers.forEach((compiler) => {
-        webpackConfig.push(compiler.options);
-        compilers.push(compiler);
-        if (!findHMRPlugin(compiler.options)) {
-          compilersWithoutHMR.push(compiler);
-        }
-      });
-    } else {
-      webpackConfig = compiler.options;
-      compilers.push(compiler);
-      if (!findHMRPlugin(compiler.options)) {
-        compilersWithoutHMR.push(compiler);
-      }
-    }
-
-    // it's possible that we should clone the config before doing
-    // this, but it seems safe not to since it actually reflects
-    // the changes we are making to the compiler
-    // important: this relies on the fact that addEntries now
-    // prevents duplicate new entries.
-    addEntries(webpackConfig, options);
-    compilers.forEach((compiler) => {
-      const config = compiler.options;
-      compiler.hooks.entryOption.call(config.context, config.entry);
-
-      const providePlugin = new webpack.ProvidePlugin({
-        __webpack_dev_server_client__: getSocketClientPath(options),
-      });
-      providePlugin.apply(compiler);
-    });
-
-    // do not apply the plugin unless it didn't exist before.
-    if (options.hot || options.hotOnly) {
-      compilersWithoutHMR.forEach((compiler) => {
-        // addDevServerEntrypoints above should have added the plugin
-        // to the compiler options
-        const plugin = findHMRPlugin(compiler.options);
-        if (plugin) {
-          plugin.apply(compiler);
-        }
-      });
-    }
-  }
-}
-
-module.exports = updateCompiler;

+ 0 - 182
node_modules.bak/webpack-dev-server/package.json

@@ -1,182 +0,0 @@
-{
-  "_from": "webpack-dev-server@^3.3.1",
-  "_id": "webpack-dev-server@3.11.2",
-  "_inBundle": false,
-  "_integrity": "sha1-aV687Xakkp8NXef9c/r+GF/jNwg=",
-  "_location": "/webpack-dev-server",
-  "_phantomChildren": {
-    "ajv": "6.12.6",
-    "ajv-errors": "1.0.1",
-    "ajv-keywords": "3.5.2",
-    "async-each": "1.0.3",
-    "bindings": "1.5.0",
-    "braces": "2.3.2",
-    "graceful-fs": "4.2.6",
-    "inherits": "2.0.4",
-    "is-extglob": "2.1.1",
-    "is-glob": "4.0.1",
-    "micromatch": "3.1.10",
-    "nan": "2.14.2",
-    "normalize-path": "3.0.0",
-    "path-dirname": "1.0.2",
-    "path-is-absolute": "1.0.1",
-    "readable-stream": "2.3.7",
-    "remove-trailing-separator": "1.1.0",
-    "upath": "1.2.0"
-  },
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "webpack-dev-server@^3.3.1",
-    "name": "webpack-dev-server",
-    "escapedName": "webpack-dev-server",
-    "rawSpec": "^3.3.1",
-    "saveSpec": null,
-    "fetchSpec": "^3.3.1"
-  },
-  "_requiredBy": [
-    "#DEV:/"
-  ],
-  "_resolved": "https://registry.nlark.com/webpack-dev-server/download/webpack-dev-server-3.11.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwebpack-dev-server%2Fdownload%2Fwebpack-dev-server-3.11.2.tgz",
-  "_shasum": "695ebced76a4929f0d5de7fd73fafe185fe33708",
-  "_spec": "webpack-dev-server@^3.3.1",
-  "_where": "D:\\朗通信息\\icssDService",
-  "author": {
-    "name": "Tobias Koppers @sokra"
-  },
-  "bin": {
-    "webpack-dev-server": "bin/webpack-dev-server.js"
-  },
-  "bugs": {
-    "url": "https://github.com/webpack/webpack-dev-server/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "ansi-html": "0.0.7",
-    "bonjour": "^3.5.0",
-    "chokidar": "^2.1.8",
-    "compression": "^1.7.4",
-    "connect-history-api-fallback": "^1.6.0",
-    "debug": "^4.1.1",
-    "del": "^4.1.1",
-    "express": "^4.17.1",
-    "html-entities": "^1.3.1",
-    "http-proxy-middleware": "0.19.1",
-    "import-local": "^2.0.0",
-    "internal-ip": "^4.3.0",
-    "ip": "^1.1.5",
-    "is-absolute-url": "^3.0.3",
-    "killable": "^1.0.1",
-    "loglevel": "^1.6.8",
-    "opn": "^5.5.0",
-    "p-retry": "^3.0.1",
-    "portfinder": "^1.0.26",
-    "schema-utils": "^1.0.0",
-    "selfsigned": "^1.10.8",
-    "semver": "^6.3.0",
-    "serve-index": "^1.9.1",
-    "sockjs": "^0.3.21",
-    "sockjs-client": "^1.5.0",
-    "spdy": "^4.0.2",
-    "strip-ansi": "^3.0.1",
-    "supports-color": "^6.1.0",
-    "url": "^0.11.0",
-    "webpack-dev-middleware": "^3.7.2",
-    "webpack-log": "^2.0.0",
-    "ws": "^6.2.1",
-    "yargs": "^13.3.2"
-  },
-  "deprecated": false,
-  "description": "Serves a webpack app. Updates the browser on changes.",
-  "devDependencies": {
-    "@babel/cli": "^7.8.4",
-    "@babel/core": "^7.9.6",
-    "@babel/plugin-transform-runtime": "^7.9.6",
-    "@babel/preset-env": "^7.9.6",
-    "@babel/runtime": "^7.9.6",
-    "@commitlint/cli": "^8.3.5",
-    "@commitlint/config-conventional": "^8.3.4",
-    "babel-loader": "^8.1.0",
-    "body-parser": "^1.19.0",
-    "commitlint-azure-pipelines-cli": "^1.0.3",
-    "copy-webpack-plugin": "^5.1.1",
-    "css-loader": "^2.1.1",
-    "eslint": "^6.8.0",
-    "eslint-config-prettier": "^6.11.0",
-    "eslint-config-webpack": "^1.2.5",
-    "eslint-plugin-import": "^2.20.2",
-    "execa": "^1.0.0",
-    "file-loader": "^5.1.0",
-    "html-loader": "^0.5.5",
-    "html-webpack-plugin": "^3.2.0",
-    "husky": "^4.2.5",
-    "jest": "^24.9.0",
-    "jest-junit": "^10.0.0",
-    "jquery": "^3.5.1",
-    "less": "^3.11.1",
-    "less-loader": "^5.0.0",
-    "lint-staged": "^10.2.2",
-    "marked": "^0.8.2",
-    "memfs": "^3.1.2",
-    "npm-run-all": "^4.1.5",
-    "prettier": "^1.19.1",
-    "puppeteer": "^1.20.0",
-    "rimraf": "^3.0.2",
-    "standard-version": "^8.0.0",
-    "style-loader": "^1.2.1",
-    "supertest": "^4.0.2",
-    "tcp-port-used": "^1.0.1",
-    "typescript": "^3.8.3",
-    "url-loader": "^3.0.0",
-    "webpack": "^4.43.0",
-    "webpack-cli": "^3.3.11"
-  },
-  "engines": {
-    "node": ">= 6.11.5"
-  },
-  "files": [
-    "bin",
-    "lib",
-    "ssl",
-    "client"
-  ],
-  "homepage": "https://github.com/webpack/webpack-dev-server#readme",
-  "license": "MIT",
-  "main": "lib/Server.js",
-  "name": "webpack-dev-server",
-  "peerDependencies": {
-    "webpack": "^4.0.0 || ^5.0.0"
-  },
-  "peerDependenciesMeta": {
-    "webpack-cli": {
-      "optional": true
-    }
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/webpack/webpack-dev-server.git"
-  },
-  "scripts": {
-    "build:client": "rimraf ./client/* && npm-run-all -s -l -p \"build:client:**\"",
-    "build:client:clients": "babel client-src/clients --out-dir client/clients",
-    "build:client:default": "babel client-src/default --out-dir client --ignore \"./client-src/default/*.config.js\"",
-    "build:client:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",
-    "build:client:live": "webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js",
-    "build:client:sockjs": "webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js",
-    "commitlint": "commitlint --from=master",
-    "lint": "npm-run-all -l -p \"lint:**\"",
-    "lint:js": "eslint . --cache",
-    "lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
-    "lint:type": "tsc --noEmit",
-    "prepare": "rimraf ./ssl/*.pem && npm run build:client",
-    "pretest": "npm run lint",
-    "release": "standard-version",
-    "security": "npm audit",
-    "test": "npm run test:coverage",
-    "test:coverage": "npm run test:only -- --coverage",
-    "test:only": "jest --forceExit",
-    "test:watch": "npm run test:coverage --watch",
-    "webpack-dev-server": "node examples/run-example.js"
-  },
-  "version": "3.11.2"
-}

+ 0 - 0
node_modules.bak/webpack-dev-server/ssl/.gitkeep


+ 0 - 16
node_modules.bak/webpack-log/CHANGELOG.md

@@ -1,16 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="2.0.0"></a>
-# [2.0.0](https://github.com/webpack-contrib/webpack-log/compare/v1.2.0...v2.0.0) (2018-08-23)
-
-
-### Code Refactoring
-
-* **package:** replace `chalk` with `ansi-colors` (`dependencies`) ([#4](https://github.com/webpack-contrib/webpack-log/issues/4)) ([5b793d4](https://github.com/webpack-contrib/webpack-log/commit/5b793d4))
-
-
-### BREAKING CHANGES
-
-* **package:** `module.exports.chalk` was renamed to `module.exports.colors`

+ 0 - 21
node_modules.bak/webpack-log/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 webpack-contrib
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 0 - 132
node_modules.bak/webpack-log/README.md

@@ -1,132 +0,0 @@
-<div align="center">
-  <a href="https://github.com/webpack/webpack">
-    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
-  </a>
-</div>
-
-[![npm][npm]][npm-url]
-[![node][node]][node-url]
-[![deps][deps]][deps-url]
-[![tests][tests]][tests-url]
-[![coverage][cover]][cover-url]
-[![chat][chat]][chat-url]
-
-# webpack-log
-
-A common logging module for the Webpack ecosystem. `webpack-log` leverages
-[`loglevelnext`][loglevelnext].
-
-## Getting Started
-
-First thing's first, install the module:
-
-```console
-npm install webpack-log --save
-```
-
-_Note: We do not recommend installing this module globally._
-
-## Requirements
-
-`webpack-log` requires Node v6 or higher.
-
-## Usage
-
-```js
-const weblog = require('webpack-log');
-const log = weblog({ name: 'wds' }) // webpack-dev-server
-
-log.info('Server Starting');
-```
-
-The code above will produce:
-
-![output](output.png)
-
-## Options
-
-The default export (`function`) will return a logger, given an `options` Object.
-The following is a property reference for the Object.
-
-_Note: the logger returned is unique by default, due to the nature of the `webpack`
-ecosystem. Please reference the [`unique`](#unique) option below for disabling
-this feature and to force caching._
-
-### level
-
-Type: `String`  
-Default: `'info'`
-
-Specifies the level the logger should use. A logger will not produce output for
-any log level _beneath_ the specified level. Available levels and order are:
-
-```js
-[
-  'trace',
-  'debug',
-  'info',
-  'warn',
-  'error',
-  'silent'
-]
-```
-
-_Note: The level names shown above correspond to the available logging methods,
-with the notable exception of the `silent` level._
-
-### name
-
-_Required_  
-Type: `String`  
-Default: `'<unknown>'`
-
-Specifies the name of the log to create. This property is required, and used to
-differentiate between loggers when `webpack-log` is used in multiple projects
-executing in the same process space.
-
-### timestamp
-
-Type: `Boolean`  
-Default: `false`
-
-If `true`, instructs the logger to display a timestamp for log output, preceding
-all other data.
-
-### unique
-
-Type: `Boolean`  
-Default: `true`
-
-If `false`, instructs the logger to used cached versions of a log with the same
-name. Due to the nature of the `webpack` ecosystem and multiple plugin/loader
-use in the same process space, loggers are created as unique instances by default.
-By passing `false` for this property, the module is instructed to cache the
-requested logger.
-
-## Contributing
-
-We welcome your contributions! Please have a read of [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to get involved.
-
-## License
-
-#### [MIT](./LICENSE)
-
-[npm]: https://img.shields.io/npm/v/webpack-log.svg
-[npm-url]: https://npmjs.com/package/webpack-log
-
-[node]: https://img.shields.io/node/v/webpack-log.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/webpack-log.svg
-[deps-url]: https://david-dm.org/webpack-contrib/webpack-log
-
-[tests]: http://img.shields.io/travis/webpack-contrib/webpack-log.svg
-[tests-url]: https://travis-ci.org/webpack-contrib/webpack-log
-
-[cover]: https://codecov.io/gh/webpack-contrib/webpack-log/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/webpack-log
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[loglevelnext]: https://github.com/shellscape/loglevelnext

+ 0 - 72
node_modules.bak/webpack-log/package.json

@@ -1,72 +0,0 @@
-{
-  "_from": "webpack-log@^2.0.0",
-  "_id": "webpack-log@2.0.0",
-  "_inBundle": false,
-  "_integrity": "sha1-W3ko4GN1k/EZ0y9iJ8HgrDHhtH8=",
-  "_location": "/webpack-log",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "webpack-log@^2.0.0",
-    "name": "webpack-log",
-    "escapedName": "webpack-log",
-    "rawSpec": "^2.0.0",
-    "saveSpec": null,
-    "fetchSpec": "^2.0.0"
-  },
-  "_requiredBy": [
-    "/webpack-dev-middleware",
-    "/webpack-dev-server"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/webpack-log/download/webpack-log-2.0.0.tgz?cache=0&sync_timestamp=1615477211227&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-log%2Fdownload%2Fwebpack-log-2.0.0.tgz",
-  "_shasum": "5b7928e0637593f119d32f6227c1e0ac31e1b47f",
-  "_spec": "webpack-log@^2.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\webpack-dev-middleware",
-  "author": {
-    "name": "Andrew Powell",
-    "email": "andrew@shellscape.org"
-  },
-  "bugs": {
-    "url": "https://github.com/webpack-contrib/webpack-log/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "ansi-colors": "^3.0.0",
-    "uuid": "^3.3.2"
-  },
-  "deprecated": false,
-  "description": "A common logger for the webpack ecosystem",
-  "devDependencies": {
-    "assert": "^1.4.1",
-    "eslint": "^5.4.0",
-    "eslint-config-webpack": "^1.2.5",
-    "eslint-plugin-import": "^2.14.0",
-    "mocha": "^5.2.0",
-    "nyc": "^12.0.2",
-    "sinon": "^6.1.5",
-    "standard-version": "^4.4.0",
-    "strip-ansi": "^4.0.0"
-  },
-  "engines": {
-    "node": ">= 6"
-  },
-  "files": [
-    "src"
-  ],
-  "homepage": "https://github.com/webpack-contrib/webpack-log#readme",
-  "issues": "https://github.com/webpack-contrib/webpack-log/issues",
-  "license": "MIT",
-  "main": "src/index.js",
-  "name": "webpack-log",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/webpack-contrib/webpack-log.git"
-  },
-  "scripts": {
-    "lint": "eslint src test",
-    "release": "standard-version",
-    "test": "nyc --reporter lcovonly mocha --full-trace --check-leaks"
-  },
-  "version": "2.0.0"
-}

+ 0 - 80
node_modules.bak/webpack-log/src/index.js

@@ -1,80 +0,0 @@
-'use strict';
-
-/* global window: true */
-/* eslint-disable
-  no-shadow,
-  no-param-reassign,
-  space-before-function-paren
-*/
-const uuid = require('uuid/v4');
-const colors = require('ansi-colors');
-const loglevel = require('./loglevel');
-
-const symbols = {
-  trace: colors.grey('₸'),
-  debug: colors.cyan('➤'),
-  info: colors.blue(colors.symbols.info),
-  warn: colors.yellow(colors.symbols.warning),
-  error: colors.red(colors.symbols.cross)
-};
-
-const defaults = {
-  name: '<unknown>',
-  level: 'info',
-  unique: true
-};
-
-const prefix = {
-  level (options) {
-    return symbols[options.level];
-  },
-  template: `{{level}} ${colors.gray('「{{name}}」')}: `
-};
-
-function log (options) {
-  const opts = Object.assign({}, defaults, options);
-  const { id } = options;
-
-  opts.prefix = Object.assign({}, prefix, options.prefix);
-  delete opts.id;
-
-  Object.defineProperty(opts, 'id', {
-    get() {
-      if (!id) {
-        return this.name + (opts.unique ? `-${uuid()}` : '');
-      }
-
-      return id;
-    }
-  });
-
-  if (opts.timestamp) {
-    opts.prefix.template = `[{{time}}] ${opts.prefix.template}`;
-  }
-
-  const log = loglevel.getLogger(opts);
-
-  if (!Object.prototype.hasOwnProperty.call(log, 'id')) {
-    Object.defineProperty(log, 'id', {
-      get() {
-        return opts.id;
-      }
-    });
-  }
-
-  return log;
-}
-
-module.exports = log;
-// NOTE: this is exported so that consumers of webpack-log can use the same
-// version of ansi-colors to decorate log messages without incurring additional
-// dependency overhead
-module.exports.colors = colors;
-// NOTE: This is an undocumented function solely for the purpose of tests.
-// Do not use this method in production code. Using in production code
-// may result in strange behavior.
-module.exports.delLogger = function delLogger(name) {
-  delete loglevel.loggers[name];
-};
-
-module.exports.factories = loglevel.factories;

+ 0 - 91
node_modules.bak/webpack-log/src/loglevel/LogLevel.js

@@ -1,91 +0,0 @@
-'use strict';
-
-/* global window: true */
-/* eslint-disable
-  multiline-ternary,
-  no-param-reassign
-*/
-const PrefixFactory = require('./PrefixFactory');
-const MethodFactory = require('./MethodFactory');
-
-const defaults = {
-  name: +new Date(),
-  level: 'warn',
-  prefix: null,
-  factory: null
-};
-
-class LogLevel {
-  constructor(options) {
-    // implement for some _very_ loose type checking. avoids getting into a
-    // circular require between MethodFactory and LogLevel
-    this.type = 'LogLevel';
-    this.options = Object.assign({}, defaults, options);
-    this.methodFactory = options.factory;
-
-    if (!this.methodFactory) {
-      const factory = options.prefix
-        ? new PrefixFactory(this, options.prefix)
-        : new MethodFactory(this);
-
-      this.methodFactory = factory;
-    }
-
-    if (!this.methodFactory.logger) {
-      this.methodFactory.logger = this;
-    }
-
-    this.name = options.name || '<unknown>';
-    // this.level is a setter, do this after setting up the factory
-    this.level = this.options.level;
-  }
-
-  get factory() {
-    return this.methodFactory;
-  }
-
-  set factory(factory) {
-    factory.logger = this;
-
-    this.methodFactory = factory;
-    this.methodFactory.replaceMethods(this.level);
-  }
-
-  enable() {
-    this.level = this.levels.TRACE;
-  }
-
-  disable() {
-    this.level = this.levels.SILENT;
-  }
-
-  get level() {
-    return this.currentLevel;
-  }
-
-  set level(logLevel) {
-    const level = this.methodFactory.distillLevel(logLevel);
-
-    if (level == null) {
-      throw new Error(
-        `loglevel: setLevel() called with invalid level: ${logLevel}`
-      );
-    }
-
-    this.currentLevel = level;
-    this.methodFactory.replaceMethods(level);
-
-    if (typeof console === 'undefined' && level < this.levels.SILENT) {
-      // eslint-disable-next-line no-console
-      console.warn(
-        'loglevel: console is undefined. The log will produce no output'
-      );
-    }
-  }
-
-  get levels() { // eslint-disable-line class-methods-use-this
-    return this.methodFactory.levels;
-  }
-}
-
-module.exports = LogLevel;

+ 0 - 140
node_modules.bak/webpack-log/src/loglevel/MethodFactory.js

@@ -1,140 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  arrow-parens,
-  multiline-ternary,
-  consistent-return,
-  no-param-reassign,
-  prefer-destructuring
-*/
-const noop = () => {};
-
-const levels = Symbol('levels');
-const instance = Symbol('instance');
-
-class MethodFactory {
-  constructor(logger) {
-    this[levels] = {
-      TRACE: 0,
-      DEBUG: 1,
-      INFO: 2,
-      WARN: 3,
-      ERROR: 4,
-      SILENT: 5
-    };
-
-    this[instance] = logger;
-  }
-
-  set logger(logger) {
-    this[instance] = logger;
-  }
-
-  get logger() {
-    return this[instance];
-  }
-
-  get levels() {
-    return this[levels];
-  }
-
-  get methods() {
-    return Object.keys(this.levels)
-      .map((key) => key.toLowerCase())
-      .filter((key) => key !== 'silent');
-  }
-
-  distillLevel(level) {
-    let result = level;
-
-    if (
-      typeof result === 'string' &&
-      typeof this.levels[result.toUpperCase()] !== 'undefined'
-    ) {
-      result = this.levels[result.toUpperCase()];
-    }
-
-    if (this.levelValid(result)) {
-      return result;
-    }
-  }
-
-  levelValid(level) {
-    if (
-      typeof level === 'number' && level >= 0 &&
-      level <= this.levels.SILENT
-    ) {
-      return true;
-    }
-
-    return false;
-  }
-  /**
-   * Build the best logging method possible for this env
-   * Wherever possible we want to bind, not wrap, to preserve stack traces.
-   * Since we're targeting modern browsers, there's no need to wait for the
-   * console to become available.
-   */
-  // eslint-disable-next-line class-methods-use-this
-  make(method) {
-    if (method === 'debug') {
-      method = 'log';
-    }
-
-    /* eslint-disable no-console */
-    if (typeof console[method] !== 'undefined') {
-      return this.bindMethod(console, method);
-    } else if (typeof console.log !== 'undefined') {
-      return this.bindMethod(console, 'log');
-    }
-
-    /* eslint-enable no-console */
-    return noop;
-  }
-
-  // eslint-disable-next-line class-methods-use-this
-  bindMethod(obj, name) {
-    const method = obj[name];
-
-    if (typeof method.bind === 'function') {
-      return method.bind(obj);
-    }
-
-    try {
-      return Function.prototype.bind.call(method, obj);
-    } catch (err) {
-      // Missing bind shim or IE8 + Modernizr, fallback to wrapping
-      return function result() {
-        // eslint-disable-next-line prefer-rest-params
-        return Function.prototype.apply.apply(method, [obj, arguments]);
-      };
-    }
-  }
-
-  replaceMethods(logLevel) {
-    const level = this.distillLevel(logLevel);
-
-    if (level == null) {
-      throw new Error(
-        `loglevel: replaceMethods() called with invalid level: ${logLevel}`
-      );
-    }
-
-    if (!this.logger || this.logger.type !== 'LogLevel') {
-      throw new TypeError(
-        'loglevel: Logger is undefined or invalid. Please specify a valid Logger instance.'
-      );
-    }
-
-    this.methods.forEach((method) => {
-      this.logger[method] = (this.levels[method.toUpperCase()] < level)
-        ? noop
-        : this.make(method);
-    });
-
-    // Define log.log as an alias for log.debug
-    this.logger.log = this.logger.debug;
-  }
-}
-
-module.exports = MethodFactory;

+ 0 - 60
node_modules.bak/webpack-log/src/loglevel/PrefixFactory.js

@@ -1,60 +0,0 @@
-'use strict';
-
-/* eslint-disable
-  no-param-reassign,
-  space-before-function-paren
-*/
-const MethodFactory = require('./MethodFactory');
-
-const defaults = {
-  name (options) {
-    return options.logger.name;
-  },
-  time () {
-    return new Date().toTimeString().split(' ')[0];
-  },
-  level (options) {
-    return `[${options.level}]`;
-  },
-  template: '{{time}} {{level}} '
-};
-
-class PrefixFactory extends MethodFactory {
-  constructor(logger, options) {
-    super(logger);
-
-    this.options = Object.assign({}, defaults, options);
-  }
-
-  interpolate(level) {
-    return this.options.template.replace(/{{([^{}]*)}}/g, (stache, prop) => {
-      const fn = this.options[prop];
-
-      if (fn) {
-        return fn({ level, logger: this.logger });
-      }
-
-      return stache;
-    });
-  }
-
-  make(method) {
-    const og = super.make(method);
-
-    return (...args) => {
-      const [first] = args;
-
-      const output = this.interpolate(method);
-
-      if (typeof first === 'string') {
-        args[0] = output + first;
-      } else {
-        args.unshift(output);
-      }
-
-      og(...args);
-    };
-  }
-}
-
-module.exports = PrefixFactory;

+ 0 - 64
node_modules.bak/webpack-log/src/loglevel/index.js

@@ -1,64 +0,0 @@
-'use strict';
-
-/* global window: true */
-/* eslint-disable
-  no-shadow,
-  no-param-reassign,
-  space-before-function-paren
-*/
-const LogLevel = require('./LogLevel');
-const MethodFactory = require('./MethodFactory');
-const PrefixFactory = require('./PrefixFactory');
-
-const defaultLogger = new LogLevel({ name: 'default' });
-const cache = { default: defaultLogger };
-
-// Grab the current global log variable in case of overwrite
-const existing = (typeof window !== 'undefined') ? window.log : null;
-
-const loglevel = Object.assign(defaultLogger, {
-  get factories() {
-    return {
-      MethodFactory,
-      PrefixFactory
-    };
-  },
-  get loggers() {
-    return cache;
-  },
-  getLogger(options) {
-    if (typeof options === 'string') {
-      options = { name: options };
-    }
-
-    if (!options.id) {
-      options.id = options.name;
-    }
-
-    const { name, id } = options;
-    const defaults = { level: defaultLogger.level };
-
-    if (typeof name !== 'string' || !name || !name.length) {
-      throw new TypeError('You must supply a name when creating a logger');
-    }
-
-    let logger = cache[id];
-
-    if (!logger) {
-      logger = new LogLevel(Object.assign({}, defaults, options));
-
-      cache[id] = logger;
-    }
-
-    return logger;
-  },
-  noConflict() {
-    if (typeof window !== 'undefined' && window.log === defaultLogger) {
-      window.log = existing;
-    }
-
-    return defaultLogger;
-  }
-});
-
-module.exports = loglevel;

+ 0 - 21
node_modules.bak/webpack-sources/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 JS Foundation and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 0 - 230
node_modules.bak/webpack-sources/README.md

@@ -1,230 +0,0 @@
-# webpack-sources
-
-Contains multiple classes which represent a `Source`. A `Source` can be asked for source code, size, source map and hash.
-
-## `Source`
-
-Base class for all sources.
-
-### Public methods
-
-All methods should be considered as expensive as they may need to do computations.
-
-#### `source`
-
-``` js
-Source.prototype.source() -> String | ArrayBuffer
-```
-
-Returns the represented source code as string.
-
-#### `size`
-
-``` js
-Source.prototype.size() -> Number
-```
-
-Returns the size in chars of the represented source code.
-
-#### `map`
-
-``` js
-Source.prototype.map(options: Object) -> Object | null
-```
-
-Returns the SourceMap of the represented source code as JSON. May return `null` if no SourceMap is available.
-
-The `options` object can contain the following keys:
-
-* `columns: Boolean` (default `true`): If set to false the implementation may omit mappings for columns.
-* `module: Boolean` (default `true`): If set to false the implementation may omit inner mappings for modules.
-
-#### `sourceAndMap`
-
-``` js
-Source.prototype.sourceAndMap(options: Object) -> {
-	source: String,
-	map: Object
-}
-```
-
-Returns both, source code (like `Source.prototype.source()` and SourceMap (like `Source.prototype.map()`). This method could have better performance than calling `source()` and `map()` separately.
-
-See `map()` for `options`.
-
-#### `updateHash`
-
-``` js
-Source.prototype.updateHash(hash: Hash) -> void
-```
-
-Updates the provided `Hash` object with the content of the represented source code. (`Hash` is an object with an `update` method, which is called with string values)
-
-#### `node` (optional)
-
-``` js
-Source.prototype.node(options: Object) -> SourceNode
-```
-
-This is an optional method. It may be `null` if not implemented.
-
-Returns a `SourceNode` (see source-map library) for the represented source code.
-
-See `map()` for `options`.
-
-#### `listNode` (optional)
-
-``` js
-Source.prototype.listNode(options: Object) -> SourceNode
-```
-
-This is an optional method. It may be `null` if not implemented.
-
-Returns a `SourceListMap` (see source-list-map library) for the represented source code.
-
-See `map()` for `options`.
-
-## `RawSource`
-
-Represents source code without SourceMap.
-
-``` js
-new RawSource(sourceCode: String)
-```
-
-## `OriginalSource`
-
-Represents source code, which is a copy of the original file.
-
-``` js
-new OriginalSource(
-	sourceCode: String,
-	name: String
-)
-```
-
-* `sourceCode`: The source code.
-* `name`: The filename of the original source code.
-
-OriginalSource tries to create column mappings if requested, by splitting the source code at typical statement borders (`;`, `{`, `}`).
-
-## `SourceMapSource`
-
-Represents source code with SourceMap, optionally having an additional SourceMap for the original source.
-
-``` js
-new SourceMapSource(
-	sourceCode: String,
-	name: String,
-	sourceMap: Object | String,
-	originalSource?: String,
-	innerSourceMap?: Object | String,
-	removeOriginalSource?: boolean
-)
-```
-
-* `sourceCode`: The source code.
-* `name`: The filename of the original source code.
-* `sourceMap`: The SourceMap for the source code.
-* `originalSource`: The source code of the original file. Can be omitted if the `sourceMap` already contains the original source code.
-* `innerSourceMap`: The SourceMap for the `originalSource`/`name`.
-* `removeOriginalSource`: Removes the source code for `name` from the final map, keeping only the deeper mappings for that file.
-
-The `SourceMapSource` supports "identity" mappings for the `innerSourceMap`.
-When original source matches generated source for a mapping it's assumed to be mapped char by char allowing to keep finer mappings from `sourceMap`.
-
-## `LineToLineMappedSource`
-
-Represents source code, which is mapped line by line to the original file.
-
-``` js
-new LineToLineMappedSource(
-	sourceCode: String,
-	name: String,
-	originalSource: String
-)
-```
-
-* `sourceCode`: The source code.
-* `name`: The filename of the original source code.
-* `originalSource`: The original source code.
-
-## `CachedSource`
-
-Decorates a `Source` and caches returned results of `map`, `source`, `size` and `sourceAndMap` in memory. Every other operation is delegated to the wrapped `Source`.
-
-``` js
-new CachedSource(source: Source)
-```
-
-## `PrefixSource`
-
-Prefix every line of the decorated `Source` with a provided string.
-
-``` js
-new PrefixSource(
-	prefix: String,
-	source: Source
-)
-```
-
-## `ConcatSource`
-
-Concatenate multiple `Source`s or strings to a single source.
-
-``` js
-new ConcatSource(
-	...items?: Source | String
-)
-```
-
-### Public methods
-
-#### `add`
-
-``` js
-ConcatSource.prototype.add(item: Source | String)
-```
-
-Adds an item to the source.
-
-## `ReplaceSource`
-
-Decorates a `Source` with replacements and insertions of source code.
-
-The `ReplaceSource` supports "identity" mappings for child source.
-When original source matches generated source for a mapping it's assumed to be mapped char by char allowing to split mappings at replacements/insertions.
-
-### Public methods
-
-#### `replace`
-
-``` js
-ReplaceSource.prototype.replace(
-	start: Number,
-	end: Number,
-	replacement: String
-)
-```
-
-Replaces chars from `start` (0-indexed, inclusive) to `end` (0-indexed, inclusive) with `replacement`.
-
-Locations represents locations in the original source and are not influenced by other replacements or insertions.
-
-#### `insert`
-
-``` js
-ReplaceSource.prototype.insert(
-	pos: Number,
-	insertion: String
-)
-```
-
-Inserts the `insertion` before char `pos` (0-indexed).
-
-Location represents location in the original source and is not influenced by other replacements or insertions.
-
-#### `original`
-
-Get decorated `Source`.
-

+ 0 - 80
node_modules.bak/webpack-sources/lib/CachedSource.js

@@ -1,80 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-const Source = require("./Source");
-
-class CachedSource extends Source {
-	constructor(source) {
-		super();
-		this._source = source;
-		this._cachedSource = undefined;
-		this._cachedSize = undefined;
-		this._cachedMaps = {};
-
-		if(source.node) this.node = function(options) {
-			return this._source.node(options);
-		};
-
-		if(source.listMap) this.listMap = function(options) {
-			return this._source.listMap(options);
-		};
-	}
-
-	source() {
-		if(typeof this._cachedSource !== "undefined") return this._cachedSource;
-		return this._cachedSource = this._source.source();
-	}
-
-	size() {
-		if(typeof this._cachedSize !== "undefined") return this._cachedSize;
-		if(typeof this._cachedSource !== "undefined") {
-			if(Buffer.from.length === 1) return new Buffer(this._cachedSource).length;
-			return this._cachedSize = Buffer.byteLength(this._cachedSource);
-		}
-		return this._cachedSize = this._source.size();
-	}
-
-	sourceAndMap(options) {
-		const key = JSON.stringify(options);
-		if(typeof this._cachedSource !== "undefined" && key in this._cachedMaps)
-			return {
-				source: this._cachedSource,
-				map: this._cachedMaps[key]
-			};
-		else if(typeof this._cachedSource !== "undefined") {
-			return {
-				source: this._cachedSource,
-				map: this._cachedMaps[key] = this._source.map(options)
-			};
-		} else if(key in this._cachedMaps) {
-			return {
-				source: this._cachedSource = this._source.source(),
-				map: this._cachedMaps[key]
-			};
-		}
-		const result = this._source.sourceAndMap(options);
-		this._cachedSource = result.source;
-		this._cachedMaps[key] = result.map;
-		return {
-			source: this._cachedSource,
-			map: this._cachedMaps[key]
-		};
-	}
-
-	map(options) {
-		if(!options) options = {};
-		const key = JSON.stringify(options);
-		if(key in this._cachedMaps)
-			return this._cachedMaps[key];
-		return this._cachedMaps[key] = this._source.map();
-	}
-
-	updateHash(hash) {
-		this._source.updateHash(hash);
-	}
-}
-
-module.exports = CachedSource;

+ 0 - 91
node_modules.bak/webpack-sources/lib/ConcatSource.js

@@ -1,91 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-const SourceNode = require("source-map").SourceNode;
-const SourceListMap = require("source-list-map").SourceListMap;
-const Source = require("./Source");
-
-class ConcatSource extends Source {
-	constructor() {
-		super();
-		this.children = [];
-		for(var i = 0; i < arguments.length; i++) {
-			var item = arguments[i];
-			if(item instanceof ConcatSource) {
-				var children = item.children;
-				for(var j = 0; j < children.length; j++)
-					this.children.push(children[j]);
-			} else {
-				this.children.push(item);
-			}
-		}
-	}
-
-	add(item) {
-		if(item instanceof ConcatSource) {
-			var children = item.children;
-			for(var j = 0; j < children.length; j++)
-				this.children.push(children[j]);
-		} else {
-			this.children.push(item);
-		}
-	}
-
-	source() {
-		let source = "";
-		const children = this.children;
-		for(let i = 0; i < children.length; i++) {
-			const child = children[i];
-			source += typeof child === "string" ? child : child.source();
-		}
-		return source;
-	}
-
-	size() {
-		let size = 0;
-		const children = this.children;
-		for(let i = 0; i < children.length; i++) {
-			const child = children[i];
-			size += typeof child === "string" ? child.length : child.size();
-		}
-		return size;
-	}
-
-	node(options) {
-		const node = new SourceNode(null, null, null, this.children.map(function(item) {
-			return typeof item === "string" ? item : item.node(options);
-		}));
-		return node;
-	}
-
-	listMap(options) {
-		const map = new SourceListMap();
-		var children = this.children;
-		for(var i = 0; i < children.length; i++) {
-			var item = children[i];
-			if(typeof item === "string")
-				map.add(item);
-			else
-				map.add(item.listMap(options));
-		}
-		return map;
-	}
-
-	updateHash(hash) {
-		var children = this.children;
-		for(var i = 0; i < children.length; i++) {
-			var item = children[i];
-			if(typeof item === "string")
-				hash.update(item);
-			else
-				item.updateHash(hash);
-		}
-	}
-}
-
-require("./SourceAndMapMixin")(ConcatSource.prototype);
-
-module.exports = ConcatSource;

+ 0 - 49
node_modules.bak/webpack-sources/lib/LineToLineMappedSource.js

@@ -1,49 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var SourceNode = require("source-map").SourceNode;
-var SourceMapConsumer = require("source-map").SourceMapConsumer;
-var SourceListMap = require("source-list-map").SourceListMap;
-var Source = require("./Source");
-
-class LineToLineMappedSource extends Source {
-	constructor(value, name, originalSource) {
-		super();
-		this._value = value;
-		this._name = name;
-		this._originalSource = originalSource;
-	}
-
-	source() {
-		return this._value;
-	}
-
-	node(options) {
-		var value = this._value;
-		var name = this._name;
-		var lines = value.split("\n");
-		var node = new SourceNode(null, null, null,
-			lines.map(function(line, idx) {
-				return new SourceNode(idx + 1, 0, name, (line + (idx != lines.length - 1 ? "\n" : "")));
-			})
-		);
-		node.setSourceContent(name, this._originalSource);
-		return node;
-	}
-
-	listMap(options) {
-		return new SourceListMap(this._value, this._name, this._originalSource)
-	}
-
-	updateHash(hash) {
-		hash.update(this._value);
-		hash.update(this._originalSource);
-	}
-}
-
-require("./SourceAndMapMixin")(LineToLineMappedSource.prototype);
-
-module.exports = LineToLineMappedSource;

+ 0 - 70
node_modules.bak/webpack-sources/lib/OriginalSource.js

@@ -1,70 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var SourceNode = require("source-map").SourceNode;
-var SourceMapConsumer = require("source-map").SourceMapConsumer;
-var SourceListMap = require("source-list-map").SourceListMap;
-var Source = require("./Source");
-
-var SPLIT_REGEX = /(?!$)[^\n\r;{}]*[\n\r;{}]*/g;
-
-function _splitCode(code) {
-	return code.match(SPLIT_REGEX) || [];
-}
-
-class OriginalSource extends Source {
-	constructor(value, name) {
-		super();
-		this._value = value;
-		this._name = name;
-	}
-
-	source() {
-		return this._value;
-	}
-
-	node(options) {
-		options = options || {};
-		var sourceMap = this._sourceMap;
-		var value = this._value;
-		var name = this._name;
-		var lines = value.split("\n");
-		var node = new SourceNode(null, null, null,
-			lines.map(function(line, idx) {
-				var pos = 0;
-				if(options.columns === false) {
-					var content = line + (idx != lines.length - 1 ? "\n" : "");
-					return new SourceNode(idx + 1, 0, name, content);
-				}
-				return new SourceNode(null, null, null,
-					_splitCode(line + (idx != lines.length - 1 ? "\n" : "")).map(function(item) {
-						if(/^\s*$/.test(item)) {
-							pos += item.length;
-							return item;
-						}
-						var res = new SourceNode(idx + 1, pos, name, item);
-						pos += item.length;
-						return res;
-					})
-				);
-			})
-		);
-		node.setSourceContent(name, value);
-		return node;
-	}
-
-	listMap(options) {
-		return new SourceListMap(this._value, this._name, this._value)
-	}
-
-	updateHash(hash) {
-		hash.update(this._value);
-	}
-}
-
-require("./SourceAndMapMixin")(OriginalSource.prototype);
-
-module.exports = OriginalSource;

+ 0 - 95
node_modules.bak/webpack-sources/lib/PrefixSource.js

@@ -1,95 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var Source = require("./Source");
-var SourceNode = require("source-map").SourceNode;
-
-var REPLACE_REGEX = /\n(?=.|\s)/g;
-
-function cloneAndPrefix(node, prefix, append) {
-	if(typeof node === "string") {
-		var result = node.replace(REPLACE_REGEX, "\n" + prefix);
-		if(append.length > 0) result = append.pop() + result;
-		if(/\n$/.test(node)) append.push(prefix);
-		return result;
-	} else {
-		var newNode = new SourceNode(
-			node.line,
-			node.column,
-			node.source,
-			node.children.map(function(node) {
-				return cloneAndPrefix(node, prefix, append);
-			}),
-			node.name
-		);
-		newNode.sourceContents = node.sourceContents;
-		return newNode;
-	}
-};
-
-class PrefixSource extends Source {
-	constructor(prefix, source) {
-		super();
-		this._source = source;
-		this._prefix = prefix;
-	}
-
-	source() {
-		var node = typeof this._source === "string" ? this._source : this._source.source();
-		var prefix = this._prefix;
-		return prefix + node.replace(REPLACE_REGEX, "\n" + prefix);
-	}
-
-	node(options) {
-		var node = this._source.node(options);
-		var prefix = this._prefix;
-		var output = [];
-		var result = new SourceNode();
-		node.walkSourceContents(function(source, content) {
-			result.setSourceContent(source, content);
-		});
-		var needPrefix = true;
-		node.walk(function(chunk, mapping) {
-			var parts = chunk.split(/(\n)/);
-			for(var i = 0; i < parts.length; i += 2) {
-				var nl = i + 1 < parts.length;
-				var part = parts[i] + (nl ? "\n" : "");
-				if(part) {
-					if(needPrefix) {
-						output.push(prefix);
-					}
-					output.push(new SourceNode(mapping.line, mapping.column, mapping.source, part, mapping.name));
-					needPrefix = nl;
-				}
-			}
-		});
-		result.add(output);
-		return result;
-	}
-
-	listMap(options) {
-		var prefix = this._prefix;
-		var map = this._source.listMap(options);
-		return map.mapGeneratedCode(function(code) {
-			return prefix + code.replace(REPLACE_REGEX, "\n" + prefix);
-		});
-	}
-
-	updateHash(hash) {
-		if(typeof this._source === "string")
-			hash.update(this._source);
-		else
-			this._source.updateHash(hash);
-		if(typeof this._prefix === "string")
-			hash.update(this._prefix);
-		else
-			this._prefix.updateHash(hash);
-	}
-}
-
-require("./SourceAndMapMixin")(PrefixSource.prototype);
-
-module.exports = PrefixSource;

+ 0 - 38
node_modules.bak/webpack-sources/lib/RawSource.js

@@ -1,38 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var Source = require("./Source");
-var SourceNode = require("source-map").SourceNode;
-var SourceListMap = require("source-list-map").SourceListMap;
-
-class RawSource extends Source {
-	constructor(value) {
-		super();
-		this._value = value;
-	}
-
-	source() {
-		return this._value;
-	}
-
-	map(options) {
-		return null;
-	}
-
-	node(options) {
-		return new SourceNode(null, null, null, this._value);
-	}
-
-	listMap(options) {
-		return new SourceListMap(this._value);
-	}
-
-	updateHash(hash) {
-		hash.update(this._value);
-	}
-}
-
-module.exports = RawSource;

+ 0 - 330
node_modules.bak/webpack-sources/lib/ReplaceSource.js

@@ -1,330 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var Source = require("./Source");
-var SourceNode = require("source-map").SourceNode;
-
-class Replacement {
-	constructor(start, end, content, insertIndex, name) {
-		this.start = start;
-		this.end = end;
-		this.content = content;
-		this.insertIndex = insertIndex;
-		this.name = name;
-	}
-}
-
-class ReplaceSource extends Source {
-	constructor(source, name) {
-		super();
-		this._source = source;
-		this._name = name;
-		/** @type {Replacement[]} */
-		this.replacements = [];
-	}
-
-	replace(start, end, newValue, name) {
-		if(typeof newValue !== "string")
-			throw new Error("insertion must be a string, but is a " + typeof newValue);
-		this.replacements.push(new Replacement(start, end, newValue, this.replacements.length, name));
-	}
-
-	insert(pos, newValue, name) {
-		if(typeof newValue !== "string")
-			throw new Error("insertion must be a string, but is a " + typeof newValue + ": " + newValue);
-		this.replacements.push(new Replacement(pos, pos - 1, newValue, this.replacements.length, name));
-	}
-
-	source(options) {
-		return this._replaceString(this._source.source());
-	}
-
-	original() {
-		return this._source;
-	}
-
-	_sortReplacements() {
-		this.replacements.sort(function(a, b) {
-			var diff = b.end - a.end;
-			if(diff !== 0)
-				return diff;
-			diff = b.start - a.start;
-			if(diff !== 0)
-				return diff;
-			return b.insertIndex - a.insertIndex;
-		});
-	}
-
-	_replaceString(str) {
-		if(typeof str !== "string")
-			throw new Error("str must be a string, but is a " + typeof str + ": " + str);
-		this._sortReplacements();
-		var result = [str];
-		this.replacements.forEach(function(repl) {
-			var remSource = result.pop();
-			var splitted1 = this._splitString(remSource, Math.floor(repl.end + 1));
-			var splitted2 = this._splitString(splitted1[0], Math.floor(repl.start));
-			result.push(splitted1[1], repl.content, splitted2[0]);
-		}, this);
-
-		// write out result array in reverse order
-		let resultStr = "";
-		for(let i = result.length - 1; i >= 0; --i) {
-			resultStr += result[i];
-		}
-		return resultStr;
-	}
-
-	node(options) {
-		var node = this._source.node(options);
-		if(this.replacements.length === 0) {
-			return node;
-		}
-		this._sortReplacements();
-		var replace = new ReplacementEnumerator(this.replacements);
-		var output = [];
-		var position = 0;
-		var sources = Object.create(null);
-		var sourcesInLines = Object.create(null);
-
-		// We build a new list of SourceNodes in "output"
-		// from the original mapping data
-
-		var result = new SourceNode();
-
-		// We need to add source contents manually
-		// because "walk" will not handle it
-		node.walkSourceContents(function(sourceFile, sourceContent) {
-			result.setSourceContent(sourceFile, sourceContent);
-			sources["$" + sourceFile] = sourceContent;
-		});
-
-		var replaceInStringNode = this._replaceInStringNode.bind(this, output, replace, function getOriginalSource(mapping) {
-			var key = "$" + mapping.source;
-			var lines = sourcesInLines[key];
-			if(!lines) {
-				var source = sources[key];
-				if(!source) return null;
-				lines = source.split("\n").map(function(line) {
-					return line + "\n";
-				});
-				sourcesInLines[key] = lines;
-			}
-			// line is 1-based
-			if(mapping.line > lines.length) return null;
-			var line = lines[mapping.line - 1];
-			return line.substr(mapping.column);
-		});
-
-		node.walk(function(chunk, mapping) {
-			position = replaceInStringNode(chunk, position, mapping);
-		});
-
-		// If any replacements occur after the end of the original file, then we append them
-		// directly to the end of the output
-		var remaining = replace.footer();
-		if(remaining) {
-			output.push(remaining);
-		}
-
-		result.add(output);
-
-		return result;
-	}
-
-	listMap(options) {
-		this._sortReplacements();
-		var map = this._source.listMap(options);
-		var currentIndex = 0;
-		var replacements = this.replacements;
-		var idxReplacement = replacements.length - 1;
-		var removeChars = 0;
-		map = map.mapGeneratedCode(function(str) {
-			var newCurrentIndex = currentIndex + str.length;
-			if(removeChars > str.length) {
-				removeChars -= str.length;
-				str = "";
-			} else {
-				if(removeChars > 0) {
-					str = str.substr(removeChars);
-					currentIndex += removeChars;
-					removeChars = 0;
-				}
-				var finalStr = "";
-				while(idxReplacement >= 0 && replacements[idxReplacement].start < newCurrentIndex) {
-					var repl = replacements[idxReplacement];
-					var start = Math.floor(repl.start);
-					var end = Math.floor(repl.end + 1);
-					var before = str.substr(0, Math.max(0, start - currentIndex));
-					if(end <= newCurrentIndex) {
-						var after = str.substr(Math.max(0, end - currentIndex));
-						finalStr += before + repl.content;
-						str = after;
-						currentIndex = Math.max(currentIndex, end);
-					} else {
-						finalStr += before + repl.content;
-						str = "";
-						removeChars = end - newCurrentIndex;
-					}
-					idxReplacement--;
-				}
-				str = finalStr + str;
-			}
-			currentIndex = newCurrentIndex;
-			return str;
-		});
-		var extraCode = "";
-		while(idxReplacement >= 0) {
-			extraCode += replacements[idxReplacement].content;
-			idxReplacement--;
-		}
-		if(extraCode) {
-			map.add(extraCode);
-		}
-		return map;
-	}
-
-	_splitString(str, position) {
-		return position <= 0 ? ["", str] : [str.substr(0, position), str.substr(position)];
-	}
-
-	_replaceInStringNode(output, replace, getOriginalSource, node, position, mapping) {
-		var original = undefined;
-
-		do {
-			var splitPosition = replace.position - position;
-			// If multiple replaces occur in the same location then the splitPosition may be
-			// before the current position for the subsequent splits. Ensure it is >= 0
-			if(splitPosition < 0) {
-				splitPosition = 0;
-			}
-			if(splitPosition >= node.length || replace.done) {
-				if(replace.emit) {
-					var nodeEnd = new SourceNode(
-						mapping.line,
-						mapping.column,
-						mapping.source,
-						node,
-						mapping.name
-					);
-					output.push(nodeEnd);
-				}
-				return position + node.length;
-			}
-
-			var originalColumn = mapping.column;
-
-			// Try to figure out if generated code matches original code of this segement
-			// If this is the case we assume that it's allowed to move mapping.column
-			// Because getOriginalSource can be expensive we only do it when neccessary
-
-			var nodePart;
-			if(splitPosition > 0) {
-				nodePart = node.slice(0, splitPosition);
-				if(original === undefined) {
-					original = getOriginalSource(mapping);
-				}
-				if(original && original.length >= splitPosition && original.startsWith(nodePart)) {
-					mapping.column += splitPosition;
-					original = original.substr(splitPosition);
-				}
-			}
-
-			var emit = replace.next();
-			if(!emit) {
-				// Stop emitting when we have found the beginning of the string to replace.
-				// Emit the part of the string before splitPosition
-				if(splitPosition > 0) {
-					var nodeStart = new SourceNode(
-						mapping.line,
-						originalColumn,
-						mapping.source,
-						nodePart,
-						mapping.name
-					);
-					output.push(nodeStart);
-				}
-
-				// Emit the replacement value
-				if(replace.value) {
-					output.push(new SourceNode(
-						mapping.line,
-						mapping.column,
-						mapping.source,
-						replace.value,
-						mapping.name || replace.name
-					));
-				}
-			}
-
-			// Recurse with remainder of the string as there may be multiple replaces within a single node
-			node = node.substr(splitPosition);
-			position += splitPosition;
-		} while (true);
-	}
-}
-
-class ReplacementEnumerator {
-	/**
-	 * @param {Replacement[]} replacements list of replacements
-	 */
-	constructor(replacements) {
-		this.replacements = replacements || [];
-		this.index = this.replacements.length;
-		this.done = false;
-		this.emit = false;
-		// Set initial start position
-		this.next();
-	}
-
-	next() {
-		if(this.done)
-			return true;
-		if(this.emit) {
-			// Start point found. stop emitting. set position to find end
-			var repl = this.replacements[this.index];
-			var end = Math.floor(repl.end + 1);
-			this.position = end;
-			this.value = repl.content;
-			this.name = repl.name;
-		} else {
-			// End point found. start emitting. set position to find next start
-			this.index--;
-			if(this.index < 0) {
-				this.done = true;
-			} else {
-				var nextRepl = this.replacements[this.index];
-				var start = Math.floor(nextRepl.start);
-				this.position = start;
-			}
-		}
-		if(this.position < 0)
-			this.position = 0;
-		this.emit = !this.emit;
-		return this.emit;
-	}
-
-	footer() {
-		if(!this.done && !this.emit)
-			this.next(); // If we finished _replaceInNode mid emit we advance to next entry
-		if(this.done) {
-			return [];
-		} else {
-			var resultStr = "";
-			for(var i = this.index; i >= 0; i--) {
-				var repl = this.replacements[i];
-				// this doesn't need to handle repl.name, because in SourceMaps generated code
-				// without pointer to original source can't have a name
-				resultStr += repl.content;
-			}
-			return resultStr;
-		}
-	}
-}
-
-require("./SourceAndMapMixin")(ReplaceSource.prototype);
-
-module.exports = ReplaceSource;

+ 0 - 46
node_modules.bak/webpack-sources/lib/Source.js

@@ -1,46 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var SourceNode = require("source-map").SourceNode;
-var SourceMapConsumer = require("source-map").SourceMapConsumer;
-
-class Source {
-
-	source() {
-		throw new Error("Abstract");
-	}
-
-	size() {
-		if(Buffer.from.length === 1) return new Buffer(this.source()).length;
-		return Buffer.byteLength(this.source())
-	}
-
-	map(options) {
-		return null;
-	}
-
-	sourceAndMap(options) {
-		return {
-			source: this.source(),
-			map: this.map()
-		};
-	}
-
-	node() {
-		throw new Error("Abstract");
-	}
-
-	listNode() {
-		throw new Error("Abstract");
-	}
-
-	updateHash(hash) {
-		var source = this.source();
-		hash.update(source || "");
-	}
-}
-
-module.exports = Source;

+ 0 - 37
node_modules.bak/webpack-sources/lib/SourceAndMapMixin.js

@@ -1,37 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-module.exports = function mixinSourceAndMap(proto) {
-	proto.map = function(options) {
-		options = options || {};
-		if(options.columns === false) {
-			return this.listMap(options).toStringWithSourceMap({
-				file: "x"
-			}).map;
-		}
-
-		return this.node(options).toStringWithSourceMap({
-			file: "x"
-		}).map.toJSON();
-	};
-
-	proto.sourceAndMap = function(options) {
-		options = options || {};
-		if(options.columns === false) {
-			return this.listMap(options).toStringWithSourceMap({
-				file: "x"
-			});
-		}
-
-		var res = this.node(options).toStringWithSourceMap({
-			file: "x"
-		});
-		return {
-			source: res.code,
-			map: res.map.toJSON()
-		};
-	};
-}

+ 0 - 57
node_modules.bak/webpack-sources/lib/SourceMapSource.js

@@ -1,57 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-"use strict";
-
-var SourceNode = require("source-map").SourceNode;
-var SourceMapConsumer = require("source-map").SourceMapConsumer;
-var SourceMapGenerator = require("source-map").SourceMapGenerator;
-var SourceListMap = require("source-list-map").SourceListMap;
-var fromStringWithSourceMap = require("source-list-map").fromStringWithSourceMap;
-var Source = require("./Source");
-var applySourceMap = require("./applySourceMap");
-
-class SourceMapSource extends Source {
-	constructor(value, name, sourceMap, originalSource, innerSourceMap, removeOriginalSource) {
-		super();
-		this._value = value;
-		this._name = name;
-		this._sourceMap = sourceMap;
-		this._originalSource = originalSource;
-		this._innerSourceMap = innerSourceMap;
-		this._removeOriginalSource = removeOriginalSource;
-	}
-
-	source() {
-		return this._value;
-	}
-
-	node(options) {
-		var sourceMap = this._sourceMap;
-		var node = SourceNode.fromStringWithSourceMap(this._value, new SourceMapConsumer(sourceMap));
-		node.setSourceContent(this._name, this._originalSource);
-		var innerSourceMap = this._innerSourceMap;
-		if(innerSourceMap) {
-			node = applySourceMap(node, new SourceMapConsumer(innerSourceMap), this._name, this._removeOriginalSource);
-		}
-		return node;
-	}
-
-	listMap(options) {
-		options = options || {};
-		if(options.module === false)
-			return new SourceListMap(this._value, this._name, this._value);
-		return fromStringWithSourceMap(this._value, typeof this._sourceMap === "string" ? JSON.parse(this._sourceMap) : this._sourceMap);
-	}
-
-	updateHash(hash) {
-		hash.update(this._value);
-		if(this._originalSource)
-			hash.update(this._originalSource);
-	}
-}
-
-require("./SourceAndMapMixin")(SourceMapSource.prototype);
-
-module.exports = SourceMapSource;

+ 0 - 185
node_modules.bak/webpack-sources/lib/applySourceMap.js

@@ -1,185 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-
-"use strict";
-
-var SourceNode = require("source-map").SourceNode;
-var SourceMapConsumer = require("source-map").SourceMapConsumer;
-
-var applySourceMap = function(
-	sourceNode,
-	sourceMapConsumer,
-	sourceFile,
-	removeGeneratedCodeForSourceFile
-) {
-	// The following notations are used to name stuff:
-	// Left <------------> Middle <-------------------> Right
-	// Input arguments:
-	//        sourceNode                                       - Code mapping from Left to Middle
-	//                   sourceFile                            - Name of a Middle file
-	//                              sourceMapConsumer          - Code mapping from Middle to Right
-	// Variables:
-	//           l2m                      m2r
-	// Left <-----------------------------------------> Right
-	// Variables:
-	//                       l2r
-
-	var l2rResult = new SourceNode();
-	var l2rOutput = [];
-
-	var middleSourceContents = {};
-
-	var m2rMappingsByLine = {};
-
-	var rightSourceContentsSet = {};
-	var rightSourceContentsLines = {};
-
-	// Store all mappings by generated line
-	sourceMapConsumer.eachMapping(
-		function(mapping) {
-			(m2rMappingsByLine[mapping.generatedLine] =
-				m2rMappingsByLine[mapping.generatedLine] || []).push(mapping);
-		},
-		null,
-		SourceMapConsumer.GENERATED_ORDER
-	);
-
-	// Store all source contents
-	sourceNode.walkSourceContents(function(source, content) {
-		middleSourceContents["$" + source] = content;
-	});
-
-	var middleSource = middleSourceContents["$" + sourceFile];
-	var middleSourceLines = middleSource ? middleSource.split("\n") : undefined;
-
-	// Walk all left to middle mappings
-	sourceNode.walk(function(chunk, middleMapping) {
-		var source;
-
-		// Find a mapping from middle to right
-		if(
-			middleMapping.source === sourceFile &&
-			middleMapping.line &&
-			m2rMappingsByLine[middleMapping.line]
-		) {
-			var m2rBestFit;
-			var m2rMappings = m2rMappingsByLine[middleMapping.line];
-			// Note: if this becomes a performance problem, use binary search
-			for(var i = 0; i < m2rMappings.length; i++) {
-				if(m2rMappings[i].generatedColumn <= middleMapping.column) {
-					m2rBestFit = m2rMappings[i];
-				}
-			}
-			if(m2rBestFit) {
-				var allowMiddleName = false;
-				var middleLine;
-				var rightSourceContent;
-				var rightSourceContentLines;
-				var rightSource = m2rBestFit.source;
-				// Check if we have middle and right source for this mapping
-				// Then we could have an "identify" mapping
-				if(
-					middleSourceLines &&
-					rightSource &&
-					(middleLine = middleSourceLines[m2rBestFit.generatedLine - 1]) &&
-					((rightSourceContentLines = rightSourceContentsLines[rightSource]) ||
-						(rightSourceContent = sourceMapConsumer.sourceContentFor(
-							rightSource,
-							true
-						)))
-				) {
-					if(!rightSourceContentLines) {
-						rightSourceContentLines = rightSourceContentsLines[
-							rightSource
-						] = rightSourceContent.split("\n");
-					}
-					var rightLine = rightSourceContentLines[m2rBestFit.originalLine - 1];
-					if(rightLine) {
-						var offset = middleMapping.column - m2rBestFit.generatedColumn;
-						if(offset > 0) {
-							var middlePart = middleLine.slice(
-								m2rBestFit.generatedColumn,
-								middleMapping.column
-							);
-							var rightPart = rightLine.slice(
-								m2rBestFit.originalColumn,
-								m2rBestFit.originalColumn + offset
-							);
-							if(middlePart === rightPart) {
-								// When original and generated code is equal we assume we have an "identity" mapping
-								// In this case we can offset the original position
-								m2rBestFit = Object.assign({}, m2rBestFit, {
-									originalColumn: m2rBestFit.originalColumn + offset,
-									generatedColumn: middleMapping.column
-								});
-							}
-						}
-						if(!m2rBestFit.name && middleMapping.name) {
-							allowMiddleName =
-								rightLine.slice(
-									m2rBestFit.originalColumn,
-									m2rBestFit.originalColumn + middleMapping.name.length
-								) === middleMapping.name;
-						}
-					}
-				}
-
-				// Construct a left to right node from the found middle to right mapping
-				source = m2rBestFit.source;
-				l2rOutput.push(
-					new SourceNode(
-						m2rBestFit.originalLine,
-						m2rBestFit.originalColumn,
-						source,
-						chunk,
-						allowMiddleName ? middleMapping.name : m2rBestFit.name
-					)
-				);
-
-				// Set the source contents once
-				if(!("$" + source in rightSourceContentsSet)) {
-					rightSourceContentsSet["$" + source] = true;
-					var sourceContent = sourceMapConsumer.sourceContentFor(source, true);
-					if(sourceContent) {
-						l2rResult.setSourceContent(source, sourceContent);
-					}
-				}
-				return;
-			}
-		}
-
-		if((removeGeneratedCodeForSourceFile && middleMapping.source === sourceFile) || !middleMapping.source) {
-			// Construct a left to middle node with only generated code
-			// Because user do not want mappings to middle sources
-			// Or this chunk has no mapping
-			l2rOutput.push(chunk);
-			return;
-		}
-
-		// Construct a left to middle node
-		source = middleMapping.source;
-		l2rOutput.push(
-			new SourceNode(
-				middleMapping.line,
-				middleMapping.column,
-				source,
-				chunk,
-				middleMapping.name
-			)
-		);
-		if("$" + source in middleSourceContents) {
-			if(!("$" + source in rightSourceContentsSet)) {
-				l2rResult.setSourceContent(source, middleSourceContents["$" + source]);
-				delete middleSourceContents["$" + source];
-			}
-		}
-	});
-
-	// Put output into the resulting SourceNode
-	l2rResult.add(l2rOutput);
-	return l2rResult;
-};
-
-module.exports = applySourceMap;

+ 0 - 15
node_modules.bak/webpack-sources/lib/index.js

@@ -1,15 +0,0 @@
-/*
-	MIT License http://www.opensource.org/licenses/mit-license.php
-	Author Tobias Koppers @sokra
-*/
-exports.Source = require("./Source");
-
-exports.RawSource = require("./RawSource");
-exports.OriginalSource = require("./OriginalSource");
-exports.SourceMapSource = require("./SourceMapSource");
-exports.LineToLineMappedSource = require("./LineToLineMappedSource");
-
-exports.CachedSource = require("./CachedSource");
-exports.ConcatSource = require("./ConcatSource");
-exports.ReplaceSource = require("./ReplaceSource");
-exports.PrefixSource = require("./PrefixSource");

+ 0 - 0
node_modules.bak/webpack-sources/package.json


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä