@typed-assistant/builder 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/appProcess.tsx +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed-assistant/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"eslint": "^8.56.0",
|
|
18
18
|
"home-assistant-js-websocket": "^8.2.0",
|
|
19
19
|
"typescript": "^5.3.3",
|
|
20
|
+
"@typed-assistant/eslint-config": "0.0.4",
|
|
20
21
|
"@typed-assistant/logger": "0.0.5",
|
|
21
|
-
"@typed-assistant/utils": "0.0.5",
|
|
22
22
|
"@typed-assistant/typescript-config": "0.0.4",
|
|
23
|
-
"@typed-assistant/
|
|
23
|
+
"@typed-assistant/utils": "0.0.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"home-assistant-js-websocket": "^8.2.0"
|
package/src/appProcess.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { readFileSync, watch } from "fs"
|
|
|
5
5
|
import { join, relative } from "path"
|
|
6
6
|
import ignore from "ignore"
|
|
7
7
|
import { ONE_SECOND } from "@typed-assistant/utils/durations"
|
|
8
|
-
import { getHassAPI } from "@typed-assistant/utils/getHassAPI"
|
|
8
|
+
import { fetchWithAuth, getHassAPI } from "@typed-assistant/utils/getHassAPI"
|
|
9
9
|
import { pullChanges } from "./pullChanges"
|
|
10
10
|
import { withErrorHandling } from "@typed-assistant/utils/withErrorHandling"
|
|
11
11
|
|
|
@@ -106,13 +106,13 @@ const shouldIgnoreFileOrFolder = (filename: string) =>
|
|
|
106
106
|
|
|
107
107
|
const restartAddon = async () => {
|
|
108
108
|
log("♻️ Restarting addon...")
|
|
109
|
-
await
|
|
109
|
+
await fetchWithAuth(`http://supervisor/addons/self/restart`, {
|
|
110
|
+
method: "POST",
|
|
111
|
+
})
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
const getAddonInfo = async () => {
|
|
113
115
|
log("🔍 Getting addon info...")
|
|
114
116
|
|
|
115
|
-
return withErrorHandling(
|
|
116
|
-
data: { ingress_entry: string }
|
|
117
|
-
}>("http://supervisor/addons/self/info")
|
|
117
|
+
return withErrorHandling(fetchWithAuth)("http://supervisor/addons/self/info")
|
|
118
118
|
}
|