@astrogate/sdk 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/THIRD_PARTY_NOTICES.md +17 -0
- package/dist/browser.d.ts +85 -0
- package/dist/browser.js +16 -0
- package/dist/database-binding.d.ts +7 -0
- package/dist/database-binding.js +11 -0
- package/dist/hosted-session.d.ts +1 -0
- package/dist/hosted-session.js +11 -0
- package/dist/http.d.ts +24 -0
- package/dist/http.js +92 -0
- package/dist/inventory.d.ts +7 -0
- package/dist/inventory.js +18 -0
- package/dist/management-read.d.ts +17 -0
- package/dist/management-read.js +104 -0
- package/dist/management.d.ts +347 -0
- package/dist/management.js +137 -0
- package/dist/operator.d.ts +136 -0
- package/dist/operator.js +53 -0
- package/dist/react.d.ts +16 -0
- package/dist/react.js +10 -0
- package/dist/server.d.ts +27 -0
- package/dist/server.js +30 -0
- package/dist/services.d.ts +7 -0
- package/dist/services.js +53 -0
- package/dist/storage.d.ts +68 -0
- package/dist/storage.js +30 -0
- package/dist/tasks.d.ts +42 -0
- package/dist/tasks.js +24 -0
- package/dist/wire.gen.d.ts +7107 -0
- package/dist/wire.gen.js +5 -0
- package/native-provenance.json +15 -0
- package/node_modules/@instantdb/admin/LICENSE +202 -0
- package/node_modules/@instantdb/admin/dist/esm/index.d.ts +607 -0
- package/node_modules/@instantdb/admin/dist/esm/index.js +1036 -0
- package/node_modules/@instantdb/admin/dist/esm/polyfill.d.ts +16 -0
- package/node_modules/@instantdb/admin/dist/esm/polyfill.js +21 -0
- package/node_modules/@instantdb/admin/dist/esm/subscribe.d.ts +38 -0
- package/node_modules/@instantdb/admin/dist/esm/subscribe.js +301 -0
- package/node_modules/@instantdb/admin/dist/esm/version.d.ts +2 -0
- package/node_modules/@instantdb/admin/dist/esm/version.js +2 -0
- package/node_modules/@instantdb/admin/package.json +23 -0
- package/node_modules/@instantdb/core/LICENSE +202 -0
- package/node_modules/@instantdb/core/dist/esm/Connection.d.ts +92 -0
- package/node_modules/@instantdb/core/dist/esm/Connection.js +188 -0
- package/node_modules/@instantdb/core/dist/esm/InMemoryStorage.d.ts +10 -0
- package/node_modules/@instantdb/core/dist/esm/InMemoryStorage.js +25 -0
- package/node_modules/@instantdb/core/dist/esm/IndexedDBStorage.d.ts +17 -0
- package/node_modules/@instantdb/core/dist/esm/IndexedDBStorage.js +309 -0
- package/node_modules/@instantdb/core/dist/esm/InstantError.d.ts +6 -0
- package/node_modules/@instantdb/core/dist/esm/InstantError.js +23 -0
- package/node_modules/@instantdb/core/dist/esm/Reactor.d.ts +430 -0
- package/node_modules/@instantdb/core/dist/esm/Reactor.js +2369 -0
- package/node_modules/@instantdb/core/dist/esm/StorageAPI.d.ts +39 -0
- package/node_modules/@instantdb/core/dist/esm/StorageAPI.js +65 -0
- package/node_modules/@instantdb/core/dist/esm/Stream.d.ts +120 -0
- package/node_modules/@instantdb/core/dist/esm/Stream.js +811 -0
- package/node_modules/@instantdb/core/dist/esm/SyncTable.d.ts +144 -0
- package/node_modules/@instantdb/core/dist/esm/SyncTable.js +523 -0
- package/node_modules/@instantdb/core/dist/esm/WindowNetworkListener.d.ts +4 -0
- package/node_modules/@instantdb/core/dist/esm/WindowNetworkListener.js +19 -0
- package/node_modules/@instantdb/core/dist/esm/attrTypes.d.ts +25 -0
- package/node_modules/@instantdb/core/dist/esm/attrTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/authAPI.d.ts +64 -0
- package/node_modules/@instantdb/core/dist/esm/authAPI.js +103 -0
- package/node_modules/@instantdb/core/dist/esm/clientTypes.d.ts +40 -0
- package/node_modules/@instantdb/core/dist/esm/clientTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/coreTypes.d.ts +33 -0
- package/node_modules/@instantdb/core/dist/esm/coreTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/createRouteHandler.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/createRouteHandler.js +51 -0
- package/node_modules/@instantdb/core/dist/esm/datalog.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/datalog.js +99 -0
- package/node_modules/@instantdb/core/dist/esm/devtool.d.ts +3 -0
- package/node_modules/@instantdb/core/dist/esm/devtool.js +144 -0
- package/node_modules/@instantdb/core/dist/esm/framework.d.ts +80 -0
- package/node_modules/@instantdb/core/dist/esm/framework.js +243 -0
- package/node_modules/@instantdb/core/dist/esm/helperTypes.d.ts +75 -0
- package/node_modules/@instantdb/core/dist/esm/helperTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/index.d.ts +597 -0
- package/node_modules/@instantdb/core/dist/esm/index.js +649 -0
- package/node_modules/@instantdb/core/dist/esm/infiniteQuery.d.ts +25 -0
- package/node_modules/@instantdb/core/dist/esm/infiniteQuery.js +430 -0
- package/node_modules/@instantdb/core/dist/esm/instaml.d.ts +17 -0
- package/node_modules/@instantdb/core/dist/esm/instaml.js +576 -0
- package/node_modules/@instantdb/core/dist/esm/instaql.d.ts +12 -0
- package/node_modules/@instantdb/core/dist/esm/instaql.js +632 -0
- package/node_modules/@instantdb/core/dist/esm/instatx.d.ts +127 -0
- package/node_modules/@instantdb/core/dist/esm/instatx.js +93 -0
- package/node_modules/@instantdb/core/dist/esm/model/instaqlResult.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/model/instaqlResult.js +24 -0
- package/node_modules/@instantdb/core/dist/esm/parseSchemaFromJSON.d.ts +2 -0
- package/node_modules/@instantdb/core/dist/esm/parseSchemaFromJSON.js +142 -0
- package/node_modules/@instantdb/core/dist/esm/presence.d.ts +50 -0
- package/node_modules/@instantdb/core/dist/esm/presence.js +50 -0
- package/node_modules/@instantdb/core/dist/esm/presenceTypes.d.ts +9 -0
- package/node_modules/@instantdb/core/dist/esm/presenceTypes.js +3 -0
- package/node_modules/@instantdb/core/dist/esm/queryTypes.d.ts +271 -0
- package/node_modules/@instantdb/core/dist/esm/queryTypes.js +3 -0
- package/node_modules/@instantdb/core/dist/esm/queryValidation.d.ts +5 -0
- package/node_modules/@instantdb/core/dist/esm/queryValidation.js +287 -0
- package/node_modules/@instantdb/core/dist/esm/reactorTypes.d.ts +29 -0
- package/node_modules/@instantdb/core/dist/esm/reactorTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/routeHandlerProtocol.d.ts +19 -0
- package/node_modules/@instantdb/core/dist/esm/routeHandlerProtocol.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/rulesTypes.d.ts +85 -0
- package/node_modules/@instantdb/core/dist/esm/rulesTypes.js +1 -0
- package/node_modules/@instantdb/core/dist/esm/sanityCheckQueries.d.ts +18 -0
- package/node_modules/@instantdb/core/dist/esm/sanityCheckQueries.js +152 -0
- package/node_modules/@instantdb/core/dist/esm/schema.d.ts +72 -0
- package/node_modules/@instantdb/core/dist/esm/schema.js +128 -0
- package/node_modules/@instantdb/core/dist/esm/schemaTypes.d.ts +244 -0
- package/node_modules/@instantdb/core/dist/esm/schemaTypes.js +106 -0
- package/node_modules/@instantdb/core/dist/esm/store.d.ts +89 -0
- package/node_modules/@instantdb/core/dist/esm/store.js +722 -0
- package/node_modules/@instantdb/core/dist/esm/transactionValidation.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/transactionValidation.js +130 -0
- package/node_modules/@instantdb/core/dist/esm/utils/Deferred.d.ts +8 -0
- package/node_modules/@instantdb/core/dist/esm/utils/Deferred.js +17 -0
- package/node_modules/@instantdb/core/dist/esm/utils/PersistedObject.d.ts +80 -0
- package/node_modules/@instantdb/core/dist/esm/utils/PersistedObject.js +448 -0
- package/node_modules/@instantdb/core/dist/esm/utils/dates.d.ts +1 -0
- package/node_modules/@instantdb/core/dist/esm/utils/dates.js +211 -0
- package/node_modules/@instantdb/core/dist/esm/utils/error.d.ts +2 -0
- package/node_modules/@instantdb/core/dist/esm/utils/error.js +8 -0
- package/node_modules/@instantdb/core/dist/esm/utils/fetch.d.ts +125 -0
- package/node_modules/@instantdb/core/dist/esm/utils/fetch.js +31 -0
- package/node_modules/@instantdb/core/dist/esm/utils/flags.d.ts +4 -0
- package/node_modules/@instantdb/core/dist/esm/utils/flags.js +10 -0
- package/node_modules/@instantdb/core/dist/esm/utils/id.d.ts +3 -0
- package/node_modules/@instantdb/core/dist/esm/utils/id.js +25 -0
- package/node_modules/@instantdb/core/dist/esm/utils/linkIndex.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/utils/linkIndex.js +17 -0
- package/node_modules/@instantdb/core/dist/esm/utils/log.d.ts +6 -0
- package/node_modules/@instantdb/core/dist/esm/utils/log.js +13 -0
- package/node_modules/@instantdb/core/dist/esm/utils/object.d.ts +16 -0
- package/node_modules/@instantdb/core/dist/esm/utils/object.js +143 -0
- package/node_modules/@instantdb/core/dist/esm/utils/pgtime.d.ts +197 -0
- package/node_modules/@instantdb/core/dist/esm/utils/pgtime.js +197 -0
- package/node_modules/@instantdb/core/dist/esm/utils/pick.d.ts +1 -0
- package/node_modules/@instantdb/core/dist/esm/utils/pick.js +9 -0
- package/node_modules/@instantdb/core/dist/esm/utils/strings.d.ts +1 -0
- package/node_modules/@instantdb/core/dist/esm/utils/strings.js +15 -0
- package/node_modules/@instantdb/core/dist/esm/utils/weakHash.d.ts +15 -0
- package/node_modules/@instantdb/core/dist/esm/utils/weakHash.js +71 -0
- package/node_modules/@instantdb/core/dist/esm/utils/weakHashLegacy.d.ts +7 -0
- package/node_modules/@instantdb/core/dist/esm/utils/weakHashLegacy.js +72 -0
- package/node_modules/@instantdb/core/dist/esm/version.d.ts +2 -0
- package/node_modules/@instantdb/core/dist/esm/version.js +2 -0
- package/node_modules/@instantdb/core/dist/esm/warningToggle.d.ts +2 -0
- package/node_modules/@instantdb/core/dist/esm/warningToggle.js +4 -0
- package/node_modules/@instantdb/core/package.json +20 -0
- package/node_modules/@instantdb/eventsource/LICENSE +22 -0
- package/node_modules/@instantdb/eventsource/README.md +226 -0
- package/node_modules/@instantdb/eventsource/dist/index.cjs +279 -0
- package/node_modules/@instantdb/eventsource/dist/index.cjs.map +1 -0
- package/node_modules/@instantdb/eventsource/dist/index.d.cts +346 -0
- package/node_modules/@instantdb/eventsource/dist/index.d.ts +346 -0
- package/node_modules/@instantdb/eventsource/dist/index.js +279 -0
- package/node_modules/@instantdb/eventsource/dist/index.js.map +1 -0
- package/node_modules/@instantdb/eventsource/package.json +128 -0
- package/node_modules/@instantdb/eventsource/src/EventSource.ts +614 -0
- package/node_modules/@instantdb/eventsource/src/errors.ts +141 -0
- package/node_modules/@instantdb/eventsource/src/index.ts +3 -0
- package/node_modules/@instantdb/eventsource/src/types.ts +164 -0
- package/node_modules/@instantdb/react/LICENSE +202 -0
- package/node_modules/@instantdb/react/dist/esm/Cursors.d.ts +18 -0
- package/node_modules/@instantdb/react/dist/esm/Cursors.js +103 -0
- package/node_modules/@instantdb/react/dist/esm/InstantReactWebDatabase.d.ts +5 -0
- package/node_modules/@instantdb/react/dist/esm/InstantReactWebDatabase.js +5 -0
- package/node_modules/@instantdb/react/dist/esm/index.d.ts +6 -0
- package/node_modules/@instantdb/react/dist/esm/index.js +22 -0
- package/node_modules/@instantdb/react/dist/esm/init.d.ts +40 -0
- package/node_modules/@instantdb/react/dist/esm/init.js +49 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/HydrationStreamProvider.d.ts +65 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/HydrationStreamProvider.js +96 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/InstantNextDatabase.d.ts +11 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/InstantNextDatabase.js +31 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/InstantSuspenseProvider.d.ts +24 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/InstantSuspenseProvider.js +162 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/getUserFromInstantCookie.d.ts +9 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/getUserFromInstantCookie.js +16 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/htmlescape.d.ts +2 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/htmlescape.js +20 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/index.d.ts +29 -0
- package/node_modules/@instantdb/react/dist/esm/next-ssr/index.js +34 -0
- package/node_modules/@instantdb/react/dist/esm/version.d.ts +2 -0
- package/node_modules/@instantdb/react/dist/esm/version.js +2 -0
- package/node_modules/@instantdb/react/package.json +24 -0
- package/node_modules/@instantdb/react-common/LICENSE +202 -0
- package/node_modules/@instantdb/react-common/dist/esm/InstantReactAbstractDatabase.d.ts +282 -0
- package/node_modules/@instantdb/react-common/dist/esm/InstantReactAbstractDatabase.js +386 -0
- package/node_modules/@instantdb/react-common/dist/esm/InstantReactRoom.d.ts +182 -0
- package/node_modules/@instantdb/react-common/dist/esm/InstantReactRoom.js +280 -0
- package/node_modules/@instantdb/react-common/dist/esm/index.d.ts +4 -0
- package/node_modules/@instantdb/react-common/dist/esm/index.js +3 -0
- package/node_modules/@instantdb/react-common/dist/esm/useInfiniteQuerySubscription.d.ts +27 -0
- package/node_modules/@instantdb/react-common/dist/esm/useInfiniteQuerySubscription.js +53 -0
- package/node_modules/@instantdb/react-common/dist/esm/useQuery.d.ts +6 -0
- package/node_modules/@instantdb/react-common/dist/esm/useQuery.js +75 -0
- package/node_modules/@instantdb/react-common/dist/esm/useTimeout.d.ts +4 -0
- package/node_modules/@instantdb/react-common/dist/esm/useTimeout.js +17 -0
- package/node_modules/@instantdb/react-common/dist/esm/version.d.ts +2 -0
- package/node_modules/@instantdb/react-common/dist/esm/version.js +2 -0
- package/node_modules/@instantdb/react-common/package.json +22 -0
- package/node_modules/@instantdb/version/LICENSE +202 -0
- package/node_modules/@instantdb/version/dist/esm/index.d.ts +2 -0
- package/node_modules/@instantdb/version/dist/esm/index.js +2 -0
- package/node_modules/@instantdb/version/dist/esm/version.d.ts +2 -0
- package/node_modules/@instantdb/version/dist/esm/version.js +5 -0
- package/node_modules/@instantdb/version/package.json +16 -0
- package/node_modules/@instantdb/webhooks/LICENSE +202 -0
- package/node_modules/@instantdb/webhooks/dist/esm/index.d.ts +587 -0
- package/node_modules/@instantdb/webhooks/dist/esm/index.js +748 -0
- package/node_modules/@instantdb/webhooks/package.json +18 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +295 -0
- package/node_modules/cookie/dist/index.d.ts +143 -0
- package/node_modules/cookie/dist/index.js +355 -0
- package/node_modules/cookie/dist/index.js.map +1 -0
- package/node_modules/cookie/package.json +57 -0
- package/node_modules/eventsource/LICENSE +22 -0
- package/node_modules/eventsource/README.md +252 -0
- package/node_modules/eventsource/dist/EventSource.d.ts +128 -0
- package/node_modules/eventsource/dist/EventSource.d.ts.map +1 -0
- package/node_modules/eventsource/dist/EventSource.js +556 -0
- package/node_modules/eventsource/dist/EventSource.js.map +1 -0
- package/node_modules/eventsource/dist/errors.d.ts +53 -0
- package/node_modules/eventsource/dist/errors.d.ts.map +1 -0
- package/node_modules/eventsource/dist/errors.js +120 -0
- package/node_modules/eventsource/dist/errors.js.map +1 -0
- package/node_modules/eventsource/dist/index.d.ts +4 -0
- package/node_modules/eventsource/dist/index.d.ts.map +1 -0
- package/node_modules/eventsource/dist/index.js +3 -0
- package/node_modules/eventsource/dist/index.js.map +1 -0
- package/node_modules/eventsource/dist/types.d.ts +156 -0
- package/node_modules/eventsource/dist/types.d.ts.map +1 -0
- package/node_modules/eventsource/dist/types.js +2 -0
- package/node_modules/eventsource/dist/types.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/README.md +177 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/errors.d.ts +35 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/errors.d.ts.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/errors.js +16 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/errors.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/index.d.ts +4 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/index.d.ts.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/index.js +3 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/parse.d.ts +12 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/parse.d.ts.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/parse.js +509 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/parse.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/stream.d.ts +76 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/stream.d.ts.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/stream.js +59 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/types.d.ts +130 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/types.d.ts.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/types.js +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/dist/types.js.map +1 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/package.json +96 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/src/index.ts +3 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/src/parse.ts +576 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/src/stream.ts +118 -0
- package/node_modules/eventsource/node_modules/eventsource-parser/src/types.ts +138 -0
- package/node_modules/eventsource/package.json +103 -0
- package/node_modules/eventsource/src/EventSource.ts +844 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +166 -0
- package/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource-parser/README.md +157 -0
- package/node_modules/eventsource-parser/dist/index.cjs +177 -0
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +169 -0
- package/node_modules/eventsource-parser/dist/index.d.ts +169 -0
- package/node_modules/eventsource-parser/dist/index.js +177 -0
- package/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +29 -0
- package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +134 -0
- package/node_modules/eventsource-parser/dist/stream.d.ts +134 -0
- package/node_modules/eventsource-parser/dist/stream.js +30 -0
- package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource-parser/package.json +92 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +8 -0
- package/node_modules/eventsource-parser/src/parse.ts +439 -0
- package/node_modules/eventsource-parser/src/stream.ts +107 -0
- package/node_modules/eventsource-parser/src/types.ts +122 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/mutative/LICENSE +21 -0
- package/node_modules/mutative/README.md +870 -0
- package/node_modules/mutative/dist/apply.d.ts +31 -0
- package/node_modules/mutative/dist/array.d.ts +45 -0
- package/node_modules/mutative/dist/constant.d.ts +8 -0
- package/node_modules/mutative/dist/create.d.ts +46 -0
- package/node_modules/mutative/dist/current.d.ts +23 -0
- package/node_modules/mutative/dist/draft.d.ts +3 -0
- package/node_modules/mutative/dist/draftify.d.ts +2 -0
- package/node_modules/mutative/dist/error.d.ts +54 -0
- package/node_modules/mutative/dist/index.d.mts +1 -0
- package/node_modules/mutative/dist/index.d.ts +12 -0
- package/node_modules/mutative/dist/index.js +8 -0
- package/node_modules/mutative/dist/index.mjs +3 -0
- package/node_modules/mutative/dist/interface.d.ts +200 -0
- package/node_modules/mutative/dist/internal.d.ts +4 -0
- package/node_modules/mutative/dist/makeCreator.d.ts +54 -0
- package/node_modules/mutative/dist/map.d.ts +15 -0
- package/node_modules/mutative/dist/mutative.cjs.development.js +2126 -0
- package/node_modules/mutative/dist/mutative.cjs.development.js.map +1 -0
- package/node_modules/mutative/dist/mutative.cjs.production.min.js +2 -0
- package/node_modules/mutative/dist/mutative.cjs.production.min.js.map +1 -0
- package/node_modules/mutative/dist/mutative.esm.js +2123 -0
- package/node_modules/mutative/dist/mutative.esm.js.map +1 -0
- package/node_modules/mutative/dist/mutative.esm.mjs +2123 -0
- package/node_modules/mutative/dist/mutative.esm.mjs.map +1 -0
- package/node_modules/mutative/dist/mutative.esm.production.min.mjs +2 -0
- package/node_modules/mutative/dist/mutative.esm.production.min.mjs.map +1 -0
- package/node_modules/mutative/dist/mutative.umd.development.js +2132 -0
- package/node_modules/mutative/dist/mutative.umd.development.js.map +1 -0
- package/node_modules/mutative/dist/mutative.umd.production.min.js +2 -0
- package/node_modules/mutative/dist/mutative.umd.production.min.js.map +1 -0
- package/node_modules/mutative/dist/original.d.ts +19 -0
- package/node_modules/mutative/dist/patch.d.ts +2 -0
- package/node_modules/mutative/dist/rawReturn.d.ts +19 -0
- package/node_modules/mutative/dist/set.d.ts +14 -0
- package/node_modules/mutative/dist/unsafe.d.ts +34 -0
- package/node_modules/mutative/dist/utils/cast.d.ts +13 -0
- package/node_modules/mutative/dist/utils/copy.d.ts +5 -0
- package/node_modules/mutative/dist/utils/deepFreeze.d.ts +1 -0
- package/node_modules/mutative/dist/utils/draft.d.ts +27 -0
- package/node_modules/mutative/dist/utils/finalize.d.ts +13 -0
- package/node_modules/mutative/dist/utils/forEach.d.ts +1 -0
- package/node_modules/mutative/dist/utils/index.d.ts +7 -0
- package/node_modules/mutative/dist/utils/mark.d.ts +2 -0
- package/node_modules/mutative/dist/utils/marker.d.ts +5 -0
- package/node_modules/mutative/dist/utils/proto.d.ts +10 -0
- package/node_modules/mutative/package.json +142 -0
- package/node_modules/mutative/src/apply.ts +239 -0
- package/node_modules/mutative/src/array.ts +679 -0
- package/node_modules/mutative/src/constant.ts +17 -0
- package/node_modules/mutative/src/create.ts +27 -0
- package/node_modules/mutative/src/current.ts +206 -0
- package/node_modules/mutative/src/draft.ts +489 -0
- package/node_modules/mutative/src/draftify.ts +57 -0
- package/node_modules/mutative/src/error.ts +129 -0
- package/node_modules/mutative/src/index.ts +21 -0
- package/node_modules/mutative/src/interface.ts +321 -0
- package/node_modules/mutative/src/internal.ts +5 -0
- package/node_modules/mutative/src/makeCreator.ts +382 -0
- package/node_modules/mutative/src/map.ts +160 -0
- package/node_modules/mutative/src/original.ts +28 -0
- package/node_modules/mutative/src/patch.ts +386 -0
- package/node_modules/mutative/src/rawReturn.ts +41 -0
- package/node_modules/mutative/src/set.ts +201 -0
- package/node_modules/mutative/src/unsafe.ts +66 -0
- package/node_modules/mutative/src/utils/cast.ts +22 -0
- package/node_modules/mutative/src/utils/copy.ts +224 -0
- package/node_modules/mutative/src/utils/deepFreeze.ts +103 -0
- package/node_modules/mutative/src/utils/draft.ts +189 -0
- package/node_modules/mutative/src/utils/finalize.ts +232 -0
- package/node_modules/mutative/src/utils/forEach.ts +24 -0
- package/node_modules/mutative/src/utils/index.ts +7 -0
- package/node_modules/mutative/src/utils/mark.ts +11 -0
- package/node_modules/mutative/src/utils/marker.ts +34 -0
- package/node_modules/mutative/src/utils/proto.ts +38 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +491 -0
- package/node_modules/uuid/dist/index.d.ts +15 -0
- package/node_modules/uuid/dist/index.js +14 -0
- package/node_modules/uuid/dist/max.d.ts +2 -0
- package/node_modules/uuid/dist/max.js +1 -0
- package/node_modules/uuid/dist/md5.d.ts +2 -0
- package/node_modules/uuid/dist/md5.js +135 -0
- package/node_modules/uuid/dist/nil.d.ts +2 -0
- package/node_modules/uuid/dist/nil.js +1 -0
- package/node_modules/uuid/dist/parse.d.ts +3 -0
- package/node_modules/uuid/dist/parse.js +9 -0
- package/node_modules/uuid/dist/regex.d.ts +2 -0
- package/node_modules/uuid/dist/regex.js +1 -0
- package/node_modules/uuid/dist/rng.d.ts +1 -0
- package/node_modules/uuid/dist/rng.js +4 -0
- package/node_modules/uuid/dist/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/sha1.js +70 -0
- package/node_modules/uuid/dist/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/stringify.js +35 -0
- package/node_modules/uuid/dist/types.d.ts +22 -0
- package/node_modules/uuid/dist/types.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/v1.d.ts +11 -0
- package/node_modules/uuid/dist/v1.js +87 -0
- package/node_modules/uuid/dist/v1ToV6.d.ts +3 -0
- package/node_modules/uuid/dist/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/v3.d.ts +9 -0
- package/node_modules/uuid/dist/v3.js +9 -0
- package/node_modules/uuid/dist/v35.d.ts +7 -0
- package/node_modules/uuid/dist/v35.js +39 -0
- package/node_modules/uuid/dist/v4.d.ts +4 -0
- package/node_modules/uuid/dist/v4.js +29 -0
- package/node_modules/uuid/dist/v5.d.ts +9 -0
- package/node_modules/uuid/dist/v5.js +9 -0
- package/node_modules/uuid/dist/v6.d.ts +4 -0
- package/node_modules/uuid/dist/v6.js +20 -0
- package/node_modules/uuid/dist/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/v7.d.ts +9 -0
- package/node_modules/uuid/dist/v7.js +68 -0
- package/node_modules/uuid/dist/validate.d.ts +2 -0
- package/node_modules/uuid/dist/validate.js +5 -0
- package/node_modules/uuid/dist/version.d.ts +2 -0
- package/node_modules/uuid/dist/version.js +8 -0
- package/node_modules/uuid/dist-node/bin/uuid +2 -0
- package/node_modules/uuid/dist-node/index.js +14 -0
- package/node_modules/uuid/dist-node/max.js +1 -0
- package/node_modules/uuid/dist-node/md5.js +11 -0
- package/node_modules/uuid/dist-node/nil.js +1 -0
- package/node_modules/uuid/dist-node/parse.js +9 -0
- package/node_modules/uuid/dist-node/regex.js +1 -0
- package/node_modules/uuid/dist-node/rng.js +4 -0
- package/node_modules/uuid/dist-node/sha1.js +11 -0
- package/node_modules/uuid/dist-node/stringify.js +35 -0
- package/node_modules/uuid/dist-node/types.js +1 -0
- package/node_modules/uuid/dist-node/uuid-bin.js +70 -0
- package/node_modules/uuid/dist-node/v1.js +87 -0
- package/node_modules/uuid/dist-node/v1ToV6.js +10 -0
- package/node_modules/uuid/dist-node/v3.js +9 -0
- package/node_modules/uuid/dist-node/v35.js +39 -0
- package/node_modules/uuid/dist-node/v4.js +29 -0
- package/node_modules/uuid/dist-node/v5.js +9 -0
- package/node_modules/uuid/dist-node/v6.js +20 -0
- package/node_modules/uuid/dist-node/v6ToV1.js +10 -0
- package/node_modules/uuid/dist-node/v7.js +68 -0
- package/node_modules/uuid/dist-node/validate.js +5 -0
- package/node_modules/uuid/dist-node/version.js +8 -0
- package/node_modules/uuid/package.json +115 -0
- package/package.json +80 -4
- package/release.json +78 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const pgTimezoneMatch: RegExp;
|
|
2
|
+
export declare const pgTimezoneAbbrevs: {
|
|
3
|
+
ZULU: number;
|
|
4
|
+
YEKT: number;
|
|
5
|
+
YEKST: number;
|
|
6
|
+
YAPT: number;
|
|
7
|
+
YAKT: number;
|
|
8
|
+
YAKST: number;
|
|
9
|
+
XJT: number;
|
|
10
|
+
WGT: number;
|
|
11
|
+
WGST: number;
|
|
12
|
+
WFT: number;
|
|
13
|
+
WETDST: number;
|
|
14
|
+
WET: number;
|
|
15
|
+
WDT: number;
|
|
16
|
+
WAT: number;
|
|
17
|
+
WAST: number;
|
|
18
|
+
WAKT: number;
|
|
19
|
+
WADT: number;
|
|
20
|
+
VUT: number;
|
|
21
|
+
VOLT: number;
|
|
22
|
+
VLAT: number;
|
|
23
|
+
VLAST: number;
|
|
24
|
+
VET: number;
|
|
25
|
+
UZT: number;
|
|
26
|
+
UZST: number;
|
|
27
|
+
UYT: number;
|
|
28
|
+
UYST: number;
|
|
29
|
+
UTC: number;
|
|
30
|
+
UT: number;
|
|
31
|
+
ULAT: number;
|
|
32
|
+
ULAST: number;
|
|
33
|
+
UCT: number;
|
|
34
|
+
TVT: number;
|
|
35
|
+
TRUT: number;
|
|
36
|
+
TOT: number;
|
|
37
|
+
TMT: number;
|
|
38
|
+
TKT: number;
|
|
39
|
+
TJT: number;
|
|
40
|
+
TFT: number;
|
|
41
|
+
TAHT: number;
|
|
42
|
+
SGT: number;
|
|
43
|
+
SCT: number;
|
|
44
|
+
SAST: number;
|
|
45
|
+
SADT: number;
|
|
46
|
+
RET: number;
|
|
47
|
+
PYT: number;
|
|
48
|
+
PYST: number;
|
|
49
|
+
PWT: number;
|
|
50
|
+
PST: number;
|
|
51
|
+
PONT: number;
|
|
52
|
+
PMST: number;
|
|
53
|
+
PMDT: number;
|
|
54
|
+
PKT: number;
|
|
55
|
+
PKST: number;
|
|
56
|
+
PHT: number;
|
|
57
|
+
PGT: number;
|
|
58
|
+
PETT: number;
|
|
59
|
+
PETST: number;
|
|
60
|
+
PET: number;
|
|
61
|
+
PDT: number;
|
|
62
|
+
OMST: number;
|
|
63
|
+
OMSST: number;
|
|
64
|
+
NZT: number;
|
|
65
|
+
NZST: number;
|
|
66
|
+
NZDT: number;
|
|
67
|
+
NUT: number;
|
|
68
|
+
NST: number;
|
|
69
|
+
NPT: number;
|
|
70
|
+
NOVT: number;
|
|
71
|
+
NOVST: number;
|
|
72
|
+
NFT: number;
|
|
73
|
+
NDT: number;
|
|
74
|
+
MYT: number;
|
|
75
|
+
MVT: number;
|
|
76
|
+
MUT: number;
|
|
77
|
+
MUST: number;
|
|
78
|
+
MST: number;
|
|
79
|
+
MSK: number;
|
|
80
|
+
MSD: number;
|
|
81
|
+
MPT: number;
|
|
82
|
+
MMT: number;
|
|
83
|
+
MHT: number;
|
|
84
|
+
MEZ: number;
|
|
85
|
+
METDST: number;
|
|
86
|
+
MET: number;
|
|
87
|
+
MESZ: number;
|
|
88
|
+
MEST: number;
|
|
89
|
+
MDT: number;
|
|
90
|
+
MAWT: number;
|
|
91
|
+
MART: number;
|
|
92
|
+
MAGT: number;
|
|
93
|
+
MAGST: number;
|
|
94
|
+
LKT: number;
|
|
95
|
+
LINT: number;
|
|
96
|
+
LIGT: number;
|
|
97
|
+
LHST: number;
|
|
98
|
+
LHDT: number;
|
|
99
|
+
KST: number;
|
|
100
|
+
KRAT: number;
|
|
101
|
+
KRAST: number;
|
|
102
|
+
KOST: number;
|
|
103
|
+
KGT: number;
|
|
104
|
+
KGST: number;
|
|
105
|
+
KDT: number;
|
|
106
|
+
JST: number;
|
|
107
|
+
JAYT: number;
|
|
108
|
+
IST: number;
|
|
109
|
+
IRT: number;
|
|
110
|
+
IRKT: number;
|
|
111
|
+
IRKST: number;
|
|
112
|
+
IOT: number;
|
|
113
|
+
IDT: number;
|
|
114
|
+
ICT: number;
|
|
115
|
+
HST: number;
|
|
116
|
+
HKT: number;
|
|
117
|
+
GYT: number;
|
|
118
|
+
GMT: number;
|
|
119
|
+
GILT: number;
|
|
120
|
+
GFT: number;
|
|
121
|
+
GET: number;
|
|
122
|
+
GEST: number;
|
|
123
|
+
GAMT: number;
|
|
124
|
+
GALT: number;
|
|
125
|
+
FNT: number;
|
|
126
|
+
FNST: number;
|
|
127
|
+
FKT: number;
|
|
128
|
+
FKST: number;
|
|
129
|
+
FJT: number;
|
|
130
|
+
FJST: number;
|
|
131
|
+
FET: number;
|
|
132
|
+
EST: number;
|
|
133
|
+
EGT: number;
|
|
134
|
+
EGST: number;
|
|
135
|
+
EETDST: number;
|
|
136
|
+
EET: number;
|
|
137
|
+
EEST: number;
|
|
138
|
+
EDT: number;
|
|
139
|
+
EAT: number;
|
|
140
|
+
EAST: number;
|
|
141
|
+
EASST: number;
|
|
142
|
+
DDUT: number;
|
|
143
|
+
DAVT: number;
|
|
144
|
+
CXT: number;
|
|
145
|
+
CST: number;
|
|
146
|
+
COT: number;
|
|
147
|
+
CLT: number;
|
|
148
|
+
CLST: number;
|
|
149
|
+
CKT: number;
|
|
150
|
+
CHUT: number;
|
|
151
|
+
CHAST: number;
|
|
152
|
+
CHADT: number;
|
|
153
|
+
CETDST: number;
|
|
154
|
+
CET: number;
|
|
155
|
+
CEST: number;
|
|
156
|
+
CDT: number;
|
|
157
|
+
CCT: number;
|
|
158
|
+
CAST: number;
|
|
159
|
+
CADT: number;
|
|
160
|
+
BTT: number;
|
|
161
|
+
BST: number;
|
|
162
|
+
BRT: number;
|
|
163
|
+
BRST: number;
|
|
164
|
+
BRA: number;
|
|
165
|
+
BOT: number;
|
|
166
|
+
BORT: number;
|
|
167
|
+
BNT: number;
|
|
168
|
+
BDT: number;
|
|
169
|
+
BDST: number;
|
|
170
|
+
AZT: number;
|
|
171
|
+
AZST: number;
|
|
172
|
+
AZOT: number;
|
|
173
|
+
AZOST: number;
|
|
174
|
+
AWST: number;
|
|
175
|
+
AWSST: number;
|
|
176
|
+
AST: number;
|
|
177
|
+
ART: number;
|
|
178
|
+
ARST: number;
|
|
179
|
+
ANAT: number;
|
|
180
|
+
ANAST: number;
|
|
181
|
+
AMT: number;
|
|
182
|
+
AMST: number;
|
|
183
|
+
ALMT: number;
|
|
184
|
+
ALMST: number;
|
|
185
|
+
AKST: number;
|
|
186
|
+
AKDT: number;
|
|
187
|
+
AFT: number;
|
|
188
|
+
AEST: number;
|
|
189
|
+
AESST: number;
|
|
190
|
+
AEDT: number;
|
|
191
|
+
ADT: number;
|
|
192
|
+
ACWST: number;
|
|
193
|
+
ACT: number;
|
|
194
|
+
ACST: number;
|
|
195
|
+
ACSST: number;
|
|
196
|
+
ACDT: number;
|
|
197
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export const pgTimezoneMatch = /ZULU|YEKT|YEKST|YAPT|YAKT|YAKST|XJT|WGT|WGST|WFT|WETDST|WET|WDT|WAT|WAST|WAKT|WADT|VUT|VOLT|VLAT|VLAST|VET|UZT|UZST|UYT|UYST|UTC|UT|ULAT|ULAST|UCT|TVT|TRUT|TOT|TMT|TKT|TJT|TFT|TAHT|SGT|SCT|SAST|SADT|RET|PYT|PYST|PWT|PST|PONT|PMST|PMDT|PKT|PKST|PHT|PGT|PETT|PETST|PET|PDT|OMST|OMSST|NZT|NZST|NZDT|NUT|NST|NPT|NOVT|NOVST|NFT|NDT|MYT|MVT|MUT|MUST|MST|MSK|MSD|MPT|MMT|MHT|MEZ|METDST|MET|MESZ|MEST|MDT|MAWT|MART|MAGT|MAGST|LKT|LINT|LIGT|LHST|LHDT|KST|KRAT|KRAST|KOST|KGT|KGST|KDT|JST|JAYT|IST|IRT|IRKT|IRKST|IOT|IDT|ICT|HST|HKT|GYT|GMT|GILT|GFT|GET|GEST|GAMT|GALT|FNT|FNST|FKT|FKST|FJT|FJST|FET|EST|EGT|EGST|EETDST|EET|EEST|EDT|EAT|EAST|EASST|DDUT|DAVT|CXT|CST|COT|CLT|CLST|CKT|CHUT|CHAST|CHADT|CETDST|CET|CEST|CDT|CCT|CAST|CADT|BTT|BST|BRT|BRST|BRA|BOT|BORT|BNT|BDT|BDST|AZT|AZST|AZOT|AZOST|AWST|AWSST|AST|ART|ARST|ANAT|ANAST|AMT|AMST|ALMT|ALMST|AKST|AKDT|AFT|AEST|AESST|AEDT|ADT|ACWST|ACT|ACST|ACSST|ACDT$/;
|
|
2
|
+
export const pgTimezoneAbbrevs = {
|
|
3
|
+
ZULU: 0,
|
|
4
|
+
YEKT: 18000,
|
|
5
|
+
YEKST: 21600,
|
|
6
|
+
YAPT: 36000,
|
|
7
|
+
YAKT: 32400,
|
|
8
|
+
YAKST: 32400,
|
|
9
|
+
XJT: 21600,
|
|
10
|
+
WGT: -10800,
|
|
11
|
+
WGST: -7200,
|
|
12
|
+
WFT: 43200,
|
|
13
|
+
WETDST: 3600,
|
|
14
|
+
WET: 0,
|
|
15
|
+
WDT: 32400,
|
|
16
|
+
WAT: 3600,
|
|
17
|
+
WAST: 25200,
|
|
18
|
+
WAKT: 43200,
|
|
19
|
+
WADT: 28800,
|
|
20
|
+
VUT: 39600,
|
|
21
|
+
VOLT: 10800,
|
|
22
|
+
VLAT: 36000,
|
|
23
|
+
VLAST: 36000,
|
|
24
|
+
VET: -14400,
|
|
25
|
+
UZT: 18000,
|
|
26
|
+
UZST: 21600,
|
|
27
|
+
UYT: -10800,
|
|
28
|
+
UYST: -7200,
|
|
29
|
+
UTC: 0,
|
|
30
|
+
UT: 0,
|
|
31
|
+
ULAT: 28800,
|
|
32
|
+
ULAST: 32400,
|
|
33
|
+
UCT: 0,
|
|
34
|
+
TVT: 43200,
|
|
35
|
+
TRUT: 36000,
|
|
36
|
+
TOT: 46800,
|
|
37
|
+
TMT: 18000,
|
|
38
|
+
TKT: 46800,
|
|
39
|
+
TJT: 18000,
|
|
40
|
+
TFT: 18000,
|
|
41
|
+
TAHT: -36000,
|
|
42
|
+
SGT: 28800,
|
|
43
|
+
SCT: 14400,
|
|
44
|
+
SAST: 7200,
|
|
45
|
+
SADT: 37800,
|
|
46
|
+
RET: 14400,
|
|
47
|
+
PYT: -14400,
|
|
48
|
+
PYST: -10800,
|
|
49
|
+
PWT: 32400,
|
|
50
|
+
PST: -28800,
|
|
51
|
+
PONT: 39600,
|
|
52
|
+
PMST: -10800,
|
|
53
|
+
PMDT: -7200,
|
|
54
|
+
PKT: 18000,
|
|
55
|
+
PKST: 21600,
|
|
56
|
+
PHT: 28800,
|
|
57
|
+
PGT: 36000,
|
|
58
|
+
PETT: 43200,
|
|
59
|
+
PETST: 43200,
|
|
60
|
+
PET: -18000,
|
|
61
|
+
PDT: -25200,
|
|
62
|
+
OMST: 21600,
|
|
63
|
+
OMSST: 21600,
|
|
64
|
+
NZT: 43200,
|
|
65
|
+
NZST: 43200,
|
|
66
|
+
NZDT: 46800,
|
|
67
|
+
NUT: -39600,
|
|
68
|
+
NST: -12600,
|
|
69
|
+
NPT: 20700,
|
|
70
|
+
NOVT: 25200,
|
|
71
|
+
NOVST: 25200,
|
|
72
|
+
NFT: -12600,
|
|
73
|
+
NDT: -9000,
|
|
74
|
+
MYT: 28800,
|
|
75
|
+
MVT: 18000,
|
|
76
|
+
MUT: 14400,
|
|
77
|
+
MUST: 18000,
|
|
78
|
+
MST: -25200,
|
|
79
|
+
MSK: 10800,
|
|
80
|
+
MSD: 14400,
|
|
81
|
+
MPT: 36000,
|
|
82
|
+
MMT: 23400,
|
|
83
|
+
MHT: 43200,
|
|
84
|
+
MEZ: 3600,
|
|
85
|
+
METDST: 7200,
|
|
86
|
+
MET: 3600,
|
|
87
|
+
MESZ: 7200,
|
|
88
|
+
MEST: 7200,
|
|
89
|
+
MDT: -21600,
|
|
90
|
+
MAWT: 18000,
|
|
91
|
+
MART: -34200,
|
|
92
|
+
MAGT: 39600,
|
|
93
|
+
MAGST: 39600,
|
|
94
|
+
LKT: 19800,
|
|
95
|
+
LINT: 50400,
|
|
96
|
+
LIGT: 36000,
|
|
97
|
+
LHST: 37800,
|
|
98
|
+
LHDT: 37800,
|
|
99
|
+
KST: 32400,
|
|
100
|
+
KRAT: 25200,
|
|
101
|
+
KRAST: 25200,
|
|
102
|
+
KOST: 39600,
|
|
103
|
+
KGT: 21600,
|
|
104
|
+
KGST: 21600,
|
|
105
|
+
KDT: 36000,
|
|
106
|
+
JST: 32400,
|
|
107
|
+
JAYT: 32400,
|
|
108
|
+
IST: 7200,
|
|
109
|
+
IRT: 12600,
|
|
110
|
+
IRKT: 28800,
|
|
111
|
+
IRKST: 28800,
|
|
112
|
+
IOT: 21600,
|
|
113
|
+
IDT: 10800,
|
|
114
|
+
ICT: 25200,
|
|
115
|
+
HST: -36000,
|
|
116
|
+
HKT: 28800,
|
|
117
|
+
GYT: -14400,
|
|
118
|
+
GMT: 0,
|
|
119
|
+
GILT: 43200,
|
|
120
|
+
GFT: -10800,
|
|
121
|
+
GET: 14400,
|
|
122
|
+
GEST: 14400,
|
|
123
|
+
GAMT: -32400,
|
|
124
|
+
GALT: -21600,
|
|
125
|
+
FNT: -7200,
|
|
126
|
+
FNST: -3600,
|
|
127
|
+
FKT: -10800,
|
|
128
|
+
FKST: -10800,
|
|
129
|
+
FJT: 43200,
|
|
130
|
+
FJST: 46800,
|
|
131
|
+
FET: 10800,
|
|
132
|
+
EST: -18000,
|
|
133
|
+
EGT: -3600,
|
|
134
|
+
EGST: 0,
|
|
135
|
+
EETDST: 10800,
|
|
136
|
+
EET: 7200,
|
|
137
|
+
EEST: 10800,
|
|
138
|
+
EDT: -14400,
|
|
139
|
+
EAT: 10800,
|
|
140
|
+
EAST: -21600,
|
|
141
|
+
EASST: -21600,
|
|
142
|
+
DDUT: 36000,
|
|
143
|
+
DAVT: 25200,
|
|
144
|
+
CXT: 25200,
|
|
145
|
+
CST: -21600,
|
|
146
|
+
COT: -18000,
|
|
147
|
+
CLT: -14400,
|
|
148
|
+
CLST: -10800,
|
|
149
|
+
CKT: -36000,
|
|
150
|
+
CHUT: 36000,
|
|
151
|
+
CHAST: 45900,
|
|
152
|
+
CHADT: 49500,
|
|
153
|
+
CETDST: 7200,
|
|
154
|
+
CET: 3600,
|
|
155
|
+
CEST: 7200,
|
|
156
|
+
CDT: -18000,
|
|
157
|
+
CCT: 28800,
|
|
158
|
+
CAST: 34200,
|
|
159
|
+
CADT: 37800,
|
|
160
|
+
BTT: 21600,
|
|
161
|
+
BST: 3600,
|
|
162
|
+
BRT: -10800,
|
|
163
|
+
BRST: -7200,
|
|
164
|
+
BRA: -10800,
|
|
165
|
+
BOT: -14400,
|
|
166
|
+
BORT: 28800,
|
|
167
|
+
BNT: 28800,
|
|
168
|
+
BDT: 21600,
|
|
169
|
+
BDST: 7200,
|
|
170
|
+
AZT: 14400,
|
|
171
|
+
AZST: 14400,
|
|
172
|
+
AZOT: -3600,
|
|
173
|
+
AZOST: 0,
|
|
174
|
+
AWST: 28800,
|
|
175
|
+
AWSST: 32400,
|
|
176
|
+
AST: -14400,
|
|
177
|
+
ART: -10800,
|
|
178
|
+
ARST: -10800,
|
|
179
|
+
ANAT: 43200,
|
|
180
|
+
ANAST: 43200,
|
|
181
|
+
AMT: -14400,
|
|
182
|
+
AMST: 14400,
|
|
183
|
+
ALMT: 21600,
|
|
184
|
+
ALMST: 25200,
|
|
185
|
+
AKST: -32400,
|
|
186
|
+
AKDT: -28800,
|
|
187
|
+
AFT: 16200,
|
|
188
|
+
AEST: 36000,
|
|
189
|
+
AESST: 39600,
|
|
190
|
+
AEDT: 39600,
|
|
191
|
+
ADT: -10800,
|
|
192
|
+
ACWST: 31500,
|
|
193
|
+
ACT: -18000,
|
|
194
|
+
ACST: 34200,
|
|
195
|
+
ACSST: 37800,
|
|
196
|
+
ACDT: 37800,
|
|
197
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pick(obj: any, keys: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stringCompare: (a: string, b: string) => number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function fallbackCompareStrings(a, b) {
|
|
2
|
+
return a.localeCompare(b);
|
|
3
|
+
}
|
|
4
|
+
function makeCompareStringsFn() {
|
|
5
|
+
let compareStrings = fallbackCompareStrings;
|
|
6
|
+
if (typeof Intl === 'object' && Intl.hasOwnProperty('Collator')) {
|
|
7
|
+
try {
|
|
8
|
+
const collator = Intl.Collator('en-US');
|
|
9
|
+
compareStrings = collator.compare;
|
|
10
|
+
}
|
|
11
|
+
catch (_e) { }
|
|
12
|
+
}
|
|
13
|
+
return compareStrings;
|
|
14
|
+
}
|
|
15
|
+
export const stringCompare = makeCompareStringsFn();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable, non-cryptographic 64-bit hash.
|
|
3
|
+
*
|
|
4
|
+
* We aren't concerned with the hash being decoded.
|
|
5
|
+
*
|
|
6
|
+
* We _do_ want to make sure hashes remain the same, even
|
|
7
|
+
* when objects undergo serializing and deserializing.
|
|
8
|
+
*
|
|
9
|
+
* Inspired by cyrb53 (Math.imul + xxhash-style avalanche).
|
|
10
|
+
* https://stackoverflow.com/a/52171480
|
|
11
|
+
*
|
|
12
|
+
* @param {any} input - Value to hash
|
|
13
|
+
* @returns {string} - Hash in hex format
|
|
14
|
+
*/
|
|
15
|
+
export default function weakHash(input: any): string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable, non-cryptographic 64-bit hash.
|
|
3
|
+
*
|
|
4
|
+
* We aren't concerned with the hash being decoded.
|
|
5
|
+
*
|
|
6
|
+
* We _do_ want to make sure hashes remain the same, even
|
|
7
|
+
* when objects undergo serializing and deserializing.
|
|
8
|
+
*
|
|
9
|
+
* Inspired by cyrb53 (Math.imul + xxhash-style avalanche).
|
|
10
|
+
* https://stackoverflow.com/a/52171480
|
|
11
|
+
*
|
|
12
|
+
* @param {any} input - Value to hash
|
|
13
|
+
* @returns {string} - Hash in hex format
|
|
14
|
+
*/
|
|
15
|
+
export default function weakHash(input) {
|
|
16
|
+
const str = stableStringify(input);
|
|
17
|
+
let h1 = 0xdeadbeef ^ str.length;
|
|
18
|
+
let h2 = 0x41c6ce57 ^ str.length;
|
|
19
|
+
for (let i = 0; i < str.length; i++) {
|
|
20
|
+
const ch = str.charCodeAt(i);
|
|
21
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
22
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
23
|
+
}
|
|
24
|
+
h1 =
|
|
25
|
+
Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^
|
|
26
|
+
Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
27
|
+
h2 =
|
|
28
|
+
Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^
|
|
29
|
+
Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
30
|
+
return `${(h2 >>> 0).toString(16).padStart(8, '0')}${(h1 >>> 0)
|
|
31
|
+
.toString(16)
|
|
32
|
+
.padStart(8, '0')}`;
|
|
33
|
+
}
|
|
34
|
+
function stableStringify(input) {
|
|
35
|
+
if (input && typeof input.toJSON === 'function') {
|
|
36
|
+
return stableStringify(input.toJSON());
|
|
37
|
+
}
|
|
38
|
+
if (Array.isArray(input)) {
|
|
39
|
+
let out = '[';
|
|
40
|
+
for (let i = 0; i < input.length; i++) {
|
|
41
|
+
if (i > 0)
|
|
42
|
+
out += ',';
|
|
43
|
+
out += stableStringify(input[i]);
|
|
44
|
+
}
|
|
45
|
+
return out + ']';
|
|
46
|
+
}
|
|
47
|
+
if (input && typeof input === 'object') {
|
|
48
|
+
const keys = Object.keys(input);
|
|
49
|
+
keys.sort();
|
|
50
|
+
let out = '{';
|
|
51
|
+
let first = true;
|
|
52
|
+
for (let i = 0; i < keys.length; i++) {
|
|
53
|
+
const key = keys[i];
|
|
54
|
+
const value = input[key];
|
|
55
|
+
if (value === undefined)
|
|
56
|
+
continue;
|
|
57
|
+
if (!first)
|
|
58
|
+
out += ',';
|
|
59
|
+
out += JSON.stringify(key) + ':' + stableStringify(value);
|
|
60
|
+
first = false;
|
|
61
|
+
}
|
|
62
|
+
return out + '}';
|
|
63
|
+
}
|
|
64
|
+
if (input === undefined) {
|
|
65
|
+
return 'undefined';
|
|
66
|
+
}
|
|
67
|
+
if (typeof input === 'bigint') {
|
|
68
|
+
return `${input}n`;
|
|
69
|
+
}
|
|
70
|
+
return JSON.stringify(input) ?? String(input);
|
|
71
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kept around so existing IndexedDB caches (querySubs / syncSubs) keyed by
|
|
3
|
+
* the pre-v1.0.39 weakHash can still be looked up and migrated to the new
|
|
4
|
+
* hash on first access. Safe to delete a few releases after v1.0.39, once
|
|
5
|
+
* we're confident no users are still on a version that wrote with this hash.
|
|
6
|
+
*/
|
|
7
|
+
export default function weakHashLegacy(input: any): string;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kept around so existing IndexedDB caches (querySubs / syncSubs) keyed by
|
|
3
|
+
* the pre-v1.0.39 weakHash can still be looked up and migrated to the new
|
|
4
|
+
* hash on first access. Safe to delete a few releases after v1.0.39, once
|
|
5
|
+
* we're confident no users are still on a version that wrote with this hash.
|
|
6
|
+
*/
|
|
7
|
+
export default function weakHashLegacy(input) {
|
|
8
|
+
// Handle primitives without JSON stringify for better performance
|
|
9
|
+
if (typeof input === 'number') {
|
|
10
|
+
// Use a larger number space for numeric values
|
|
11
|
+
return (Math.abs(input * 2654435761) >>> 0).toString(16);
|
|
12
|
+
}
|
|
13
|
+
if (typeof input === 'boolean')
|
|
14
|
+
return input ? '1' : '0';
|
|
15
|
+
if (input === null)
|
|
16
|
+
return 'null';
|
|
17
|
+
if (input === undefined)
|
|
18
|
+
return 'undefined';
|
|
19
|
+
// For strings, use FNV-1a algorithm
|
|
20
|
+
if (typeof input === 'string') {
|
|
21
|
+
let hash = 0x811c9dc5; // FNV offset basis (32 bit)
|
|
22
|
+
for (let i = 0; i < input.length; i++) {
|
|
23
|
+
hash ^= input.charCodeAt(i);
|
|
24
|
+
hash +=
|
|
25
|
+
(hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);
|
|
26
|
+
hash = hash >>> 0; // Convert to unsigned 32-bit after each iteration
|
|
27
|
+
}
|
|
28
|
+
return hash.toString(16);
|
|
29
|
+
}
|
|
30
|
+
// For arrays, hash elements directly
|
|
31
|
+
if (Array.isArray(input)) {
|
|
32
|
+
let hash = 0x811c9dc5;
|
|
33
|
+
for (let i = 0; i < input.length; i++) {
|
|
34
|
+
// Add array position to hash calculation
|
|
35
|
+
hash ^= (i + 1) * 2654435761;
|
|
36
|
+
// Recursively hash array elements
|
|
37
|
+
const elementHash = weakHashLegacy(input[i]);
|
|
38
|
+
// Mix the element hash into the running hash
|
|
39
|
+
for (let j = 0; j < elementHash.length; j++) {
|
|
40
|
+
hash ^= elementHash.charCodeAt(j);
|
|
41
|
+
hash *= 16777619; // FNV prime (32 bit)
|
|
42
|
+
hash = hash >>> 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return hash.toString(16);
|
|
46
|
+
}
|
|
47
|
+
// For objects, hash keys and values
|
|
48
|
+
if (typeof input === 'object') {
|
|
49
|
+
let hash = 0x811c9dc5;
|
|
50
|
+
const keys = Object.keys(input).sort(); // Sort for consistency
|
|
51
|
+
for (let i = 0; i < keys.length; i++) {
|
|
52
|
+
const key = keys[i];
|
|
53
|
+
if (input[key] === undefined) {
|
|
54
|
+
// Ignore undefined keys in the hash
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
// Hash the key using string hash
|
|
58
|
+
const keyHash = weakHashLegacy(key);
|
|
59
|
+
hash ^= parseInt(keyHash, 16);
|
|
60
|
+
hash *= 16777619;
|
|
61
|
+
hash = hash >>> 0;
|
|
62
|
+
// Hash the value recursively
|
|
63
|
+
const valueHash = weakHashLegacy(input[key]);
|
|
64
|
+
hash ^= parseInt(valueHash, 16);
|
|
65
|
+
hash *= 16777619;
|
|
66
|
+
hash = hash >>> 0;
|
|
67
|
+
}
|
|
68
|
+
return hash.toString(16);
|
|
69
|
+
}
|
|
70
|
+
// Fallback for other types
|
|
71
|
+
return weakHashLegacy(String(input));
|
|
72
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@instantdb/core",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"types": "./dist/esm/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/esm/index.d.ts",
|
|
11
|
+
"import": "./dist/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@instantdb/version": "0.0.0",
|
|
17
|
+
"mutative": "2.0.1",
|
|
18
|
+
"uuid": "14.0.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) EventSource GitHub organisation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|