mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 01:29:58 +00:00
Update all dependencies
This commit is contained in:
6621
ext/package-lock.json
generated
6621
ext/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -11,15 +11,14 @@
|
||||
"lint": "node bin/lint.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/firefox-webext-browser": "^65.0.3",
|
||||
"@types/react": "^16.8.13",
|
||||
"@types/react-dom": "^16.8.4",
|
||||
"copy-webpack-plugin": "^4.6.0",
|
||||
"@types/firefox-webext-browser": "^67.0.2",
|
||||
"@types/react": "^16.8.23",
|
||||
"@types/react-dom": "^16.8.5",
|
||||
"copy-webpack-plugin": "^5.0.4",
|
||||
"preact": "^8.4.2",
|
||||
"preact-compat": "^3.18.4",
|
||||
"ts-loader": "^5.3.3",
|
||||
"web-ext": "^3.0.0",
|
||||
"webpack": "^4.30.0",
|
||||
"webpack-cli": "^3.3.0"
|
||||
"preact-compat": "^3.19.0",
|
||||
"ts-loader": "^6.0.4",
|
||||
"web-ext": "^3.1.1",
|
||||
"webpack": "^4.38.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Message } from "../types";
|
||||
const WEBSOCKET_DAEMON_URL = "ws://localhost:9556";
|
||||
|
||||
|
||||
type DisconnectListener = () => void;
|
||||
type DisconnectListener = (port: browser.runtime.Port) => void;;
|
||||
type MessageListener = (message: any) => void;
|
||||
|
||||
function connectNative (application: string) {
|
||||
@@ -126,7 +126,7 @@ function connectNative (application: string) {
|
||||
}
|
||||
|
||||
for (const listener of onDisconnectListeners) {
|
||||
listener();
|
||||
listener(portObject);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface Options {
|
||||
userAgentWhitelistEnabled: boolean;
|
||||
userAgentWhitelist: string[];
|
||||
|
||||
[key: string]: Options[keyof Options];
|
||||
[key: string]: Options[keyof Options]
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ export default new class extends TypedEventTarget<EventMap> {
|
||||
}
|
||||
|
||||
this.dispatchEvent(new CustomEvent("changed", {
|
||||
detail: changedKeys
|
||||
detail: changedKeys as Array<keyof Options>
|
||||
}));
|
||||
}
|
||||
});
|
||||
@@ -88,8 +88,8 @@ export default new class extends TypedEventTarget<EventMap> {
|
||||
* Options interface type.
|
||||
*/
|
||||
public async getAll (): Promise<Options> {
|
||||
const { options }: { options: Options } =
|
||||
await browser.storage.sync.get("options");
|
||||
const { options } = await browser.storage.sync.get(
|
||||
"options") as { options: Options };
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user