@fougere/core 0.6.0-alpha.0 → 0.7.0-alpha.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/README.md +1 -1
- package/dist/boot/Emissions.d.ts +13 -90
- package/dist/boot/Emissions.d.ts.map +1 -1
- package/dist/boot/Emissions.js +21 -118
- package/dist/boot/Emissions.js.map +1 -1
- package/dist/boot/ambient-port.d.ts +3 -24
- package/dist/boot/ambient-port.d.ts.map +1 -1
- package/dist/boot/ambient.als.d.ts.map +1 -1
- package/dist/boot/ambient.als.js +7 -12
- package/dist/boot/ambient.als.js.map +1 -1
- package/dist/boot/ambient.queue.d.ts +2 -5
- package/dist/boot/ambient.queue.d.ts.map +1 -1
- package/dist/boot/ambient.queue.js.map +1 -1
- package/dist/boot/apply.d.ts +1 -13
- package/dist/boot/apply.d.ts.map +1 -1
- package/dist/boot/apply.js +3 -15
- package/dist/boot/apply.js.map +1 -1
- package/dist/boot/auth.d.ts +2 -12
- package/dist/boot/auth.d.ts.map +1 -1
- package/dist/boot/boot.d.ts +3 -16
- package/dist/boot/boot.d.ts.map +1 -1
- package/dist/boot/boot.js +3 -10
- package/dist/boot/boot.js.map +1 -1
- package/dist/boot/bootstrap.d.ts.map +1 -1
- package/dist/boot/bootstrap.js +61 -127
- package/dist/boot/bootstrap.js.map +1 -1
- package/dist/boot/card.d.ts +1 -17
- package/dist/boot/card.d.ts.map +1 -1
- package/dist/boot/card.js +3 -32
- package/dist/boot/card.js.map +1 -1
- package/dist/boot/frame.d.ts +8 -32
- package/dist/boot/frame.d.ts.map +1 -1
- package/dist/boot/frame.js +20 -54
- package/dist/boot/frame.js.map +1 -1
- package/dist/boot/hosted.d.ts +2 -24
- package/dist/boot/hosted.d.ts.map +1 -1
- package/dist/boot/hosted.js +10 -15
- package/dist/boot/hosted.js.map +1 -1
- package/dist/boot/ownership.d.ts +3 -36
- package/dist/boot/ownership.d.ts.map +1 -1
- package/dist/boot/ownership.js +5 -40
- package/dist/boot/ownership.js.map +1 -1
- package/dist/boot/ports.d.ts +1 -14
- package/dist/boot/ports.d.ts.map +1 -1
- package/dist/boot/ports.js +1 -14
- package/dist/boot/ports.js.map +1 -1
- package/dist/boot/remote.d.ts +5 -38
- package/dist/boot/remote.d.ts.map +1 -1
- package/dist/boot/remote.js +8 -41
- package/dist/boot/remote.js.map +1 -1
- package/dist/boot/runner.d.ts +4 -21
- package/dist/boot/runner.d.ts.map +1 -1
- package/dist/boot/runner.js +4 -17
- package/dist/boot/runner.js.map +1 -1
- package/dist/boot/seed.d.ts +4 -31
- package/dist/boot/seed.d.ts.map +1 -1
- package/dist/boot/seed.js +6 -37
- package/dist/boot/seed.js.map +1 -1
- package/dist/boot/statement-drift.d.ts +2 -21
- package/dist/boot/statement-drift.d.ts.map +1 -1
- package/dist/boot/statement-drift.js +4 -9
- package/dist/boot/statement-drift.js.map +1 -1
- package/dist/boot/together.d.ts +4 -8
- package/dist/boot/together.d.ts.map +1 -1
- package/dist/boot/together.js +15 -50
- package/dist/boot/together.js.map +1 -1
- package/dist/boot/types.d.ts +28 -173
- package/dist/boot/types.d.ts.map +1 -1
- package/dist/builtin/config.d.ts +7 -0
- package/dist/builtin/config.d.ts.map +1 -0
- package/dist/builtin/config.js +15 -0
- package/dist/builtin/config.js.map +1 -0
- package/dist/{builtins → builtin}/logger.d.ts +4 -25
- package/dist/builtin/logger.d.ts.map +1 -0
- package/dist/{builtins → builtin}/logger.js +5 -32
- package/dist/builtin/logger.js.map +1 -0
- package/dist/config-loader.d.ts +9 -67
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +5 -18
- package/dist/config-loader.js.map +1 -1
- package/dist/contract.d.ts +13 -31
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +10 -26
- package/dist/contract.js.map +1 -1
- package/dist/crypto/encoding.d.ts +2 -15
- package/dist/crypto/encoding.d.ts.map +1 -1
- package/dist/crypto/encoding.js +2 -15
- package/dist/crypto/encoding.js.map +1 -1
- package/dist/crypto/node.d.ts.map +1 -1
- package/dist/crypto/node.js +1 -7
- package/dist/crypto/node.js.map +1 -1
- package/dist/crypto/port.d.ts +2 -18
- package/dist/crypto/port.d.ts.map +1 -1
- package/dist/crypto/port.js +1 -17
- package/dist/crypto/port.js.map +1 -1
- package/dist/crypto/webcrypto.d.ts.map +1 -1
- package/dist/crypto/webcrypto.js +1 -12
- package/dist/crypto/webcrypto.js.map +1 -1
- package/dist/declare.d.ts +6 -36
- package/dist/declare.d.ts.map +1 -1
- package/dist/declare.js +4 -29
- package/dist/declare.js.map +1 -1
- package/dist/define.d.ts +2 -3
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +2 -3
- package/dist/define.js.map +1 -1
- package/dist/descriptor/Fronds.d.ts +3 -28
- package/dist/descriptor/Fronds.d.ts.map +1 -1
- package/dist/descriptor/Fronds.js +6 -31
- package/dist/descriptor/Fronds.js.map +1 -1
- package/dist/descriptor/frond.d.ts +14 -63
- package/dist/descriptor/frond.d.ts.map +1 -1
- package/dist/dispatch/ArgumentResolver.d.ts +1 -1
- package/dist/dispatch/ArgumentResolver.d.ts.map +1 -1
- package/dist/dispatch/ArgumentResolver.js +5 -5
- package/dist/dispatch/ArgumentResolver.js.map +1 -1
- package/dist/dispatch/DispatchEvent.d.ts +2 -2
- package/dist/dispatch/DispatchEvent.d.ts.map +1 -1
- package/dist/dispatch/DispatchLifecycle.d.ts +1 -7
- package/dist/dispatch/DispatchLifecycle.d.ts.map +1 -1
- package/dist/dispatch/DispatchLifecycle.js +1 -7
- package/dist/dispatch/DispatchLifecycle.js.map +1 -1
- package/dist/dispatch/DispatchPort.d.ts +1 -1
- package/dist/dispatch/DispatchPort.d.ts.map +1 -1
- package/dist/dispatch/Dispatcher.d.ts +1 -1
- package/dist/dispatch/Dispatcher.d.ts.map +1 -1
- package/dist/dispatch/Dispatcher.js +2 -2
- package/dist/dispatch/Dispatcher.js.map +1 -1
- package/dist/{boot → dispatch}/HandlerFacade.d.ts +25 -38
- package/dist/dispatch/HandlerFacade.d.ts.map +1 -0
- package/dist/{boot → dispatch}/HandlerFacade.js +65 -74
- package/dist/dispatch/HandlerFacade.js.map +1 -0
- package/dist/dispatch/LocalRoutePolicy.d.ts +1 -1
- package/dist/dispatch/LocalRoutePolicy.d.ts.map +1 -1
- package/dist/dispatch/LocalRoutePolicy.js +4 -4
- package/dist/dispatch/LocalRoutePolicy.js.map +1 -1
- package/dist/dispatch/OperationRoute.d.ts +2 -2
- package/dist/dispatch/OperationRoute.d.ts.map +1 -1
- package/dist/dispatch/OutputView.d.ts +3 -2
- package/dist/dispatch/OutputView.d.ts.map +1 -1
- package/dist/dispatch/OutputView.js +19 -1
- package/dist/dispatch/OutputView.js.map +1 -1
- package/dist/dispatch/Route.d.ts +2 -2
- package/dist/dispatch/Route.d.ts.map +1 -1
- package/dist/dispatch/RoutePolicy.d.ts +1 -1
- package/dist/dispatch/RoutePolicy.d.ts.map +1 -1
- package/dist/dispatch/RouteRegistry.d.ts +1 -1
- package/dist/dispatch/RouteRegistry.d.ts.map +1 -1
- package/dist/dispatch/RouteRegistry.js +2 -2
- package/dist/dispatch/RouteRegistry.js.map +1 -1
- package/dist/dispatch/RouteResolver.d.ts +2 -4
- package/dist/dispatch/RouteResolver.d.ts.map +1 -1
- package/dist/dispatch/StorageGuard.d.ts +8 -7
- package/dist/dispatch/StorageGuard.d.ts.map +1 -1
- package/dist/dispatch/StorageGuard.js +61 -18
- package/dist/dispatch/StorageGuard.js.map +1 -1
- package/dist/dispatch/presenterArguments.d.ts +7 -0
- package/dist/dispatch/presenterArguments.d.ts.map +1 -0
- package/dist/dispatch/presenterArguments.js +12 -0
- package/dist/dispatch/presenterArguments.js.map +1 -0
- package/dist/dispatch/remoteRoutes.d.ts +7 -0
- package/dist/dispatch/remoteRoutes.d.ts.map +1 -0
- package/dist/dispatch/{RemoteRouteResolver.js → remoteRoutes.js} +6 -10
- package/dist/dispatch/remoteRoutes.js.map +1 -0
- package/dist/dispatch/routeNotFound.d.ts +9 -0
- package/dist/dispatch/routeNotFound.d.ts.map +1 -0
- package/dist/dispatch/routeNotFound.js +21 -0
- package/dist/dispatch/routeNotFound.js.map +1 -0
- package/dist/dispatch/validateInput.d.ts +5 -0
- package/dist/dispatch/validateInput.d.ts.map +1 -0
- package/dist/dispatch/validateInput.js +20 -0
- package/dist/dispatch/validateInput.js.map +1 -0
- package/dist/effective-operation.d.ts +1 -24
- package/dist/effective-operation.d.ts.map +1 -1
- package/dist/effective-operation.js +21 -50
- package/dist/effective-operation.js.map +1 -1
- package/dist/emit.d.ts +4 -42
- package/dist/emit.d.ts.map +1 -1
- package/dist/emit.js +3 -39
- package/dist/emit.js.map +1 -1
- package/dist/entry/facade.d.ts +8 -0
- package/dist/entry/facade.d.ts.map +1 -0
- package/dist/entry/facade.js +28 -0
- package/dist/entry/facade.js.map +1 -0
- package/dist/entry/transport.d.ts +5 -0
- package/dist/entry/transport.d.ts.map +1 -0
- package/dist/entry/transport.js +11 -0
- package/dist/entry/transport.js.map +1 -0
- package/dist/frond-config.d.ts +7 -70
- package/dist/frond-config.d.ts.map +1 -1
- package/dist/frond-config.js +1 -9
- package/dist/frond-config.js.map +1 -1
- package/dist/identity-keys.d.ts +2 -5
- package/dist/identity-keys.d.ts.map +1 -1
- package/dist/identity-keys.js +3 -16
- package/dist/identity-keys.js.map +1 -1
- package/dist/identity.d.ts +4 -30
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +11 -73
- package/dist/identity.js.map +1 -1
- package/dist/imports.d.ts +1 -7
- package/dist/imports.d.ts.map +1 -1
- package/dist/imports.js +1 -7
- package/dist/imports.js.map +1 -1
- package/dist/index.d.ts +17 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -18
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +1 -8
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +1 -8
- package/dist/loader.js.map +1 -1
- package/dist/node.d.ts +2 -11
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2 -11
- package/dist/node.js.map +1 -1
- package/dist/prefab/collector.d.ts +1 -22
- package/dist/prefab/collector.d.ts.map +1 -1
- package/dist/prefab/collector.js +1 -22
- package/dist/prefab/collector.js.map +1 -1
- package/dist/prefab/crud.d.ts +16 -32
- package/dist/prefab/crud.d.ts.map +1 -1
- package/dist/prefab/crud.js +31 -58
- package/dist/prefab/crud.js.map +1 -1
- package/dist/prefab/mirror.d.ts +2 -24
- package/dist/prefab/mirror.d.ts.map +1 -1
- package/dist/prefab/mirror.js +2 -20
- package/dist/prefab/mirror.js.map +1 -1
- package/dist/prefab/prefab.d.ts +1 -7
- package/dist/prefab/prefab.d.ts.map +1 -1
- package/dist/prefab/prefab.js +1 -7
- package/dist/prefab/prefab.js.map +1 -1
- package/dist/prefab/presenter.d.ts +2 -36
- package/dist/prefab/presenter.d.ts.map +1 -1
- package/dist/prefab/presenter.js +2 -36
- package/dist/prefab/presenter.js.map +1 -1
- package/dist/prefab/repository.d.ts +5 -73
- package/dist/prefab/repository.d.ts.map +1 -1
- package/dist/prefab/repository.js +3 -16
- package/dist/prefab/repository.js.map +1 -1
- package/dist/scan/adapters.d.ts +3 -0
- package/dist/scan/adapters.d.ts.map +1 -0
- package/dist/scan/adapters.js +25 -0
- package/dist/scan/adapters.js.map +1 -0
- package/dist/scan/bundling.d.ts +1 -12
- package/dist/scan/bundling.d.ts.map +1 -1
- package/dist/scan/bundling.js +1 -12
- package/dist/scan/bundling.js.map +1 -1
- package/dist/scan/conventions.d.ts +6 -40
- package/dist/scan/conventions.d.ts.map +1 -1
- package/dist/scan/conventions.js +5 -34
- package/dist/scan/conventions.js.map +1 -1
- package/dist/scan/emit.d.ts +1 -5
- package/dist/scan/emit.d.ts.map +1 -1
- package/dist/scan/emit.js +4 -38
- package/dist/scan/emit.js.map +1 -1
- package/dist/scan/handler-parser.d.ts +4 -26
- package/dist/scan/handler-parser.d.ts.map +1 -1
- package/dist/scan/handler-parser.js +26 -83
- package/dist/scan/handler-parser.js.map +1 -1
- package/dist/scan/result.d.ts +3 -16
- package/dist/scan/result.d.ts.map +1 -1
- package/dist/scan/scanner.d.ts +2 -27
- package/dist/scan/scanner.d.ts.map +1 -1
- package/dist/scan/scanner.js +28 -127
- package/dist/scan/scanner.js.map +1 -1
- package/dist/scan/statement.d.ts.map +1 -1
- package/dist/scan/statement.js +4 -30
- package/dist/scan/statement.js.map +1 -1
- package/dist/source.d.ts +41 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +10 -0
- package/dist/source.js.map +1 -0
- package/dist/storage.d.ts +13 -210
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +4 -68
- package/dist/storage.js.map +1 -1
- package/dist/store.d.ts +18 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +146 -0
- package/dist/store.js.map +1 -0
- package/dist/verify.d.ts +5 -38
- package/dist/verify.d.ts.map +1 -1
- package/dist/verify.js +17 -37
- package/dist/verify.js.map +1 -1
- package/dist/wire/CallLog.d.ts +32 -0
- package/dist/wire/CallLog.d.ts.map +1 -0
- package/dist/{contract → wire}/CallLog.js.map +1 -1
- package/dist/wire/Invocation.d.ts +32 -0
- package/dist/wire/Invocation.d.ts.map +1 -0
- package/dist/wire/Invocation.js +66 -0
- package/dist/wire/Invocation.js.map +1 -0
- package/dist/{contract → wire}/RouteAddress.d.ts +5 -0
- package/dist/wire/RouteAddress.d.ts.map +1 -0
- package/dist/{contract → wire}/RouteAddress.js +7 -0
- package/dist/wire/RouteAddress.js.map +1 -0
- package/dist/wire/binding.d.ts +5 -21
- package/dist/wire/binding.d.ts.map +1 -1
- package/dist/wire/binding.js +5 -10
- package/dist/wire/binding.js.map +1 -1
- package/dist/wire/call.d.ts +24 -133
- package/dist/wire/call.d.ts.map +1 -1
- package/dist/wire/call.js +15 -41
- package/dist/wire/call.js.map +1 -1
- package/dist/wire/drift.d.ts +3 -28
- package/dist/wire/drift.d.ts.map +1 -1
- package/dist/wire/drift.js +4 -23
- package/dist/wire/drift.js.map +1 -1
- package/dist/wire/errors.d.ts +4 -24
- package/dist/wire/errors.d.ts.map +1 -1
- package/dist/wire/errors.js +4 -24
- package/dist/wire/errors.js.map +1 -1
- package/dist/wire/http-error.d.ts +2 -13
- package/dist/wire/http-error.d.ts.map +1 -1
- package/dist/wire/http-error.js +5 -19
- package/dist/wire/http-error.js.map +1 -1
- package/dist/wire/loggerMiddleware.d.ts +2 -8
- package/dist/wire/loggerMiddleware.d.ts.map +1 -1
- package/dist/wire/loggerMiddleware.js +1 -7
- package/dist/wire/loggerMiddleware.js.map +1 -1
- package/dist/wire/middleware.d.ts +3 -7
- package/dist/wire/middleware.d.ts.map +1 -1
- package/dist/wire/middleware.js +1 -5
- package/dist/wire/middleware.js.map +1 -1
- package/dist/wire/operation.d.ts +7 -43
- package/dist/wire/operation.d.ts.map +1 -1
- package/dist/wire/operation.js +4 -15
- package/dist/wire/operation.js.map +1 -1
- package/dist/wire/signature.d.ts +4 -25
- package/dist/wire/signature.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/boot/Emissions.ts +21 -118
- package/src/boot/ambient-port.ts +3 -24
- package/src/boot/ambient.als.ts +7 -12
- package/src/boot/ambient.queue.ts +2 -5
- package/src/boot/apply.ts +3 -15
- package/src/boot/auth.ts +2 -12
- package/src/boot/boot.ts +5 -20
- package/src/boot/bootstrap.ts +69 -136
- package/src/boot/card.ts +4 -33
- package/src/boot/frame.ts +28 -62
- package/src/boot/hosted.ts +12 -34
- package/src/boot/ownership.ts +5 -39
- package/src/boot/ports.ts +1 -14
- package/src/boot/remote.ts +11 -58
- package/src/boot/runner.ts +5 -22
- package/src/boot/seed.ts +6 -37
- package/src/boot/statement-drift.ts +5 -24
- package/src/boot/together.ts +18 -51
- package/src/boot/types.ts +28 -173
- package/src/{builtins → builtin}/config.ts +1 -7
- package/src/{builtins → builtin}/logger.ts +6 -39
- package/src/config-loader.ts +12 -71
- package/src/contract.ts +15 -39
- package/src/crypto/encoding.ts +2 -15
- package/src/crypto/node.ts +1 -7
- package/src/crypto/port.ts +2 -18
- package/src/crypto/webcrypto.ts +1 -12
- package/src/declare.ts +8 -39
- package/src/define.ts +2 -3
- package/src/descriptor/Fronds.ts +6 -31
- package/src/descriptor/frond.ts +14 -63
- package/src/dispatch/ArgumentResolver.ts +6 -6
- package/src/dispatch/DispatchEvent.ts +2 -2
- package/src/dispatch/DispatchLifecycle.ts +1 -7
- package/src/dispatch/DispatchPort.ts +1 -1
- package/src/dispatch/Dispatcher.ts +3 -3
- package/src/dispatch/HandlerFacade.ts +231 -0
- package/src/dispatch/LocalRoutePolicy.ts +4 -4
- package/src/dispatch/OperationRoute.ts +2 -2
- package/src/dispatch/OutputView.ts +24 -2
- package/src/dispatch/Route.ts +2 -2
- package/src/dispatch/RoutePolicy.ts +1 -1
- package/src/dispatch/RouteRegistry.ts +2 -2
- package/src/dispatch/RouteResolver.ts +2 -4
- package/src/dispatch/StorageGuard.ts +70 -18
- package/src/dispatch/presenterArguments.ts +25 -0
- package/src/dispatch/{RemoteRouteResolver.ts → remoteRoutes.ts} +7 -9
- package/src/dispatch/routeNotFound.ts +33 -0
- package/src/dispatch/validateInput.ts +28 -0
- package/src/effective-operation.ts +21 -50
- package/src/emit.ts +5 -63
- package/src/entry/facade.ts +44 -0
- package/src/entry/transport.ts +16 -0
- package/src/frond-config.ts +7 -70
- package/src/identity-keys.ts +3 -16
- package/src/identity.ts +12 -80
- package/src/imports.ts +2 -31
- package/src/index.ts +17 -24
- package/src/loader.ts +2 -16
- package/src/node.ts +2 -11
- package/src/prefab/collector.ts +1 -22
- package/src/prefab/crud.ts +37 -76
- package/src/prefab/mirror.ts +4 -44
- package/src/prefab/prefab.ts +2 -21
- package/src/prefab/presenter.ts +2 -36
- package/src/prefab/repository.ts +7 -83
- package/src/scan/adapters.ts +32 -0
- package/src/scan/bundling.ts +1 -12
- package/src/scan/conventions.ts +6 -40
- package/src/scan/emit.ts +4 -38
- package/src/scan/handler-parser.ts +27 -96
- package/src/scan/result.ts +3 -16
- package/src/scan/scanner.ts +27 -126
- package/src/scan/statement.ts +4 -30
- package/src/source.ts +44 -0
- package/src/storage.ts +14 -234
- package/src/store.ts +152 -0
- package/src/verify.ts +16 -57
- package/src/wire/CallLog.ts +30 -0
- package/src/{contract → wire}/Invocation.ts +24 -17
- package/src/{contract → wire}/RouteAddress.ts +7 -0
- package/src/wire/binding.ts +9 -25
- package/src/wire/call.ts +30 -133
- package/src/wire/drift.ts +5 -30
- package/src/wire/errors.ts +4 -24
- package/src/wire/http-error.ts +5 -19
- package/src/wire/loggerMiddleware.ts +2 -8
- package/src/wire/middleware.ts +3 -7
- package/src/wire/operation.ts +8 -48
- package/src/wire/signature.ts +4 -25
- package/dist/boot/HandlerFacade.d.ts.map +0 -1
- package/dist/boot/HandlerFacade.js.map +0 -1
- package/dist/builtins/config.d.ts +0 -13
- package/dist/builtins/config.d.ts.map +0 -1
- package/dist/builtins/config.js +0 -21
- package/dist/builtins/config.js.map +0 -1
- package/dist/builtins/logger.d.ts.map +0 -1
- package/dist/builtins/logger.js.map +0 -1
- package/dist/contract/Call.d.ts +0 -10
- package/dist/contract/Call.d.ts.map +0 -1
- package/dist/contract/Call.js +0 -15
- package/dist/contract/Call.js.map +0 -1
- package/dist/contract/CallLog.d.ts +0 -57
- package/dist/contract/CallLog.d.ts.map +0 -1
- package/dist/contract/Invocation.d.ts +0 -27
- package/dist/contract/Invocation.d.ts.map +0 -1
- package/dist/contract/Invocation.js +0 -59
- package/dist/contract/Invocation.js.map +0 -1
- package/dist/contract/RouteAddress.d.ts.map +0 -1
- package/dist/contract/RouteAddress.js.map +0 -1
- package/dist/dispatch/InputValidator.d.ts +0 -7
- package/dist/dispatch/InputValidator.d.ts.map +0 -1
- package/dist/dispatch/InputValidator.js +0 -22
- package/dist/dispatch/InputValidator.js.map +0 -1
- package/dist/dispatch/OperationExecutor.d.ts +0 -25
- package/dist/dispatch/OperationExecutor.d.ts.map +0 -1
- package/dist/dispatch/OperationExecutor.js +0 -32
- package/dist/dispatch/OperationExecutor.js.map +0 -1
- package/dist/dispatch/OutputProjector.d.ts +0 -12
- package/dist/dispatch/OutputProjector.d.ts.map +0 -1
- package/dist/dispatch/OutputProjector.js +0 -30
- package/dist/dispatch/OutputProjector.js.map +0 -1
- package/dist/dispatch/PresenterArgumentResolver.d.ts +0 -12
- package/dist/dispatch/PresenterArgumentResolver.d.ts.map +0 -1
- package/dist/dispatch/PresenterArgumentResolver.js +0 -20
- package/dist/dispatch/PresenterArgumentResolver.js.map +0 -1
- package/dist/dispatch/RemoteRouteResolver.d.ts +0 -13
- package/dist/dispatch/RemoteRouteResolver.d.ts.map +0 -1
- package/dist/dispatch/RemoteRouteResolver.js.map +0 -1
- package/dist/dispatch/RouteNotFoundError.d.ts +0 -10
- package/dist/dispatch/RouteNotFoundError.d.ts.map +0 -1
- package/dist/dispatch/RouteNotFoundError.js +0 -24
- package/dist/dispatch/RouteNotFoundError.js.map +0 -1
- package/dist/entry/DynamicFacade.d.ts +0 -10
- package/dist/entry/DynamicFacade.d.ts.map +0 -1
- package/dist/entry/DynamicFacade.js +0 -27
- package/dist/entry/DynamicFacade.js.map +0 -1
- package/dist/entry/FacadeEntry.d.ts +0 -11
- package/dist/entry/FacadeEntry.d.ts.map +0 -1
- package/dist/entry/FacadeEntry.js +0 -26
- package/dist/entry/FacadeEntry.js.map +0 -1
- package/dist/entry/TransportEntry.d.ts +0 -13
- package/dist/entry/TransportEntry.d.ts.map +0 -1
- package/dist/entry/TransportEntry.js +0 -24
- package/dist/entry/TransportEntry.js.map +0 -1
- package/dist/rows.d.ts +0 -40
- package/dist/rows.d.ts.map +0 -1
- package/dist/rows.js +0 -146
- package/dist/rows.js.map +0 -1
- package/src/boot/HandlerFacade.ts +0 -242
- package/src/contract/Call.ts +0 -18
- package/src/contract/CallLog.ts +0 -55
- package/src/dispatch/InputValidator.ts +0 -28
- package/src/dispatch/OperationExecutor.ts +0 -60
- package/src/dispatch/OutputProjector.ts +0 -32
- package/src/dispatch/PresenterArgumentResolver.ts +0 -25
- package/src/dispatch/RouteNotFoundError.ts +0 -29
- package/src/entry/DynamicFacade.ts +0 -28
- package/src/entry/FacadeEntry.ts +0 -32
- package/src/entry/TransportEntry.ts +0 -30
- package/src/rows.ts +0 -155
- /package/dist/{contract → wire}/CallLog.js +0 -0
package/dist/wire/call.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Call contract — a frond call is a value.
|
|
3
|
-
*
|
|
4
|
-
* (frond, entity, op, invocation) → result, or a thrown FougereError.
|
|
5
|
-
* A transport is a function that executes this call elsewhere; the local
|
|
6
|
-
* runner below is the reference realization. Transports move the value,
|
|
7
|
-
* they never reshape it.
|
|
8
|
-
*/
|
|
1
|
+
/** Call contract — a frond call is a value. */
|
|
9
2
|
import { type SchemaDescriptor } from '@fougere/schema';
|
|
10
|
-
import type
|
|
3
|
+
import { Invocation, type InvocationContext, type PartialInvocation } from './Invocation.js';
|
|
4
|
+
import type { RouteAddress } from './RouteAddress.js';
|
|
5
|
+
/** One normalized request, frozen: where it goes and what the caller supplied. */
|
|
6
|
+
export declare class Call {
|
|
7
|
+
readonly address: RouteAddress;
|
|
8
|
+
readonly invocation: Invocation;
|
|
9
|
+
constructor(address: RouteAddress, invocation?: PartialInvocation);
|
|
10
|
+
}
|
|
11
11
|
/** Target of a call — which façade operation, wherever it lives. */
|
|
12
12
|
export interface FrondCall {
|
|
13
13
|
/** Frond name, when the caller knows it. Routing hint only. */
|
|
@@ -20,45 +20,23 @@ export interface FrondCall {
|
|
|
20
20
|
/** A transport executes a call somewhere else. Failures surface as thrown FougereError. */
|
|
21
21
|
export type Transport = (call: FrondCall, invocation: InvocationContext) => Promise<unknown>;
|
|
22
22
|
/** Reserved namespace — calls the runner answers itself, never a façade. */
|
|
23
|
-
/**
|
|
24
|
-
* What a receiver accepts before it stops reading a body.
|
|
25
|
-
*
|
|
26
|
-
* Stated once because it was stated FOUR times — `transport/http/policy.ts` said so in its
|
|
27
|
-
* own comment ("spelled in four packages") while three doors kept their own literal, so
|
|
28
|
-
* raising the cap here used to leave three of them refusing at the old one.
|
|
29
|
-
*
|
|
30
|
-
* `@fougere/http` keeps a fourth copy on purpose: it declares no Fougere dependency at all,
|
|
31
|
-
* and giving a leaf port a dependency on the kernel to share a number is the wrong trade.
|
|
32
|
-
*/
|
|
23
|
+
/** What a receiver accepts before it stops reading an input. */
|
|
33
24
|
export declare const MAX_BODY_BYTES: number;
|
|
34
25
|
export declare const RPC_ENTITY = "rpc";
|
|
35
|
-
/**
|
|
36
|
-
* What an `rpc` op answers — the door for what the app says about ITSELF, never about a row.
|
|
37
|
-
*
|
|
38
|
-
* `discover` is core's own, registered like any other (`bootstrap.ts`): a package declares
|
|
39
|
-
* its reading beside it, and an app that installed none serves none.
|
|
40
|
-
*/
|
|
26
|
+
/** What an `rpc` op answers — the door for what the app says about ITSELF, never about a row. */
|
|
41
27
|
export type RpcAnswer = (invocation: InvocationContext, surface?: string) => unknown;
|
|
42
|
-
/**
|
|
43
|
-
* Everything a caller's envelope covers — the call as the sender meant it.
|
|
44
|
-
*
|
|
45
|
-
* Here and not beside the signing code because it is a CONTRACT: the sender binds it,
|
|
46
|
-
* the receiver re-presents what arrived, and a frond written in another language reads
|
|
47
|
-
* this shape without reading our crypto. `body` is bound by digest (arbitrary, possibly
|
|
48
|
-
* large), the rest by value — which is what keeps a canonical-JSON dependency out.
|
|
49
|
-
*/
|
|
28
|
+
/** Everything a caller's envelope covers — the call as the sender meant it. */
|
|
50
29
|
export interface SignedCall {
|
|
51
30
|
entity: string;
|
|
52
31
|
op: string;
|
|
53
32
|
params?: Record<string, unknown>;
|
|
54
33
|
query?: Record<string, unknown>;
|
|
55
|
-
|
|
34
|
+
input?: unknown;
|
|
56
35
|
state?: Record<string, unknown>;
|
|
57
36
|
}
|
|
58
37
|
/**
|
|
59
|
-
* One operation, as a stranger meets it — its name, what it is for, what it takes
|
|
60
|
-
*
|
|
61
|
-
* it just never left the process.
|
|
38
|
+
* One operation, as a stranger meets it — its name, what it is for, what it takes and whether it
|
|
39
|
+
* reads or writes.
|
|
62
40
|
*/
|
|
63
41
|
export interface CardOp {
|
|
64
42
|
name: string;
|
|
@@ -70,56 +48,20 @@ export interface CardOp {
|
|
|
70
48
|
output?: SchemaDescriptor;
|
|
71
49
|
/** `query` reads, `command` writes — the same call REST turns into GET vs POST. */
|
|
72
50
|
kind: 'query' | 'command';
|
|
73
|
-
/**
|
|
74
|
-
* How much `output` describes: one row, maybe one, many, a page, or nothing shaped.
|
|
75
|
-
* `output` alone is the shape of a ROW, so a consumer generating a signature from
|
|
76
|
-
* this card would otherwise have to guess — and `list` returning a page rather than
|
|
77
|
-
* an array is exactly the guess it would get wrong.
|
|
78
|
-
*/
|
|
51
|
+
/** How much `output` describes. */
|
|
79
52
|
cardinality?: 'one' | 'maybe' | 'many' | 'page' | 'none';
|
|
80
53
|
}
|
|
81
|
-
/**
|
|
82
|
-
* What an app hosts — the wire projection of its scanned fronds.
|
|
83
|
-
*
|
|
84
|
-
* Two lists per frond, and they are duals: **what you may call**, and **what you will
|
|
85
|
-
* receive**. A door is entered from outside; a fact leaves on its own.
|
|
86
|
-
*
|
|
87
|
-
* `doors` was called `entities` and the name lied: an entry is an ADDRESS, and the shape
|
|
88
|
-
* behind it is optional (`facadeKeyOf` builds its key from a handler's name, which need not
|
|
89
|
-
* be an entity's). The lie cost something real — `fougere sync` demanded a descriptor on
|
|
90
|
-
* every entry and refused whole cards over a health check.
|
|
91
|
-
*/
|
|
54
|
+
/** What an app hosts — the wire projection of its scanned fronds. */
|
|
92
55
|
export interface IdentityCard {
|
|
93
56
|
fronds: {
|
|
94
57
|
name: string;
|
|
95
58
|
doors: {
|
|
96
59
|
name: string;
|
|
97
60
|
ops: CardOp[];
|
|
98
|
-
/**
|
|
99
|
-
* The shape stored under this name — **absent when nothing is**. A handler may
|
|
100
|
-
* carry no entity (`bootstrap`: *pointing at nothing is legal*), and a door with
|
|
101
|
-
* no rows behind it is ordinary: a health check, a computation, a search across
|
|
102
|
-
* several shapes. A reader that needs the shape must say what it does without one.
|
|
103
|
-
*/
|
|
61
|
+
/** The shape stored under this name — **absent when nothing is**. */
|
|
104
62
|
schema?: SchemaDescriptor;
|
|
105
63
|
}[];
|
|
106
|
-
/**
|
|
107
|
-
* The facts this frond ANNOUNCES — one entry per `Emit<T>` its handlers inject.
|
|
108
|
-
*
|
|
109
|
-
* They carry no operation, which is why they cannot ride in `doors`: the rule there is
|
|
110
|
-
* *hosting means answering*, and an entity with no façade is excluded on purpose (it
|
|
111
|
-
* would publish the auth tables to anyone who asks). A fact is the opposite case —
|
|
112
|
-
* someone WROTE that it leaves, so publishing its shape is honouring a statement, not
|
|
113
|
-
* leaking one.
|
|
114
|
-
*
|
|
115
|
-
* Without this, a fact stopped at the repository boundary: `remotes:` gives the
|
|
116
|
-
* location, colocation gives the contract, and across two repositories there is no
|
|
117
|
-
* colocation. The subscriber had to hand-copy the emitter's declaration.
|
|
118
|
-
*
|
|
119
|
-
* `schema` is absent when the announced type is not a declared entity — legal (nothing
|
|
120
|
-
* requires a fact to be one) and worth saying rather than hiding: the name travels, the
|
|
121
|
-
* shape does not, and a consumer can see exactly that.
|
|
122
|
-
*/
|
|
64
|
+
/** The facts this frond ANNOUNCES — one entry per `Emit<T>` its handlers inject. */
|
|
123
65
|
facts: {
|
|
124
66
|
name: string;
|
|
125
67
|
schema?: SchemaDescriptor;
|
|
@@ -140,17 +82,7 @@ export interface Edge {
|
|
|
140
82
|
count: number;
|
|
141
83
|
errors: number;
|
|
142
84
|
}
|
|
143
|
-
/**
|
|
144
|
-
* The shape of the system as ONE process discovered it — the answer to `rpc.topology`.
|
|
145
|
-
*
|
|
146
|
-
* Here and not in the package that produces it, for the reason `SignedCall` is here: it
|
|
147
|
-
* crosses a process boundary, so a reader consumes it without depending on the producer.
|
|
148
|
-
* `@fougere/observability` fills it; a panel reads it; neither imports the other.
|
|
149
|
-
*
|
|
150
|
-
* Nothing in it is declared — a frond is `local` because this process scanned it, `remote`
|
|
151
|
-
* because it answered a call nobody here hosts. `remotes:` states an intent, and the two
|
|
152
|
-
* disagree exactly when something is misconfigured.
|
|
153
|
-
*/
|
|
85
|
+
/** The shape of the system as ONE process discovered it — the answer to `rpc.topology`. */
|
|
154
86
|
export interface TopologyReport {
|
|
155
87
|
/** When this process started counting — an edge count is read against it. */
|
|
156
88
|
since: number;
|
|
@@ -159,56 +91,15 @@ export interface TopologyReport {
|
|
|
159
91
|
fronds: FrondPlacement[];
|
|
160
92
|
edges: Edge[];
|
|
161
93
|
}
|
|
162
|
-
/**
|
|
163
|
-
* The shape a card must have to be walked — `fronds`, and each frond's `doors`.
|
|
164
|
-
*
|
|
165
|
-
* A card crosses a process boundary, so it is judged like anything else that does.
|
|
166
|
-
* The check lives beside the type because two readers walk it: the boot indexes a
|
|
167
|
-
* remote's doors, and `fougere sync` writes classes from them. `TypeError:
|
|
168
|
-
* card.fronds is not iterable` was what a malformed card produced at the boot,
|
|
169
|
-
* naming neither the remote nor the address.
|
|
170
|
-
*
|
|
171
|
-
* The descriptor behind a door is NOT checked here — `Card.toSchema` refuses it, and
|
|
172
|
-
* only where one is consumed.
|
|
173
|
-
*/
|
|
94
|
+
/** The shape a card must have to be walked — `fronds`, and each frond's `doors`. */
|
|
174
95
|
export declare function assertIdentityCard(value: unknown, source: string): IdentityCard;
|
|
175
96
|
/** A façade as the runtime holds it: op names to functions, nothing typed about them. */
|
|
176
|
-
/**
|
|
177
|
-
* The door built in front of a handler — the framework's second port, after `Storage`.
|
|
178
|
-
*
|
|
179
|
-
* `Facade<PostHandler>` is what a neighbouring frond injects. It names what ARRIVES
|
|
180
|
-
* rather than what is written: never the handler (nobody injects it, and its methods take
|
|
181
|
-
* positional arguments), but the door, whose every op takes the invocation and whose
|
|
182
|
-
* implementation is the local façade or a doublure. A signature therefore says nothing
|
|
183
|
-
* about where the other frond runs, which is the whole point.
|
|
184
|
-
*
|
|
185
|
-
* `keyof T` is the right set by construction, not by approximation: the scan skips
|
|
186
|
-
* `private` and `protected` (`handler-parser.ts`) because "TypeScript already has the
|
|
187
|
-
* word for it", so a handler's public methods ARE its operations — and `keyof` excludes
|
|
188
|
-
* the rest for the same reason.
|
|
189
|
-
*/
|
|
97
|
+
/** The door built in front of a handler — the framework's second port, after `Storage`. */
|
|
190
98
|
export type Facade<T> = {
|
|
191
99
|
[K in keyof T]: T[K] extends (...args: never[]) => infer R ? (invocation?: InvocationContext) => R : never;
|
|
192
100
|
};
|
|
193
|
-
/**
|
|
194
|
-
* The container key of a façade — THE one place that spells the format.
|
|
195
|
-
*
|
|
196
|
-
* A surface is a named audience, and it is a key: `handlers/public/PostHandler.ts`
|
|
197
|
-
* registers `public:postHandler` next to the default `postHandler`. The default
|
|
198
|
-
* surface is the empty key, so callers that know nothing about surfaces keep
|
|
199
|
-
* designating exactly what they designated before.
|
|
200
|
-
*
|
|
201
|
-
* Nobody outside this package builds this string: adapters ask `app.facadeFor()`,
|
|
202
|
-
* which is why an adapter can stay structurally typed and core-free.
|
|
203
|
-
*/
|
|
101
|
+
/** The container key of a façade — THE one place that spells the format. */
|
|
204
102
|
export declare function facadeKeyOf(entityName: string, surface?: string): string;
|
|
205
|
-
/**
|
|
206
|
-
* Where the contracts behind a façade live — the dual of `facadeKeyOf`.
|
|
207
|
-
*
|
|
208
|
-
* The façade answers calls; it does not say what it answers. That sentence used
|
|
209
|
-
* to be true only inside `buildFacade`, so anything asking the app what it hosts
|
|
210
|
-
* got bare names. A door and its terms are registered together, under the same
|
|
211
|
-
* audience.
|
|
212
|
-
*/
|
|
103
|
+
/** Where the contracts behind a façade live — the dual of `facadeKeyOf`. */
|
|
213
104
|
export declare function contractsKeyOf(entityName: string, surface?: string): string;
|
|
214
105
|
//# sourceMappingURL=call.d.ts.map
|
package/dist/wire/call.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/wire/call.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,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2FAA2F;AAC3F,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,CAS/E;AAYD,yFAAyF;AAEzF,2FAA2F;AAC3F,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,MAAM,CAAC,GACtD,CAAC,UAAU,CAAC,EAAE,iBAAiB,KAAK,CAAC,GACrC,KAAK;CACV,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3E"}
|
package/dist/wire/call.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
+
import { Invocation } from './Invocation.js';
|
|
1
2
|
import { FougereError, ErrorCode } from './errors.js';
|
|
3
|
+
/** One normalized request, frozen: where it goes and what the caller supplied. */
|
|
4
|
+
export class Call {
|
|
5
|
+
address;
|
|
6
|
+
invocation;
|
|
7
|
+
constructor(address, invocation) {
|
|
8
|
+
this.address = address;
|
|
9
|
+
this.invocation = Invocation.from(invocation);
|
|
10
|
+
Object.freeze(this);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
2
13
|
/** Reserved namespace — calls the runner answers itself, never a façade. */
|
|
3
|
-
/**
|
|
4
|
-
* What a receiver accepts before it stops reading a body.
|
|
5
|
-
*
|
|
6
|
-
* Stated once because it was stated FOUR times — `transport/http/policy.ts` said so in its
|
|
7
|
-
* own comment ("spelled in four packages") while three doors kept their own literal, so
|
|
8
|
-
* raising the cap here used to leave three of them refusing at the old one.
|
|
9
|
-
*
|
|
10
|
-
* `@fougere/http` keeps a fourth copy on purpose: it declares no Fougere dependency at all,
|
|
11
|
-
* and giving a leaf port a dependency on the kernel to share a number is the wrong trade.
|
|
12
|
-
*/
|
|
14
|
+
/** What a receiver accepts before it stops reading an input. */
|
|
13
15
|
export const MAX_BODY_BYTES = 1024 * 1024;
|
|
14
16
|
export const RPC_ENTITY = 'rpc';
|
|
15
|
-
/**
|
|
16
|
-
* The shape a card must have to be walked — `fronds`, and each frond's `doors`.
|
|
17
|
-
*
|
|
18
|
-
* A card crosses a process boundary, so it is judged like anything else that does.
|
|
19
|
-
* The check lives beside the type because two readers walk it: the boot indexes a
|
|
20
|
-
* remote's doors, and `fougere sync` writes classes from them. `TypeError:
|
|
21
|
-
* card.fronds is not iterable` was what a malformed card produced at the boot,
|
|
22
|
-
* naming neither the remote nor the address.
|
|
23
|
-
*
|
|
24
|
-
* The descriptor behind a door is NOT checked here — `Card.toSchema` refuses it, and
|
|
25
|
-
* only where one is consumed.
|
|
26
|
-
*/
|
|
17
|
+
/** The shape a card must have to be walked — `fronds`, and each frond's `doors`. */
|
|
27
18
|
export function assertIdentityCard(value, source) {
|
|
28
19
|
const card = value;
|
|
29
20
|
const fronds = Array.isArray(card?.fronds) ? card.fronds : undefined;
|
|
@@ -45,28 +36,11 @@ function cardRefusal(source, what) {
|
|
|
45
36
|
+ ` - Check that the address serves a Fougere app, and that its version still speaks this card.`,
|
|
46
37
|
});
|
|
47
38
|
}
|
|
48
|
-
/**
|
|
49
|
-
* The container key of a façade — THE one place that spells the format.
|
|
50
|
-
*
|
|
51
|
-
* A surface is a named audience, and it is a key: `handlers/public/PostHandler.ts`
|
|
52
|
-
* registers `public:postHandler` next to the default `postHandler`. The default
|
|
53
|
-
* surface is the empty key, so callers that know nothing about surfaces keep
|
|
54
|
-
* designating exactly what they designated before.
|
|
55
|
-
*
|
|
56
|
-
* Nobody outside this package builds this string: adapters ask `app.facadeFor()`,
|
|
57
|
-
* which is why an adapter can stay structurally typed and core-free.
|
|
58
|
-
*/
|
|
39
|
+
/** The container key of a façade — THE one place that spells the format. */
|
|
59
40
|
export function facadeKeyOf(entityName, surface) {
|
|
60
41
|
return surface ? `${surface}:${entityName}Handler` : `${entityName}Handler`;
|
|
61
42
|
}
|
|
62
|
-
/**
|
|
63
|
-
* Where the contracts behind a façade live — the dual of `facadeKeyOf`.
|
|
64
|
-
*
|
|
65
|
-
* The façade answers calls; it does not say what it answers. That sentence used
|
|
66
|
-
* to be true only inside `buildFacade`, so anything asking the app what it hosts
|
|
67
|
-
* got bare names. A door and its terms are registered together, under the same
|
|
68
|
-
* audience.
|
|
69
|
-
*/
|
|
43
|
+
/** Where the contracts behind a façade live — the dual of `facadeKeyOf`. */
|
|
70
44
|
export function contractsKeyOf(entityName, surface) {
|
|
71
45
|
return `${facadeKeyOf(entityName, surface)}:contracts`;
|
|
72
46
|
}
|
package/dist/wire/call.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/wire/call.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/wire/call.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAkD,MAAM,iBAAiB,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEtD,kFAAkF;AAClF,MAAM,OAAO,IAAI;IACN,OAAO,CAAe;IACtB,UAAU,CAAa;IAEhC,YAAY,OAAqB,EAAE,UAA8B;QAC/D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAA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AC9D,OAAO,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,UAAU,SAAS,CAAC,CAAC,CAAC,GAAG,UAAU,SAAS,CAAC;AAC9E,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,cAAc,CAAC,UAAkB,EAAE,OAAgB;IACjE,OAAO,GAAG,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC;AACzD,CAAC"}
|
package/dist/wire/drift.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type Change } from '@fougere/schema';
|
|
2
2
|
import type { IdentityCard } from './call.js';
|
|
3
|
-
/**
|
|
4
|
-
* What separates the copy a consumer holds from what the producer actually serves.
|
|
5
|
-
*
|
|
6
|
-
* It lives beside `IdentityCard` and not in `@fougere/testing` for the reason the card
|
|
7
|
-
* itself does: the subject is the card, and a second reader arrived — the dev panel, which
|
|
8
|
-
* must not drag a 426 KB faker in to compare two of them.
|
|
9
|
-
*/
|
|
3
|
+
/** What separates the copy a consumer holds from what the producer actually serves. */
|
|
10
4
|
export interface CardDrift {
|
|
11
5
|
frond: string;
|
|
12
6
|
/** A door the consumer calls that the producer no longer serves. */
|
|
@@ -27,29 +21,10 @@ export interface CardDrift {
|
|
|
27
21
|
changes: Change[] | 'gone';
|
|
28
22
|
}[];
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* What a consumer's synced copy no longer matches in what the producer serves.
|
|
32
|
-
*
|
|
33
|
-
* The gap TypeScript cannot see, and the only place the gradient genuinely lies: the code
|
|
34
|
-
* is identical in-process and split, but one side may have aged. `fougere sync` wrote the
|
|
35
|
-
* consumer's copy three weeks ago, the producer moved on, and it still compiles —
|
|
36
|
-
* production is where that is found today. This is what Pact sells; the material was
|
|
37
|
-
* already here, in `rpc.discover` and in `Card.diff`.
|
|
38
|
-
*
|
|
39
|
-
* Read in ONE direction on purpose: what the consumer holds, checked against what is
|
|
40
|
-
* served. A producer serving MORE than the consumer knows is not drift — it is a producer
|
|
41
|
-
* that moved forward without breaking anyone, which is the whole point of the order the
|
|
42
|
-
* repo already states (re-sync the readers, then deploy the sender).
|
|
43
|
-
*/
|
|
24
|
+
/** What a consumer's synced copy no longer matches in what the producer serves. */
|
|
44
25
|
export declare function driftOf(mine: IdentityCard, theirs: IdentityCard, frond: string): CardDrift;
|
|
45
26
|
/** Whether anything at all separates the two cards. */
|
|
46
27
|
export declare function agrees(drift: CardDrift): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* The drift, in the words a deploy needs.
|
|
49
|
-
*
|
|
50
|
-
* A fact says the order out loud, because the repo already states it as a rule and
|
|
51
|
-
* nothing enforced it: a fact is judged strictly, so a reader that has not been re-synced
|
|
52
|
-
* refuses what the sender now announces.
|
|
53
|
-
*/
|
|
28
|
+
/** The drift, in the words a deploy needs. */
|
|
54
29
|
export declare function explain(drift: CardDrift): string[];
|
|
55
30
|
//# sourceMappingURL=drift.d.ts.map
|
package/dist/wire/drift.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/wire/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAyB,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/wire/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAyB,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,uFAAuF;AACvF,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,mEAAmE;IACnE,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;IAC9C,gEAAgE;IAChE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;IAC9C,4EAA4E;IAC5E,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;CACvD;AAuBD,mFAAmF;AACnF,wBAAgB,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAgC1F;AAED,uDAAuD;AACvD,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAKhD;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,EAAE,CAYlD"}
|
package/dist/wire/drift.js
CHANGED
|
@@ -21,25 +21,12 @@ function factsOf(card, frond) {
|
|
|
21
21
|
}
|
|
22
22
|
return found;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* What a consumer's synced copy no longer matches in what the producer serves.
|
|
26
|
-
*
|
|
27
|
-
* The gap TypeScript cannot see, and the only place the gradient genuinely lies: the code
|
|
28
|
-
* is identical in-process and split, but one side may have aged. `fougere sync` wrote the
|
|
29
|
-
* consumer's copy three weeks ago, the producer moved on, and it still compiles —
|
|
30
|
-
* production is where that is found today. This is what Pact sells; the material was
|
|
31
|
-
* already here, in `rpc.discover` and in `Card.diff`.
|
|
32
|
-
*
|
|
33
|
-
* Read in ONE direction on purpose: what the consumer holds, checked against what is
|
|
34
|
-
* served. A producer serving MORE than the consumer knows is not drift — it is a producer
|
|
35
|
-
* that moved forward without breaking anyone, which is the whole point of the order the
|
|
36
|
-
* repo already states (re-sync the readers, then deploy the sender).
|
|
37
|
-
*/
|
|
24
|
+
/** What a consumer's synced copy no longer matches in what the producer serves. */
|
|
38
25
|
export function driftOf(mine, theirs, frond) {
|
|
39
|
-
const
|
|
26
|
+
const mineDoors = doorsOf(mine, frond);
|
|
40
27
|
const served = doorsOf(theirs, frond);
|
|
41
28
|
const drift = { frond, missingDoors: [], missingOps: [], shapes: [], facts: [] };
|
|
42
|
-
for (const [name, door] of
|
|
29
|
+
for (const [name, door] of mineDoors) {
|
|
43
30
|
const there = served.get(name);
|
|
44
31
|
if (!there) {
|
|
45
32
|
drift.missingDoors.push(name);
|
|
@@ -80,13 +67,7 @@ export function agrees(drift) {
|
|
|
80
67
|
&& drift.shapes.length === 0
|
|
81
68
|
&& drift.facts.length === 0;
|
|
82
69
|
}
|
|
83
|
-
/**
|
|
84
|
-
* The drift, in the words a deploy needs.
|
|
85
|
-
*
|
|
86
|
-
* A fact says the order out loud, because the repo already states it as a rule and
|
|
87
|
-
* nothing enforced it: a fact is judged strictly, so a reader that has not been re-synced
|
|
88
|
-
* refuses what the sender now announces.
|
|
89
|
-
*/
|
|
70
|
+
/** The drift, in the words a deploy needs. */
|
|
90
71
|
export function explain(drift) {
|
|
91
72
|
const lines = [];
|
|
92
73
|
for (const door of drift.missingDoors)
|
package/dist/wire/drift.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift.js","sourceRoot":"","sources":["../../src/wire/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAsC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"drift.js","sourceRoot":"","sources":["../../src/wire/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAsC,MAAM,iBAAiB,CAAC;AAgB3E,qCAAqC;AACrC,SAAS,OAAO,CAAC,IAAkB,EAAE,KAAa;IAChD,MAAM,KAAK,GAAG,IAAI,GAAG,EAA2D,CAAC;IACjF,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAC9B,IAAI,GAAG,CAAC,IAAI,KA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,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACtG,KAAK,UAAU,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,oBAAoB,CAAC;QAC5D,KAAK,UAAU,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC;QACzF,KAAK,UAAU,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,SAAS,MAAM,CAAC,IAAI,QAAQ,CAAC;IACtE,CAAC;AACH,CAAC"}
|
package/dist/wire/errors.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The error vocabulary — what a refusal IS, independently of who hears it.
|
|
3
|
-
*
|
|
4
|
-
* It travels on the wire (`toJSON`/`fromJSON`) and through the browser-safe
|
|
5
|
-
* `@fougere/core/contract`, so nothing here may know about HTTP, a logger, or a
|
|
6
|
-
* middleware chain. Its HTTP reading is one file over, in `http-error.ts`; it used
|
|
7
|
-
* to live in `middleware.ts`, which named the one concept this is not.
|
|
8
|
-
*/
|
|
1
|
+
/** The error vocabulary — what a refusal IS, independently of who hears it. */
|
|
9
2
|
import type { ValidationError } from '@fougere/schema';
|
|
10
3
|
/** Semantic error codes — transport-agnostic. Each bridge maps them to its own format. */
|
|
11
4
|
export declare enum ErrorCode {
|
|
@@ -50,25 +43,12 @@ export declare class FougereError extends Error {
|
|
|
50
43
|
code: ErrorCode;
|
|
51
44
|
message: string;
|
|
52
45
|
};
|
|
53
|
-
/**
|
|
54
|
-
* Dual of toJSON — rebuild a typed error from its wire form.
|
|
55
|
-
*
|
|
56
|
-
* Wire input is untrusted: an unknown code degrades to INTERNAL_ERROR
|
|
57
|
-
* (original code kept in details) instead of forging a fake semantic code.
|
|
58
|
-
*/
|
|
46
|
+
/** Dual of toJSON — rebuild a typed error from its wire form. */
|
|
59
47
|
static fromJSON(json: unknown): FougereError;
|
|
60
48
|
}
|
|
61
49
|
/**
|
|
62
|
-
* The refusals behind a VALIDATION_FAILED, or nothing — the ONE place that reads
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* `details` is `unknown` because it is genuinely polymorphic: `StorageGuard.judge` puts a
|
|
66
|
-
* `string[]` there under INTERNAL_ERROR, `fromJSON` puts `{ originalCode, details }`
|
|
67
|
-
* there for a code it does not know. So the shape is not the field's, it is a reading
|
|
68
|
-
* of the PAIR (code, details) — which is why this is a reader and not a narrower type.
|
|
69
|
-
*
|
|
70
|
-
* It judges rather than casts: five call sites asserted `{ path, message }[]` by hand,
|
|
71
|
-
* and a malformed VALIDATION_FAILED would have been accepted as structured refusals.
|
|
50
|
+
* The refusals behind a VALIDATION_FAILED, or nothing — the ONE place that reads `details` under
|
|
51
|
+
* that code.
|
|
72
52
|
*/
|
|
73
53
|
export declare function validationErrorsOf(error: unknown): ValidationError[] | undefined;
|
|
74
54
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/wire/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/wire/errors.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIvD,0FAA0F;AAC1F,oBAAY,SAAS;IAEnB,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAG3B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IAGvB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,kBAAkB,uBAAuB;IAGzC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IAGnC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;CACpC;AAID,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;gBAEf,OAAO,EAAE,mBAAmB;IASxC,MAAM;;;;;;;IAUN,iEAAiE;IACjE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY;CAW7C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,EAAE,GAAG,SAAS,CAWhF"}
|
package/dist/wire/errors.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The error vocabulary — what a refusal IS, independently of who hears it.
|
|
3
|
-
*
|
|
4
|
-
* It travels on the wire (`toJSON`/`fromJSON`) and through the browser-safe
|
|
5
|
-
* `@fougere/core/contract`, so nothing here may know about HTTP, a logger, or a
|
|
6
|
-
* middleware chain. Its HTTP reading is one file over, in `http-error.ts`; it used
|
|
7
|
-
* to live in `middleware.ts`, which named the one concept this is not.
|
|
8
|
-
*/
|
|
1
|
+
/** The error vocabulary — what a refusal IS, independently of who hears it. */
|
|
9
2
|
// ── ErrorCode ──────────────────────────────────
|
|
10
3
|
/** Semantic error codes — transport-agnostic. Each bridge maps them to its own format. */
|
|
11
4
|
export var ErrorCode;
|
|
@@ -57,12 +50,7 @@ export class FougereError extends Error {
|
|
|
57
50
|
...(this.details !== undefined && { details: this.details }),
|
|
58
51
|
};
|
|
59
52
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Dual of toJSON — rebuild a typed error from its wire form.
|
|
62
|
-
*
|
|
63
|
-
* Wire input is untrusted: an unknown code degrades to INTERNAL_ERROR
|
|
64
|
-
* (original code kept in details) instead of forging a fake semantic code.
|
|
65
|
-
*/
|
|
53
|
+
/** Dual of toJSON — rebuild a typed error from its wire form. */
|
|
66
54
|
static fromJSON(json) {
|
|
67
55
|
const raw = (typeof json === 'object' && json !== null ? json : {});
|
|
68
56
|
const known = Object.values(ErrorCode).includes(raw.code);
|
|
@@ -76,16 +64,8 @@ export class FougereError extends Error {
|
|
|
76
64
|
}
|
|
77
65
|
}
|
|
78
66
|
/**
|
|
79
|
-
* The refusals behind a VALIDATION_FAILED, or nothing — the ONE place that reads
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* `details` is `unknown` because it is genuinely polymorphic: `StorageGuard.judge` puts a
|
|
83
|
-
* `string[]` there under INTERNAL_ERROR, `fromJSON` puts `{ originalCode, details }`
|
|
84
|
-
* there for a code it does not know. So the shape is not the field's, it is a reading
|
|
85
|
-
* of the PAIR (code, details) — which is why this is a reader and not a narrower type.
|
|
86
|
-
*
|
|
87
|
-
* It judges rather than casts: five call sites asserted `{ path, message }[]` by hand,
|
|
88
|
-
* and a malformed VALIDATION_FAILED would have been accepted as structured refusals.
|
|
67
|
+
* The refusals behind a VALIDATION_FAILED, or nothing — the ONE place that reads `details` under
|
|
68
|
+
* that code.
|
|
89
69
|
*/
|
|
90
70
|
export function validationErrorsOf(error) {
|
|
91
71
|
if (!(error instanceof FougereError) || error.code !== ErrorCode.VALIDATION_FAILED)
|
package/dist/wire/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/wire/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/wire/errors.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAI/E,kDAAkD;AAElD,0FAA0F;AAC1F,MAAM,CAAN,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB,QAAQ;IACR,oDAAuC,CAAA;IACvC,wCAA2B,CAAA;IAE3B,OAAO;IACP,0CAA6B,CAAA;IAC7B,oCAAuB,CAAA;IAEvB,YAAY;IACZ,oCAAuB,CAAA;IACvB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,sDAAyC,CAAA;IAEzC,SAAS;IACT,wDAA2C,CAAA;IAC3C,oDAAuC,CAAA;IACvC,0DAA6C,CAAA;IAC7C,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IAEnC,SAAS;IACT,8CAAiC,CAAA;IACjC,gDAAmC,CAAA;IACnC,wCAA2B,CAAA;IAC3B,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;AACrC,CAAC,EA7BW,SAAS,KAAT,SAAS,QA6BpB;AAaD,MAAM,OAAO,YAAa,SAAQ,KAAK;IAC5B,IAAI,CAAY;IAChB,MAAM,CAAU;IAChB,SAAS,CAAU;IACnB,OAAO,CAAW;IAE3B,YAAY,OAA4B;QACtC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,OAAO,GA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,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE;SAChF,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,IAAI,CAAC,CAAC,KAAK,YAAY,YAAY,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,iBAAiB;QAAE,OAAO,SAAS,CAAC;IACrG,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,SAAS,CAAC;IAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAC7B,CAAC,KAAK,EAA4B,EAAE,CAClC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;WACxC,OAAQ,KAAyB,CAAC,IAAI,KAAK,QAAQ;WACnD,OAAQ,KAAyB,CAAC,OAAO,KAAK,QAAQ,CAC5D,CAAC;IACF,OAAO,QAAQ,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACnE,CAAC"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP reading of an error — used by HTTP bridges (REST, Next, Inertia).
|
|
3
|
-
*
|
|
4
|
-
* Not imported by GraphQL, CLI, or event bus bridges. The vocabulary it projects
|
|
5
|
-
* is in `errors.ts` and knows nothing of this file.
|
|
6
|
-
*/
|
|
1
|
+
/** HTTP reading of an error — used by HTTP bridges (REST, Next, Inertia). */
|
|
7
2
|
import { FougereError } from './errors.js';
|
|
8
|
-
/**
|
|
9
|
-
* Serialize an application error for an untrusted caller.
|
|
10
|
-
*
|
|
11
|
-
* Every code but INTERNAL_ERROR was written for the caller and travels whole. An
|
|
12
|
-
* INTERNAL_ERROR is replaced by a constant — and logged here, with its cause, so the
|
|
13
|
-
* sentence exists exactly once: on the server.
|
|
14
|
-
*/
|
|
3
|
+
/** Serialize an application error for an untrusted caller. */
|
|
15
4
|
export declare function toPublicError(err: FougereError): ReturnType<FougereError['toJSON']>;
|
|
16
5
|
/** Map any thrown error to `{ status, body }` for HTTP bridges. */
|
|
17
6
|
export declare function toHttpError(err: unknown): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-error.d.ts","sourceRoot":"","sources":["../../src/wire/http-error.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"http-error.d.ts","sourceRoot":"","sources":["../../src/wire/http-error.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAC;AAmCtD,8DAA8D;AAC9D,wBAAgB,aAAa,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAUnF;AAED,mEAAmE;AACnE,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAA;CAAE,CAYtG"}
|
package/dist/wire/http-error.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP reading of an error — used by HTTP bridges (REST, Next, Inertia).
|
|
3
|
-
*
|
|
4
|
-
* Not imported by GraphQL, CLI, or event bus bridges. The vocabulary it projects
|
|
5
|
-
* is in `errors.ts` and knows nothing of this file.
|
|
6
|
-
*/
|
|
1
|
+
/** HTTP reading of an error — used by HTTP bridges (REST, Next, Inertia). */
|
|
7
2
|
import { FougereError, ErrorCode } from './errors.js';
|
|
8
|
-
import { Logger } from '../
|
|
3
|
+
import { Logger } from '../builtin/logger.js';
|
|
9
4
|
/**
|
|
10
|
-
* An INTERNAL_ERROR is the one class of error whose message never leaves: it was not
|
|
11
|
-
*
|
|
12
|
-
* masking it *silently* is how a bug becomes unobservable — the operator loses the same
|
|
13
|
-
* sentence the attacker does. So the mask and the record live in one function: whoever
|
|
14
|
-
* calls `toPublicError` cannot forget the half that keeps the error findable.
|
|
5
|
+
* An INTERNAL_ERROR is the one class of error whose message never leaves: it was not written for a
|
|
6
|
+
* caller and may quote a path, a query or a row.
|
|
15
7
|
*/
|
|
16
8
|
const log = new Logger('error');
|
|
17
9
|
const HTTP_STATUS = {
|
|
@@ -39,13 +31,7 @@ const HTTP_STATUS = {
|
|
|
39
31
|
function httpStatusFor(code) {
|
|
40
32
|
return HTTP_STATUS[code] ?? 500;
|
|
41
33
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Serialize an application error for an untrusted caller.
|
|
44
|
-
*
|
|
45
|
-
* Every code but INTERNAL_ERROR was written for the caller and travels whole. An
|
|
46
|
-
* INTERNAL_ERROR is replaced by a constant — and logged here, with its cause, so the
|
|
47
|
-
* sentence exists exactly once: on the server.
|
|
48
|
-
*/
|
|
34
|
+
/** Serialize an application error for an untrusted caller. */
|
|
49
35
|
export function toPublicError(err) {
|
|
50
36
|
if (err.code !== ErrorCode.INTERNAL_ERROR)
|
|
51
37
|
return err.toJSON();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-error.js","sourceRoot":"","sources":["../../src/wire/http-error.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"http-error.js","sourceRoot":"","sources":["../../src/wire/http-error.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C;;;GAGG;AACH,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;AAEhC,MAAM,WA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