@fabrika/installation-init 0.5.5 → 0.7.0
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 +4 -4
- package/src/admin.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/installation-init",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"zod": "^3.25.76",
|
|
30
|
-
"@fabrika/app": "0.
|
|
31
|
-
"@fabrika/email": "0.
|
|
32
|
-
"@fabrika/iam-contract": "0.
|
|
30
|
+
"@fabrika/app": "0.7.0",
|
|
31
|
+
"@fabrika/email": "0.7.0",
|
|
32
|
+
"@fabrika/iam-contract": "0.7.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/admin.ts
CHANGED
|
@@ -140,9 +140,9 @@ const failed = (what: string, cause: unknown): Error => {
|
|
|
140
140
|
* One admin-RPC call, failing closed on everything that is not a result.
|
|
141
141
|
*
|
|
142
142
|
* The `undefined` guard is not defensive typing. The RPC client unwraps `{ result }`, throws on
|
|
143
|
-
* `{ error }` — and returns `undefined` for a JSON body carrying
|
|
144
|
-
*
|
|
145
|
-
*
|
|
143
|
+
* `{ error }` and on any answer that is not 2xx — and returns `undefined` for a 2xx JSON body carrying
|
|
144
|
+
* NEITHER, which a misdirected host can answer. The flow would then fail on a property of `undefined`
|
|
145
|
+
* several calls later instead of on the wrong address.
|
|
146
146
|
*/
|
|
147
147
|
const step = async <T>(what: string, call: () => Promise<T>): Promise<T> => {
|
|
148
148
|
let result: T
|