Skip to content

Commit 7c676e2

Browse files
chore: bump deps
1 parent 26aae7e commit 7c676e2

File tree

82 files changed

+4100
-15641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+4100
-15641
lines changed

bin/webpack-dev-server.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const runCli = (cli) => {
9191
(error) => {
9292
console.error(error);
9393
process.exitCode = 1;
94-
}
94+
},
9595
);
9696
} else {
9797
// eslint-disable-next-line import/no-dynamic-require
@@ -147,8 +147,8 @@ if (!cli.installed) {
147147

148148
console.error(
149149
`We will use "${packageManager}" to install the CLI via "${packageManager} ${installOptions.join(
150-
" "
151-
)} ${cli.package}".`
150+
" ",
151+
)} ${cli.package}".`,
152152
);
153153

154154
const question = `Do you want to install 'webpack-cli' (yes/no): `;
@@ -170,7 +170,7 @@ if (!cli.installed) {
170170
if (!normalizedAnswer) {
171171
console.error(
172172
"You need to install 'webpack-cli' to use webpack via CLI.\n" +
173-
"You can also install the CLI manually."
173+
"You can also install the CLI manually.",
174174
);
175175

176176
return;
@@ -182,7 +182,7 @@ if (!cli.installed) {
182182
cli.package
183183
}' (running '${packageManager} ${installOptions.join(" ")} ${
184184
cli.package
185-
}')...`
185+
}')...`,
186186
);
187187

188188
runCommand(packageManager, installOptions.concat(cli.package))

client-src/clients/SockJSClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class SockJSClient {
88
constructor(url) {
99
// SockJS requires `http` and `https` protocols
1010
this.sock = new SockJS(
11-
url.replace(/^ws:/i, "http:").replace(/^wss:/i, "https:")
11+
url.replace(/^ws:/i, "http:").replace(/^wss:/i, "https:"),
1212
);
1313
this.sock.onerror =
1414
/**

client-src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ const decodeOverlayOptions = (overlayOptions) => {
4343
["warnings", "errors", "runtimeErrors"].forEach((property) => {
4444
if (typeof overlayOptions[property] === "string") {
4545
const overlayFilterFunctionString = decodeURIComponent(
46-
overlayOptions[property]
46+
overlayOptions[property],
4747
);
4848

4949
// eslint-disable-next-line no-new-func
5050
const overlayFilterFunction = new Function(
5151
"message",
5252
`var callback = ${overlayFilterFunctionString}
53-
return callback(message)`
53+
return callback(message)`,
5454
);
5555

5656
overlayOptions[property] = overlayFilterFunction;
@@ -134,7 +134,7 @@ if (typeof parsedResourceQuery.reconnect !== "undefined") {
134134
function setAllLogLevel(level) {
135135
// This is needed because the HMR logger operate separately from dev server logger
136136
webpackHotLog.setLogLevel(
137-
level === "verbose" || level === "log" ? "info" : level
137+
level === "verbose" || level === "log" ? "info" : level,
138138
);
139139
setLogLevel(level);
140140
}
@@ -160,7 +160,7 @@ const overlay =
160160
: {
161161
trustedTypesPolicyName: false,
162162
catchRuntimeError: options.overlay,
163-
}
163+
},
164164
)
165165
: { send: () => {} };
166166

@@ -232,7 +232,7 @@ const onSocketMessage = {
232232
log.info(
233233
`${data.pluginName ? `[${data.pluginName}] ` : ""}${data.percent}% - ${
234234
data.msg
235-
}.`
235+
}.`,
236236
);
237237
}
238238

@@ -263,7 +263,7 @@ const onSocketMessage = {
263263
log.info(
264264
`${
265265
file ? `"${file}"` : "Content"
266-
} from static directory was changed. Reloading...`
266+
} from static directory was changed. Reloading...`,
267267
);
268268

269269
self.location.reload();

client-src/overlay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const createOverlay = (options) => {
119119
trustedTypesPolicyName || "webpack-dev-server#overlay",
120120
{
121121
createHTML: (value) => value,
122-
}
122+
},
123123
);
124124
}
125125

@@ -253,7 +253,7 @@ const createOverlay = (options) => {
253253
typeElement.setAttribute("data-can-open", true);
254254
typeElement.addEventListener("click", () => {
255255
fetch(
256-
`/webpack-dev-server/open-editor?fileName=${message.moduleIdentifier}`
256+
`/webpack-dev-server/open-editor?fileName=${message.moduleIdentifier}`,
257257
);
258258
});
259259
}

client-src/overlay/state-machine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const createOverlayMachine = (options) => {
9595
hideOverlay,
9696
showOverlay,
9797
},
98-
}
98+
},
9999
);
100100

101101
return overlayMachine;

client-src/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const socket = function initSocket(url, handlers, reconnect) {
7373
if (handlers[message.type]) {
7474
handlers[message.type](message.data, message.params);
7575
}
76-
}
76+
},
7777
);
7878
};
7979

client-src/utils/createSocketURL.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function format(objURL) {
6161
* @param {string} match
6262
* @returns {string}
6363
*/
64-
(match) => encodeURIComponent(match)
64+
(match) => encodeURIComponent(match),
6565
);
6666
search = search.replace("#", "%23");
6767

@@ -103,7 +103,7 @@ function createSocketURL(parsedURL) {
103103

104104
socketURLProtocol = socketURLProtocol.replace(
105105
/^(?:http|.+-extension|file)/i,
106-
"ws"
106+
"ws",
107107
);
108108

109109
let socketURLAuth = "";

client-src/utils/getCurrentScriptSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getCurrentScriptSource() {
1212
const scriptElements = document.scripts || [];
1313
const scriptElementsWithSrc = Array.prototype.filter.call(
1414
scriptElements,
15-
(element) => element.getAttribute("src")
15+
(element) => element.getAttribute("src"),
1616
);
1717

1818
if (scriptElementsWithSrc.length > 0) {

client-src/utils/stripAnsi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const ansiRegex = new RegExp(
33
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
44
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))",
55
].join("|"),
6-
"g"
6+
"g",
77
);
88

99
/**

client-src/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = [
7474
}),
7575
new webpack.NormalModuleReplacementPlugin(
7676
/^tapable\/lib\/SyncBailHook/,
77-
path.join(__dirname, "modules/logger/SyncBailHookFake.js")
77+
path.join(__dirname, "modules/logger/SyncBailHookFake.js"),
7878
),
7979
],
8080
}),

0 commit comments

Comments
 (0)