mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Update dependencies
This commit is contained in:
@@ -1,61 +1,29 @@
|
||||
{
|
||||
"root": true
|
||||
, "parser": "@typescript-eslint/parser"
|
||||
, "plugins": [ "@typescript-eslint" ]
|
||||
, "extends": [
|
||||
"eslint:recommended"
|
||||
, "plugin:@typescript-eslint/recommended"
|
||||
]
|
||||
, "rules": {
|
||||
"max-len": [ "error", 80, {
|
||||
"tabWidth": 4
|
||||
, "ignorePattern": "//|.*(\"|`);?$"
|
||||
, "ignoreStrings": true
|
||||
, "ignoreTemplateLiterals": true
|
||||
, "ignoreRegExpLiterals": true
|
||||
}]
|
||||
, "space-before-function-paren": [ "error", {
|
||||
"anonymous": "always"
|
||||
, "named": "never"
|
||||
, "asyncArrow": "always"
|
||||
}]
|
||||
, "no-useless-escape": "off"
|
||||
, "no-prototype-builtins": "off"
|
||||
, "no-async-promise-executor": "off"
|
||||
, "semi": [ "error", "always"]
|
||||
, "comma-dangle": [ "error", "never" ]
|
||||
, "comma-style": [ "error", "first" ]
|
||||
, "no-multiple-empty-lines": [ "error", { "max": 2 }]
|
||||
, "no-console": [ "error", {
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": [ "@typescript-eslint" ],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"no-useless-escape": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-async-promise-executor": "off",
|
||||
"semi": [ "error", "always"],
|
||||
"no-multiple-empty-lines": [ "error", { "max": 2 }],
|
||||
"no-console": [ "error", {
|
||||
"allow": [ "info", "warn", "error" ]
|
||||
}]
|
||||
, "operator-linebreak": [ "error", "after", {
|
||||
"overrides": {
|
||||
"?": "before"
|
||||
, ":": "before"
|
||||
, "&": "before"
|
||||
, "|": "before"
|
||||
, "??": "ignore"
|
||||
, "&&": "ignore"
|
||||
, "||": "ignore"
|
||||
}
|
||||
}]
|
||||
, "object-curly-spacing": [ "error", "always", {
|
||||
"arraysInObjects": false
|
||||
, "objectsInObjects": false
|
||||
}]
|
||||
, "array-bracket-spacing": [ "error", "always", {
|
||||
"objectsInArrays": false
|
||||
, "arraysInArrays": false
|
||||
}]
|
||||
}],
|
||||
|
||||
, "@typescript-eslint/no-empty-interface": "off"
|
||||
, "@typescript-eslint/no-explicit-any": "off"
|
||||
, "@typescript-eslint/explicit-module-boundary-types": "off"
|
||||
, "@typescript-eslint/no-unused-vars": "off"
|
||||
, "@typescript-eslint/ban-types": "off"
|
||||
, "@typescript-eslint/ban-ts-comment": "off"
|
||||
, "@typescript-eslint/no-this-alias": [ "error", {
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-this-alias": [ "error", {
|
||||
"allowedNames": [ "this_" ]
|
||||
}]
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ HTML5 media elements also have a different `Cast...` context menu item that trig
|
||||
## Building
|
||||
|
||||
### Requirements
|
||||
* Node.js v12.x.x
|
||||
* Node.js v16.x.x
|
||||
* Native build tools (see [here](https://github.com/nodejs/node-gyp#installation))
|
||||
* Bonjour/Avahi (on Windows/Linux respectively)
|
||||
|
||||
|
||||
@@ -58,7 +58,6 @@ if (!supportedArchs.includes(argv.arch)) {
|
||||
}
|
||||
|
||||
const ROOT_PATH = path.join(__dirname, "..");
|
||||
const SRC_PATH = path.join(ROOT_PATH, "src");
|
||||
const BUILD_PATH = path.join(ROOT_PATH, "build");
|
||||
|
||||
const spawnOptions = {
|
||||
@@ -133,7 +132,7 @@ async function build() {
|
||||
await pkg.exec([
|
||||
path.join(BUILD_PATH, "src"),
|
||||
"--target",
|
||||
`node12-${paths.pkgPlatformMap[process.platform]}-${argv.arch}`,
|
||||
`node16-${paths.pkgPlatformMap[process.platform]}-${argv.arch}`,
|
||||
"--output",
|
||||
path.join(BUILD_PATH, executableName)
|
||||
]);
|
||||
|
||||
2671
app/package-lock.json
generated
2671
app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -11,27 +11,27 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/minimist": "^1.2.2",
|
||||
"@types/ws": "^7.4.7",
|
||||
"@types/ws": "^8.5.2",
|
||||
"bplist-creator": "^0.1.0",
|
||||
"bplist-parser": "^0.3.0",
|
||||
"bplist-parser": "^0.3.1",
|
||||
"castv2": "^0.1.10",
|
||||
"fast-srp-hap": "^2.0.3",
|
||||
"fast-srp-hap": "^2.0.4",
|
||||
"mdns": "^2.7.2",
|
||||
"mime-types": "^2.1.32",
|
||||
"mime-types": "^2.1.34",
|
||||
"minimist": "^1.2.5",
|
||||
"node-fetch": "^2.6.1",
|
||||
"node-fetch": "^3.2.2",
|
||||
"tweetnacl": "^1.0.3",
|
||||
"ws": "^8.2.1"
|
||||
"ws": "^8.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mdns": "0.0.34",
|
||||
"@types/mdns": "^0.0.34",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/node": "^16.7.8",
|
||||
"@types/node-fetch": "^2.5.12",
|
||||
"fs-extra": "^10.0.0",
|
||||
"@types/node": "^17.0.21",
|
||||
"@types/node-fetch": "^2.6.1",
|
||||
"fs-extra": "^10.0.1",
|
||||
"mustache": "^4.2.0",
|
||||
"pkg": "^5.3.1",
|
||||
"typescript": "^4.4.2"
|
||||
"pkg": "^5.5.2",
|
||||
"typescript": "^4.6.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"rage-edit": "^1.2.0"
|
||||
|
||||
10559
ext/package-lock.json
generated
10559
ext/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,17 +7,17 @@
|
||||
"lint": "eslint src --ext .ts,.tsx"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/firefox-webext-browser": "^82.0.1",
|
||||
"@types/react": "^17.0.19",
|
||||
"@types/react-dom": "^17.0.9",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@types/uuid": "^8.3.1",
|
||||
"esbuild": "^0.12.24",
|
||||
"preact": "^10.5.14",
|
||||
"@types/firefox-webext-browser": "^94.0.1",
|
||||
"@types/react": "^17.0.39",
|
||||
"@types/react-dom": "^17.0.13",
|
||||
"@types/semver": "^7.3.9",
|
||||
"@types/uuid": "^8.3.4",
|
||||
"esbuild": "^0.14.25",
|
||||
"preact": "^10.6.6",
|
||||
"semver": "^7.3.5",
|
||||
"ts-loader": "^9.2.5",
|
||||
"typescript": "^4.4.2",
|
||||
"ts-loader": "^9.2.7",
|
||||
"typescript": "^4.6.2",
|
||||
"uuid": "^8.3.2",
|
||||
"web-ext": "^6.3.0"
|
||||
"web-ext": "^6.7.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,10 @@ import logger from "../../lib/logger";
|
||||
import { ReceiverDevice } from "../../types";
|
||||
import { ErrorCallback, SuccessCallback } from "../types";
|
||||
|
||||
import { onMessage, sendMessageResponse } from "../eventMessageChannel";
|
||||
import {
|
||||
onMessage,
|
||||
sendMessageResponse
|
||||
} from "../eventMessageChannel";
|
||||
|
||||
import {
|
||||
AutoJoinPolicy,
|
||||
@@ -306,8 +309,11 @@ onMessage(message => {
|
||||
if (session) {
|
||||
session.status = SessionStatus.STOPPED;
|
||||
|
||||
for (const listener of session?._updateListeners) {
|
||||
listener(false);
|
||||
const updateListeners = session?._updateListeners;
|
||||
if (updateListeners) {
|
||||
for (const listener of updateListeners) {
|
||||
listener(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2680
package-lock.json
generated
2680
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@@ -22,15 +22,17 @@
|
||||
"lint:ext": "eslint ext/src --ext .ts,.tsx"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.30.0",
|
||||
"@typescript-eslint/parser": "^4.30.0",
|
||||
"eslint": "^7.32.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"glob": "^7.1.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||
"@typescript-eslint/parser": "^5.14.0",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"fs-extra": "^10.0.1",
|
||||
"glob": "^7.2.0",
|
||||
"jasmine-console-reporter": "^3.1.0",
|
||||
"minimist": "^1.2.5",
|
||||
"prettier": "^2.3.2",
|
||||
"selenium-webdriver": "^4.0.0-beta.4",
|
||||
"ws": "^8.2.1"
|
||||
"prettier": "^2.5.1",
|
||||
"selenium-webdriver": "^4.1.1",
|
||||
"typescript": "^4.6.2",
|
||||
"ws": "^8.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user