Skip to content

Commit 8193c60

Browse files
committed
⬆️ Upgrade all dependencies
1 parent bf73ce6 commit 8193c60

9 files changed

+235
-486
lines changed

client/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SIG_EXIT } from "./events.constants";
66
import ExtensionCompiler from "./ExtensionCompiler";
77

88
install();
9+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
910
const { _, ...args } = minimist(process.argv.slice(2));
1011

1112
try {

package-lock.json

+213-466
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@
5050
"hot-reload"
5151
],
5252
"dependencies": {
53-
"@types/webextension-polyfill": "^0.10.0",
54-
"@types/webpack": "^5.28.0",
55-
"@types/webpack-sources": "^3.2.0",
53+
"@types/webextension-polyfill": "^0.10.6",
54+
"@types/webpack": "^5.28.5",
55+
"@types/webpack-sources": "^3.2.3",
5656
"clean-webpack-plugin": "^4.0.0",
5757
"colors": "^1.4.0",
5858
"cross-env": "^7.0.3",
5959
"json5": "^2.2.3",
6060
"lodash": "^4.17.21",
61-
"minimist": "^1.2.6",
61+
"minimist": "^1.2.8",
6262
"useragent": "^2.3.0",
6363
"webextension-polyfill": "^0.10.0",
6464
"webpack-sources": "^3.2.3",
65-
"ws": "^8.4.2"
65+
"ws": "^8.14.2"
6666
},
6767
"peerDependencies": {
6868
"webpack": "^5.61.0"
@@ -76,15 +76,15 @@
7676
"@babel/plugin-syntax-dynamic-import": "7.8.3",
7777
"@babel/plugin-transform-regenerator": "7.23.3",
7878
"@babel/preset-env": "7.23.3",
79-
"@types/chai": "4.3.10",
80-
"@types/lodash": "4.14.201",
79+
"@types/chai": "4.3.11",
80+
"@types/lodash": "4.14.202",
8181
"@types/minimist": "1.2.5",
82-
"@types/mocha": "10.0.4",
83-
"@types/sinon": "17.0.1",
82+
"@types/mocha": "10.0.5",
83+
"@types/sinon": "17.0.2",
8484
"@types/useragent": "2.3.4",
85-
"@types/ws": "8.5.9",
86-
"@typescript-eslint/eslint-plugin": "5.62.0",
87-
"@typescript-eslint/parser": "5.62.0",
85+
"@types/ws": "8.5.10",
86+
"@typescript-eslint/eslint-plugin": "6.12.0",
87+
"@typescript-eslint/parser": "6.12.0",
8888
"autoprefixer": "10.4.16",
8989
"babel-loader": "9.1.3",
9090
"chai": "4.3.10",
@@ -101,7 +101,7 @@
101101
"eslint-plugin-prettier": "5.0.1",
102102
"eslint-plugin-react": "7.33.2",
103103
"eslint-plugin-react-hooks": "4.6.0",
104-
"husky": "4.3.8",
104+
"husky": "8.0.3",
105105
"json-loader": "0.5.7",
106106
"lint-staged": "15.1.0",
107107
"mini-css-extract-plugin": "2.7.6",
@@ -112,7 +112,7 @@
112112
"source-map-support": "0.5.21",
113113
"style-loader": "3.3.3",
114114
"ts-loader": "9.5.1",
115-
"typescript": "4.9.5",
115+
"typescript": "5.3.2",
116116
"webpack": "5.89.0",
117117
"webpack-bundle-analyzer": "4.10.1",
118118
"webpack-cli": "5.1.4"

specs/SignEmitter.specs.ts

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe("SignEmitter", () => {
3737
});
3838

3939
it("Should setup signal debounce as fast reload blocker to avoid extension blocking", () => {
40+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4041
const emitter = new SignEmitter(mockedServer, mockedAgent as Agent);
4142

4243
assert(debounceSpy.calledWith(FAST_RELOAD_DEBOUNCING_FRAME));
@@ -45,6 +46,7 @@ describe("SignEmitter", () => {
4546

4647
it(`Should assign new rules if the Chrome/Chromium version is >= ${NEW_FAST_RELOAD_CHROME_VERSION}`, () => {
4748
const [major, minor, patch] = NEW_FAST_RELOAD_CHROME_VERSION;
49+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4850
const emitter = new SignEmitter(mockedServer, {
4951
family: "Chrome",
5052
major: `${major}`,

specs/block-protection.specs.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { assert } from "chai";
2-
import _ from "lodash";
32
import { useFakeTimers } from "sinon";
43
import { FAST_RELOAD_DEBOUNCING_FRAME } from "../src/constants/fast-reloading.constants";
54
import { debounceSignal } from "../src/utils/block-protection";

specs/middleware-injector.specs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("middleware-injector", () => {
1212
let singleContentChunks;
1313
const sourceCode = "console.log('I am a middleware!!!');";
1414

15-
stub(middlewareSourceBuilder, "default").callsFake((opts) => new RawSource(sourceCode));
15+
stub(middlewareSourceBuilder, "default").callsFake(() => new RawSource(sourceCode));
1616

1717
const sourceFactory = stub().callsFake((toConcat: string, file) => ({
1818
source: () => toConcat + file.source(),

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { install } from "source-map-support";
2-
import { DEBUG, ERROR, NONE } from "./constants/log.constants";
2+
import { DEBUG, ERROR } from "./constants/log.constants";
33
import ExtensionReloaderImpl from "./ExtensionReloader";
44
import { setLogLevel } from "./utils/logger";
55

src/middleware/wer-middleware.raw.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
// ======================== Called only on background scripts ============================= //
6060
function backgroundWorker(socket: WebSocket) {
61-
runtime.onMessage.addListener((action: { type: string; payload: any }, sender) => {
61+
runtime.onMessage.addListener((action: { type: string; payload: any }) => {
6262
if (action.type === SIGN_CONNECT) {
6363
return Promise.resolve(formatter("Connected to Web Extension Hot Reloader"));
6464
}

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"module": "commonjs",
99
"moduleResolution": "node",
1010
"allowJs": true,
11-
"typeRoots": ["typings/index.d.ts"],
12-
"types": ["node", "mocha", "webpack", "webpack-sources"]
11+
"outDir": "dist/js",
12+
"typeRoots": ["node_modules/@types", "typings"]
1313
},
1414
"presets": [
1515
"env",

0 commit comments

Comments
 (0)