akanjs 2.2.4 → 2.2.5
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/CHANGELOG.md +9 -0
- package/base/base.ts +1 -1
- package/base/primitiveRegistry.ts +6 -10
- package/base/types.ts +1 -4
- package/capacitor.base.config.ts +1 -1
- package/client/capacitor.ts +1 -1
- package/client/cookie.ts +2 -4
- package/client/createFont.ts +2 -2
- package/client/csrTypes.ts +2 -8
- package/client/makePageProto.tsx +4 -10
- package/client/router.ts +3 -8
- package/client/translator.ts +4 -12
- package/common/Logger.ts +1 -4
- package/common/formatNumber.ts +2 -5
- package/common/hmrPhase.ts +1 -1
- package/common/isValidDate.ts +0 -3
- package/constant/fieldInfo.ts +3 -3
- package/constant/purify.ts +1 -2
- package/constant/types.ts +0 -4
- package/constant/via.ts +6 -12
- package/document/databaseRegistry.ts +0 -8
- package/document/into.ts +0 -1
- package/fetch/client/fetchClient.ts +1 -6
- package/fetch/client/httpClient.ts +1 -2
- package/fetch/fetchType/appliedReturn.type.ts +0 -1
- package/fetch/fetchType/endpointFetch.type.ts +0 -3
- package/fetch/fetchType/sliceFetch.type.ts +0 -8
- package/fetch/requestStorage.ts +2 -10
- package/package.json +67 -24
- package/server/akanApp.ts +2 -5
- package/server/akanLib.ts +0 -1
- package/server/akanServer.ts +3 -4
- package/server/artifact/builderRpc.ts +2 -2
- package/server/artifact/ipcTypes.ts +0 -4
- package/server/decorators.ts +1 -1
- package/server/di/diLifecycle.ts +3 -6
- package/server/hmr/clientScript.ts +2 -20
- package/server/hmr/devHmrController.ts +0 -4
- package/server/processMetricsCollector.ts +1 -1
- package/server/resolver/database.resolver.ts +2 -2
- package/server/resolver/resolver.contract.fixture.ts +0 -1
- package/server/resolver/signal.resolver.ts +2 -10
- package/server/routing/apiRouter.ts +2 -4
- package/server/rscClient.tsx +1 -7
- package/server/rscWorkerHost.ts +11 -33
- package/server/ssrFromRscRenderer.tsx +3 -35
- package/server/types/react-server-dom-webpack.d.ts +1 -7
- package/server/vendor/react-dom-client.ts +1 -1
- package/server/vendor/react-dom.ts +2 -3
- package/server/vendor/react-jsx-dev-runtime.ts +1 -1
- package/server/vendor/react-jsx-runtime.ts +1 -1
- package/server/vendor/react-refresh-runtime.ts +2 -2
- package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
- package/server/vendor/react.ts +2 -9
- package/server/vendor/scheduler.ts +2 -3
- package/server/webRouter.ts +2 -3
- package/service/adapt.ts +1 -5
- package/service/predefinedAdaptor/cache.adaptor.ts +1 -2
- package/service/predefinedAdaptor/database.adaptor.ts +2 -2
- package/service/predefinedAdaptor/solidSqlite.ts +1 -2
- package/service/predefinedAdaptor/websocket.adaptor.ts +3 -15
- package/service/serve.ts +3 -7
- package/signal/base.signal.ts +0 -1
- package/signal/endpointInfo.ts +0 -7
- package/signal/intercept.ts +0 -2
- package/signal/middleware.ts +1 -2
- package/signal/serverSignal.ts +1 -15
- package/signal/signalContext.ts +1 -1
- package/signal/signalRegistry.ts +0 -5
- package/signal/sliceInfo.ts +0 -3
- package/signal/trace.ts +0 -11
- package/signal/types.ts +2 -11
- package/store/action.ts +3 -5
- package/store/stateBuilder.ts +0 -2
- package/store/stateInfo.ts +1 -2
- package/store/types.ts +1 -1
- package/test/playwright.config.base.ts +5 -28
- package/test/playwright.pageAgent.ts +1 -1
- package/test/sampleOf.ts +1 -1
- package/test/testServer.ts +1 -1
- package/types/base/base.d.ts +53 -0
- package/types/base/baseEnv.d.ts +68 -0
- package/types/base/index.d.ts +6 -0
- package/types/base/primitiveRegistry.d.ts +134 -0
- package/types/base/symbols.d.ts +11 -0
- package/types/base/types.d.ts +68 -0
- package/types/base/utils.d.ts +4 -0
- package/types/base.d.ts +1 -0
- package/types/capacitor.base.config.d.ts +3 -0
- package/types/client/capacitor.d.ts +233 -0
- package/types/client/clientRuntime.d.ts +63 -0
- package/types/client/cookie.d.ts +33 -0
- package/types/client/createFont.d.ts +6 -0
- package/types/client/csrTypes.d.ts +262 -0
- package/types/client/decorators.d.ts +7 -0
- package/types/client/device.d.ts +41 -0
- package/types/client/fetch.d.ts +1 -0
- package/types/client/index.d.ts +14 -0
- package/types/client/locale.d.ts +5 -0
- package/types/client/makePageProto.d.ts +17002 -0
- package/types/client/router.d.ts +66 -0
- package/types/client/rscNavigation.d.ts +19 -0
- package/types/client/storage.d.ts +5 -0
- package/types/client/translator.d.ts +18 -0
- package/types/client/types.d.ts +145 -0
- package/types/client/useClient.d.ts +1 -0
- package/types/client.d.ts +1 -0
- package/types/common/Logger.d.ts +41 -0
- package/types/common/applyMixins.d.ts +3 -0
- package/types/common/capitalize.d.ts +2 -0
- package/types/common/deepObjectify.d.ts +4 -0
- package/types/common/fileUpload.d.ts +28 -0
- package/types/common/formatNumber.d.ts +1 -0
- package/types/common/formatPhone.d.ts +2 -0
- package/types/common/getAllPropertyDescriptors.d.ts +5 -0
- package/types/common/hmrPhase.d.ts +6 -0
- package/types/common/httpClient.d.ts +20 -0
- package/types/common/index.d.ts +29 -0
- package/types/common/isDayjs.d.ts +2 -0
- package/types/common/isEmail.d.ts +2 -0
- package/types/common/isPhoneNumber.d.ts +2 -0
- package/types/common/isQueryEqual.d.ts +1 -0
- package/types/common/isValidDate.d.ts +2 -0
- package/types/common/jwtDecode.d.ts +2 -0
- package/types/common/localeConfig.d.ts +11 -0
- package/types/common/lowerlize.d.ts +2 -0
- package/types/common/mergeVersion.d.ts +10 -0
- package/types/common/objectify.d.ts +1 -0
- package/types/common/pathGet.d.ts +1 -0
- package/types/common/pathSet.d.ts +3 -0
- package/types/common/randomPick.d.ts +1 -0
- package/types/common/randomPicks.d.ts +1 -0
- package/types/common/routeConvention.d.ts +35 -0
- package/types/common/sleep.d.ts +2 -0
- package/types/common/splitVersion.d.ts +11 -0
- package/types/common/subRoute.d.ts +7 -0
- package/types/common/types.d.ts +14 -0
- package/types/common.d.ts +1 -0
- package/types/constant/constantRegistry.d.ts +89 -0
- package/types/constant/crystalize.d.ts +4 -0
- package/types/constant/deserialize.d.ts +7 -0
- package/types/constant/fieldInfo.d.ts +153 -0
- package/types/constant/getDefault.d.ts +3 -0
- package/types/constant/immerify.d.ts +2 -0
- package/types/constant/index.d.ts +10 -0
- package/types/constant/purify.d.ts +12 -0
- package/types/constant/serialize.d.ts +11 -0
- package/types/constant/types.d.ts +77 -0
- package/types/constant/via.d.ts +52 -0
- package/types/constant.d.ts +1 -0
- package/types/dictionary/base.dictionary.d.ts +1 -0
- package/types/dictionary/dictInfo.d.ts +206 -0
- package/types/dictionary/dictionary.d.ts +11 -0
- package/types/dictionary/index.d.ts +4 -0
- package/types/dictionary/locale.d.ts +128 -0
- package/types/dictionary/trans.d.ts +82 -0
- package/types/dictionary.d.ts +1 -0
- package/types/document/by.d.ts +20 -0
- package/types/document/dataLoader.d.ts +36 -0
- package/types/document/database.d.ts +96 -0
- package/types/document/databaseRegistry.d.ts +36 -0
- package/types/document/documentQuery.d.ts +105 -0
- package/types/document/documentSchema.d.ts +33 -0
- package/types/document/filterMeta.d.ts +84 -0
- package/types/document/index.d.ts +11 -0
- package/types/document/into.d.ts +65 -0
- package/types/document/loaderInfo.d.ts +35 -0
- package/types/document/schema.d.ts +5 -0
- package/types/document/types.d.ts +36 -0
- package/types/document.d.ts +1 -0
- package/types/fetch/client/fetchClient.d.ts +78 -0
- package/types/fetch/client/httpClient.d.ts +39 -0
- package/types/fetch/client/index.d.ts +3 -0
- package/types/fetch/client/wsClient.d.ts +37 -0
- package/types/fetch/client.d.ts +1 -0
- package/types/fetch/fetchType/appliedReturn.type.d.ts +67 -0
- package/types/fetch/fetchType/buildFetch.type.d.ts +11 -0
- package/types/fetch/fetchType/clientSignal.type.d.ts +16 -0
- package/types/fetch/fetchType/endpointFetch.type.d.ts +29 -0
- package/types/fetch/fetchType/index.d.ts +5 -0
- package/types/fetch/fetchType/sliceFetch.type.d.ts +76 -0
- package/types/fetch/fetchType.d.ts +1 -0
- package/types/fetch/index.d.ts +4 -0
- package/types/fetch/requestStorage.d.ts +29 -0
- package/types/fetch/serializer/fetch.serializer.d.ts +14 -0
- package/types/fetch/serializer/index.d.ts +1 -0
- package/types/fetch/serializer.d.ts +1 -0
- package/types/fetch/types.d.ts +19 -0
- package/types/fetch.d.ts +1 -0
- package/types/index.d.ts +213 -0
- package/types/server/akanApp.d.ts +17 -0
- package/types/server/akanAppHeaders.d.ts +1 -0
- package/types/server/akanLib.d.ts +33 -0
- package/types/server/akanOption.d.ts +15 -0
- package/types/server/akanServer.d.ts +47 -0
- package/types/server/artifact/builderRpc.d.ts +42 -0
- package/types/server/artifact/index.d.ts +6 -0
- package/types/server/artifact/ipcTypes.d.ts +73 -0
- package/types/server/artifact/manifestTypes.d.ts +16 -0
- package/types/server/artifact/routeClientCache.d.ts +45 -0
- package/types/server/artifact/routeSeedIndexStore.d.ts +43 -0
- package/types/server/artifact/routesManifestStore.d.ts +16 -0
- package/types/server/artifact.d.ts +1 -0
- package/types/server/decorators.d.ts +6 -0
- package/types/server/di/diLifecycle.d.ts +45 -0
- package/types/server/di/index.d.ts +4 -0
- package/types/server/di/predefinedAdaptor.d.ts +33 -0
- package/types/server/di/resolveAdaptorHierarchy.d.ts +21 -0
- package/types/server/di/resolveHierarchy.d.ts +11 -0
- package/types/server/di/resolveServiceHierarchy.d.ts +13 -0
- package/types/server/di/utils.d.ts +14 -0
- package/types/server/di.d.ts +1 -0
- package/types/server/hmr/changeBatch.d.ts +13 -0
- package/types/server/hmr/clientScript.d.ts +1 -0
- package/types/server/hmr/devHmrController.d.ts +24 -0
- package/types/server/hmr/index.d.ts +4 -0
- package/types/server/hmr/wsHub.d.ts +45 -0
- package/types/server/hmr.d.ts +1 -0
- package/types/server/imageOptimizer.d.ts +12 -0
- package/types/server/imageOptimizerError.d.ts +4 -0
- package/types/server/index.d.ts +14 -0
- package/types/server/lifecycle/shutdownManager.d.ts +13 -0
- package/types/server/logging/rotatingLogWriter.d.ts +20 -0
- package/types/server/processMetricsCollector.d.ts +10 -0
- package/types/server/proxy/akanResponse.d.ts +7 -0
- package/types/server/proxy/bunRequestFields.d.ts +1 -0
- package/types/server/proxy/hostBasePathWebProxy.d.ts +6 -0
- package/types/server/proxy/index.d.ts +6 -0
- package/types/server/proxy/localeWebProxy.d.ts +5 -0
- package/types/server/proxy/types.d.ts +37 -0
- package/types/server/proxy/webProxyRunner.d.ts +7 -0
- package/types/server/proxy.d.ts +1 -0
- package/types/server/resolver/database.resolver.d.ts +6 -0
- package/types/server/resolver/index.d.ts +3 -0
- package/types/server/resolver/service.resolver.d.ts +7 -0
- package/types/server/resolver/signal.resolver.d.ts +29 -0
- package/types/server/resolver.d.ts +1 -0
- package/types/server/robots.d.ts +1 -0
- package/types/server/routeElementComposer.d.ts +41 -0
- package/types/server/routeTreeBuilder.d.ts +28 -0
- package/types/server/routing/apiRouter.d.ts +61 -0
- package/types/server/rscClient.d.ts +15 -0
- package/types/server/rscWorker.d.ts +3 -0
- package/types/server/rscWorkerHost.d.ts +83 -0
- package/types/server/sitemap.d.ts +13 -0
- package/types/server/ssrFromRscRenderer.d.ts +6 -0
- package/types/server/ssrTypes.d.ts +47 -0
- package/types/server/systemPages.d.ts +27 -0
- package/types/server/types/react-server-dom-webpack.d.ts +91 -0
- package/types/server/types.d.ts +67 -0
- package/types/server/vendor/akanjs-base.d.ts +1 -0
- package/types/server/vendor/akanjs-common.d.ts +1 -0
- package/types/server/vendor/akanjs-constant.d.ts +1 -0
- package/types/server/vendor/akanjs-store.d.ts +1 -0
- package/types/server/vendor/react-dom-client.d.ts +3 -0
- package/types/server/vendor/react-dom.d.ts +3 -0
- package/types/server/vendor/react-jsx-dev-runtime.d.ts +3 -0
- package/types/server/vendor/react-jsx-runtime.d.ts +3 -0
- package/types/server/vendor/react-refresh-runtime.d.ts +3 -0
- package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +3 -0
- package/types/server/vendor/react.d.ts +11 -0
- package/types/server/vendor/scheduler.d.ts +3 -0
- package/types/server/webRouter.d.ts +44 -0
- package/types/server.d.ts +1 -0
- package/types/service/adapt.d.ts +15 -0
- package/types/service/base.service.d.ts +18 -0
- package/types/service/index.d.ts +10 -0
- package/types/service/injectInfo.d.ts +102 -0
- package/types/service/ipcTypes.d.ts +194 -0
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +46 -0
- package/types/service/predefinedAdaptor/compress.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +329 -0
- package/types/service/predefinedAdaptor/index.d.ts +13 -0
- package/types/service/predefinedAdaptor/logging.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +17 -0
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +60 -0
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +25 -0
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +19 -0
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +24 -0
- package/types/service/predefinedAdaptor/sqlitePath.d.ts +9 -0
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +80 -0
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +49 -0
- package/types/service/predefinedAdaptor.d.ts +1 -0
- package/types/service/serve.d.ts +31 -0
- package/types/service/serviceModule.d.ts +50 -0
- package/types/service/serviceRegistry.d.ts +9 -0
- package/types/service/types.d.ts +55 -0
- package/types/service.d.ts +1 -0
- package/types/signal/base.signal.d.ts +41 -0
- package/types/signal/endpoint.d.ts +28 -0
- package/types/signal/endpointInfo.d.ts +77 -0
- package/types/signal/exception.d.ts +54786 -0
- package/types/signal/guard.d.ts +10 -0
- package/types/signal/guards.d.ts +10 -0
- package/types/signal/index.d.ts +19 -0
- package/types/signal/intercept.d.ts +17 -0
- package/types/signal/internal.d.ts +18 -0
- package/types/signal/internalArg.d.ts +31 -0
- package/types/signal/internalInfo.d.ts +45 -0
- package/types/signal/middleware.d.ts +51 -0
- package/types/signal/serializer/fetch.serializer.d.ts +14 -0
- package/types/signal/serializer/index.d.ts +1 -0
- package/types/signal/serializer.d.ts +1 -0
- package/types/signal/serverSignal.d.ts +36 -0
- package/types/signal/signalContext.d.ts +96 -0
- package/types/signal/signalRegistry.d.ts +49 -0
- package/types/signal/slice.d.ts +42 -0
- package/types/signal/sliceInfo.d.ts +51 -0
- package/types/signal/trace.d.ts +97 -0
- package/types/signal/types.d.ts +142 -0
- package/types/signal.d.ts +1 -0
- package/types/store/action.d.ts +145 -0
- package/types/store/baseSt.d.ts +412 -0
- package/types/store/hooks.d.ts +1 -0
- package/types/store/index.d.ts +8 -0
- package/types/store/rootStore.d.ts +22 -0
- package/types/store/state.d.ts +91 -0
- package/types/store/stateBuilder.d.ts +141 -0
- package/types/store/stateInfo.d.ts +23 -0
- package/types/store/store.d.ts +36 -0
- package/types/store/storeInstance.d.ts +38 -0
- package/types/store/storeRegistry.d.ts +13 -0
- package/types/store/types.d.ts +42 -0
- package/types/store/withSelector.d.ts +42 -0
- package/types/store.d.ts +1 -0
- package/types/test/index.d.ts +4 -0
- package/types/test/playwright.config.base.d.ts +9 -0
- package/types/test/playwright.pageAgent.d.ts +12 -0
- package/types/test/sample.d.ts +15 -0
- package/types/test/sampleOf.d.ts +5 -0
- package/types/test/signalTest.preload.d.ts +1 -0
- package/types/test/signalTestRuntime.d.ts +29 -0
- package/types/test/testServer.d.ts +26 -0
- package/types/test.d.ts +1 -0
- package/types/ui/BottomSheet.d.ts +13 -0
- package/types/ui/Button.d.ts +11 -0
- package/types/ui/ClientSide.d.ts +8 -0
- package/types/ui/Clipboard.d.ts +7 -0
- package/types/ui/Constant/Doc.d.ts +29 -0
- package/types/ui/Constant/Mermaid.d.ts +8 -0
- package/types/ui/Constant/index.d.ts +6 -0
- package/types/ui/Constant/schemaDoc.d.ts +84 -0
- package/types/ui/Constant.d.ts +1 -0
- package/types/ui/Copy.d.ts +10 -0
- package/types/ui/CsrImage.d.ts +18 -0
- package/types/ui/Data/CardList.d.ts +36 -0
- package/types/ui/Data/Dashboard.d.ts +11 -0
- package/types/ui/Data/Insight.d.ts +9 -0
- package/types/ui/Data/Item.d.ts +75 -0
- package/types/ui/Data/ListContainer.d.ts +49 -0
- package/types/ui/Data/Pagination.d.ts +9 -0
- package/types/ui/Data/QueryMaker.d.ts +8 -0
- package/types/ui/Data/TableList.d.ts +26 -0
- package/types/ui/Data/index.d.ts +9 -0
- package/types/ui/Data/index_.d.ts +8 -0
- package/types/ui/Data.d.ts +1 -0
- package/types/ui/DatePicker.d.ts +36 -0
- package/types/ui/Dialog/Action.d.ts +5 -0
- package/types/ui/Dialog/Close.d.ts +6 -0
- package/types/ui/Dialog/Content.d.ts +6 -0
- package/types/ui/Dialog/Modal.d.ts +9 -0
- package/types/ui/Dialog/Provider.d.ts +11 -0
- package/types/ui/Dialog/Title.d.ts +5 -0
- package/types/ui/Dialog/Trigger.d.ts +6 -0
- package/types/ui/Dialog/context.d.ts +10 -0
- package/types/ui/Dialog/index.d.ts +9 -0
- package/types/ui/Dialog.d.ts +1 -0
- package/types/ui/DragAction.d.ts +24 -0
- package/types/ui/DraggableList.d.ts +31 -0
- package/types/ui/Dropdown.d.ts +14 -0
- package/types/ui/Empty.d.ts +12 -0
- package/types/ui/Field.d.ts +411 -0
- package/types/ui/FontFace.d.ts +6 -0
- package/types/ui/Image.d.ts +49 -0
- package/types/ui/InfiniteScroll.d.ts +10 -0
- package/types/ui/Input.d.ts +95 -0
- package/types/ui/KeyboardAvoiding.d.ts +8 -0
- package/types/ui/Layout/BottomAction.d.ts +6 -0
- package/types/ui/Layout/BottomInset.d.ts +7 -0
- package/types/ui/Layout/BottomTab.d.ts +14 -0
- package/types/ui/Layout/Header.d.ts +8 -0
- package/types/ui/Layout/LeftSider.d.ts +9 -0
- package/types/ui/Layout/Navbar.d.ts +11 -0
- package/types/ui/Layout/RightSider.d.ts +10 -0
- package/types/ui/Layout/Sider.d.ts +7 -0
- package/types/ui/Layout/Template.d.ts +7 -0
- package/types/ui/Layout/TopLeftAction.d.ts +6 -0
- package/types/ui/Layout/Unit.d.ts +9 -0
- package/types/ui/Layout/View.d.ts +8 -0
- package/types/ui/Layout/Zone.d.ts +6 -0
- package/types/ui/Layout/index.d.ts +14 -0
- package/types/ui/Layout.d.ts +1 -0
- package/types/ui/Link/Back.d.ts +7 -0
- package/types/ui/Link/Close.d.ts +7 -0
- package/types/ui/Link/CsrLink.d.ts +2 -0
- package/types/ui/Link/Lang.d.ts +8 -0
- package/types/ui/Link/SsrLink.d.ts +2 -0
- package/types/ui/Link/index.d.ts +10 -0
- package/types/ui/Link/types.d.ts +42 -0
- package/types/ui/Link.d.ts +1 -0
- package/types/ui/Load/Edit.d.ts +4 -0
- package/types/ui/Load/Edit_Client.d.ts +27 -0
- package/types/ui/Load/Page.d.ts +15 -0
- package/types/ui/Load/PageCSR.d.ts +3 -0
- package/types/ui/Load/Pagination.d.ts +8 -0
- package/types/ui/Load/Units.d.ts +30 -0
- package/types/ui/Load/View.d.ts +22 -0
- package/types/ui/Load/index.d.ts +8 -0
- package/types/ui/Load/index_.d.ts +3 -0
- package/types/ui/Load.d.ts +1 -0
- package/types/ui/Loading/Area.d.ts +1 -0
- package/types/ui/Loading/Button.d.ts +7 -0
- package/types/ui/Loading/Input.d.ts +7 -0
- package/types/ui/Loading/ProgressBar.d.ts +6 -0
- package/types/ui/Loading/Skeleton.d.ts +7 -0
- package/types/ui/Loading/Spin.d.ts +7 -0
- package/types/ui/Loading/index.d.ts +8 -0
- package/types/ui/Loading.d.ts +1 -0
- package/types/ui/Menu.d.ts +26 -0
- package/types/ui/Modal.d.ts +19 -0
- package/types/ui/Model/AdminPanel.d.ts +31 -0
- package/types/ui/Model/Edit.d.ts +16 -0
- package/types/ui/Model/EditModal.d.ts +52 -0
- package/types/ui/Model/EditWrapper.d.ts +13 -0
- package/types/ui/Model/LoadInit.d.ts +10 -0
- package/types/ui/Model/New.d.ts +16 -0
- package/types/ui/Model/NewWrapper.d.ts +13 -0
- package/types/ui/Model/NewWrapper_Client.d.ts +13 -0
- package/types/ui/Model/Remove.d.ts +13 -0
- package/types/ui/Model/RemoveWrapper.d.ts +12 -0
- package/types/ui/Model/SureToRemove.d.ts +11 -0
- package/types/ui/Model/View.d.ts +19 -0
- package/types/ui/Model/ViewEditModal.d.ts +12 -0
- package/types/ui/Model/ViewModal.d.ts +14 -0
- package/types/ui/Model/ViewWrapper.d.ts +12 -0
- package/types/ui/Model/index.d.ts +16 -0
- package/types/ui/Model/index_.d.ts +14 -0
- package/types/ui/Model.d.ts +1 -0
- package/types/ui/More.d.ts +12 -0
- package/types/ui/ObjectId.d.ts +5 -0
- package/types/ui/Pagination.d.ts +20 -0
- package/types/ui/Popconfirm.d.ts +28 -0
- package/types/ui/Portal.d.ts +6 -0
- package/types/ui/Radio.d.ts +19 -0
- package/types/ui/RecentTime.d.ts +12 -0
- package/types/ui/Refresh.d.ts +7 -0
- package/types/ui/ScreenNavigator.d.ts +18 -0
- package/types/ui/Select.d.ts +43 -0
- package/types/ui/Signal/Arg.d.ts +78 -0
- package/types/ui/Signal/Doc.d.ts +33 -0
- package/types/ui/Signal/Listener.d.ts +9 -0
- package/types/ui/Signal/Message.d.ts +23 -0
- package/types/ui/Signal/Object.d.ts +20 -0
- package/types/ui/Signal/PubSub.d.ts +24 -0
- package/types/ui/Signal/Request.d.ts +8 -0
- package/types/ui/Signal/Response.d.ts +14 -0
- package/types/ui/Signal/RestApi.d.ts +40 -0
- package/types/ui/Signal/WebSocket.d.ts +11 -0
- package/types/ui/Signal/index.d.ts +18 -0
- package/types/ui/Signal/makeExample.d.ts +4 -0
- package/types/ui/Signal/style.d.ts +15 -0
- package/types/ui/Signal.d.ts +1 -0
- package/types/ui/System/CSR.d.ts +32 -0
- package/types/ui/System/Client.d.ts +47 -0
- package/types/ui/System/Common.d.ts +47 -0
- package/types/ui/System/DevModeToggle.d.ts +1 -0
- package/types/ui/System/Gtag.d.ts +4 -0
- package/types/ui/System/Messages.d.ts +1 -0
- package/types/ui/System/Reconnect.d.ts +1 -0
- package/types/ui/System/Root.d.ts +6 -0
- package/types/ui/System/SSR.d.ts +24 -0
- package/types/ui/System/SelectLanguage.d.ts +5 -0
- package/types/ui/System/ThemeToggle.d.ts +4 -0
- package/types/ui/System/index.d.ts +12 -0
- package/types/ui/System.d.ts +1 -0
- package/types/ui/Tab/Menu.d.ts +12 -0
- package/types/ui/Tab/Menus.d.ts +6 -0
- package/types/ui/Tab/Panel.d.ts +8 -0
- package/types/ui/Tab/Provider.d.ts +10 -0
- package/types/ui/Tab/context.d.ts +9 -0
- package/types/ui/Tab/index.d.ts +7 -0
- package/types/ui/Tab.d.ts +1 -0
- package/types/ui/Table.d.ts +41 -0
- package/types/ui/ToggleSelect.d.ts +33 -0
- package/types/ui/Unauthorized.d.ts +9 -0
- package/types/ui/animated.d.ts +5 -0
- package/types/ui/fontCss.d.ts +11 -0
- package/types/ui/index.d.ts +44 -0
- package/types/ui.d.ts +1 -0
- package/types/webkit/bootCsr.d.ts +16 -0
- package/types/webkit/createRobotPage.d.ts +15 -0
- package/types/webkit/createSitemapPage.d.ts +4 -0
- package/types/webkit/index.d.ts +17 -0
- package/types/webkit/lazy.d.ts +11 -0
- package/types/webkit/types.d.ts +7 -0
- package/types/webkit/useCamera.d.ts +19 -0
- package/types/webkit/useCodepush.d.ts +16 -0
- package/types/webkit/useContact.d.ts +11 -0
- package/types/webkit/useCsrValues.d.ts +30 -0
- package/types/webkit/useDebounce.d.ts +2 -0
- package/types/webkit/useFetch.d.ts +18 -0
- package/types/webkit/useGeoLocation.d.ts +8 -0
- package/types/webkit/useHistory.d.ts +23 -0
- package/types/webkit/useInterval.d.ts +2 -0
- package/types/webkit/useLocation.d.ts +8 -0
- package/types/webkit/usePurchase.d.ts +19 -0
- package/types/webkit/usePushNoti.d.ts +7 -0
- package/types/webkit/useThrottle.d.ts +2 -0
- package/types/webkit.d.ts +1 -0
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Clipboard.tsx +1 -1
- package/ui/CsrImage.tsx +3 -14
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/QueryMaker.tsx +0 -339
- package/ui/Data/index.ts +0 -1
- package/ui/DatePicker.tsx +1 -95
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/DraggableList.tsx +5 -5
- package/ui/Field.tsx +2 -3
- package/ui/Image.tsx +2 -3
- package/ui/InfiniteScroll.tsx +0 -1
- package/ui/Input.tsx +1 -8
- package/ui/Layout/BottomTab.tsx +2 -2
- package/ui/Link/SsrLink.tsx +1 -2
- package/ui/Load/Page.tsx +1 -1
- package/ui/Load/PageCSR.tsx +0 -1
- package/ui/Load/Units.tsx +1 -2
- package/ui/Load/View.tsx +1 -2
- package/ui/Menu.tsx +5 -8
- package/ui/Model/EditModal.tsx +2 -5
- package/ui/Popconfirm.tsx +2 -4
- package/ui/ScreenNavigator.tsx +2 -3
- package/ui/Signal/Message.tsx +2 -3
- package/ui/Signal/PubSub.tsx +0 -2
- package/ui/Signal/Response.tsx +1 -1
- package/ui/Signal/WebSocket.tsx +2 -11
- package/ui/System/Client.tsx +7 -41
- package/ui/System/Gtag.tsx +2 -5
- package/ui/System/Messages.tsx +2 -2
- package/ui/System/Reconnect.tsx +5 -6
- package/ui/System/Root.tsx +0 -1
- package/ui/System/SSR.tsx +1 -7
- package/ui/ToggleSelect.tsx +3 -8
- package/ui/Unauthorized.tsx +1 -1
- package/webkit/bootCsr.tsx +3 -6
- package/webkit/lazy.tsx +1 -8
- package/webkit/useCamera.tsx +0 -1
- package/webkit/useCodepush.tsx +4 -9
- package/webkit/useContact.tsx +0 -1
- package/webkit/useCsrValues.ts +6 -10
- package/webkit/useDebounce.ts +2 -2
- package/webkit/usePurchase.tsx +5 -9
- package/webkit/usePushNoti.tsx +0 -1
- package/base/base.test.ts +0 -135
- package/base/baseEnv.test.ts +0 -146
- package/base/primitiveRegistry.test.ts +0 -127
- package/base/symbols.test.ts +0 -29
- package/base/utils.test.ts +0 -30
- package/build.ts +0 -318
- package/capacitor.base.config.test.ts +0 -83
- package/client/client.auth-storage.test.ts +0 -210
- package/client/client.decorators.test.ts +0 -74
- package/client/client.device.test.ts +0 -181
- package/client/client.page.test.tsx +0 -175
- package/client/client.pure.test.ts +0 -146
- package/client/client.router.test.ts +0 -290
- package/common/Logger.test.ts +0 -45
- package/common/formatAndValidation.test.ts +0 -61
- package/common/httpClient.test.ts +0 -91
- package/common/objectPath.test.ts +0 -108
- package/common/routeConvention.test.ts +0 -132
- package/common/runtimeConfig.test.ts +0 -84
- package/constant/constant.test.ts +0 -374
- package/dictionary/dictionary.test.ts +0 -352
- package/document/document.test.ts +0 -698
- package/fetch/fetch.test.ts +0 -838
- package/server/akanApp.test.ts +0 -130
- package/server/akanServer.test.ts +0 -157
- package/server/artifact/routeClientCache.test.ts +0 -265
- package/server/artifact/routeSeedIndex.test.ts +0 -56
- package/server/artifact/routesManifest.test.ts +0 -64
- package/server/di/diLifecycle.contract.test.ts +0 -168
- package/server/logging/rotatingLogWriter.test.ts +0 -119
- package/server/processMetrics.test.ts +0 -24
- package/server/proxy/webProxyRunner.test.ts +0 -66
- package/server/resolver/resolver.contract.test.ts +0 -594
- package/server/robots.test.ts +0 -16
- package/server/routeTree.test.tsx +0 -198
- package/server/routing/apiRouter.test.ts +0 -136
- package/server/sitemap.test.ts +0 -61
- package/server/systemPages.test.tsx +0 -93
- package/server/webRouter.test.ts +0 -49
- package/service/predefinedAdaptor/compress.adaptor.test.ts +0 -184
- package/service/predefinedAdaptor/solidCache.adaptor.test.ts +0 -107
- package/service/predefinedAdaptor/solidSqlite.test.ts +0 -457
- package/service/service.test.ts +0 -732
- package/signal/signal.test.ts +0 -892
- package/store/stateBuilder.test.ts +0 -168
- package/store/store.test.ts +0 -427
- package/tsconfig.json +0 -5
- package/ui/Constant/schemaDoc.test.ts +0 -113
- package/ui/InfiniteScroll.test.tsx +0 -155
- package/ui/System/Common.test.ts +0 -37
- package/webkit/bootCsr.test.tsx +0 -153
- package/webkit/native.test.tsx +0 -341
- package/webkit/webkit.test.tsx +0 -531
package/webkit/useCamera.tsx
CHANGED
package/webkit/useCodepush.tsx
CHANGED
|
@@ -4,7 +4,6 @@ import { HttpClient, mergeVersion, splitVersion } from "akanjs/common";
|
|
|
4
4
|
import type { ProtoAppInfo, ProtoFile } from "akanjs/constant";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
|
|
7
|
-
// export const useCodepush = ({ serverUrl, branch }: { serverUrl: string; branch: "debug" | "develop" | "main" }) => {
|
|
8
7
|
export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
9
8
|
const [update, setUpdate] = useState(false);
|
|
10
9
|
const [version, setVersion] = useState("");
|
|
@@ -19,7 +18,7 @@ export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
|
19
18
|
loadCapacitorDevice(),
|
|
20
19
|
loadCapacitorUpdater(),
|
|
21
20
|
]);
|
|
22
|
-
|
|
21
|
+
|
|
23
22
|
const info = await Device.getInfo();
|
|
24
23
|
const app = await App.getInfo();
|
|
25
24
|
const pluginVersion = await CapacitorUpdater.getPluginVersion();
|
|
@@ -62,8 +61,7 @@ export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
|
62
61
|
buildNum: app.build, //앱내 빌드시 버전 횟수 모르면 고한테 물어보기
|
|
63
62
|
versionOs: info.osVersion,
|
|
64
63
|
};
|
|
65
|
-
|
|
66
|
-
// ! NEED TO FIX
|
|
64
|
+
|
|
67
65
|
const url = serverUrl.replace("lu", "akasys");
|
|
68
66
|
const httpClient = new HttpClient(url);
|
|
69
67
|
const release = await httpClient.post<(ProtoAppInfo & { appBuild: string }) | null>("/release/codepush", {
|
|
@@ -73,12 +71,10 @@ export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
|
73
71
|
const file = await httpClient.get<ProtoFile>(`/file/file/${release.appBuild}`);
|
|
74
72
|
|
|
75
73
|
return { release: release, bundleFile: file };
|
|
76
|
-
//* fetch로 서버에게 내 AppInfo 전달.
|
|
77
|
-
// return await fetch.requestRelease();
|
|
78
74
|
};
|
|
79
75
|
|
|
80
76
|
const codepush = async () => {
|
|
81
|
-
|
|
77
|
+
|
|
82
78
|
const newRelease = await checkNewRelease();
|
|
83
79
|
if (!newRelease) return;
|
|
84
80
|
const { release, bundleFile } = newRelease;
|
|
@@ -88,7 +84,7 @@ export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
|
88
84
|
url: bundleFile.url,
|
|
89
85
|
version: mergeVersion(release.major, release.minor, release.patch),
|
|
90
86
|
});
|
|
91
|
-
|
|
87
|
+
|
|
92
88
|
await CapacitorUpdater.set(bundle);
|
|
93
89
|
};
|
|
94
90
|
const getVersion = async () => {
|
|
@@ -97,7 +93,6 @@ export const useCodepush = ({ serverUrl }: { serverUrl: string }) => {
|
|
|
97
93
|
};
|
|
98
94
|
|
|
99
95
|
const statManager = async () => {
|
|
100
|
-
// 업데이트 통계 서버에 전달
|
|
101
96
|
};
|
|
102
97
|
|
|
103
98
|
return { update, version, initialize, checkNewRelease, codepush, statManager };
|
package/webkit/useContact.tsx
CHANGED
package/webkit/useCsrValues.ts
CHANGED
|
@@ -196,15 +196,14 @@ const useFadeTrans = ({ clientHeight, location, prevLocation, onBack, history }:
|
|
|
196
196
|
[
|
|
197
197
|
0,
|
|
198
198
|
0,
|
|
199
|
-
// -(pageState.bottomInset - prevPageState.bottomInset) * 2
|
|
200
199
|
],
|
|
201
200
|
),
|
|
202
201
|
opacity: transProgress.to((progress) => progress),
|
|
203
|
-
|
|
202
|
+
|
|
204
203
|
transformOrigin: "top",
|
|
205
204
|
},
|
|
206
205
|
prevContentStyle: {
|
|
207
|
-
|
|
206
|
+
|
|
208
207
|
height: transProgress.to(
|
|
209
208
|
[0, 1],
|
|
210
209
|
[
|
|
@@ -581,11 +580,9 @@ const useBottomUpTrans = ({
|
|
|
581
580
|
},
|
|
582
581
|
contentStyle: {
|
|
583
582
|
opacity: transProgress.to((progress) => progress),
|
|
584
|
-
// translateX: transProgress.to([0, 1], [clientWidth / 5, 0]),
|
|
585
583
|
},
|
|
586
584
|
prevContentStyle: {
|
|
587
585
|
opacity: transProgress.to((progress) => 1 - progress),
|
|
588
|
-
// translateX: transProgress.to([0, 1], [0, -clientWidth / 5]),
|
|
589
586
|
},
|
|
590
587
|
},
|
|
591
588
|
topLeftAction: {
|
|
@@ -608,7 +605,6 @@ const useBottomUpTrans = ({
|
|
|
608
605
|
[
|
|
609
606
|
clientHeight - prevPageState.bottomInset - prevPageState.bottomSafeArea,
|
|
610
607
|
clientHeight - pageState.bottomInset - pageState.bottomSafeArea,
|
|
611
|
-
// prevPageState.bottomInset ? clientHeight - pageState.bottomInset - pageState.bottomSafeArea : 0,
|
|
612
608
|
],
|
|
613
609
|
),
|
|
614
610
|
},
|
|
@@ -699,7 +695,7 @@ export const useCsrValues = (rootRouteGuide: RouteGuide, pathRoutes: PathRoute[]
|
|
|
699
695
|
window.onpopstate = async (ev: PopStateEvent) => {
|
|
700
696
|
const href = window.location.href.replace(window.location.origin, "");
|
|
701
697
|
const routeType =
|
|
702
|
-
href === getNextLocation()?.href
|
|
698
|
+
href === getNextLocation()?.href
|
|
703
699
|
? "forward"
|
|
704
700
|
: href === getPrevLocation()?.href
|
|
705
701
|
? "back"
|
|
@@ -711,7 +707,7 @@ export const useCsrValues = (rootRouteGuide: RouteGuide, pathRoutes: PathRoute[]
|
|
|
711
707
|
setHistoryForward({ type: "popForward", location, scrollTop });
|
|
712
708
|
setLocationState({ location: getCurrentLocation(), prevLocation: location });
|
|
713
709
|
} else {
|
|
714
|
-
|
|
710
|
+
|
|
715
711
|
const location = getCurrentLocation();
|
|
716
712
|
await onBack.current[location.pathRoute.pageState.transition]?.();
|
|
717
713
|
setHistoryBack({ type: "popBack", location, scrollTop });
|
|
@@ -757,10 +753,10 @@ export const useCsrValues = (rootRouteGuide: RouteGuide, pathRoutes: PathRoute[]
|
|
|
757
753
|
|
|
758
754
|
useEffect(() => {
|
|
759
755
|
if (Device.getDevice().info.platform === "web") return;
|
|
760
|
-
|
|
756
|
+
|
|
761
757
|
void loadCapacitorApp().then(({ App }) =>
|
|
762
758
|
App.addListener("backButton", () => {
|
|
763
|
-
|
|
759
|
+
|
|
764
760
|
router.back();
|
|
765
761
|
}),
|
|
766
762
|
);
|
package/webkit/useDebounce.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
|
|
4
4
|
const debounce = <Args extends unknown[], Return>(callback: (...args: Args) => Return, wait = 500) => {
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
let timer: NodeJS.Timeout;
|
|
7
7
|
return (...args: Args) => {
|
|
8
8
|
clearTimeout(timer);
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
timer = setTimeout(() => {
|
|
11
11
|
callback(...args);
|
|
12
12
|
}, wait);
|
package/webkit/usePurchase.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// import { fetch } from "@libs/shared";
|
|
4
|
-
// import "cordova-plugin-purchase/www/store.js";
|
|
2
|
+
|
|
5
3
|
import "cordova-plugin-purchase/www/store";
|
|
6
4
|
|
|
7
5
|
import { loadCapacitorApp } from "akanjs/client/capacitor";
|
|
@@ -30,7 +28,6 @@ export const usePurchase = ({
|
|
|
30
28
|
}) => {
|
|
31
29
|
const [isLoading, setIsLoading] = useState(true);
|
|
32
30
|
const billingRef = useRef<any>(null);
|
|
33
|
-
// const purchase = new Purchase();
|
|
34
31
|
|
|
35
32
|
useEffect(() => {
|
|
36
33
|
const init = async () => {
|
|
@@ -69,7 +66,7 @@ export const usePurchase = ({
|
|
|
69
66
|
]);
|
|
70
67
|
await CdvPurchase.store.update();
|
|
71
68
|
await CdvPurchase.store.restorePurchases();
|
|
72
|
-
|
|
69
|
+
|
|
73
70
|
CdvPurchase.store.validator = (async (
|
|
74
71
|
request: { id: string; transaction: { id: string; purchaseToken: string; appStoreReceipt: string } },
|
|
75
72
|
callback: (result: {
|
|
@@ -77,7 +74,7 @@ export const usePurchase = ({
|
|
|
77
74
|
data: { id: string; latest_receipt: boolean; transaction: CdvPurchase.Transaction };
|
|
78
75
|
}) => void,
|
|
79
76
|
) => {
|
|
80
|
-
const transactionId = request.transaction.id;
|
|
77
|
+
const transactionId = request.transaction.id;
|
|
81
78
|
const transactions = CdvPurchase.store.localTransactions;
|
|
82
79
|
const verifingTransaction = transactions.find((transaction) => transaction.transactionId === transactionId);
|
|
83
80
|
|
|
@@ -104,11 +101,10 @@ export const usePurchase = ({
|
|
|
104
101
|
|
|
105
102
|
billingRef.current = billing.json();
|
|
106
103
|
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
108
104
|
callback({
|
|
109
|
-
|
|
105
|
+
|
|
110
106
|
ok: !!billing,
|
|
111
|
-
|
|
107
|
+
|
|
112
108
|
data: { id: request.id, latest_receipt: true, transaction: request.transaction } as any,
|
|
113
109
|
});
|
|
114
110
|
}) as any;
|
package/webkit/usePushNoti.tsx
CHANGED
|
@@ -32,7 +32,6 @@ export const usePushNoti = () => {
|
|
|
32
32
|
const device = await Device.getInfo();
|
|
33
33
|
if (device.platform === "web") return;
|
|
34
34
|
const { receive } = await PushNotifications.checkPermissions();
|
|
35
|
-
//푸시알림이 거절됐으면 앱 세팅으로 넘어감
|
|
36
35
|
|
|
37
36
|
if (receive === "denied") location.assign("app-settings:");
|
|
38
37
|
else await PushNotifications.register();
|
package/base/base.test.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { DataList, enumOf, Float, Int, isEnum } from ".";
|
|
3
|
-
|
|
4
|
-
type TestItem = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
score: number;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
describe("enumOf", () => {
|
|
11
|
-
test("creates a string enum with lookup helpers", () => {
|
|
12
|
-
class Role extends enumOf<"Role", string>("Role", ["admin", "member", "guest"] as const) {}
|
|
13
|
-
|
|
14
|
-
expect(isEnum(Role)).toBe(true);
|
|
15
|
-
expect(Role.refName).toBe("Role");
|
|
16
|
-
expect(Role.type).toBe(String);
|
|
17
|
-
expect(Role.values).toEqual(["admin", "member", "guest"]);
|
|
18
|
-
expect(Role.has("member")).toBe(true);
|
|
19
|
-
expect(Role.has("unknown")).toBe(false);
|
|
20
|
-
expect(Role.indexOf("guest")).toBe(2);
|
|
21
|
-
expect(Role.find((value) => value.startsWith("mem"))).toBe("member");
|
|
22
|
-
expect(Role.findIndex((value) => value === "guest")).toBe(2);
|
|
23
|
-
expect(Role.filter((value) => value.includes("e"))).toEqual(["member", "guest"]);
|
|
24
|
-
expect(Role.map((value, idx) => `${idx}:${value}`)).toEqual(["0:admin", "1:member", "2:guest"]);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
test("uses Int for integer numeric enums and Float for decimal enums", () => {
|
|
28
|
-
const Status = enumOf("Status", [100, 200, 404] as const);
|
|
29
|
-
const Rate = enumOf("Rate", [0.5, 1, 1.5] as const);
|
|
30
|
-
|
|
31
|
-
expect(Status.type).toBe(Int);
|
|
32
|
-
expect(Status.indexOf(200)).toBe(1);
|
|
33
|
-
expect(Rate.type).toBe(Float);
|
|
34
|
-
expect(Rate.has(1.5)).toBe(true);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
test("throws when enum values are empty or lookup misses", () => {
|
|
38
|
-
const Status = enumOf<"Status", number>("Status", [1, 2, 3] as const);
|
|
39
|
-
|
|
40
|
-
expect(() => enumOf("Empty", [])).toThrow("Enum values are empty");
|
|
41
|
-
expect(() => Status.indexOf(4)).toThrow("Value 4 is not in enum");
|
|
42
|
-
expect(() => Status.find((value) => value > 10)).toThrow("Value not found in enum");
|
|
43
|
-
expect(() => Status.findIndex((value) => value > 10)).toThrow("Value not found in enum");
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
describe("DataList", () => {
|
|
48
|
-
const items: TestItem[] = [
|
|
49
|
-
{ id: "a", name: "Alpha", score: 10 },
|
|
50
|
-
{ id: "b", name: "Beta", score: 20 },
|
|
51
|
-
{ id: "a", name: "Alpha updated", score: 30 },
|
|
52
|
-
];
|
|
53
|
-
|
|
54
|
-
test("deduplicates constructor data by id and keeps the latest value", () => {
|
|
55
|
-
const list = new DataList(items);
|
|
56
|
-
|
|
57
|
-
expect(list.length).toBe(2);
|
|
58
|
-
expect(list.values).toEqual([
|
|
59
|
-
{ id: "a", name: "Alpha updated", score: 30 },
|
|
60
|
-
{ id: "b", name: "Beta", score: 20 },
|
|
61
|
-
]);
|
|
62
|
-
expect(list.has("a")).toBe(true);
|
|
63
|
-
expect(list.get("missing")).toBeUndefined();
|
|
64
|
-
expect(list.indexOf("b")).toBe(1);
|
|
65
|
-
expect(list.pick("a").name).toBe("Alpha updated");
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
test("sets, deletes, and reindexes values by id", () => {
|
|
69
|
-
const list = new DataList<TestItem>([
|
|
70
|
-
{ id: "a", name: "Alpha", score: 10 },
|
|
71
|
-
{ id: "b", name: "Beta", score: 20 },
|
|
72
|
-
{ id: "c", name: "Gamma", score: 30 },
|
|
73
|
-
]);
|
|
74
|
-
|
|
75
|
-
expect(list.set({ id: "b", name: "Beta updated", score: 25 })).toBe(list);
|
|
76
|
-
expect(list.length).toBe(3);
|
|
77
|
-
expect(list.pick("b").score).toBe(25);
|
|
78
|
-
|
|
79
|
-
list.set({ id: "d", name: "Delta", score: 40 });
|
|
80
|
-
expect(list.length).toBe(4);
|
|
81
|
-
expect(list.pickAt(3).id).toBe("d");
|
|
82
|
-
|
|
83
|
-
expect(list.delete("b")).toBe(list);
|
|
84
|
-
expect(list.length).toBe(3);
|
|
85
|
-
expect(list.values.map((value) => value.id)).toEqual(["a", "c", "d"]);
|
|
86
|
-
expect(list.indexOf("c")).toBe(1);
|
|
87
|
-
expect(list.indexOf("d")).toBe(2);
|
|
88
|
-
expect(list.has("b")).toBe(false);
|
|
89
|
-
expect(() => list.pick("b")).toThrow("Value b is not in list");
|
|
90
|
-
expect(() => list.pickAt(99)).toThrow("Value at 99 is undefined");
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
test("supports array-like helpers and returns DataList for derived lists", () => {
|
|
94
|
-
const list = new DataList<TestItem>([
|
|
95
|
-
{ id: "a", name: "Alpha", score: 10 },
|
|
96
|
-
{ id: "b", name: "Beta", score: 20 },
|
|
97
|
-
{ id: "c", name: "Gamma", score: 30 },
|
|
98
|
-
]);
|
|
99
|
-
|
|
100
|
-
expect(list.at(-1)?.id).toBe("c");
|
|
101
|
-
expect(list.find((value) => value.score > 15)?.id).toBe("b");
|
|
102
|
-
expect(list.findIndex((value) => value.id === "c")).toBe(2);
|
|
103
|
-
expect(list.some((value) => value.score === 20)).toBe(true);
|
|
104
|
-
expect(list.every((value) => value.score >= 10)).toBe(true);
|
|
105
|
-
expect(list.map((value) => value.name)).toEqual(["Alpha", "Beta", "Gamma"]);
|
|
106
|
-
expect(list.flatMap((value) => [value.id, value.name])).toEqual(["a", "Alpha", "b", "Beta", "c", "Gamma"]);
|
|
107
|
-
expect(list.reduce((sum, value) => sum + value.score, 0)).toBe(60);
|
|
108
|
-
expect([...list].map((value) => value.id)).toEqual(["a", "b", "c"]);
|
|
109
|
-
|
|
110
|
-
const filtered = list.filter((value) => value.score >= 20);
|
|
111
|
-
expect(filtered).toBeInstanceOf(DataList);
|
|
112
|
-
expect(filtered.values.map((value) => value.id)).toEqual(["b", "c"]);
|
|
113
|
-
|
|
114
|
-
const sliced = list.slice(1);
|
|
115
|
-
expect(sliced).toBeInstanceOf(DataList);
|
|
116
|
-
expect(sliced.values.map((value) => value.id)).toEqual(["b", "c"]);
|
|
117
|
-
|
|
118
|
-
const sorted = list.save().sort((a, b) => b.score - a.score);
|
|
119
|
-
expect(sorted).toBeInstanceOf(DataList);
|
|
120
|
-
expect(sorted.values.map((value) => value.id)).toEqual(["c", "b", "a"]);
|
|
121
|
-
expect(list.values.map((value) => value.id)).toEqual(["a", "b", "c"]);
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
test("copies from another DataList through save", () => {
|
|
125
|
-
const list = new DataList<TestItem>(items);
|
|
126
|
-
const saved = list.save();
|
|
127
|
-
|
|
128
|
-
expect(saved).toBeInstanceOf(DataList);
|
|
129
|
-
expect(saved).not.toBe(list);
|
|
130
|
-
expect(saved.values).toEqual(list.values);
|
|
131
|
-
|
|
132
|
-
list.set({ id: "c", name: "Gamma", score: 40 });
|
|
133
|
-
expect(saved.has("c")).toBe(false);
|
|
134
|
-
});
|
|
135
|
-
});
|
package/base/baseEnv.test.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { afterAll, describe, expect, test } from "bun:test";
|
|
2
|
-
|
|
3
|
-
type BaseEnvModule = typeof import("./baseEnv");
|
|
4
|
-
|
|
5
|
-
const preservedEnv = { ...process.env };
|
|
6
|
-
let importCount = 0;
|
|
7
|
-
|
|
8
|
-
const envKeys = [
|
|
9
|
-
"AKAN_PUBLIC_APP_NAME",
|
|
10
|
-
"AKAN_PUBLIC_REPO_NAME",
|
|
11
|
-
"AKAN_PUBLIC_SERVE_DOMAIN",
|
|
12
|
-
"AKAN_PUBLIC_ENV",
|
|
13
|
-
"AKAN_PUBLIC_OPERATION_MODE",
|
|
14
|
-
"AKAN_PUBLIC_RENDER_ENV",
|
|
15
|
-
"AKAN_PUBLIC_CLIENT_HOST",
|
|
16
|
-
"AKAN_PUBLIC_CLIENT_PORT",
|
|
17
|
-
"SERVER_HOST",
|
|
18
|
-
"AKAN_PUBLIC_SERVER_PORT",
|
|
19
|
-
"SERVER_HTTP_PROTOCOL",
|
|
20
|
-
"SSH_TUNNEL_USERNAME",
|
|
21
|
-
"SSH_TUNNEL_PASSWORD",
|
|
22
|
-
] as const;
|
|
23
|
-
|
|
24
|
-
const resetEnv = () => {
|
|
25
|
-
for (const key of envKeys) delete process.env[key];
|
|
26
|
-
Object.assign(process.env, {
|
|
27
|
-
AKAN_PUBLIC_APP_NAME: "minimal",
|
|
28
|
-
AKAN_PUBLIC_REPO_NAME: "akan",
|
|
29
|
-
AKAN_PUBLIC_SERVE_DOMAIN: "example.com",
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const loadBaseEnv = async (): Promise<BaseEnvModule> => {
|
|
34
|
-
importCount++;
|
|
35
|
-
return import(`./baseEnv.ts?test=${importCount}`);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
describe("getEnv", () => {
|
|
39
|
-
test("throws when required public environment variables are missing", async () => {
|
|
40
|
-
resetEnv();
|
|
41
|
-
delete process.env.AKAN_PUBLIC_APP_NAME;
|
|
42
|
-
|
|
43
|
-
const { getEnv } = await loadBaseEnv();
|
|
44
|
-
|
|
45
|
-
expect(() => getEnv()).toThrow("environment variable AKAN_PUBLIC_APP_NAME is required");
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
test("builds default server-side cloud client environment", async () => {
|
|
49
|
-
resetEnv();
|
|
50
|
-
process.env.AKAN_PUBLIC_ENV = "main";
|
|
51
|
-
|
|
52
|
-
const { getEnv } = await loadBaseEnv();
|
|
53
|
-
const env = getEnv();
|
|
54
|
-
|
|
55
|
-
expect(env).toEqual({
|
|
56
|
-
repoName: "akan",
|
|
57
|
-
serveDomain: "example.com",
|
|
58
|
-
appName: "minimal",
|
|
59
|
-
environment: "main",
|
|
60
|
-
operationMode: "cloud",
|
|
61
|
-
tunnelUsername: "root",
|
|
62
|
-
tunnelPassword: "akan",
|
|
63
|
-
side: "server",
|
|
64
|
-
renderMode: "csr",
|
|
65
|
-
websocket: true,
|
|
66
|
-
clientHost: "localhost",
|
|
67
|
-
clientPort: 443,
|
|
68
|
-
clientHttpProtocol: "http:",
|
|
69
|
-
clientHttpUri: "http://localhost",
|
|
70
|
-
serverHost: "minimal-main.example.com",
|
|
71
|
-
serverPort: 8282,
|
|
72
|
-
serverHttpProtocol: "https:",
|
|
73
|
-
serverHttpUri: "https://minimal-main.example.com:8282/api",
|
|
74
|
-
serverWsProtocol: "wss:",
|
|
75
|
-
serverWsUri: "wss://minimal-main.example.com:8282",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
test("uses local defaults for csr and ssr render modes", async () => {
|
|
80
|
-
resetEnv();
|
|
81
|
-
process.env.AKAN_PUBLIC_ENV = "local";
|
|
82
|
-
|
|
83
|
-
const csrModule = await loadBaseEnv();
|
|
84
|
-
expect(csrModule.getEnv().operationMode).toBe("local");
|
|
85
|
-
expect(csrModule.getEnv().clientPort).toBe(8282);
|
|
86
|
-
expect(csrModule.getEnv().serverHttpUri).toBe("http://localhost:8282/api");
|
|
87
|
-
expect(csrModule.getEnv().serverWsUri).toBe("ws://localhost:8282");
|
|
88
|
-
|
|
89
|
-
resetEnv();
|
|
90
|
-
process.env.AKAN_PUBLIC_ENV = "local";
|
|
91
|
-
process.env.AKAN_PUBLIC_RENDER_ENV = "ssr";
|
|
92
|
-
|
|
93
|
-
const ssrModule = await loadBaseEnv();
|
|
94
|
-
expect(ssrModule.getEnv().operationMode).toBe("local");
|
|
95
|
-
expect(ssrModule.getEnv().clientPort).toBe(8282);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
test("honors explicit host, port, protocol, network, and tunnel overrides", async () => {
|
|
99
|
-
resetEnv();
|
|
100
|
-
Object.assign(process.env, {
|
|
101
|
-
AKAN_PUBLIC_ENV: "develop",
|
|
102
|
-
AKAN_PUBLIC_OPERATION_MODE: "edge",
|
|
103
|
-
AKAN_PUBLIC_NETWORK_TYPE: "debugnet",
|
|
104
|
-
AKAN_PUBLIC_CLIENT_HOST: "client.example.com",
|
|
105
|
-
AKAN_PUBLIC_CLIENT_PORT: "3000",
|
|
106
|
-
SERVER_HOST: "api.example.com",
|
|
107
|
-
AKAN_PUBLIC_SERVER_PORT: "9443",
|
|
108
|
-
SERVER_HTTP_PROTOCOL: "https:",
|
|
109
|
-
SSH_TUNNEL_USERNAME: "admin",
|
|
110
|
-
SSH_TUNNEL_PASSWORD: "secret",
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const { getEnv } = await loadBaseEnv();
|
|
114
|
-
const env = getEnv();
|
|
115
|
-
|
|
116
|
-
expect(env.environment).toBe("develop");
|
|
117
|
-
expect(env.operationMode).toBe("edge");
|
|
118
|
-
expect(env.tunnelUsername).toBe("admin");
|
|
119
|
-
expect(env.tunnelPassword).toBe("secret");
|
|
120
|
-
expect(env.clientHost).toBe("client.example.com");
|
|
121
|
-
expect(env.clientPort).toBe(3000);
|
|
122
|
-
expect(env.clientHttpUri).toBe("https://client.example.com:3000");
|
|
123
|
-
expect(env.serverHost).toBe("api.example.com");
|
|
124
|
-
expect(env.serverPort).toBe(9443);
|
|
125
|
-
expect(env.serverHttpUri).toBe("https://api.example.com:9443/api");
|
|
126
|
-
expect(env.serverWsUri).toBe("wss://api.example.com:9443");
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
test("caches the computed environment per module instance", async () => {
|
|
130
|
-
resetEnv();
|
|
131
|
-
|
|
132
|
-
const { getEnv } = await loadBaseEnv();
|
|
133
|
-
const first = getEnv();
|
|
134
|
-
|
|
135
|
-
process.env.AKAN_PUBLIC_APP_NAME = "changed";
|
|
136
|
-
const second = getEnv();
|
|
137
|
-
|
|
138
|
-
expect(second).toBe(first);
|
|
139
|
-
expect(second.appName).toBe("minimal");
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
afterAll(() => {
|
|
144
|
-
for (const key of Object.keys(process.env)) delete process.env[key];
|
|
145
|
-
Object.assign(process.env, preservedEnv);
|
|
146
|
-
});
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import {
|
|
3
|
-
Any,
|
|
4
|
-
dayjs,
|
|
5
|
-
Float,
|
|
6
|
-
ID,
|
|
7
|
-
Int,
|
|
8
|
-
PRIMITIVE_DEFAULT_VALUE,
|
|
9
|
-
PRIMITIVE_EXAMPLE_VALUE,
|
|
10
|
-
PrimitiveRegistry,
|
|
11
|
-
PrimitiveScalar,
|
|
12
|
-
Upload,
|
|
13
|
-
} from ".";
|
|
14
|
-
|
|
15
|
-
describe("PrimitiveRegistry", () => {
|
|
16
|
-
test("registers and resolves default primitive scalars", () => {
|
|
17
|
-
expect(PrimitiveRegistry.get("String")).toBe(String);
|
|
18
|
-
expect(PrimitiveRegistry.get("Boolean")).toBe(Boolean);
|
|
19
|
-
expect(PrimitiveRegistry.get("Date")).toBe(Date);
|
|
20
|
-
expect(PrimitiveRegistry.get("Int")).toBe(Int);
|
|
21
|
-
expect(PrimitiveRegistry.get("Float")).toBe(Float);
|
|
22
|
-
expect(PrimitiveRegistry.get("ID")).toBe(ID);
|
|
23
|
-
expect(PrimitiveRegistry.get("Any")).toBe(Any);
|
|
24
|
-
expect(PrimitiveRegistry.get("Upload")).toBe(Upload);
|
|
25
|
-
|
|
26
|
-
expect(PrimitiveRegistry.getName(Int)).toBe("Int");
|
|
27
|
-
expect(PrimitiveRegistry.has(Float)).toBe(true);
|
|
28
|
-
expect(PrimitiveRegistry.hasName("ID")).toBe(true);
|
|
29
|
-
expect(PrimitiveRegistry.getNames()).toEqual(["Int", "Float", "ID", "Any", "Upload", "String", "Boolean", "Date"]);
|
|
30
|
-
expect(PrimitiveRegistry.getAll()).toContain(String);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
test("rejects duplicate primitive registration unless overwritten", () => {
|
|
34
|
-
class TestScalar extends PrimitiveScalar {
|
|
35
|
-
static override refName = "TestScalar";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
PrimitiveRegistry.register(TestScalar);
|
|
39
|
-
|
|
40
|
-
expect(PrimitiveRegistry.get("TestScalar")).toBe(TestScalar);
|
|
41
|
-
expect(() => PrimitiveRegistry.register(TestScalar)).toThrow("Scalar TestScalar already registered");
|
|
42
|
-
|
|
43
|
-
class ReplacementScalar extends PrimitiveScalar {
|
|
44
|
-
static override refName = "TestScalar";
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
PrimitiveRegistry.register(ReplacementScalar, { overwrite: true });
|
|
48
|
-
expect(PrimitiveRegistry.get("TestScalar")).toBe(ReplacementScalar);
|
|
49
|
-
expect(PrimitiveRegistry.getName(ReplacementScalar)).toBe("TestScalar");
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
test("throws for missing primitive lookups", () => {
|
|
53
|
-
class MissingScalar extends PrimitiveScalar {
|
|
54
|
-
static override refName = "MissingScalar";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
expect(() => PrimitiveRegistry.get("MissingScalar")).toThrow("Scalar MissingScalar not found");
|
|
58
|
-
expect(() => PrimitiveRegistry.getName(MissingScalar)).toThrow("Scalar");
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
describe("primitive scalars", () => {
|
|
63
|
-
test("parses, serializes, and validates Int values", () => {
|
|
64
|
-
expect(Int.validate(1)).toBe(true);
|
|
65
|
-
expect(Int.validate(1.5)).toBe(false);
|
|
66
|
-
expect(Int.validate(Number.MAX_SAFE_INTEGER + 1)).toBe(false);
|
|
67
|
-
expect(Int.parseValue("42")).toBe(42);
|
|
68
|
-
expect(Int.serializeValue(42)).toBe(42);
|
|
69
|
-
expect(Int._parse("42")).toBe(42);
|
|
70
|
-
expect(Int._serialize(42)).toBe(42);
|
|
71
|
-
expect(Int._parse(null, { optional: true })).toBeUndefined();
|
|
72
|
-
expect(() => Int._parse(1.5)).toThrow("Invalid Int value: 1.5");
|
|
73
|
-
expect(() => Int._serialize(null)).toThrow("Required Int value: null");
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
test("parses, serializes, and validates Float values", () => {
|
|
77
|
-
expect(Float.validate(1.5)).toBe(true);
|
|
78
|
-
expect(Float.validate(Number.POSITIVE_INFINITY)).toBe(false);
|
|
79
|
-
expect(Float.parseValue("3.14")).toBe(3.14);
|
|
80
|
-
expect(Float.serializeValue(3.14)).toBe(3.14);
|
|
81
|
-
expect(Float._parse("3.14")).toBe(3.14);
|
|
82
|
-
expect(Float._serialize(3.14)).toBe(3.14);
|
|
83
|
-
expect(() => Float._parse("NaN")).toThrow("Invalid Float value: NaN");
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
test("validates ID values", () => {
|
|
87
|
-
expect(ID.validate("1234567890abcdef12345678")).toBe(true);
|
|
88
|
-
expect(ID.validate("123")).toBe(false);
|
|
89
|
-
expect(ID.validate("not-a-valid-object-id")).toBe(false);
|
|
90
|
-
expect(ID._parse("")).toBe("");
|
|
91
|
-
expect(ID._serialize("")).toBe("");
|
|
92
|
-
expect(ID.parseValue(1234567890 as never)).toBe("1234567890");
|
|
93
|
-
expect(ID.serializeValue("1234567890abcdef12345678")).toBe("1234567890abcdef12345678");
|
|
94
|
-
expect(() => ID._parse("not-a-valid-object-id")).toThrow("Invalid ID value: not-a-valid-object-id");
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
test("adds scalar helpers to String, Boolean, and Date constructors", () => {
|
|
98
|
-
expect(String.refName).toBe("String");
|
|
99
|
-
expect(String[PRIMITIVE_DEFAULT_VALUE]).toBe("");
|
|
100
|
-
expect(String[PRIMITIVE_EXAMPLE_VALUE]).toBe("String");
|
|
101
|
-
expect(String._parse(123 as never)).toBe("123");
|
|
102
|
-
expect(String._serialize("akan")).toBe("akan");
|
|
103
|
-
|
|
104
|
-
expect(Boolean.refName).toBe("Boolean");
|
|
105
|
-
expect(Boolean[PRIMITIVE_DEFAULT_VALUE]).toBe(false);
|
|
106
|
-
expect(Boolean[PRIMITIVE_EXAMPLE_VALUE]).toBe(true);
|
|
107
|
-
expect(Boolean._parse(1 as never)).toBe(true);
|
|
108
|
-
expect(Boolean._serialize(false)).toBe(false);
|
|
109
|
-
|
|
110
|
-
const parsedDate = Date._parse("2025-01-01T00:00:00.000Z" as never);
|
|
111
|
-
expect(dayjs.isDayjs(parsedDate)).toBe(true);
|
|
112
|
-
expect(parsedDate.toISOString()).toBe("2025-01-01T00:00:00.000Z");
|
|
113
|
-
expect(Date._serialize(parsedDate)).toEqual(new Date("2025-01-01T00:00:00.000Z"));
|
|
114
|
-
expect(() => Date._parse("invalid-date" as never)).toThrow("Invalid Date value: Invalid Date");
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
test("exposes default metadata for object-like primitives", () => {
|
|
118
|
-
expect(Any.refName).toBe("Any");
|
|
119
|
-
expect(Any[PRIMITIVE_DEFAULT_VALUE]).toBeNull();
|
|
120
|
-
expect(Any[PRIMITIVE_EXAMPLE_VALUE]).toEqual({});
|
|
121
|
-
|
|
122
|
-
expect(Upload.refName).toBe("Upload");
|
|
123
|
-
expect(Upload[PRIMITIVE_DEFAULT_VALUE]).toBeNull();
|
|
124
|
-
expect(Upload[PRIMITIVE_EXAMPLE_VALUE]).toBe("FileUpload");
|
|
125
|
-
expect(new Upload().__TEMP_TYPE__).toBe("Upload");
|
|
126
|
-
});
|
|
127
|
-
});
|
package/base/symbols.test.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ACTION_META,
|
|
3
|
-
ENDPOINT_META,
|
|
4
|
-
FIELD_META,
|
|
5
|
-
FILTER_META,
|
|
6
|
-
INJECT_META,
|
|
7
|
-
INTERNAL_META,
|
|
8
|
-
LOADER_META,
|
|
9
|
-
SLICE_META,
|
|
10
|
-
STATE_DERIVED_META,
|
|
11
|
-
STATE_INIT_META,
|
|
12
|
-
STATE_META,
|
|
13
|
-
} from ".";
|
|
14
|
-
|
|
15
|
-
describe("metadata symbols", () => {
|
|
16
|
-
test("exports stable global symbols", () => {
|
|
17
|
-
expect(Symbol.keyFor(FIELD_META)).toBe("akanjs.field");
|
|
18
|
-
expect(Symbol.keyFor(SLICE_META)).toBe("akanjs.slice");
|
|
19
|
-
expect(Symbol.keyFor(FILTER_META)).toBe("akanjs.filter");
|
|
20
|
-
expect(Symbol.keyFor(LOADER_META)).toBe("akanjs.loader");
|
|
21
|
-
expect(Symbol.keyFor(INJECT_META)).toBe("akanjs.inject");
|
|
22
|
-
expect(Symbol.keyFor(ENDPOINT_META)).toBe("akanjs.endpoint");
|
|
23
|
-
expect(Symbol.keyFor(INTERNAL_META)).toBe("akanjs.internal");
|
|
24
|
-
expect(Symbol.keyFor(STATE_META)).toBe("akanjs.state");
|
|
25
|
-
expect(Symbol.keyFor(STATE_INIT_META)).toBe("akanjs.state.init");
|
|
26
|
-
expect(Symbol.keyFor(STATE_DERIVED_META)).toBe("akanjs.state.derived");
|
|
27
|
-
expect(Symbol.keyFor(ACTION_META)).toBe("akanjs.action");
|
|
28
|
-
});
|
|
29
|
-
});
|