@fabrika/app 0.9.0-dev.14 → 0.9.0-dev.15
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 +14 -9
- package/skill/SKILL.md +2 -2
- package/skill/references/app-setup.md +10 -9
- package/skill/references/endpoint.md +8 -1
- package/src/build-contract-child.ts +16 -0
- package/src/build.ts +48 -2
- package/src/client/contract.ts +6 -4
- package/src/cloudflare/application.ts +3 -0
- package/src/contract/artifact-schema.ts +355 -301
- package/src/contract/attachment.ts +4 -3
- package/src/contract/compile.ts +3 -2
- package/src/contract/context.ts +2 -3
- package/src/contract/define.ts +17 -5
- package/src/contract/group.ts +8 -7
- package/src/contract/index.ts +1 -1
- package/src/contract/kit.ts +2 -2
- package/src/contract/problems.ts +4 -0
- package/src/contract/schema-shape.ts +14 -2
- package/src/contract/token.ts +4 -3
- package/src/from-row.ts +12 -6
- package/src/implement/approved.ts +57 -0
- package/src/implement/attachment.ts +2 -1
- package/src/implement/boot.ts +90 -12
- package/src/implement/dispatch.ts +14 -10
- package/src/implement/egress.ts +7 -6
- package/src/implement/faults.ts +1 -0
- package/src/implement/project.ts +3 -1
- package/src/implement/tokens.ts +3 -2
- package/src/implement/types.ts +18 -6
- package/src/react/hooks.ts +12 -11
- package/src/react/provider.tsx +2 -1
- package/src/react/types.ts +2 -2
- package/src/schema/builder.ts +146 -0
- package/src/schema/data-schema.ts +365 -0
- package/src/schema/index.ts +18 -0
- package/src/schema/replay.ts +623 -0
- package/src/testing/kit.ts +3 -3
- package/types/src/build-contract-child.d.ts +1 -0
- package/types/src/build.d.ts +16 -1
- package/types/src/client/contract.d.ts +3 -4
- package/types/src/cloudflare/application.d.ts +2 -0
- package/types/src/contract/artifact-schema.d.ts +8 -0
- package/types/src/contract/attachment.d.ts +3 -2
- package/types/src/contract/context.d.ts +2 -3
- package/types/src/contract/define.d.ts +14 -5
- package/types/src/contract/group.d.ts +5 -6
- package/types/src/contract/index.d.ts +1 -1
- package/types/src/contract/kit.d.ts +2 -3
- package/types/src/contract/problems.d.ts +1 -0
- package/types/src/contract/schema-shape.d.ts +3 -2
- package/types/src/contract/token.d.ts +3 -3
- package/types/src/from-row.d.ts +9 -5
- package/types/src/implement/approved.d.ts +11 -0
- package/types/src/implement/boot.d.ts +6 -0
- package/types/src/implement/faults.d.ts +1 -0
- package/types/src/implement/project.d.ts +2 -1
- package/types/src/implement/types.d.ts +4 -5
- package/types/src/react/hooks.d.ts +4 -5
- package/types/src/react/types.d.ts +2 -2
- package/types/src/schema/builder.d.ts +45 -0
- package/types/src/schema/data-schema.d.ts +124 -0
- package/types/src/schema/index.d.ts +3 -0
- package/types/src/schema/replay.d.ts +27 -0
- package/types/src/testing/kit.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/app",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"types": "./types/src/contract/index.d.ts",
|
|
39
39
|
"default": "./src/contract/index.ts"
|
|
40
40
|
},
|
|
41
|
+
"./schema": {
|
|
42
|
+
"bun": "./src/schema/index.ts",
|
|
43
|
+
"types": "./types/src/schema/index.d.ts",
|
|
44
|
+
"default": "./src/schema/index.ts"
|
|
45
|
+
},
|
|
41
46
|
"./client": {
|
|
42
47
|
"bun": "./src/client/index.ts",
|
|
43
48
|
"types": "./types/src/client/index.d.ts",
|
|
@@ -109,14 +114,14 @@
|
|
|
109
114
|
"test": "bun test --path-ignore-patterns='src/react/**' && bun test --isolate src/react"
|
|
110
115
|
},
|
|
111
116
|
"dependencies": {
|
|
112
|
-
"@fabrika/auth": "0.9.0-dev.
|
|
113
|
-
"@fabrika/auth-core": "0.9.0-dev.
|
|
114
|
-
"@fabrika/db": "0.9.0-dev.
|
|
115
|
-
"@fabrika/email": "0.9.0-dev.
|
|
116
|
-
"@fabrika/jwks": "0.9.0-dev.
|
|
117
|
-
"@fabrika/platform": "0.9.0-dev.
|
|
118
|
-
"@fabrika/platform-node": "0.9.0-dev.
|
|
119
|
-
"@fabrika/proxy-core": "0.9.0-dev.
|
|
117
|
+
"@fabrika/auth": "0.9.0-dev.15",
|
|
118
|
+
"@fabrika/auth-core": "0.9.0-dev.15",
|
|
119
|
+
"@fabrika/db": "0.9.0-dev.15",
|
|
120
|
+
"@fabrika/email": "0.9.0-dev.15",
|
|
121
|
+
"@fabrika/jwks": "0.9.0-dev.15",
|
|
122
|
+
"@fabrika/platform": "0.9.0-dev.15",
|
|
123
|
+
"@fabrika/platform-node": "0.9.0-dev.15",
|
|
124
|
+
"@fabrika/proxy-core": "0.9.0-dev.15",
|
|
120
125
|
"altcha-lib": "2.6.0",
|
|
121
126
|
"jose": "^5.9.0"
|
|
122
127
|
},
|
package/skill/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fabrika-app
|
|
3
|
-
version: 0.9.0-dev.
|
|
3
|
+
version: 0.9.0-dev.15
|
|
4
4
|
description: >
|
|
5
5
|
How to write and change a Fabrika application: src/vocabulary.ts, db/migrations/, src/db/tables.ts, the
|
|
6
6
|
slices' endpoints.ts with their handlers, fabrika.contract.ts, jobs, files, webhooks, share links, connectors
|
|
@@ -264,7 +264,7 @@ Which promise the types, the checker, boot, the runtime or the approver keeps, a
|
|
|
264
264
|
no `package.json`. Its tests run in the platform build, so they test its logic, without a keychain or a network.
|
|
265
265
|
- Never log an error object, a request, headers or the environment.
|
|
266
266
|
- Never edit a generated file (`src/db/schema.generated.ts`, the generated tests, `fabrika/entry.generated.ts`,
|
|
267
|
-
`fabrika/migrations.generated.ts`, `fabrika/connect/`) or a committed migration. Regenerate the file; write a new migration.
|
|
267
|
+
`fabrika/migrations.generated.ts`, `fabrika/contract.generated.ts`, `fabrika/connect/`) or a committed migration. Regenerate the file; write a new migration.
|
|
268
268
|
|
|
269
269
|
## Ask the human first
|
|
270
270
|
|
|
@@ -19,20 +19,20 @@ the SPA is added with it.
|
|
|
19
19
|
"test": "bun test --isolate"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fabrika/app": "0.9.0-dev.
|
|
23
|
-
"@fabrika/db": "0.9.0-dev.
|
|
24
|
-
"@fabrika/provider-zerops": "0.9.0-dev.
|
|
25
|
-
"@fabrika/proxy-core": "0.9.0-dev.
|
|
26
|
-
"@fabrika/ui": "0.9.0-dev.
|
|
22
|
+
"@fabrika/app": "0.9.0-dev.15",
|
|
23
|
+
"@fabrika/db": "0.9.0-dev.15",
|
|
24
|
+
"@fabrika/provider-zerops": "0.9.0-dev.15",
|
|
25
|
+
"@fabrika/proxy-core": "0.9.0-dev.15",
|
|
26
|
+
"@fabrika/ui": "0.9.0-dev.15",
|
|
27
27
|
"kysely": "0.29.6",
|
|
28
28
|
"react": "^19.0.0",
|
|
29
29
|
"react-dom": "^19.0.0",
|
|
30
30
|
"zod": "^3.25.76"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@fabrika/check": "0.9.0-dev.
|
|
34
|
-
"@fabrika/cli": "0.9.0-dev.
|
|
35
|
-
"@fabrika/platform": "0.9.0-dev.
|
|
33
|
+
"@fabrika/check": "0.9.0-dev.15",
|
|
34
|
+
"@fabrika/cli": "0.9.0-dev.15",
|
|
35
|
+
"@fabrika/platform": "0.9.0-dev.15",
|
|
36
36
|
"@happy-dom/global-registrator": "^20.11.2",
|
|
37
37
|
"@types/bun": "^1.4.3",
|
|
38
38
|
"@types/react": "^19.0.0",
|
|
@@ -435,4 +435,5 @@ await Bun.write(
|
|
|
435
435
|
## Ignored files
|
|
436
436
|
|
|
437
437
|
`.gitignore`: `node_modules/`, `fabrika.manifest.json`, `/fabrika/entry.generated.ts`, `/dist/`, and on Cloudflare
|
|
438
|
-
`/fabrika/assets/`, where a deploy stages the SPA's files.
|
|
438
|
+
`/fabrika/assets/`, where a deploy stages the SPA's files, and `/fabrika/contract.generated.ts`, which every build
|
|
439
|
+
rewrites from the contract.
|
|
@@ -28,11 +28,18 @@ export const WorkloadRow = z.strictObject({
|
|
|
28
28
|
|
|
29
29
|
- `z` comes from `zod/v4`. Objects are `z.strictObject`, never `z.object`. No `transform`, `refine`, `pipe`,
|
|
30
30
|
`preprocess`, `passthrough`, `lazy` or `custom`: the shell is read without running it.
|
|
31
|
+
- A large contract (hundreds of endpoints) imports `z` from `@fabrika/app/schema` instead. It is the same subset with the
|
|
32
|
+
same names and types, and the same artifact. It holds each schema as data and builds the zod only when it validates,
|
|
33
|
+
so the runtime does not hold the zod of every endpoint at once. Such a schema keeps `.shape`, `.extend`, `.pick`, `.omit`,
|
|
34
|
+
`.partial` (objects), `.options`, `.enum`, `.exclude`, `.extract` (enums), `.parse` and `.safeParse`. For anything
|
|
35
|
+
else of zod's API, call `zodOf(schema)` from `@fabrika/app/schema`. `@fabrika/app/schema`'s factories take a
|
|
36
|
+
zod schema as a child, but `zod/v4`'s do not take a schema held as data. Wrap one with the builder that made it:
|
|
37
|
+
`z.array(Row)`, where this `z` is the one that built `Row`.
|
|
31
38
|
- `src/schemas.ts` holds what several slices, or a slice and the SPA, share, as literal consts only. A slice declares
|
|
32
39
|
its own schemas in its `endpoints.ts` (`Task`, `NewTask` in `SKILL.md`), and may declare other consts there too.
|
|
33
40
|
- A pure function both the server and the SPA run (a template fill, a label) lives in `src/shared/<name>.ts`, once: a
|
|
34
41
|
handler and a `web/` module import the same function, so the preview and the e-mail cannot drift. A shared module
|
|
35
|
-
imports only `zod/v4` and other modules of `src/shared/` (`shared-import`); no slice, no `src/db/`, no `@fabrika/*`,
|
|
42
|
+
imports only `zod/v4`, `@fabrika/app/schema` and other modules of `src/shared/` (`shared-import`); no slice, no `src/db/`, no `@fabrika/*`,
|
|
36
43
|
no global object, no environment.
|
|
37
44
|
- `z.iso.datetime()` takes UTC (`…Z`) only; `z.iso.date()` is `YYYY-MM-DD`.
|
|
38
45
|
- Optional or nullable: on a create, a field the caller may leave out is `.optional()`, never a required
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// The child of `writeGeneratedContract`: it runs in the application root with no credential in its environment, loads
|
|
2
|
+
// the application module, and prints its compiled contract in the shared encoding, which the build bundles.
|
|
3
|
+
|
|
4
|
+
import { encodedArtifactJson } from '@fabrika/auth-core'
|
|
5
|
+
import { join } from 'node:path'
|
|
6
|
+
import { IMPLEMENTATION_FILE } from './build.js'
|
|
7
|
+
import { compileContract } from './contract/compile.js'
|
|
8
|
+
import { isContractImplementation } from './implement/implement.js'
|
|
9
|
+
|
|
10
|
+
const module: unknown = await import(join(process.cwd(), IMPLEMENTATION_FILE))
|
|
11
|
+
const app = typeof module === 'object' && module !== null ? Reflect.get(module, 'default') : undefined
|
|
12
|
+
if (!isContractImplementation(app)) {
|
|
13
|
+
console.error(`${IMPLEMENTATION_FILE} does not default-export serve(contract, { … })`)
|
|
14
|
+
process.exit(1)
|
|
15
|
+
}
|
|
16
|
+
process.stdout.write(encodedArtifactJson(compileContract(app.contract, app.database?.tables ?? {})))
|
package/src/build.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { mkdir, readdir, readFile, writeFile } from 'node:fs/promises'
|
|
6
6
|
import { dirname, join } from 'node:path'
|
|
7
|
+
import { fileURLToPath } from 'node:url'
|
|
7
8
|
|
|
8
9
|
/** An application root with this file is a contract application. The paths equal `@fabrika/check`'s layout. */
|
|
9
10
|
export const CONTRACT_FILE = 'fabrika.contract.ts'
|
|
@@ -17,6 +18,12 @@ export const IMPLEMENTATION_FILE = 'src/app.ts'
|
|
|
17
18
|
/** The application's migrations as a module, relative to the application root: a Worker reads no file system. */
|
|
18
19
|
export const GENERATED_MIGRATIONS_FILE = 'fabrika/migrations.generated.ts'
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* The compiled contract as a module, relative to the application root: the Cloudflare entrypoint hands it to boot, which
|
|
23
|
+
* checks its digest and reads it instead of compiling the contract inside the isolate.
|
|
24
|
+
*/
|
|
25
|
+
export const GENERATED_CONTRACT_FILE = 'fabrika/contract.generated.ts'
|
|
26
|
+
|
|
20
27
|
/** Where an application keeps its migrations, relative to its root; `fabrika db new` writes there. */
|
|
21
28
|
export const MIGRATIONS_DIRECTORY = 'db/migrations'
|
|
22
29
|
|
|
@@ -51,29 +58,68 @@ export function generatedEntry(runtime: EntryRuntime): string {
|
|
|
51
58
|
return [
|
|
52
59
|
HEADER,
|
|
53
60
|
"import { createContractWorker, markProductionProcess } from '@fabrika/app/cloudflare'",
|
|
61
|
+
"import { approvedContract } from './contract.generated'",
|
|
54
62
|
"import { migrations } from './migrations.generated'",
|
|
55
63
|
'',
|
|
56
64
|
"export { FabrikaApplication } from '@fabrika/app/cloudflare'",
|
|
57
65
|
'',
|
|
58
66
|
'// The test kits refuse to load from here on; the object imports the application only after the framework took its variables.',
|
|
59
67
|
'markProductionProcess()',
|
|
60
|
-
"export default createContractWorker(() => import('../src/app'), { migrations })",
|
|
68
|
+
"export default createContractWorker(() => import('../src/app'), { migrations, approvedContract })",
|
|
61
69
|
'',
|
|
62
70
|
].join('\n')
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
|
|
66
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Writes the entrypoint under `root` and returns its path; the Cloudflare one also writes the migrations and the compiled
|
|
76
|
+
* contract modules it imports.
|
|
77
|
+
*/
|
|
67
78
|
export async function writeGeneratedEntry(root: string, runtime: EntryRuntime): Promise<string> {
|
|
68
79
|
const path = join(root, GENERATED_ENTRY_FILE)
|
|
69
80
|
await mkdir(dirname(path), { recursive: true })
|
|
70
81
|
await writeFile(path, generatedEntry(runtime))
|
|
71
82
|
if (runtime === 'cloudflare') {
|
|
72
83
|
await writeGeneratedMigrations(root)
|
|
84
|
+
await writeGeneratedContract(root)
|
|
73
85
|
}
|
|
74
86
|
return path
|
|
75
87
|
}
|
|
76
88
|
|
|
89
|
+
const CONTRACT_CHILD = fileURLToPath(new URL('./build-contract-child.ts', import.meta.url))
|
|
90
|
+
|
|
91
|
+
/** The compiled contract module source: the artifact's shared encoding (`encodeArtifact`) as one string, verbatim. */
|
|
92
|
+
export function generatedContract(encoded: string): string {
|
|
93
|
+
return [
|
|
94
|
+
`// @generated by \`fabrika app build\` from ${IMPLEMENTATION_FILE}. Do not edit: every build rewrites it.`,
|
|
95
|
+
'',
|
|
96
|
+
`export const approvedContract: string = ${JSON.stringify(encoded)}`,
|
|
97
|
+
'',
|
|
98
|
+
].join('\n')
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Compiles the application's contract in a child process, which loads `src/app.ts` with no variable but `PATH` and
|
|
103
|
+
* `HOME`, writes the module under `root` and returns its path. A contract that does not compile fails the build.
|
|
104
|
+
*/
|
|
105
|
+
export async function writeGeneratedContract(root: string): Promise<string> {
|
|
106
|
+
const child = Bun.spawn([process.execPath, CONTRACT_CHILD], {
|
|
107
|
+
cwd: root,
|
|
108
|
+
env: { PATH: process.env['PATH'] ?? '', HOME: process.env['HOME'] ?? '' },
|
|
109
|
+
stdin: 'ignore',
|
|
110
|
+
stdout: 'pipe',
|
|
111
|
+
stderr: 'pipe',
|
|
112
|
+
})
|
|
113
|
+
const [encoded, stderr] = await Promise.all([new Response(child.stdout).text(), new Response(child.stderr).text(), child.exited])
|
|
114
|
+
if (child.exitCode !== 0) {
|
|
115
|
+
throw new Error(`the contract of ${root} does not compile:\n${stderr.trim()}`)
|
|
116
|
+
}
|
|
117
|
+
const path = join(root, GENERATED_CONTRACT_FILE)
|
|
118
|
+
await mkdir(dirname(path), { recursive: true })
|
|
119
|
+
await writeFile(path, generatedContract(encoded))
|
|
120
|
+
return path
|
|
121
|
+
}
|
|
122
|
+
|
|
77
123
|
/** The application's migrations under `root`, every `.sql` file of `db/migrations` by name; none without the directory. */
|
|
78
124
|
export async function applicationMigrations(root: string): Promise<readonly { readonly name: string; readonly sql: string }[]> {
|
|
79
125
|
const directory = join(root, MIGRATIONS_DIRECTORY)
|
package/src/client/contract.ts
CHANGED
|
@@ -10,8 +10,9 @@ import { type AttachmentBrand, attachmentOf } from '../contract/attachment'
|
|
|
10
10
|
import { isProcedure, type ProcedureTreeDeclaration, type ProcedureType, SURFACE_SECTIONS } from '../contract/declaration'
|
|
11
11
|
import { FILE_INPUT_PART } from '../contract/defaults'
|
|
12
12
|
import { challengePath, declaredChallengeAction, joinPath, LINK_API_SEGMENT, procedurePath } from '../contract/defaults'
|
|
13
|
-
import type { AnyContract, InputSchema, Procedure, Schema, Surface } from '../contract/define'
|
|
13
|
+
import type { AnyContract, InputSchema, Procedure, Schema, SchemaInput, SchemaOutput, Surface } from '../contract/define'
|
|
14
14
|
import { type ClientInput, type FileBrand, fileOf } from '../contract/file'
|
|
15
|
+
import { zodSchemaOf } from '../schema/data-schema'
|
|
15
16
|
import { type BounceConfig, type BounceOption, exchange, exchangeFile, resolveBounce, RpcError, type RpcFetch } from './transport'
|
|
16
17
|
|
|
17
18
|
type SurfaceOf<C> = C extends { readonly surface: infer S } ? S : never
|
|
@@ -26,7 +27,8 @@ export type ClientMount<C> =
|
|
|
26
27
|
* it parses with (`@fabrika/app/react` reads a cached answer back through it).
|
|
27
28
|
*/
|
|
28
29
|
export type ProcedureCall<I, O extends Schema> =
|
|
29
|
-
& ([I] extends [InputSchema] ? (input: ClientInput<
|
|
30
|
+
& ([I] extends [InputSchema] ? (input: ClientInput<SchemaInput<I>>) => Promise<SchemaOutput<O>>
|
|
31
|
+
: (input?: Record<never, never>) => Promise<SchemaOutput<O>>)
|
|
30
32
|
& { readonly output: O }
|
|
31
33
|
|
|
32
34
|
export type ClientTree<T> = {
|
|
@@ -170,7 +172,7 @@ function caller(target: CallTarget, at: TreeAt, options: ClientOptions, bounce:
|
|
|
170
172
|
const result = target.method === 'GET'
|
|
171
173
|
? await exchange(options.fetch ?? fetch, withParams(target.url, input), getRequestOf(options), bounce)
|
|
172
174
|
: await exchange(options.fetch ?? fetch, target.url, requestOf(options, input), bounce)
|
|
173
|
-
const parsed = z.safeParse(target.output, result)
|
|
175
|
+
const parsed = z.safeParse(zodSchemaOf(target.output), result)
|
|
174
176
|
if (!parsed.success) {
|
|
175
177
|
throw new RpcError({ type: 'invalid-response', message: `'${target.id}' answered a value its output schema refuses`, httpStatus: 200 })
|
|
176
178
|
}
|
|
@@ -364,7 +366,7 @@ export function attachmentAt(value: unknown): { readonly mount: string; readonly
|
|
|
364
366
|
}
|
|
365
367
|
|
|
366
368
|
/** The input `download` takes: the procedure's, or none. */
|
|
367
|
-
export type DownloadInput<I> = [I] extends [InputSchema] ? [input:
|
|
369
|
+
export type DownloadInput<I> = [I] extends [InputSchema] ? [input: SchemaInput<I>] : [input?: Record<never, never>]
|
|
368
370
|
|
|
369
371
|
/**
|
|
370
372
|
* Calls a procedure that answers a file (an attachment, or a `file('<kind>')` output) with the caller's credential, and
|
|
@@ -49,6 +49,8 @@ export interface ApplicationMigration {
|
|
|
49
49
|
export interface ContractWorkerOptions {
|
|
50
50
|
/** The application's own SQLite migrations, applied as the bundle `app` after the framework's `fabrika`. */
|
|
51
51
|
readonly migrations?: readonly ApplicationMigration[]
|
|
52
|
+
/** The contract artifact the build compiled, in its shared encoding, which boot reads instead of compiling (`BootOptions`). */
|
|
53
|
+
readonly approvedContract?: string
|
|
52
54
|
/** Where the isolate hears of an unhandled rejection; the global `unhandledrejection` event by default. */
|
|
53
55
|
readonly rejections?: CrashEvents
|
|
54
56
|
/** What posts a report to Operations' ingest; `fetch` by default. */
|
|
@@ -329,6 +331,7 @@ async function bootApplication(
|
|
|
329
331
|
// The proxy Worker sets `X-Fabrika-Client-Ip` from `CF-Connecting-IP`, the visitor Cloudflare saw.
|
|
330
332
|
clientAddress: 'vouched',
|
|
331
333
|
projectWakes: (transaction) => projectWakes(setup, transaction),
|
|
334
|
+
...(setup.options.approvedContract === undefined ? {} : { approvedContract: setup.options.approvedContract }),
|
|
332
335
|
...(setup.options.operationsFetch === undefined ? {} : { operationsFetch: setup.options.operationsFetch }),
|
|
333
336
|
})
|
|
334
337
|
const booted: Booted = { app, migrates }
|