Update and fix build errors.
This commit is contained in:
+10
-10
@@ -15,38 +15,38 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@material/image-list": "^12.0.0",
|
||||
"custom-card-helpers": "^1.7.1",
|
||||
"custom-card-helpers": "^1.7.2",
|
||||
"dayjs": "^1.10.6",
|
||||
"home-assistant-js-websocket": "^5.11.1",
|
||||
"lit-element": "^2.5.1",
|
||||
"lit-html": "^1.4.1",
|
||||
"zod": "^3.7.1"
|
||||
"zod": "^3.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
||||
"@babel/plugin-proposal-decorators": "^7.14.5",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
||||
"@typescript-eslint/parser": "^4.29.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
||||
"@typescript-eslint/parser": "^4.29.3",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
"eslint-plugin-import": "^2.24.2",
|
||||
"eslint-plugin-prettier": "^3.4.1",
|
||||
"npm-check-updates": "^11.8.3",
|
||||
"prettier": "^2.3.2",
|
||||
"rollup": "^2.56.0",
|
||||
"rollup-plugin-styles": "^3.14.1",
|
||||
"rollup": "^2.56.3",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-serve": "^1.1.0",
|
||||
"rollup-plugin-styles": "^3.14.1",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.30.0",
|
||||
"rollup-plugin-uglify": "^6.0.4",
|
||||
"sass": "^1.37.5",
|
||||
"typescript": "^4.3.5"
|
||||
"sass": "^1.38.1",
|
||||
"typescript": "^4.4.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "rollup -c rollup.config.dev.js --watch",
|
||||
|
||||
@@ -408,13 +408,13 @@ export class FrigateCard extends LitElement {
|
||||
let raw_json;
|
||||
try {
|
||||
raw_json = await response.json();
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
console.warn(e);
|
||||
throw new Error(`Could not JSON decode Frigate API response: ${e}`);
|
||||
}
|
||||
try {
|
||||
return frigateGetEventsResponseSchema.parse(raw_json);
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
console.warn(e);
|
||||
throw new Error(`Frigate events were malformed: ${e}`);
|
||||
}
|
||||
@@ -472,7 +472,7 @@ export class FrigateCard extends LitElement {
|
||||
has_clip: want_clips,
|
||||
has_snapshot: !want_clips,
|
||||
});
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return this._renderError(e.message);
|
||||
}
|
||||
|
||||
@@ -629,7 +629,7 @@ export class FrigateCard extends LitElement {
|
||||
has_clip: true,
|
||||
limit: 1,
|
||||
});
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return this._renderError(e.message);
|
||||
}
|
||||
if (!events.length) {
|
||||
@@ -709,7 +709,7 @@ export class FrigateCard extends LitElement {
|
||||
has_snapshot: true,
|
||||
limit: 1,
|
||||
});
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return this._renderError(e.message);
|
||||
}
|
||||
if (!events.length) {
|
||||
|
||||
Reference in New Issue
Block a user