@prestizni-software/server-dem 0.7.3 → 0.7.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/AutoUpdateClientManagerClass.d.ts +141 -0
- package/AutoUpdateClientManagerClass.js +656 -0
- package/AutoUpdateClientManagerClass.js.map +1 -0
- package/AutoUpdateManagerClass.d.ts +102 -0
- package/AutoUpdateManagerClass.js +117 -0
- package/AutoUpdateManagerClass.js.map +1 -0
- package/AutoUpdateServerManagerClass.d.ts +208 -0
- package/AutoUpdateServerManagerClass.js +913 -0
- package/AutoUpdateServerManagerClass.js.map +1 -0
- package/AutoUpdatedClientObjectClass.d.ts +215 -0
- package/AutoUpdatedClientObjectClass.js +911 -0
- package/AutoUpdatedClientObjectClass.js.map +1 -0
- package/AutoUpdatedServerObjectClass.d.ts +134 -0
- package/AutoUpdatedServerObjectClass.js +346 -0
- package/AutoUpdatedServerObjectClass.js.map +1 -0
- package/ClientTypes.d.ts +15 -0
- package/ClientTypes.js +52 -0
- package/ClientTypes.js.map +1 -0
- package/CommonTypes.d.ts +259 -0
- package/CommonTypes.js +233 -0
- package/CommonTypes.js.map +1 -0
- package/CommonTypes_server.d.ts +1 -0
- package/CommonTypes_server.js +2 -0
- package/CommonTypes_server.js.map +1 -0
- package/{dist/DEMErrors.d.ts → DEMErrors.d.ts} +22 -2
- package/{dist/DEMErrors.js → DEMErrors.js} +22 -2
- package/{dist/DEMErrors.js.map → DEMErrors.js.map} +1 -1
- package/ServerTypes.d.ts +16 -0
- package/ServerTypes.js +60 -0
- package/ServerTypes.js.map +1 -0
- package/client.d.ts +6 -0
- package/client.js +7 -0
- package/client.js.map +1 -0
- package/coverage/lcov-report/block-navigation.js +71 -0
- package/coverage/lcov-report/block-navigation.js.map +1 -0
- package/coverage/lcov-report/prettify.js +478 -0
- package/coverage/lcov-report/prettify.js.map +1 -0
- package/coverage/lcov-report/sorter.js +177 -0
- package/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/AutoUpdateClientManagerClass.d.ts +20 -0
- package/dist/AutoUpdateClientManagerClass.js +283 -0
- package/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/AutoUpdateManagerClass.d.ts +17 -31
- package/dist/AutoUpdateManagerClass.js +15 -36
- package/dist/AutoUpdateManagerClass.js.map +1 -1
- package/dist/AutoUpdateServerManagerClass.d.ts +18 -118
- package/dist/AutoUpdateServerManagerClass.js +198 -583
- package/dist/AutoUpdateServerManagerClass.js.map +1 -1
- package/dist/AutoUpdatedClientObjectClass.d.ts +63 -92
- package/dist/AutoUpdatedClientObjectClass.js +660 -599
- package/dist/AutoUpdatedClientObjectClass.js.map +1 -1
- package/dist/AutoUpdatedServerObjectClass.d.ts +13 -33
- package/dist/AutoUpdatedServerObjectClass.js +92 -234
- package/dist/AutoUpdatedServerObjectClass.js.map +1 -1
- package/dist/ClientTypes.d.ts +13 -0
- package/dist/ClientTypes.js +70 -0
- package/dist/ClientTypes.js.map +1 -0
- package/dist/CommonTypes.d.ts +3 -220
- package/dist/CommonTypes.js +4 -188
- package/dist/CommonTypes.js.map +1 -1
- package/dist/CommonTypes_server.d.ts +1 -1
- package/dist/CommonTypes_server.js +2 -1
- package/dist/CommonTypes_server.js.map +1 -1
- package/dist/ServerTypes.d.ts +13 -0
- package/dist/ServerTypes.js +78 -0
- package/dist/ServerTypes.js.map +1 -0
- package/dist/TestTypes.d.ts +1 -0
- package/dist/TestTypes.js +7 -0
- package/dist/TestTypes.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +12 -0
- package/dist/client.js.map +1 -0
- package/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/AutoUpdateClientManagerClass.js +284 -0
- package/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/AutoUpdateManagerClass.js +60 -0
- package/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateServerManagerClass.d.ts +50 -0
- package/dist/dist/AutoUpdateServerManagerClass.js +413 -0
- package/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js +865 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js +124 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/ClientTypes.js +71 -0
- package/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/CommonTypes.js +20 -0
- package/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/CommonTypes_server.js +4 -0
- package/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/ServerTypes.js +79 -0
- package/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/TestTypes.js +8 -0
- package/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/client.d.ts +1 -0
- package/dist/dist/client.js +13 -0
- package/dist/dist/client.js.map +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js +285 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js +61 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.d.ts +158 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js +414 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js +866 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js +125 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/dist/ClientTypes.js +72 -0
- package/dist/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/dist/CommonTypes.js +21 -0
- package/dist/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/dist/CommonTypes_server.js +5 -0
- package/dist/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/dist/ServerTypes.js +80 -0
- package/dist/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/dist/TestTypes.js +9 -0
- package/dist/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/dist/client.d.ts +1 -0
- package/dist/dist/dist/client.js +14 -0
- package/dist/dist/dist/client.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js +27 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js +95 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js +81 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/dist/expo-test/app/_layout.js +22 -0
- package/dist/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/modal.js +28 -0
- package/dist/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/external-link.js +18 -0
- package/dist/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js +15 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js +19 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js +53 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/themed-text.js +43 -0
- package/dist/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/dist/expo-test/components/themed-view.js +10 -0
- package/dist/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js +34 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js +14 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js +25 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/dist/expo-test/constants/theme.js +53 -0
- package/dist/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js +5 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/dist/jest.config.js +20 -0
- package/dist/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/dist/server.d.ts +1 -0
- package/dist/dist/dist/server.js +16 -0
- package/dist/dist/dist/server.js.map +1 -0
- package/dist/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/dist/socket_test.js +24 -0
- package/dist/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/dist/test.d.ts +1 -0
- package/dist/dist/dist/test.js +7 -0
- package/dist/dist/dist/test.js.map +1 -0
- package/dist/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/dist/test_client.js +26 -0
- package/dist/dist/dist/test_client.js.map +1 -0
- package/dist/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/dist/test_lib.js +85 -0
- package/dist/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/dist/test_server.js +54 -0
- package/dist/dist/dist/test_server.js.map +1 -0
- package/dist/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/dist/tests/dem.test.js +341 -0
- package/dist/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js +26 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js +94 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.js +80 -0
- package/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/expo-test/app/_layout.js +21 -0
- package/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/expo-test/app/modal.js +27 -0
- package/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/expo-test/components/external-link.js +17 -0
- package/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/expo-test/components/haptic-tab.js +14 -0
- package/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/expo-test/components/hello-wave.js +18 -0
- package/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js +52 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/expo-test/components/themed-text.js +42 -0
- package/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/expo-test/components/themed-view.js +9 -0
- package/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/expo-test/components/ui/collapsible.js +33 -0
- package/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js +13 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js +24 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/expo-test/constants/theme.js +52 -0
- package/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js +19 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js +19 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/jest.config.js +19 -0
- package/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/server.d.ts +1 -0
- package/dist/dist/server.js +15 -0
- package/dist/dist/server.js.map +1 -0
- package/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/socket_test.js +23 -0
- package/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/test.d.ts +1 -0
- package/dist/dist/test.js +6 -0
- package/dist/dist/test.js.map +1 -0
- package/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/test_client.js +25 -0
- package/dist/dist/test_client.js.map +1 -0
- package/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/test_lib.js +84 -0
- package/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/test_server.js +53 -0
- package/dist/dist/test_server.js.map +1 -0
- package/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/tests/dem.test.js +340 -0
- package/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/_layout.js +25 -0
- package/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/explore.js +93 -0
- package/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/index.js +79 -0
- package/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/expo-test/app/_layout.js +20 -0
- package/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/expo-test/app/modal.js +26 -0
- package/dist/expo-test/app/modal.js.map +1 -0
- package/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/expo-test/components/external-link.js +16 -0
- package/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/expo-test/components/haptic-tab.js +13 -0
- package/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/expo-test/components/hello-wave.js +17 -0
- package/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/expo-test/components/parallax-scroll-view.js +51 -0
- package/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/expo-test/components/themed-text.js +41 -0
- package/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/expo-test/components/themed-view.js +8 -0
- package/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/expo-test/components/ui/collapsible.js +32 -0
- package/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js +12 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.js +23 -0
- package/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/expo-test/constants/theme.js +51 -0
- package/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/expo-test/eslint.config.js +11 -0
- package/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/expo-test/hooks/use-color-scheme.js +3 -0
- package/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js +18 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/expo-test/hooks/use-theme-color.js +18 -0
- package/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/jest.config.d.ts +21 -0
- package/dist/jest.config.js +18 -0
- package/dist/jest.config.js.map +1 -0
- package/dist/server.d.ts +1 -8
- package/dist/server.js +13 -8
- package/dist/server.js.map +1 -1
- package/dist/socket_test.d.ts +1 -0
- package/dist/socket_test.js +22 -0
- package/dist/socket_test.js.map +1 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/test_client.d.ts +1 -0
- package/dist/test_client.js +24 -0
- package/dist/test_client.js.map +1 -0
- package/dist/test_lib.d.ts +12 -0
- package/dist/test_lib.js +83 -0
- package/dist/test_lib.js.map +1 -0
- package/dist/test_server.d.ts +1 -0
- package/dist/test_server.js +52 -0
- package/dist/test_server.js.map +1 -0
- package/dist/tests/dem.test.d.ts +1 -0
- package/dist/tests/dem.test.js +339 -0
- package/dist/tests/dem.test.js.map +1 -0
- package/expo-test/app/(tabs)/_layout.d.ts +2 -0
- package/expo-test/app/(tabs)/_layout.js +24 -0
- package/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/expo-test/app/(tabs)/explore.js +92 -0
- package/expo-test/app/(tabs)/explore.js.map +1 -0
- package/expo-test/app/(tabs)/index.d.ts +1 -0
- package/expo-test/app/(tabs)/index.js +78 -0
- package/expo-test/app/(tabs)/index.js.map +1 -0
- package/expo-test/app/_layout.d.ts +5 -0
- package/expo-test/app/_layout.js +19 -0
- package/expo-test/app/_layout.js.map +1 -0
- package/expo-test/app/modal.d.ts +1 -0
- package/expo-test/app/modal.js +25 -0
- package/expo-test/app/modal.js.map +1 -0
- package/expo-test/components/external-link.d.ts +7 -0
- package/expo-test/components/external-link.js +15 -0
- package/expo-test/components/external-link.js.map +1 -0
- package/expo-test/components/haptic-tab.d.ts +2 -0
- package/expo-test/components/haptic-tab.js +12 -0
- package/expo-test/components/haptic-tab.js.map +1 -0
- package/expo-test/components/hello-wave.d.ts +1 -0
- package/expo-test/components/hello-wave.js +16 -0
- package/expo-test/components/hello-wave.js.map +1 -0
- package/expo-test/components/parallax-scroll-view.d.ts +10 -0
- package/expo-test/components/parallax-scroll-view.js +50 -0
- package/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/expo-test/components/themed-text.d.ts +7 -0
- package/expo-test/components/themed-text.js +40 -0
- package/expo-test/components/themed-text.js.map +1 -0
- package/expo-test/components/themed-view.d.ts +6 -0
- package/expo-test/components/themed-view.js +7 -0
- package/expo-test/components/themed-view.js.map +1 -0
- package/expo-test/components/ui/collapsible.d.ts +4 -0
- package/expo-test/components/ui/collapsible.js +31 -0
- package/expo-test/components/ui/collapsible.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.d.ts +25 -0
- package/expo-test/components/ui/icon-symbol.ios.d.ts +9 -0
- package/expo-test/components/ui/icon-symbol.ios.js +11 -0
- package/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.js +22 -0
- package/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/expo-test/constants/theme.d.ts +32 -0
- package/expo-test/constants/theme.js +50 -0
- package/expo-test/constants/theme.js.map +1 -0
- package/expo-test/eslint.config.d.ts +2 -0
- package/expo-test/eslint.config.js +11 -0
- package/expo-test/eslint.config.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/expo-test/hooks/use-color-scheme.js +2 -0
- package/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/expo-test/hooks/use-color-scheme.web.js +17 -0
- package/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/expo-test/hooks/use-theme-color.d.ts +9 -0
- package/expo-test/hooks/use-theme-color.js +17 -0
- package/expo-test/hooks/use-theme-color.js.map +1 -0
- package/expo-test/scripts/reset-project.d.ts +2 -0
- package/expo-test/scripts/reset-project.js +98 -0
- package/expo-test/scripts/reset-project.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/jest.config.d.ts +3 -0
- package/jest.config.js +17 -0
- package/jest.config.js.map +1 -0
- package/package.json +23 -42
- package/server.d.ts +8 -0
- package/server.js +9 -0
- package/server.js.map +1 -0
- package/{dist/sync → sync}/ClientStateReconciler.d.ts +20 -0
- package/{dist/sync → sync}/ClientStateReconciler.js +20 -0
- package/sync/ClientStateReconciler.js.map +1 -0
- package/{dist/sync → sync}/ServerChangeTracker.d.ts +46 -0
- package/{dist/sync → sync}/ServerChangeTracker.js +46 -0
- package/sync/ServerChangeTracker.js.map +1 -0
- package/sync/storage/IndexedDbStorageAdapter.d.ts +53 -0
- package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.js +31 -0
- package/sync/storage/IndexedDbStorageAdapter.js.map +1 -0
- package/sync/storage/LocalStorageAdapter.d.ts +59 -0
- package/{dist/sync → sync}/storage/LocalStorageAdapter.js +32 -0
- package/sync/storage/LocalStorageAdapter.js.map +1 -0
- package/sync/storage/MemoryStorageAdapter.d.ts +34 -0
- package/sync/storage/MemoryStorageAdapter.js +45 -0
- package/sync/storage/MemoryStorageAdapter.js.map +1 -0
- package/version.d.ts +21 -0
- package/version.js +22 -0
- package/version.js.map +1 -0
- package/README.md +0 -18
- package/dist/sync/ClientStateReconciler.js.map +0 -1
- package/dist/sync/ServerChangeTracker.js.map +0 -1
- package/dist/sync/storage/IndexedDbStorageAdapter.d.ts +0 -22
- package/dist/sync/storage/IndexedDbStorageAdapter.js.map +0 -1
- package/dist/sync/storage/LocalStorageAdapter.d.ts +0 -27
- package/dist/sync/storage/LocalStorageAdapter.js.map +0 -1
- package/dist/sync/storage/MemoryStorageAdapter.d.ts +0 -13
- package/dist/sync/storage/MemoryStorageAdapter.js +0 -25
- package/dist/sync/storage/MemoryStorageAdapter.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/sync → sync}/index.d.ts +0 -0
- /package/{dist/sync → sync}/index.js +0 -0
- /package/{dist/sync → sync}/index.js.map +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/types.d.ts +0 -0
- /package/{dist/sync → sync}/types.js +0 -0
- /package/{dist/sync → sync}/types.js.map +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13
|
+
return Reflect.metadata(k, v);
|
|
14
|
+
};
|
|
15
|
+
import { classProp, classRef, populatedRef } from "./CommonTypes.js";
|
|
16
|
+
import { Status } from "./TestTypes.js";
|
|
17
|
+
export class Test {
|
|
18
|
+
_id;
|
|
19
|
+
active;
|
|
20
|
+
status;
|
|
21
|
+
description;
|
|
22
|
+
ref;
|
|
23
|
+
refarr;
|
|
24
|
+
obj;
|
|
25
|
+
parent;
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
classProp,
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Test.prototype, "_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
classProp,
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], Test.prototype, "active", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
classProp,
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Test.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
classProp,
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], Test.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
classProp,
|
|
45
|
+
classRef(),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Test.prototype, "ref", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
classProp,
|
|
50
|
+
classRef(),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Test.prototype, "refarr", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
classProp,
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], Test.prototype, "obj", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
classProp,
|
|
59
|
+
populatedRef("Test:refarr"),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], Test.prototype, "parent", void 0);
|
|
62
|
+
export class Test2 {
|
|
63
|
+
_id;
|
|
64
|
+
}
|
|
65
|
+
__decorate([
|
|
66
|
+
classProp,
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Test2.prototype, "_id", void 0);
|
|
69
|
+
//# sourceMappingURL=ClientTypes.js.map
|
|
70
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,CAAC;CACpC,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAClC,UAAU,CAAC;IACP,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;CACnC,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AACrC,UAAU,CAAC;IACP,SAAS;IACT,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAClC,UAAU,CAAC;IACP,SAAS;IACT,YAAY,CAAC,aAAa,CAAC;IAC3B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AACrC,MAAM,OAAO,KAAK;IACd,GAAG,CAAC;CACP;AACD,UAAU,CAAC;IACP,SAAS;IACT,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AACnC,uCAAuC"}
|
package/dist/CommonTypes.d.ts
CHANGED
|
@@ -1,220 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { DEMErrorCode } from "./DEMErrors.js";
|
|
5
|
-
export type MongoId = string | ObjectId;
|
|
6
|
-
export type EventEmitter3 = EventEmitter;
|
|
7
|
-
export interface IAutoUpdateManager<T extends IAutoUpdatedClientObjectBase> {
|
|
8
|
-
readonly className: string;
|
|
9
|
-
readonly cache: DEMCache;
|
|
10
|
-
readonly managers: Record<string, IAutoUpdateManager<IAutoUpdatedClientObjectBase>>;
|
|
11
|
-
getObject(_id?: MongoId): T | null | undefined;
|
|
12
|
-
deleteObject(_id: MongoId): Promise<{
|
|
13
|
-
success: boolean;
|
|
14
|
-
message: string;
|
|
15
|
-
code?: DEMErrorCode;
|
|
16
|
-
}>;
|
|
17
|
-
readonly objectsAsArray: T[];
|
|
18
|
-
readonly isLoaded: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface IAutoUpdatedClientObjectBase {
|
|
21
|
-
readonly _id: MongoId;
|
|
22
|
-
readonly properties: string[];
|
|
23
|
-
readonly className: string;
|
|
24
|
-
readonly isLoaded: boolean;
|
|
25
|
-
loadMissingReferences(): Promise<void>;
|
|
26
|
-
waitForPreloaded(): Promise<void>;
|
|
27
|
-
destroy(once?: boolean): Promise<{
|
|
28
|
-
success: boolean;
|
|
29
|
-
message: string;
|
|
30
|
-
code?: DEMErrorCode;
|
|
31
|
-
}>;
|
|
32
|
-
isPreLoadedAsync(): Promise<boolean>;
|
|
33
|
-
contactChildren(): Promise<void>;
|
|
34
|
-
getValue(key: string): unknown;
|
|
35
|
-
setValue(key: string, val: unknown): Promise<{
|
|
36
|
-
success: boolean;
|
|
37
|
-
msg: string;
|
|
38
|
-
code?: DEMErrorCode;
|
|
39
|
-
}>;
|
|
40
|
-
readonly parentManager: IAutoUpdateManager<IAutoUpdatedClientObjectBase>;
|
|
41
|
-
readonly callbacks: any;
|
|
42
|
-
readonly classParam: any;
|
|
43
|
-
}
|
|
44
|
-
export interface IAutoUpdatedClientObject<T extends object = any> extends IAutoUpdatedClientObjectBase {
|
|
45
|
-
readonly extractedData: ExtractedData<T, IAutoUpdatedClientObject<any>>;
|
|
46
|
-
getValue<K extends Paths<T, IAutoUpdatedClientObject<any>>>(key: K): PathValueOf<T, K>;
|
|
47
|
-
setValue<K extends Paths<T, IAutoUpdatedClientObject<any>>>(key: K, val: PathValueOf<IsData<T>, K>): Promise<{
|
|
48
|
-
success: boolean;
|
|
49
|
-
msg: string;
|
|
50
|
-
code?: DEMErrorCode;
|
|
51
|
-
}>;
|
|
52
|
-
}
|
|
53
|
-
export interface IAutoUpdatedServerObject<T extends object = any> extends IAutoUpdatedClientObject<T> {
|
|
54
|
-
loadFromDB(): Promise<void>;
|
|
55
|
-
loadFromDocument(document: unknown): void;
|
|
56
|
-
}
|
|
57
|
-
export type AutoProps<T> = {
|
|
58
|
-
readonly [K in keyof T]: T[K];
|
|
59
|
-
};
|
|
60
|
-
export type Constructor<T> = new (...args: any[]) => T;
|
|
61
|
-
export type UnboxConstructor<T> = T extends new (...args: any[]) => infer I ? I : T;
|
|
62
|
-
export type LoggersType = {
|
|
63
|
-
info: (s: string) => void;
|
|
64
|
-
debug: (s: string) => void;
|
|
65
|
-
error: (s: string) => void;
|
|
66
|
-
warn: (s: string) => void;
|
|
67
|
-
};
|
|
68
|
-
type IsAUCOBase<T> = T extends {
|
|
69
|
-
className: string;
|
|
70
|
-
_id: any;
|
|
71
|
-
} ? true : false;
|
|
72
|
-
type AllowStringForRefs<V> = NonNullable<V> extends Array<infer U> ? IsAUCOBase<NonNullable<U>> extends true ? (U | string | ObjectIdLike)[] : V : IsAUCOBase<NonNullable<V>> extends true ? V | string | ObjectIdLike : V;
|
|
73
|
-
type OnlyStringForRefs<V> = V extends any ? V extends Array<infer U> ? OnlyStringForRefs<U>[] : V extends IAutoUpdatedClientObjectBase ? string : V extends Date ? V : V extends ObjectId | ObjectIdLike ? string : V extends object ? {
|
|
74
|
-
[K in keyof V as V[K] extends Function ? never : K]: K extends "_id" ? string : OnlyStringForRefs<V[K]>;
|
|
75
|
-
} : V : never;
|
|
76
|
-
export type DEMCache = {
|
|
77
|
-
references: Record<string, any>;
|
|
78
|
-
};
|
|
79
|
-
export type Pure<T extends object, Base = IAutoUpdatedClientObject<any>> = Omit<T, keyof Base | "parentManager" | "callbacks" | "classParam" | "className" | "properties" | "isLoaded" | "extractedData" | "getValue" | "setValue" | "loadFromDB" | "setValue_" | "destroyImmediate" | "loadError" | "updateEventName" | "getRawId">;
|
|
80
|
-
export type IsData<T extends object> = {
|
|
81
|
-
[K in keyof Pure<T> as T[K] extends Function ? never : K]: AllowStringForRefs<T[K]>;
|
|
82
|
-
} & {
|
|
83
|
-
_id: MongoId;
|
|
84
|
-
};
|
|
85
|
-
export type ExtractedData<T extends object, Base = IAutoUpdatedClientObject<any>> = {
|
|
86
|
-
[K in keyof IsData<T> as K extends "_id" ? never : K]: OnlyStringForRefs<IsData<T>[K]>;
|
|
87
|
-
} & {
|
|
88
|
-
_id: string;
|
|
89
|
-
};
|
|
90
|
-
export type SocketEvent = [
|
|
91
|
-
string,
|
|
92
|
-
unknown,
|
|
93
|
-
(res: ServerResponse<unknown>) => void
|
|
94
|
-
];
|
|
95
|
-
export type ServerResponse<T> = {
|
|
96
|
-
data: T;
|
|
97
|
-
message?: string;
|
|
98
|
-
code?: DEMErrorCode;
|
|
99
|
-
success: true;
|
|
100
|
-
} | {
|
|
101
|
-
message: string;
|
|
102
|
-
code?: DEMErrorCode;
|
|
103
|
-
details?: unknown;
|
|
104
|
-
success: false;
|
|
105
|
-
};
|
|
106
|
-
export type ServerUpdateRequest<T = unknown> = {
|
|
107
|
-
_id: MongoId;
|
|
108
|
-
key: string;
|
|
109
|
-
value: unknown;
|
|
110
|
-
};
|
|
111
|
-
export declare function classProp(target: object, propertyKey: string): void;
|
|
112
|
-
export declare function populatedRef(where: string): (target: object, propertyKey: string) => void;
|
|
113
|
-
export declare function classRef(): (target: object, propertyKey: string) => void;
|
|
114
|
-
export type Pretty<T> = {
|
|
115
|
-
[K in keyof T]: T[K];
|
|
116
|
-
};
|
|
117
|
-
export type StripPrototypePrefix<P extends string> = P extends "prototype" ? never : P extends `prototype.${infer Rest}` ? Rest : P;
|
|
118
|
-
export type Recurseable<T> = T extends object ? T extends Array<unknown> | Function ? never : T : never;
|
|
119
|
-
export type OnlyClassKeys<T> = {
|
|
120
|
-
[K in keyof T]: K;
|
|
121
|
-
}[keyof T] & string;
|
|
122
|
-
export type Split<S extends string> = S extends `${infer L}.${infer R}` ? [L, ...Split<R>] : [S];
|
|
123
|
-
export type NonOptional<T> = Exclude<T, null | undefined>;
|
|
124
|
-
export type DeAutoUpdate<T> = T extends IAutoUpdatedClientObject<any> ? unknown : T;
|
|
125
|
-
export type RecursiveDeAutoUpdate<T extends IAutoUpdatedClientObject<any>> = T extends IAutoUpdatedClientObject<any> ? unknown : T;
|
|
126
|
-
export type OnlyAddedKeys<Sub, Parent> = Pick<Sub, Exclude<keyof Sub, keyof Omit<Parent, "_id">>>;
|
|
127
|
-
export type Prev = [never, 0, 1, 2, 3];
|
|
128
|
-
export type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${"" extends P ? "" : "."}${P}` : never : never;
|
|
129
|
-
export type Paths<T, Base, D extends number = 3> = 0 extends 1 & T ? string : [D] extends [never] ? never : NonNullable<T> extends object ? {
|
|
130
|
-
[K in keyof OnlyAddedKeys<NonNullable<T>, Base> & string]-?: NonNullable<NonNullable<T>[K]> extends Function ? never : NonNullable<NonNullable<T>[K]> extends Array<unknown> | Date | ObjectId ? K : NonNullable<NonNullable<T>[K]> extends object ? K | Join<K, Paths<NonNullable<NonNullable<T>[K]>, Base, Prev[D]>> : K;
|
|
131
|
-
}[keyof OnlyAddedKeys<NonNullable<T>, Base> & string] : never;
|
|
132
|
-
export type PathValueOf<T, P extends string> = 0 extends 1 & T ? any : P extends `${infer K}.${infer Rest}` ? K extends keyof NonNullable<T> ? PathValueOf<NonNullable<NonNullable<T>[K]>, Rest> : never : P extends keyof NonNullable<T> ? NonNullable<T>[P] : never;
|
|
133
|
-
export declare const EVENT_INTERNAL_PRE_LOADED = "pre-loaded";
|
|
134
|
-
export declare const EVENT_UPDATE = "update";
|
|
135
|
-
export declare const EVENT_DELETE = "delete";
|
|
136
|
-
export declare const EVENT_NEW = "new";
|
|
137
|
-
export declare const EVENT_GET = "get";
|
|
138
|
-
export declare const EVENT_STARTUP = "startup";
|
|
139
|
-
export declare const EVENT_VERSION = "dem_version";
|
|
140
|
-
/**
|
|
141
|
-
* Current version of the DEM library.
|
|
142
|
-
*/
|
|
143
|
-
export declare const DEM_VERSION = "0.6.5";
|
|
144
|
-
/**
|
|
145
|
-
* DEM socket protocol version.
|
|
146
|
-
*/
|
|
147
|
-
export declare const DEM_PROTOCOL_VERSION = "1.0.0";
|
|
148
|
-
/**
|
|
149
|
-
* Configuration options for DEM client-server version verification.
|
|
150
|
-
*/
|
|
151
|
-
export interface DEMVersionOptions {
|
|
152
|
-
/**
|
|
153
|
-
* If true, requires exact or strict compatibility between client and server versions.
|
|
154
|
-
* In strict mode, minor or major mismatches reject the connection.
|
|
155
|
-
* Default: false (allows minor/patch differences, warning on differences).
|
|
156
|
-
*/
|
|
157
|
-
strictVersionMatch?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Optional minimum server version required by the client.
|
|
160
|
-
* e.g., "0.6.0"
|
|
161
|
-
*/
|
|
162
|
-
minServerVersion?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Optional custom validator callback.
|
|
165
|
-
* Return true for compatible, false or error message string if incompatible.
|
|
166
|
-
*/
|
|
167
|
-
validateVersion?: (clientVersion: string, serverVersion: string) => boolean | string;
|
|
168
|
-
/**
|
|
169
|
-
* Optional callback triggered when a version mismatch or notice is detected.
|
|
170
|
-
*/
|
|
171
|
-
onVersionMismatch?: (clientVersion: string, serverVersion: string, message: string) => void;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Result of a DEM version verification check.
|
|
175
|
-
*/
|
|
176
|
-
export interface DEMVersionVerificationResult {
|
|
177
|
-
compatible: boolean;
|
|
178
|
-
clientVersion: string;
|
|
179
|
-
serverVersion: string;
|
|
180
|
-
status: "match" | "compatible_minor" | "compatible_patch" | "mismatch_major" | "mismatch_minor" | "below_min_version" | "custom_rejected" | "unknown";
|
|
181
|
-
message: string;
|
|
182
|
-
}
|
|
183
|
-
export interface ParsedSemVer {
|
|
184
|
-
major: number;
|
|
185
|
-
minor: number;
|
|
186
|
-
patch: number;
|
|
187
|
-
prerelease?: string;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Parses a semantic version string (e.g. "0.6.5", "v1.2.3-alpha").
|
|
191
|
-
*/
|
|
192
|
-
export declare function parseSemVer(version: string): ParsedSemVer | null;
|
|
193
|
-
/**
|
|
194
|
-
* Compares two semantic version strings.
|
|
195
|
-
* Returns -1 if v1 < v2, 0 if v1 === v2, 1 if v1 > v2.
|
|
196
|
-
*/
|
|
197
|
-
export declare function compareSemVer(v1: string, v2: string): number;
|
|
198
|
-
/**
|
|
199
|
-
* Verifies compatibility between client and server DEM versions.
|
|
200
|
-
*/
|
|
201
|
-
export declare function verifyDEMVersion(clientVersion: string, serverVersion: string, options?: DEMVersionOptions): DEMVersionVerificationResult;
|
|
202
|
-
export declare function safeStringify(obj: unknown): string;
|
|
203
|
-
export declare class DEMGlobalCache {
|
|
204
|
-
objects: Record<string, {
|
|
205
|
-
className: string;
|
|
206
|
-
object: IAutoUpdatedClientObjectBase;
|
|
207
|
-
}>;
|
|
208
|
-
clear(): void;
|
|
209
|
-
get size(): number;
|
|
210
|
-
}
|
|
211
|
-
export type GlobalCache = DEMGlobalCache;
|
|
212
|
-
export declare const globalCache: DEMGlobalCache;
|
|
213
|
-
export * from "./sync/types.js";
|
|
214
|
-
export * from "./sync/storage/IClientStorageAdapter.js";
|
|
215
|
-
export * from "./sync/storage/MemoryStorageAdapter.js";
|
|
216
|
-
export * from "./sync/storage/LocalStorageAdapter.js";
|
|
217
|
-
export * from "./sync/storage/IndexedDbStorageAdapter.js";
|
|
218
|
-
export * from "./sync/ServerChangeTracker.js";
|
|
219
|
-
export * from "./sync/ClientStateReconciler.js";
|
|
220
|
-
export * from "./DEMErrors.js";
|
|
1
|
+
export function classProp(target: any, propertyKey: any): void;
|
|
2
|
+
export function populatedRef(where: any): (target: any, propertyKey: any) => void;
|
|
3
|
+
export function classRef(): (target: any, propertyKey: any) => void;
|
package/dist/CommonTypes.js
CHANGED
|
@@ -1,203 +1,19 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
2
|
export function classProp(target, propertyKey) {
|
|
3
|
-
const props = Reflect.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const newProps = [...props, propertyKey];
|
|
7
|
-
Reflect.defineMetadata("props", newProps, target);
|
|
3
|
+
const props = Reflect.getMetadata("props", target) || [];
|
|
4
|
+
props.push(propertyKey);
|
|
5
|
+
Reflect.defineMetadata("props", props, target);
|
|
8
6
|
}
|
|
9
7
|
export function populatedRef(where) {
|
|
10
8
|
return function (target, propertyKey) {
|
|
11
|
-
classProp(target, propertyKey);
|
|
12
9
|
classRef()(target, propertyKey);
|
|
13
10
|
Reflect.defineMetadata("refsTo", where, target, propertyKey);
|
|
14
11
|
};
|
|
15
12
|
}
|
|
16
13
|
export function classRef() {
|
|
17
14
|
return function (target, propertyKey) {
|
|
18
|
-
classProp(target, propertyKey);
|
|
19
15
|
Reflect.defineMetadata("isRef", true, target, propertyKey);
|
|
20
16
|
};
|
|
21
17
|
}
|
|
22
|
-
|
|
23
|
-
export const EVENT_UPDATE = "update";
|
|
24
|
-
export const EVENT_DELETE = "delete";
|
|
25
|
-
export const EVENT_NEW = "new";
|
|
26
|
-
export const EVENT_GET = "get";
|
|
27
|
-
export const EVENT_STARTUP = "startup";
|
|
28
|
-
export const EVENT_VERSION = "dem_version";
|
|
29
|
-
/**
|
|
30
|
-
* Current version of the DEM library.
|
|
31
|
-
*/
|
|
32
|
-
export const DEM_VERSION = "0.6.5";
|
|
33
|
-
/**
|
|
34
|
-
* DEM socket protocol version.
|
|
35
|
-
*/
|
|
36
|
-
export const DEM_PROTOCOL_VERSION = "1.0.0";
|
|
37
|
-
/**
|
|
38
|
-
* Parses a semantic version string (e.g. "0.6.5", "v1.2.3-alpha").
|
|
39
|
-
*/
|
|
40
|
-
export function parseSemVer(version) {
|
|
41
|
-
if (!version || typeof version !== "string")
|
|
42
|
-
return null;
|
|
43
|
-
const cleaned = version.trim().replace(/^v/, "");
|
|
44
|
-
const match = cleaned.match(/^(\d+)\.(\d+)(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?/);
|
|
45
|
-
if (!match)
|
|
46
|
-
return null;
|
|
47
|
-
return {
|
|
48
|
-
major: parseInt(match[1], 10),
|
|
49
|
-
minor: parseInt(match[2], 10),
|
|
50
|
-
patch: match[3] !== undefined ? parseInt(match[3], 10) : 0,
|
|
51
|
-
prerelease: match[4] || undefined,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Compares two semantic version strings.
|
|
56
|
-
* Returns -1 if v1 < v2, 0 if v1 === v2, 1 if v1 > v2.
|
|
57
|
-
*/
|
|
58
|
-
export function compareSemVer(v1, v2) {
|
|
59
|
-
const p1 = parseSemVer(v1);
|
|
60
|
-
const p2 = parseSemVer(v2);
|
|
61
|
-
if (!p1 && !p2)
|
|
62
|
-
return 0;
|
|
63
|
-
if (!p1)
|
|
64
|
-
return -1;
|
|
65
|
-
if (!p2)
|
|
66
|
-
return 1;
|
|
67
|
-
if (p1.major !== p2.major)
|
|
68
|
-
return p1.major > p2.major ? 1 : -1;
|
|
69
|
-
if (p1.minor !== p2.minor)
|
|
70
|
-
return p1.minor > p2.minor ? 1 : -1;
|
|
71
|
-
if (p1.patch !== p2.patch)
|
|
72
|
-
return p1.patch > p2.patch ? 1 : -1;
|
|
73
|
-
return 0;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Verifies compatibility between client and server DEM versions.
|
|
77
|
-
*/
|
|
78
|
-
export function verifyDEMVersion(clientVersion, serverVersion, options) {
|
|
79
|
-
const cParsed = parseSemVer(clientVersion);
|
|
80
|
-
const sParsed = parseSemVer(serverVersion);
|
|
81
|
-
if (options?.validateVersion) {
|
|
82
|
-
const customRes = options.validateVersion(clientVersion, serverVersion);
|
|
83
|
-
if (customRes === true) {
|
|
84
|
-
return {
|
|
85
|
-
compatible: true,
|
|
86
|
-
clientVersion,
|
|
87
|
-
serverVersion,
|
|
88
|
-
status: "match",
|
|
89
|
-
message: `Custom version validator accepted client ${clientVersion} and server ${serverVersion}.`,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
const msg = typeof customRes === "string"
|
|
93
|
-
? customRes
|
|
94
|
-
: `Custom version validator rejected client ${clientVersion} with server ${serverVersion}.`;
|
|
95
|
-
return {
|
|
96
|
-
compatible: false,
|
|
97
|
-
clientVersion,
|
|
98
|
-
serverVersion,
|
|
99
|
-
status: "custom_rejected",
|
|
100
|
-
message: msg,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
if (!cParsed || !sParsed) {
|
|
104
|
-
const isExact = clientVersion === serverVersion;
|
|
105
|
-
return {
|
|
106
|
-
compatible: isExact || !options?.strictVersionMatch,
|
|
107
|
-
clientVersion,
|
|
108
|
-
serverVersion,
|
|
109
|
-
status: isExact ? "match" : "unknown",
|
|
110
|
-
message: isExact
|
|
111
|
-
? `DEM versions match (${clientVersion}).`
|
|
112
|
-
: `Non-semver DEM versions encountered: client '${clientVersion}', server '${serverVersion}'.`,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
// Check minimum server version requirement if specified
|
|
116
|
-
if (options?.minServerVersion) {
|
|
117
|
-
if (compareSemVer(serverVersion, options.minServerVersion) < 0) {
|
|
118
|
-
return {
|
|
119
|
-
compatible: false,
|
|
120
|
-
clientVersion,
|
|
121
|
-
serverVersion,
|
|
122
|
-
status: "below_min_version",
|
|
123
|
-
message: `Server DEM version ${serverVersion} is lower than required minimum ${options.minServerVersion}.`,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// Exact match
|
|
128
|
-
if (cParsed.major === sParsed.major &&
|
|
129
|
-
cParsed.minor === sParsed.minor &&
|
|
130
|
-
cParsed.patch === sParsed.patch) {
|
|
131
|
-
return {
|
|
132
|
-
compatible: true,
|
|
133
|
-
clientVersion,
|
|
134
|
-
serverVersion,
|
|
135
|
-
status: "match",
|
|
136
|
-
message: `DEM versions match (${clientVersion}).`,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
// Major version mismatch (incompatible by SemVer rules)
|
|
140
|
-
if (cParsed.major !== sParsed.major) {
|
|
141
|
-
return {
|
|
142
|
-
compatible: false,
|
|
143
|
-
clientVersion,
|
|
144
|
-
serverVersion,
|
|
145
|
-
status: "mismatch_major",
|
|
146
|
-
message: `Incompatible major DEM version: Client is ${clientVersion}, Server is ${serverVersion}.`,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
// Minor version difference
|
|
150
|
-
if (cParsed.minor !== sParsed.minor) {
|
|
151
|
-
if (options?.strictVersionMatch) {
|
|
152
|
-
return {
|
|
153
|
-
compatible: false,
|
|
154
|
-
clientVersion,
|
|
155
|
-
serverVersion,
|
|
156
|
-
status: "mismatch_minor",
|
|
157
|
-
message: `Strict version check failed: Client minor version (${clientVersion}) differs from Server (${serverVersion}).`,
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
return {
|
|
161
|
-
compatible: true,
|
|
162
|
-
clientVersion,
|
|
163
|
-
serverVersion,
|
|
164
|
-
status: "compatible_minor",
|
|
165
|
-
message: `DEM minor version notice: Client (${clientVersion}) differs from Server (${serverVersion}). Functionality is compatible.`,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
// Patch version difference
|
|
169
|
-
return {
|
|
170
|
-
compatible: true,
|
|
171
|
-
clientVersion,
|
|
172
|
-
serverVersion,
|
|
173
|
-
status: "compatible_patch",
|
|
174
|
-
message: `DEM patch version notice: Client (${clientVersion}) and Server (${serverVersion}).`,
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
export function safeStringify(obj) {
|
|
178
|
-
try {
|
|
179
|
-
return JSON.stringify(obj);
|
|
180
|
-
}
|
|
181
|
-
catch (e) {
|
|
182
|
-
return "[Circular or non-serializable object]";
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
export class DEMGlobalCache {
|
|
186
|
-
objects = {};
|
|
187
|
-
clear() {
|
|
188
|
-
this.objects = {};
|
|
189
|
-
}
|
|
190
|
-
get size() {
|
|
191
|
-
return Object.keys(this.objects).length;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
export const globalCache = new DEMGlobalCache();
|
|
195
|
-
export * from "./sync/types.js";
|
|
196
|
-
export * from "./sync/storage/IClientStorageAdapter.js";
|
|
197
|
-
export * from "./sync/storage/MemoryStorageAdapter.js";
|
|
198
|
-
export * from "./sync/storage/LocalStorageAdapter.js";
|
|
199
|
-
export * from "./sync/storage/IndexedDbStorageAdapter.js";
|
|
200
|
-
export * from "./sync/ServerChangeTracker.js";
|
|
201
|
-
export * from "./sync/ClientStateReconciler.js";
|
|
202
|
-
export * from "./DEMErrors.js";
|
|
18
|
+
//# sourceMappingURL=CommonTypes.js.map
|
|
203
19
|
//# sourceMappingURL=CommonTypes.js.map
|
package/dist/CommonTypes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../CommonTypes.
|
|
1
|
+
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../CommonTypes.js"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,MAAM,UAAU,SAAS,CAAC,MAAM,EAAE,WAAW;IACzC,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACzD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxB,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC;AACD,MAAM,UAAU,YAAY,CAAC,KAAK;IAC9B,OAAO,UAAU,MAAM,EAAE,WAAW;QAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAChC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC;AACD,MAAM,UAAU,QAAQ;IACpB,OAAO,UAAU,MAAM,EAAE,WAAW;QAChC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC/D,CAAC,CAAC;AACN,CAAC;AACD,uCAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes_server.js","sourceRoot":"","sources":["../CommonTypes_server.
|
|
1
|
+
{"version":3,"file":"CommonTypes_server.js","sourceRoot":"","sources":["../CommonTypes_server.js"],"names":[],"mappings":";AACA,8CAA8C"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13
|
+
return Reflect.metadata(k, v);
|
|
14
|
+
};
|
|
15
|
+
import { Status } from "./TestTypes.js";
|
|
16
|
+
import { classProp, classRef, populatedRef } from "./CommonTypes.js";
|
|
17
|
+
import { Types } from "mongoose";
|
|
18
|
+
import { prop } from "@typegoose/typegoose";
|
|
19
|
+
export class Test {
|
|
20
|
+
_id;
|
|
21
|
+
active;
|
|
22
|
+
status;
|
|
23
|
+
description;
|
|
24
|
+
ref;
|
|
25
|
+
refarr;
|
|
26
|
+
obj;
|
|
27
|
+
parent;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
classProp,
|
|
31
|
+
__metadata("design:type", Types.ObjectId)
|
|
32
|
+
], Test.prototype, "_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
prop({ required: true }),
|
|
35
|
+
classProp,
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], Test.prototype, "active", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
prop({ required: true }),
|
|
40
|
+
classProp,
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Test.prototype, "status", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
prop({ required: false }),
|
|
45
|
+
classProp,
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Test.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
prop({ required: false }),
|
|
50
|
+
classProp,
|
|
51
|
+
classRef(),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], Test.prototype, "ref", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
prop({ required: true, default: [] }),
|
|
56
|
+
classProp,
|
|
57
|
+
classRef(),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], Test.prototype, "refarr", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
prop({ required: false }),
|
|
62
|
+
classProp,
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], Test.prototype, "obj", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
classProp,
|
|
67
|
+
populatedRef("Test:refarr"),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], Test.prototype, "parent", void 0);
|
|
70
|
+
export class Test2 {
|
|
71
|
+
_id;
|
|
72
|
+
}
|
|
73
|
+
__decorate([
|
|
74
|
+
classProp,
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Test2.prototype, "_id", void 0);
|
|
77
|
+
//# sourceMappingURL=ServerTypes.js.map
|
|
78
|
+
//# sourceMappingURL=ServerT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|
|
1
|
+
export const Status: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestTypes.js","sourceRoot":"","sources":["../TestTypes.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,CAAC;AAClB,CAAC,UAAU,MAAM;IACb,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC5B,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;AACpC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5B,qCAAqC"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|