Update dependencies

This commit is contained in:
hensm
2021-02-23 02:15:58 +00:00
parent e4e133ced5
commit 8174411d87
8 changed files with 2341 additions and 3895 deletions

5932
ext/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,15 +11,15 @@
"lint": "node bin/lint.js"
},
"devDependencies": {
"@types/firefox-webext-browser": "^70.0.1",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"copy-webpack-plugin": "^5.1.1",
"html-webpack-plugin": "^4.4.1",
"preact": "^10.4.7",
"@types/firefox-webext-browser": "^82.0.0",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"copy-webpack-plugin": "^7.0.0",
"html-webpack-plugin": "^5.2.0",
"preact": "^10.5.12",
"preact-compat": "^3.19.0",
"ts-loader": "^7.0.5",
"web-ext": "^4.3.0",
"webpack": "^4.44.1"
"ts-loader": "^8.0.17",
"web-ext": "^5.5.0",
"webpack": "^5.24.0"
}
}

View File

@@ -1,6 +1,6 @@
"use strict";
import uuid from "uuid/v1";
import { v4 as uuid } from "uuid";
import logger from "../../../lib/logger";

View File

@@ -2,7 +2,7 @@
import logger from "../../../../lib/logger";
import uuid from "uuid/v1";
import { v1 as uuid } from "uuid";
import BreakStatus from "./BreakStatus";
import EditTracksInfoRequest from "./EditTracksInfoRequest";

View File

@@ -15,7 +15,7 @@ if (!_window.chrome) {
// Remove private APIs
delete cast._requestSession;
delete (cast as any)._requestSession;
// Create page-accessible API object
_window.chrome.cast = cast;

View File

@@ -43,27 +43,31 @@ module.exports = (env) => ({
})
// Copy static assets
, new CopyWebpackPlugin([
{
from: env.includePath
, to: env.outputPath
, ignore: sourceFileExtensions.map(ext => `*${ext}`)
, transform (content, path) {
// Access to variables in static files
if (path.endsWith(".json")) {
return Buffer.from(content.toString()
.replace("EXTENSION_NAME", env.extensionName)
.replace("EXTENSION_ID", env.extensionId)
.replace("EXTENSION_VERSION", env.extensionVersion)
.replace("CONTENT_SECURITY_POLICY", env.contentSecurityPolicy)
.replace("AUTHOR", env.author)
.replace("AUTHOR_HOMEPAGE", env.authorHomepage));
, new CopyWebpackPlugin({
patterns: [
{
from: env.includePath
, to: env.outputPath
, globOptions: {
ignore: sourceFileExtensions.map(ext => `**${ext}`)
}
, transform (content, path) {
// Access to variables in static files
if (path.endsWith(".json")) {
return Buffer.from(content.toString()
.replace("EXTENSION_NAME", env.extensionName)
.replace("EXTENSION_ID", env.extensionId)
.replace("EXTENSION_VERSION", env.extensionVersion)
.replace("CONTENT_SECURITY_POLICY", env.contentSecurityPolicy)
.replace("AUTHOR", env.author)
.replace("AUTHOR_HOMEPAGE", env.authorHomepage));
}
return content;
return content;
}
}
}
])
]
})
, new HtmlWebpackPlugin({
inject: true