webpack 4.16.4 → 4.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright JS Foundation and other contributors
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- 'Software'), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright JS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/SECURITY.md CHANGED
@@ -1,9 +1,9 @@
1
- # Reporting Security Issues
2
-
3
- If you discover a security issue in webpack, please report it by sending an
4
- email to [webpack@opencollective.com](mailto:webpack@opencollective.com).
5
-
6
- This will allow us to assess the risk, and make a fix available before we add a
7
- bug report to the GitHub repository.
8
-
9
- Thanks for helping make webpack safe for everyone.
1
+ # Reporting Security Issues
2
+
3
+ If you discover a security issue in webpack, please report it by sending an
4
+ email to [webpack@opencollective.com](mailto:webpack@opencollective.com).
5
+
6
+ This will allow us to assess the risk, and make a fix available before we add a
7
+ bug report to the GitHub repository.
8
+
9
+ Thanks for helping make webpack safe for everyone.
@@ -1,3 +1,3 @@
1
- module.exports = function() {
2
- throw new Error("define cannot be used indirect");
3
- };
1
+ module.exports = function() {
2
+ throw new Error("define cannot be used indirect");
3
+ };
@@ -1,2 +1,2 @@
1
- /* globals __webpack_amd_options__ */
2
- module.exports = __webpack_amd_options__;
1
+ /* globals __webpack_amd_options__ */
2
+ module.exports = __webpack_amd_options__;
package/buildin/global.js CHANGED
@@ -1,20 +1,20 @@
1
- var g;
2
-
3
- // This works in non-strict mode
4
- g = (function() {
5
- return this;
6
- })();
7
-
8
- try {
9
- // This works if eval is allowed (see CSP)
10
- g = g || Function("return this")() || (1, eval)("this");
11
- } catch (e) {
12
- // This works if the window reference is available
13
- if (typeof window === "object") g = window;
14
- }
15
-
16
- // g can still be undefined, but nothing to do about it...
17
- // We return undefined, instead of nothing here, so it's
18
- // easier to handle this case. if(!global) { ...}
19
-
20
- module.exports = g;
1
+ var g;
2
+
3
+ // This works in non-strict mode
4
+ g = (function() {
5
+ return this;
6
+ })();
7
+
8
+ try {
9
+ // This works if eval is allowed (see CSP)
10
+ g = g || Function("return this")() || (1, eval)("this");
11
+ } catch (e) {
12
+ // This works if the window reference is available
13
+ if (typeof window === "object") g = window;
14
+ }
15
+
16
+ // g can still be undefined, but nothing to do about it...
17
+ // We return undefined, instead of nothing here, so it's
18
+ // easier to handle this case. if(!global) { ...}
19
+
20
+ module.exports = g;
package/buildin/module.js CHANGED
@@ -1,22 +1,22 @@
1
- module.exports = function(module) {
2
- if (!module.webpackPolyfill) {
3
- module.deprecate = function() {};
4
- module.paths = [];
5
- // module.parent = undefined by default
6
- if (!module.children) module.children = [];
7
- Object.defineProperty(module, "loaded", {
8
- enumerable: true,
9
- get: function() {
10
- return module.l;
11
- }
12
- });
13
- Object.defineProperty(module, "id", {
14
- enumerable: true,
15
- get: function() {
16
- return module.i;
17
- }
18
- });
19
- module.webpackPolyfill = 1;
20
- }
21
- return module;
22
- };
1
+ module.exports = function(module) {
2
+ if (!module.webpackPolyfill) {
3
+ module.deprecate = function() {};
4
+ module.paths = [];
5
+ // module.parent = undefined by default
6
+ if (!module.children) module.children = [];
7
+ Object.defineProperty(module, "loaded", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return module.l;
11
+ }
12
+ });
13
+ Object.defineProperty(module, "id", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return module.i;
17
+ }
18
+ });
19
+ module.webpackPolyfill = 1;
20
+ }
21
+ return module;
22
+ };
package/buildin/system.js CHANGED
@@ -1,7 +1,7 @@
1
- // Provide a "System" global.
2
- module.exports = {
3
- // Make sure import is only used as "System.import"
4
- import: function() {
5
- throw new Error("System.import cannot be used indirectly");
6
- }
7
- };
1
+ // Provide a "System" global.
2
+ module.exports = {
3
+ // Make sure import is only used as "System.import"
4
+ import: function() {
5
+ throw new Error("System.import cannot be used indirectly");
6
+ }
7
+ };
package/hot/emitter.js CHANGED
@@ -1,2 +1,2 @@
1
- var EventEmitter = require("events");
2
- module.exports = new EventEmitter();
1
+ var EventEmitter = require("events");
2
+ module.exports = new EventEmitter();
@@ -1,44 +1,44 @@
1
- /*
2
- MIT License http://www.opensource.org/licenses/mit-license.php
3
- Author Tobias Koppers @sokra
4
- */
5
- module.exports = function(updatedModules, renewedModules) {
6
- var unacceptedModules = updatedModules.filter(function(moduleId) {
7
- return renewedModules && renewedModules.indexOf(moduleId) < 0;
8
- });
9
- var log = require("./log");
10
-
11
- if (unacceptedModules.length > 0) {
12
- log(
13
- "warning",
14
- "[HMR] The following modules couldn't be hot updated: (They would need a full reload!)"
15
- );
16
- unacceptedModules.forEach(function(moduleId) {
17
- log("warning", "[HMR] - " + moduleId);
18
- });
19
- }
20
-
21
- if (!renewedModules || renewedModules.length === 0) {
22
- log("info", "[HMR] Nothing hot updated.");
23
- } else {
24
- log("info", "[HMR] Updated modules:");
25
- renewedModules.forEach(function(moduleId) {
26
- if (typeof moduleId === "string" && moduleId.indexOf("!") !== -1) {
27
- var parts = moduleId.split("!");
28
- log.groupCollapsed("info", "[HMR] - " + parts.pop());
29
- log("info", "[HMR] - " + moduleId);
30
- log.groupEnd("info");
31
- } else {
32
- log("info", "[HMR] - " + moduleId);
33
- }
34
- });
35
- var numberIds = renewedModules.every(function(moduleId) {
36
- return typeof moduleId === "number";
37
- });
38
- if (numberIds)
39
- log(
40
- "info",
41
- "[HMR] Consider using the NamedModulesPlugin for module names."
42
- );
43
- }
44
- };
1
+ /*
2
+ MIT License http://www.opensource.org/licenses/mit-license.php
3
+ Author Tobias Koppers @sokra
4
+ */
5
+ module.exports = function(updatedModules, renewedModules) {
6
+ var unacceptedModules = updatedModules.filter(function(moduleId) {
7
+ return renewedModules && renewedModules.indexOf(moduleId) < 0;
8
+ });
9
+ var log = require("./log");
10
+
11
+ if (unacceptedModules.length > 0) {
12
+ log(
13
+ "warning",
14
+ "[HMR] The following modules couldn't be hot updated: (They would need a full reload!)"
15
+ );
16
+ unacceptedModules.forEach(function(moduleId) {
17
+ log("warning", "[HMR] - " + moduleId);
18
+ });
19
+ }
20
+
21
+ if (!renewedModules || renewedModules.length === 0) {
22
+ log("info", "[HMR] Nothing hot updated.");
23
+ } else {
24
+ log("info", "[HMR] Updated modules:");
25
+ renewedModules.forEach(function(moduleId) {
26
+ if (typeof moduleId === "string" && moduleId.indexOf("!") !== -1) {
27
+ var parts = moduleId.split("!");
28
+ log.groupCollapsed("info", "[HMR] - " + parts.pop());
29
+ log("info", "[HMR] - " + moduleId);
30
+ log.groupEnd("info");
31
+ } else {
32
+ log("info", "[HMR] - " + moduleId);
33
+ }
34
+ });
35
+ var numberIds = renewedModules.every(function(moduleId) {
36
+ return typeof moduleId === "number";
37
+ });
38
+ if (numberIds)
39
+ log(
40
+ "info",
41
+ "[HMR] Consider using the NamedModulesPlugin for module names."
42
+ );
43
+ }
44
+ };