@react-native-firebase/app 23.7.0 → 23.8.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/dist/commonjs/FirebaseApp.js +85 -0
- package/dist/commonjs/FirebaseApp.js.map +1 -0
- package/dist/commonjs/common/Base64.js +106 -0
- package/dist/commonjs/common/Base64.js.map +1 -0
- package/dist/commonjs/common/MutatableParams.js +50 -0
- package/dist/commonjs/common/MutatableParams.js.map +1 -0
- package/dist/commonjs/common/ReferenceBase.js +49 -0
- package/dist/commonjs/common/ReferenceBase.js.map +1 -0
- package/dist/commonjs/common/deeps.js +82 -0
- package/dist/commonjs/common/deeps.js.map +1 -0
- package/dist/commonjs/common/id.js +88 -0
- package/dist/commonjs/common/id.js.map +1 -0
- package/dist/commonjs/common/index.js +799 -0
- package/dist/commonjs/common/index.js.map +1 -0
- package/dist/commonjs/common/path.js +133 -0
- package/dist/commonjs/common/path.js.map +1 -0
- package/dist/commonjs/common/promise.js +65 -0
- package/dist/commonjs/common/promise.js.map +1 -0
- package/dist/commonjs/common/serialize.js +48 -0
- package/dist/commonjs/common/serialize.js.map +1 -0
- package/dist/commonjs/common/unitTestUtils.js +54 -0
- package/dist/commonjs/common/unitTestUtils.js.map +1 -0
- package/dist/commonjs/common/validate.js +236 -0
- package/dist/commonjs/common/validate.js.map +1 -0
- package/dist/commonjs/index.js +42 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/internal/FirebaseModule.js +63 -0
- package/dist/commonjs/internal/FirebaseModule.js.map +1 -0
- package/dist/commonjs/internal/NativeFirebaseError.js +92 -0
- package/dist/commonjs/internal/NativeFirebaseError.js.map +1 -0
- package/dist/commonjs/internal/NativeModules.js +6 -0
- package/dist/commonjs/internal/NativeModules.js.map +1 -0
- package/dist/commonjs/internal/RNFBNativeEventEmitter.js +118 -0
- package/dist/commonjs/internal/RNFBNativeEventEmitter.js.map +1 -0
- package/dist/commonjs/internal/SharedEventEmitter.js +26 -0
- package/dist/commonjs/internal/SharedEventEmitter.js.map +1 -0
- package/dist/commonjs/internal/asyncStorage.js +83 -0
- package/dist/commonjs/internal/asyncStorage.js.map +1 -0
- package/dist/commonjs/internal/constants.js +27 -0
- package/dist/commonjs/internal/constants.js.map +1 -0
- package/dist/commonjs/internal/index.js +109 -0
- package/dist/commonjs/internal/index.js.map +1 -0
- package/dist/commonjs/internal/logger.js +256 -0
- package/dist/commonjs/internal/logger.js.map +1 -0
- package/dist/commonjs/internal/nativeModule.android.js +19 -0
- package/dist/commonjs/internal/nativeModule.android.js.map +1 -0
- package/dist/commonjs/internal/nativeModule.ios.js +19 -0
- package/dist/commonjs/internal/nativeModule.ios.js.map +1 -0
- package/dist/commonjs/internal/nativeModule.js +19 -0
- package/dist/commonjs/internal/nativeModule.js.map +1 -0
- package/dist/commonjs/internal/nativeModuleAndroidIos.js +51 -0
- package/dist/commonjs/internal/nativeModuleAndroidIos.js.map +1 -0
- package/dist/commonjs/internal/nativeModuleWeb.js +52 -0
- package/dist/commonjs/internal/nativeModuleWeb.js.map +1 -0
- package/dist/commonjs/internal/nullSerialization.js +162 -0
- package/dist/commonjs/internal/nullSerialization.js.map +1 -0
- package/dist/commonjs/internal/registry/app.js +238 -0
- package/dist/commonjs/internal/registry/app.js.map +1 -0
- package/dist/commonjs/internal/registry/namespace.js +269 -0
- package/dist/commonjs/internal/registry/namespace.js.map +1 -0
- package/dist/commonjs/internal/registry/nativeModule.js +224 -0
- package/dist/commonjs/internal/registry/nativeModule.js.map +1 -0
- package/dist/commonjs/internal/web/RNFBAppModule.js +273 -0
- package/dist/commonjs/internal/web/RNFBAppModule.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseApp.js +17 -0
- package/dist/commonjs/internal/web/firebaseApp.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseAppCheck.js +36 -0
- package/dist/commonjs/internal/web/firebaseAppCheck.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseAuth.js +28 -0
- package/dist/commonjs/internal/web/firebaseAuth.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseDatabase.js +28 -0
- package/dist/commonjs/internal/web/firebaseDatabase.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseFirestore.js +28 -0
- package/dist/commonjs/internal/web/firebaseFirestore.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseFunctions.js +28 -0
- package/dist/commonjs/internal/web/firebaseFunctions.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseInstallations.js +36 -0
- package/dist/commonjs/internal/web/firebaseInstallations.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseRemoteConfig.js +36 -0
- package/dist/commonjs/internal/web/firebaseRemoteConfig.js.map +1 -0
- package/dist/commonjs/internal/web/firebaseStorage.js +28 -0
- package/dist/commonjs/internal/web/firebaseStorage.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBCursor.js +479 -0
- package/dist/commonjs/internal/web/memidb/FDBCursor.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js +19 -0
- package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBDatabase.js +163 -0
- package/dist/commonjs/internal/web/memidb/FDBDatabase.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBFactory.js +264 -0
- package/dist/commonjs/internal/web/memidb/FDBFactory.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBIndex.js +191 -0
- package/dist/commonjs/internal/web/memidb/FDBIndex.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBKeyRange.js +78 -0
- package/dist/commonjs/internal/web/memidb/FDBKeyRange.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBObjectStore.js +383 -0
- package/dist/commonjs/internal/web/memidb/FDBObjectStore.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js +17 -0
- package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBRequest.js +41 -0
- package/dist/commonjs/internal/web/memidb/FDBRequest.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBTransaction.js +221 -0
- package/dist/commonjs/internal/web/memidb/FDBTransaction.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js +20 -0
- package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/LICENSE +208 -0
- package/dist/commonjs/internal/web/memidb/index.js +45 -0
- package/dist/commonjs/internal/web/memidb/index.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/Database.js +38 -0
- package/dist/commonjs/internal/web/memidb/lib/Database.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js +78 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js +45 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js +111 -0
- package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/Index.js +164 -0
- package/dist/commonjs/internal/web/memidb/lib/Index.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js +29 -0
- package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js +180 -0
- package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/RecordStore.js +141 -0
- package/dist/commonjs/internal/web/memidb/lib/RecordStore.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/binarySearch.js +86 -0
- package/dist/commonjs/internal/web/memidb/lib/binarySearch.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js +30 -0
- package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/cmp.js +85 -0
- package/dist/commonjs/internal/web/memidb/lib/cmp.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/enforceRange.js +20 -0
- package/dist/commonjs/internal/web/memidb/lib/enforceRange.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/errors.js +95 -0
- package/dist/commonjs/internal/web/memidb/lib/errors.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/extractKey.js +46 -0
- package/dist/commonjs/internal/web/memidb/lib/extractKey.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/scheduling.js +37 -0
- package/dist/commonjs/internal/web/memidb/lib/scheduling.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/types.js +6 -0
- package/dist/commonjs/internal/web/memidb/lib/types.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js +51 -0
- package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/valueToKey.js +62 -0
- package/dist/commonjs/internal/web/memidb/lib/valueToKey.js.map +1 -0
- package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js +26 -0
- package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
- package/dist/commonjs/internal/web/structuredClone/index.js +239 -0
- package/dist/commonjs/internal/web/structuredClone/index.js.map +1 -0
- package/dist/commonjs/internal/web/utils.js +59 -0
- package/dist/commonjs/internal/web/utils.js.map +1 -0
- package/dist/commonjs/modular.js +190 -0
- package/dist/commonjs/modular.js.map +1 -0
- package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppRegistrar.java → dist/commonjs/namespaced.js} +17 -17
- package/dist/commonjs/namespaced.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/types/app.js +139 -0
- package/dist/commonjs/types/app.js.map +1 -0
- package/dist/commonjs/types/internal.js +6 -0
- package/dist/commonjs/types/internal.js.map +1 -0
- package/dist/commonjs/utils/UtilsStatics.js +59 -0
- package/dist/commonjs/utils/UtilsStatics.js.map +1 -0
- package/dist/commonjs/utils/index.js +94 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/version.js +9 -0
- package/dist/commonjs/version.js.map +1 -0
- package/{lib → dist/module}/FirebaseApp.js +14 -14
- package/dist/module/FirebaseApp.js.map +1 -0
- package/dist/module/common/Base64.js +100 -0
- package/dist/module/common/Base64.js.map +1 -0
- package/{lib → dist/module}/common/MutatableParams.js +4 -6
- package/dist/module/common/MutatableParams.js.map +1 -0
- package/{lib → dist/module}/common/ReferenceBase.js +3 -2
- package/dist/module/common/ReferenceBase.js.map +1 -0
- package/{lib → dist/module}/common/deeps.js +5 -9
- package/dist/module/common/deeps.js.map +1 -0
- package/{lib → dist/module}/common/id.js +20 -11
- package/dist/module/common/id.js.map +1 -0
- package/dist/module/common/index.js +701 -0
- package/dist/module/common/index.js.map +1 -0
- package/{lib → dist/module}/common/path.js +4 -8
- package/dist/module/common/path.js.map +1 -0
- package/{lib → dist/module}/common/promise.js +21 -23
- package/dist/module/common/promise.js.map +1 -0
- package/dist/module/common/serialize.js +43 -0
- package/dist/module/common/serialize.js.map +1 -0
- package/dist/module/common/unitTestUtils.js +48 -0
- package/dist/module/common/unitTestUtils.js.map +1 -0
- package/{lib → dist/module}/common/validate.js +20 -16
- package/dist/module/common/validate.js.map +1 -0
- package/{ios/RNFBApp/RNFBVersion.m → dist/module/index.js} +6 -5
- package/dist/module/index.js.map +1 -0
- package/{lib → dist/module}/internal/FirebaseModule.js +6 -11
- package/dist/module/internal/FirebaseModule.js.map +1 -0
- package/{lib → dist/module}/internal/NativeFirebaseError.js +19 -24
- package/dist/module/internal/NativeFirebaseError.js.map +1 -0
- package/dist/module/internal/NativeModules.js +4 -0
- package/dist/module/internal/NativeModules.js.map +1 -0
- package/{lib → dist/module}/internal/RNFBNativeEventEmitter.js +30 -21
- package/dist/module/internal/RNFBNativeEventEmitter.js.map +1 -0
- package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java → dist/module/internal/SharedEventEmitter.js} +5 -5
- package/dist/module/internal/SharedEventEmitter.js.map +1 -0
- package/dist/module/internal/asyncStorage.js +73 -0
- package/dist/module/internal/asyncStorage.js.map +1 -0
- package/dist/module/internal/constants.js +23 -0
- package/dist/module/internal/constants.js.map +1 -0
- package/dist/module/internal/index.js +30 -0
- package/dist/module/internal/index.js.map +1 -0
- package/{lib → dist/module}/internal/logger.js +65 -55
- package/dist/module/internal/logger.js.map +1 -0
- package/dist/module/internal/nativeModule.android.js +5 -0
- package/dist/module/internal/nativeModule.android.js.map +1 -0
- package/dist/module/internal/nativeModule.ios.js +5 -0
- package/dist/module/internal/nativeModule.ios.js.map +1 -0
- package/dist/module/internal/nativeModule.js +7 -0
- package/dist/module/internal/nativeModule.js.map +1 -0
- package/dist/module/internal/nativeModuleAndroidIos.js +46 -0
- package/dist/module/internal/nativeModuleAndroidIos.js.map +1 -0
- package/dist/module/internal/nativeModuleWeb.js +45 -0
- package/dist/module/internal/nativeModuleWeb.js.map +1 -0
- package/dist/module/internal/nullSerialization.js +158 -0
- package/dist/module/internal/nullSerialization.js.map +1 -0
- package/{lib → dist/module}/internal/registry/app.js +41 -79
- package/dist/module/internal/registry/app.js.map +1 -0
- package/dist/module/internal/registry/namespace.js +262 -0
- package/dist/module/internal/registry/namespace.js.map +1 -0
- package/{lib → dist/module}/internal/registry/nativeModule.js +46 -62
- package/dist/module/internal/registry/nativeModule.js.map +1 -0
- package/{lib → dist/module}/internal/web/RNFBAppModule.js +76 -67
- package/dist/module/internal/web/RNFBAppModule.js.map +1 -0
- package/{android/src/reactnative/java/io/invertase/firebase/interfaces/NativeEvent.java → dist/module/internal/web/firebaseApp.js} +5 -10
- package/dist/module/internal/web/firebaseApp.js.map +1 -0
- package/{android/src/reactnative/java/io/invertase/firebase/interfaces/NativeError.java → dist/module/internal/web/firebaseAppCheck.js} +8 -14
- package/dist/module/internal/web/firebaseAppCheck.js.map +1 -0
- package/dist/module/internal/web/firebaseAuth.js +24 -0
- package/dist/module/internal/web/firebaseAuth.js.map +1 -0
- package/dist/module/internal/web/firebaseDatabase.js +24 -0
- package/dist/module/internal/web/firebaseDatabase.js.map +1 -0
- package/dist/module/internal/web/firebaseFirestore.js +24 -0
- package/dist/module/internal/web/firebaseFirestore.js.map +1 -0
- package/dist/module/internal/web/firebaseFunctions.js +24 -0
- package/dist/module/internal/web/firebaseFunctions.js.map +1 -0
- package/dist/module/internal/web/firebaseInstallations.js +26 -0
- package/dist/module/internal/web/firebaseInstallations.js.map +1 -0
- package/{android/src/reactnative/java/io/invertase/firebase/interfaces/ContextProvider.java → dist/module/internal/web/firebaseRemoteConfig.js} +8 -12
- package/dist/module/internal/web/firebaseRemoteConfig.js.map +1 -0
- package/dist/module/internal/web/firebaseStorage.js +24 -0
- package/dist/module/internal/web/firebaseStorage.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBCursor.js +474 -0
- package/dist/module/internal/web/memidb/FDBCursor.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBCursorWithValue.js +14 -0
- package/dist/module/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBDatabase.js +158 -0
- package/dist/module/internal/web/memidb/FDBDatabase.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBFactory.js +259 -0
- package/dist/module/internal/web/memidb/FDBFactory.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBIndex.js +186 -0
- package/dist/module/internal/web/memidb/FDBIndex.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBKeyRange.js +74 -0
- package/dist/module/internal/web/memidb/FDBKeyRange.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBObjectStore.js +378 -0
- package/dist/module/internal/web/memidb/FDBObjectStore.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBOpenDBRequest.js +12 -0
- package/dist/module/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBRequest.js +36 -0
- package/dist/module/internal/web/memidb/FDBRequest.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBTransaction.js +216 -0
- package/dist/module/internal/web/memidb/FDBTransaction.js.map +1 -0
- package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js +15 -0
- package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
- package/dist/module/internal/web/memidb/LICENSE +208 -0
- package/dist/module/internal/web/memidb/index.js +41 -0
- package/dist/module/internal/web/memidb/index.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/Database.js +35 -0
- package/dist/module/internal/web/memidb/lib/Database.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js +75 -0
- package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/FakeEvent.js +41 -0
- package/dist/module/internal/web/memidb/lib/FakeEvent.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/FakeEventTarget.js +107 -0
- package/dist/module/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/Index.js +160 -0
- package/dist/module/internal/web/memidb/lib/Index.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/KeyGenerator.js +25 -0
- package/dist/module/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/ObjectStore.js +175 -0
- package/dist/module/internal/web/memidb/lib/ObjectStore.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/RecordStore.js +136 -0
- package/dist/module/internal/web/memidb/lib/RecordStore.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/binarySearch.js +77 -0
- package/dist/module/internal/web/memidb/lib/binarySearch.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/canInjectKey.js +26 -0
- package/dist/module/internal/web/memidb/lib/canInjectKey.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/cmp.js +80 -0
- package/dist/module/internal/web/memidb/lib/cmp.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/enforceRange.js +16 -0
- package/dist/module/internal/web/memidb/lib/enforceRange.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/errors.js +81 -0
- package/dist/module/internal/web/memidb/lib/errors.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/extractKey.js +42 -0
- package/dist/module/internal/web/memidb/lib/extractKey.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/scheduling.js +32 -0
- package/dist/module/internal/web/memidb/lib/scheduling.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/types.js +4 -0
- package/dist/module/internal/web/memidb/lib/types.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/validateKeyPath.js +47 -0
- package/dist/module/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/valueToKey.js +58 -0
- package/dist/module/internal/web/memidb/lib/valueToKey.js.map +1 -0
- package/dist/module/internal/web/memidb/lib/valueToKeyRange.js +22 -0
- package/dist/module/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
- package/dist/module/internal/web/structuredClone/index.js +235 -0
- package/dist/module/internal/web/structuredClone/index.js.map +1 -0
- package/{lib → dist/module}/internal/web/utils.js +24 -5
- package/dist/module/internal/web/utils.js.map +1 -0
- package/dist/module/modular.js +172 -0
- package/dist/module/modular.js.map +1 -0
- package/dist/module/namespaced.js +25 -0
- package/dist/module/namespaced.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/types/app.js +135 -0
- package/dist/module/types/app.js.map +1 -0
- package/dist/module/types/internal.js +4 -0
- package/dist/module/types/internal.js.map +1 -0
- package/dist/module/utils/UtilsStatics.js +55 -0
- package/dist/module/utils/UtilsStatics.js.map +1 -0
- package/{lib → dist/module}/utils/index.js +13 -15
- package/dist/module/utils/index.js.map +1 -0
- package/dist/module/version.js +5 -0
- package/dist/module/version.js.map +1 -0
- package/dist/typescript/commonjs/lib/FirebaseApp.d.ts +21 -0
- package/dist/typescript/commonjs/lib/FirebaseApp.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/Base64.d.ts +23 -0
- package/dist/typescript/commonjs/lib/common/Base64.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts +10 -0
- package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts +12 -0
- package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/deeps.d.ts +19 -0
- package/dist/typescript/commonjs/lib/common/deeps.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/id.d.ts +12 -0
- package/dist/typescript/commonjs/lib/common/id.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/index.d.ts +33 -0
- package/dist/typescript/commonjs/lib/common/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/path.d.ts +51 -0
- package/dist/typescript/commonjs/lib/common/path.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/promise.d.ts +12 -0
- package/dist/typescript/commonjs/lib/common/promise.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/serialize.d.ts +4 -0
- package/dist/typescript/commonjs/lib/common/serialize.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts +4 -0
- package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/common/validate.d.ts +100 -0
- package/dist/typescript/commonjs/lib/common/validate.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/index.d.ts +4 -0
- package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts +17 -0
- package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts +20 -0
- package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts +83 -0
- package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
- package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts +4 -0
- package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts +10 -0
- package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/constants.d.ts +5 -0
- package/dist/typescript/commonjs/lib/internal/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/index.d.ts +12 -0
- package/dist/typescript/commonjs/lib/internal/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/logger.d.ts +83 -0
- package/dist/typescript/commonjs/lib/internal/logger.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
- package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts +16 -0
- package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/registry/app.d.ts +47 -0
- package/dist/typescript/commonjs/lib/internal/registry/app.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts +26 -0
- package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts +17 -0
- package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts +139 -0
- package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts +2 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts.map +1 -0
- package/{lib/internal/web/firebaseAppCheck.js → dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts} +1 -2
- package/dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
- package/{lib/internal/web/firebaseInstallations.js → dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts} +1 -2
- package/dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
- package/{lib/internal/web/firebaseRemoteConfig.js → dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts} +1 -2
- package/dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts +3 -0
- package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/internal/web/utils.d.ts +13 -0
- package/dist/typescript/commonjs/lib/internal/web/utils.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/modular.d.ts +95 -0
- package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/namespaced.d.ts +5 -0
- package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/types/app.d.ts +561 -0
- package/dist/typescript/commonjs/lib/types/app.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/types/internal.d.ts +101 -0
- package/dist/typescript/commonjs/lib/types/internal.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts +4 -0
- package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/utils/index.d.ts +4 -0
- package/dist/typescript/commonjs/lib/utils/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/version.d.ts +2 -0
- package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/module/lib/FirebaseApp.d.ts +21 -0
- package/dist/typescript/module/lib/FirebaseApp.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/Base64.d.ts +23 -0
- package/dist/typescript/module/lib/common/Base64.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/MutatableParams.d.ts +10 -0
- package/dist/typescript/module/lib/common/MutatableParams.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/ReferenceBase.d.ts +12 -0
- package/dist/typescript/module/lib/common/ReferenceBase.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/deeps.d.ts +19 -0
- package/dist/typescript/module/lib/common/deeps.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/id.d.ts +12 -0
- package/dist/typescript/module/lib/common/id.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/index.d.ts +33 -0
- package/dist/typescript/module/lib/common/index.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/path.d.ts +51 -0
- package/dist/typescript/module/lib/common/path.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/promise.d.ts +12 -0
- package/dist/typescript/module/lib/common/promise.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/serialize.d.ts +4 -0
- package/dist/typescript/module/lib/common/serialize.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/unitTestUtils.d.ts +4 -0
- package/dist/typescript/module/lib/common/unitTestUtils.d.ts.map +1 -0
- package/dist/typescript/module/lib/common/validate.d.ts +100 -0
- package/dist/typescript/module/lib/common/validate.d.ts.map +1 -0
- package/dist/typescript/module/lib/index.d.ts +4 -0
- package/dist/typescript/module/lib/index.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/FirebaseModule.d.ts +17 -0
- package/dist/typescript/module/lib/internal/FirebaseModule.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts +20 -0
- package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/NativeModules.d.ts +83 -0
- package/dist/typescript/module/lib/internal/NativeModules.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
- package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts +4 -0
- package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/asyncStorage.d.ts +10 -0
- package/dist/typescript/module/lib/internal/asyncStorage.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/constants.d.ts +5 -0
- package/dist/typescript/module/lib/internal/constants.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/index.d.ts +12 -0
- package/dist/typescript/module/lib/internal/index.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/logger.d.ts +83 -0
- package/dist/typescript/module/lib/internal/logger.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nativeModule.android.d.ts +3 -0
- package/dist/typescript/module/lib/internal/nativeModule.android.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nativeModule.d.ts +3 -0
- package/dist/typescript/module/lib/internal/nativeModule.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts +3 -0
- package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
- package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts +3 -0
- package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/nullSerialization.d.ts +16 -0
- package/dist/typescript/module/lib/internal/nullSerialization.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/registry/app.d.ts +47 -0
- package/dist/typescript/module/lib/internal/registry/app.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/registry/namespace.d.ts +26 -0
- package/dist/typescript/module/lib/internal/registry/namespace.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts +17 -0
- package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts +139 -0
- package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts +2 -0
- package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts +5 -0
- package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts +3 -0
- package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts +3 -0
- package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts +3 -0
- package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts +3 -0
- package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts +5 -0
- package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts +5 -0
- package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts +3 -0
- package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts.map +1 -0
- package/dist/typescript/module/lib/internal/web/utils.d.ts +13 -0
- package/dist/typescript/module/lib/internal/web/utils.d.ts.map +1 -0
- package/dist/typescript/module/lib/modular.d.ts +95 -0
- package/dist/typescript/module/lib/modular.d.ts.map +1 -0
- package/dist/typescript/module/lib/namespaced.d.ts +5 -0
- package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/module/lib/types/app.d.ts +561 -0
- package/dist/typescript/module/lib/types/app.d.ts.map +1 -0
- package/dist/typescript/module/lib/types/internal.d.ts +101 -0
- package/dist/typescript/module/lib/types/internal.d.ts.map +1 -0
- package/dist/typescript/module/lib/utils/UtilsStatics.d.ts +4 -0
- package/dist/typescript/module/lib/utils/UtilsStatics.d.ts.map +1 -0
- package/dist/typescript/module/lib/utils/index.d.ts +4 -0
- package/dist/typescript/module/lib/utils/index.d.ts.map +1 -0
- package/dist/typescript/module/lib/version.d.ts +2 -0
- package/dist/typescript/module/lib/version.d.ts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/lib/FirebaseApp.ts +98 -0
- package/lib/common/{Base64.js → Base64.ts} +19 -11
- package/lib/common/MutatableParams.ts +50 -0
- package/lib/common/ReferenceBase.ts +45 -0
- package/lib/common/deeps.ts +92 -0
- package/lib/common/id.ts +91 -0
- package/lib/common/{index.js → index.ts} +60 -38
- package/lib/common/path.ts +124 -0
- package/lib/common/promise.ts +68 -0
- package/lib/common/{serialize.js → serialize.ts} +3 -2
- package/lib/common/unitTestUtils.ts +5 -4
- package/lib/common/validate.ts +232 -0
- package/lib/index.ts +27 -0
- package/lib/internal/FirebaseModule.ts +78 -0
- package/lib/internal/NativeFirebaseError.ts +111 -0
- package/lib/internal/NativeModules.ts +116 -0
- package/lib/internal/RNFBNativeEventEmitter.ts +139 -0
- package/lib/internal/asyncStorage.ts +76 -0
- package/lib/internal/{constants.js → constants.ts} +3 -1
- package/{ios/RNFBApp/RCTConvert+FIRApp.m → lib/internal/global.d.ts} +14 -12
- package/lib/internal/{index.js → index.ts} +2 -0
- package/lib/internal/logger.ts +270 -0
- package/lib/internal/nativeModuleAndroidIos.ts +55 -0
- package/lib/internal/nativeModuleWeb.ts +60 -0
- package/lib/internal/nullSerialization.ts +186 -0
- package/lib/internal/registry/app.ts +278 -0
- package/lib/internal/registry/{namespace.js → namespace.ts} +93 -54
- package/lib/internal/registry/nativeModule.ts +282 -0
- package/lib/internal/web/RNFBAppModule.ts +318 -0
- package/{ios/RNFBApp/RCTConvert+FIRApp.h → lib/internal/web/firebaseApp.ts} +4 -7
- package/lib/internal/web/firebaseAppCheck.ts +23 -0
- package/lib/internal/web/firebaseAuth.ts +21 -0
- package/lib/internal/web/firebaseDatabase.ts +21 -0
- package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppInitProvider.java → lib/internal/web/firebaseFirestore.ts} +4 -5
- package/lib/internal/web/firebaseFunctions.ts +21 -0
- package/lib/internal/web/firebaseInstallations.ts +23 -0
- package/lib/internal/web/firebaseRemoteConfig.ts +23 -0
- package/lib/internal/web/firebaseStorage.ts +21 -0
- package/{ios/RNFBApp/RNFBVersion.h → lib/internal/web/memidb/index.d.ts} +5 -4
- package/lib/internal/web/memidb/lib/errors.js +17 -0
- package/lib/internal/web/utils.ts +57 -0
- package/lib/modular.ts +219 -0
- package/lib/{index.js → namespaced.ts} +2 -2
- package/lib/{index.d.ts → types/app.ts} +81 -40
- package/lib/types/internal.ts +142 -0
- package/lib/utils/{UtilsStatics.js → UtilsStatics.ts} +20 -12
- package/lib/utils/index.ts +94 -0
- package/lib/version.ts +2 -0
- package/package.json +106 -9
- package/CHANGELOG.md +0 -1525
- package/RNFBApp.podspec +0 -49
- package/android/.editorconfig +0 -10
- package/android/build.gradle +0 -129
- package/android/firebase-json.gradle +0 -73
- package/android/gradle.properties +0 -2
- package/android/lint.xml +0 -5
- package/android/settings.gradle +0 -1
- package/android/src/main/AndroidManifest.xml +0 -24
- package/android/src/main/java/io/invertase/firebase/app/.gitkeep +0 -0
- package/android/src/main/java/io/invertase/firebase/common/TaskExecutorService.java +0 -124
- package/android/src/main/java/io/invertase/firebase/common/UniversalFirebaseModule.java +0 -62
- package/android/src/main/java/io/invertase/firebase/common/UniversalFirebasePreferences.java +0 -91
- package/android/src/main/java/io/invertase/firebase/interfaces/.gitkeep +0 -0
- package/android/src/reactnative/AndroidManifest.xml +0 -2
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseApp.java +0 -46
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java +0 -186
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java +0 -49
- package/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java +0 -191
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java +0 -53
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java +0 -151
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseInitProvider.java +0 -78
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseJSON.java +0 -107
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java +0 -93
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java +0 -146
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java +0 -88
- package/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java +0 -440
- package/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java +0 -191
- package/app.plugin.js +0 -1
- package/firebase-schema.json +0 -149
- package/firebase_json.rb +0 -72
- package/ios/RNFBApp/RCTConvert+FIROptions.h +0 -23
- package/ios/RNFBApp/RCTConvert+FIROptions.m +0 -36
- package/ios/RNFBApp/RNFBAppModule.h +0 -28
- package/ios/RNFBApp/RNFBAppModule.m +0 -305
- package/ios/RNFBApp/RNFBJSON.h +0 -36
- package/ios/RNFBApp/RNFBJSON.m +0 -99
- package/ios/RNFBApp/RNFBMeta.h +0 -30
- package/ios/RNFBApp/RNFBMeta.m +0 -61
- package/ios/RNFBApp/RNFBPreferences.h +0 -44
- package/ios/RNFBApp/RNFBPreferences.m +0 -94
- package/ios/RNFBApp/RNFBRCTEventEmitter.h +0 -73
- package/ios/RNFBApp/RNFBRCTEventEmitter.m +0 -151
- package/ios/RNFBApp/RNFBSharedUtils.h +0 -65
- package/ios/RNFBApp/RNFBSharedUtils.m +0 -167
- package/ios/RNFBApp/RNFBUtilsModule.h +0 -30
- package/ios/RNFBApp/RNFBUtilsModule.m +0 -100
- package/ios/RNFBApp.xcodeproj/project.pbxproj +0 -405
- package/ios/RNFBApp.xcodeproj/xcshareddata/IDETemplateMacros.plist +0 -24
- package/ios_config.sh +0 -269
- package/lib/internal/asyncStorage.js +0 -47
- package/lib/internal/logger.d.ts +0 -85
- package/lib/internal/nativeModuleAndroidIos.js +0 -45
- package/lib/internal/nativeModuleWeb.js +0 -49
- package/lib/internal/web/firebaseApp.js +0 -3
- package/lib/internal/web/firebaseAuth.js +0 -4
- package/lib/internal/web/firebaseDatabase.js +0 -4
- package/lib/internal/web/firebaseFirestore.js +0 -4
- package/lib/internal/web/firebaseFunctions.js +0 -4
- package/lib/internal/web/firebaseStorage.js +0 -4
- package/lib/modular/index.d.ts +0 -131
- package/lib/modular/index.js +0 -150
- package/lib/version.js +0 -2
- package/plugin/build/android/applyPlugin.d.ts +0 -6
- package/plugin/build/android/applyPlugin.js +0 -29
- package/plugin/build/android/buildscriptDependency.d.ts +0 -6
- package/plugin/build/android/buildscriptDependency.js +0 -31
- package/plugin/build/android/constants.d.ts +0 -4
- package/plugin/build/android/constants.js +0 -8
- package/plugin/build/android/copyGoogleServices.d.ts +0 -5
- package/plugin/build/android/copyGoogleServices.js +0 -33
- package/plugin/build/android/index.d.ts +0 -4
- package/plugin/build/android/index.js +0 -9
- package/plugin/build/index.d.ts +0 -3
- package/plugin/build/index.js +0 -21
- package/plugin/build/ios/appDelegate.d.ts +0 -6
- package/plugin/build/ios/appDelegate.js +0 -116
- package/plugin/build/ios/googleServicesPlist.d.ts +0 -7
- package/plugin/build/ios/googleServicesPlist.js +0 -42
- package/plugin/build/ios/index.d.ts +0 -3
- package/plugin/build/ios/index.js +0 -7
- package/plugin/src/android/applyPlugin.ts +0 -30
- package/plugin/src/android/buildscriptDependency.ts +0 -33
- package/plugin/src/android/constants.ts +0 -7
- package/plugin/src/android/copyGoogleServices.ts +0 -36
- package/plugin/src/android/index.ts +0 -5
- package/plugin/src/index.ts +0 -27
- package/plugin/src/ios/appDelegate.ts +0 -140
- package/plugin/src/ios/googleServicesPlist.ts +0 -55
- package/plugin/src/ios/index.ts +0 -4
- package/plugin/tsconfig.json +0 -9
- package/plugin/tsconfig.tsbuildinfo +0 -1
- package/react-native.config.js +0 -19
- /package/lib/internal/{SharedEventEmitter.js → SharedEventEmitter.ts} +0 -0
- /package/lib/internal/{nativeModule.android.js → nativeModule.android.ts} +0 -0
- /package/lib/internal/{nativeModule.ios.js → nativeModule.ios.ts} +0 -0
- /package/lib/internal/{nativeModule.js → nativeModule.ts} +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ConstraintError } from './errors.js';
|
|
4
|
+
import extractKey from './extractKey.js';
|
|
5
|
+
import RecordStore from './RecordStore.js';
|
|
6
|
+
import valueToKey from './valueToKey.js';
|
|
7
|
+
|
|
8
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-index
|
|
9
|
+
class Index {
|
|
10
|
+
deleted = false;
|
|
11
|
+
// Initialized should be used to decide whether to throw an error or abort the versionchange transaction when there is a
|
|
12
|
+
// constraint
|
|
13
|
+
initialized = false;
|
|
14
|
+
records = new RecordStore();
|
|
15
|
+
constructor(rawObjectStore, name, keyPath, multiEntry, unique) {
|
|
16
|
+
this.rawObjectStore = rawObjectStore;
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.keyPath = keyPath;
|
|
19
|
+
this.multiEntry = multiEntry;
|
|
20
|
+
this.unique = unique;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-retrieving-a-value-from-an-index
|
|
24
|
+
getKey(key) {
|
|
25
|
+
const record = this.records.get(key);
|
|
26
|
+
return record !== undefined ? record.value : undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// http://w3c.github.io/IndexedDB/#retrieve-multiple-referenced-values-from-an-index
|
|
30
|
+
getAllKeys(range, count) {
|
|
31
|
+
if (count === undefined || count === 0) {
|
|
32
|
+
count = Infinity;
|
|
33
|
+
}
|
|
34
|
+
const records = [];
|
|
35
|
+
for (const record of this.records.values(range)) {
|
|
36
|
+
records.push(structuredClone(record.value));
|
|
37
|
+
if (records.length >= count) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return records;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#index-referenced-value-retrieval-operation
|
|
45
|
+
getValue(key) {
|
|
46
|
+
const record = this.records.get(key);
|
|
47
|
+
return record !== undefined ? this.rawObjectStore.getValue(record.value) : undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// http://w3c.github.io/IndexedDB/#retrieve-multiple-referenced-values-from-an-index
|
|
51
|
+
getAllValues(range, count) {
|
|
52
|
+
if (count === undefined || count === 0) {
|
|
53
|
+
count = Infinity;
|
|
54
|
+
}
|
|
55
|
+
const records = [];
|
|
56
|
+
for (const record of this.records.values(range)) {
|
|
57
|
+
records.push(this.rawObjectStore.getValue(record.value));
|
|
58
|
+
if (records.length >= count) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return records;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-storing-a-record-into-an-object-store (step 7)
|
|
66
|
+
storeRecord(newRecord) {
|
|
67
|
+
let indexKey;
|
|
68
|
+
try {
|
|
69
|
+
indexKey = extractKey(this.keyPath, newRecord.value);
|
|
70
|
+
} catch (err) {
|
|
71
|
+
if (err.name === 'DataError') {
|
|
72
|
+
// Invalid key is not an actual error, just means we do not store an entry in this index
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
throw err;
|
|
76
|
+
}
|
|
77
|
+
if (!this.multiEntry || !Array.isArray(indexKey)) {
|
|
78
|
+
try {
|
|
79
|
+
valueToKey(indexKey);
|
|
80
|
+
} catch (_) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
// remove any elements from index key that are not valid keys and remove any duplicate elements from index
|
|
85
|
+
// key such that only one instance of the duplicate value remains.
|
|
86
|
+
const keep = [];
|
|
87
|
+
for (const part of indexKey) {
|
|
88
|
+
if (keep.indexOf(part) < 0) {
|
|
89
|
+
try {
|
|
90
|
+
keep.push(valueToKey(part));
|
|
91
|
+
} catch (_) {
|
|
92
|
+
/* Do nothing */
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
indexKey = keep;
|
|
97
|
+
}
|
|
98
|
+
if (!this.multiEntry || !Array.isArray(indexKey)) {
|
|
99
|
+
if (this.unique) {
|
|
100
|
+
const existingRecord = this.records.get(indexKey);
|
|
101
|
+
if (existingRecord) {
|
|
102
|
+
throw new ConstraintError();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
if (this.unique) {
|
|
107
|
+
for (const individualIndexKey of indexKey) {
|
|
108
|
+
const existingRecord = this.records.get(individualIndexKey);
|
|
109
|
+
if (existingRecord) {
|
|
110
|
+
throw new ConstraintError();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (!this.multiEntry || !Array.isArray(indexKey)) {
|
|
116
|
+
this.records.add({
|
|
117
|
+
key: indexKey,
|
|
118
|
+
value: newRecord.key
|
|
119
|
+
});
|
|
120
|
+
} else {
|
|
121
|
+
for (const individualIndexKey of indexKey) {
|
|
122
|
+
this.records.add({
|
|
123
|
+
key: individualIndexKey,
|
|
124
|
+
value: newRecord.key
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
initialize(transaction) {
|
|
130
|
+
if (this.initialized) {
|
|
131
|
+
throw new Error('Index already initialized');
|
|
132
|
+
}
|
|
133
|
+
transaction._execRequestAsync({
|
|
134
|
+
operation: () => {
|
|
135
|
+
try {
|
|
136
|
+
// Create index based on current value of objectstore
|
|
137
|
+
for (const record of this.rawObjectStore.records.values()) {
|
|
138
|
+
this.storeRecord(record);
|
|
139
|
+
}
|
|
140
|
+
this.initialized = true;
|
|
141
|
+
} catch (err) {
|
|
142
|
+
// console.error(err);
|
|
143
|
+
transaction._abort(err.name);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
source: null
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
count(range) {
|
|
150
|
+
let count = 0;
|
|
151
|
+
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
153
|
+
for (const record of this.records.values(range)) {
|
|
154
|
+
count += 1;
|
|
155
|
+
}
|
|
156
|
+
return count;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
export default Index;
|
|
160
|
+
//# sourceMappingURL=Index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ConstraintError","extractKey","RecordStore","valueToKey","Index","deleted","initialized","records","constructor","rawObjectStore","name","keyPath","multiEntry","unique","getKey","key","record","get","undefined","value","getAllKeys","range","count","Infinity","values","push","structuredClone","length","getValue","getAllValues","storeRecord","newRecord","indexKey","err","Array","isArray","_","keep","part","indexOf","existingRecord","individualIndexKey","add","initialize","transaction","Error","_execRequestAsync","operation","_abort","source"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/Index.js"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,aAAa;AAC7C,OAAOC,UAAU,MAAM,iBAAiB;AACxC,OAAOC,WAAW,MAAM,kBAAkB;AAC1C,OAAOC,UAAU,MAAM,iBAAiB;;AAExC;AACA,MAAMC,KAAK,CAAC;EACVC,OAAO,GAAG,KAAK;EACf;EACA;EACAC,WAAW,GAAG,KAAK;EACnBC,OAAO,GAAG,IAAIL,WAAW,CAAC,CAAC;EAC3BM,WAAWA,CAACC,cAAc,EAAEC,IAAI,EAAEC,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAE;IAC7D,IAAI,CAACJ,cAAc,GAAGA,cAAc;IACpC,IAAI,CAACC,I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,MAAM,CAACf,GAAG,CAACvB,IAAI,CAAC;QAC9B;MACF,CAAC;MACDuC,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;EACA3B,KAAKA,CAACD,KAAK,EAAE;IACX,IAAIC,KAAK,GAAG,CAAC;;IAEb;IACA,KAAK,MAAMN,MAAM,IAAI,IAAI,CAACT,OAAO,CAACiB,MAAM,CAACH,KAAK,CAAC,EAAE;MAC/CC,KAAK,IAAI,CAAC;IACZ;IACA,OAAOA,KAAK;EACd;AACF;AACA,eAAelB,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ConstraintError } from './errors.js';
|
|
4
|
+
const MAX_KEY = 9007199254740992;
|
|
5
|
+
class KeyGenerator {
|
|
6
|
+
// This is kind of wrong. Should start at 1 and increment only after record is saved
|
|
7
|
+
num = 0;
|
|
8
|
+
next() {
|
|
9
|
+
if (this.num >= MAX_KEY) {
|
|
10
|
+
throw new ConstraintError();
|
|
11
|
+
}
|
|
12
|
+
this.num += 1;
|
|
13
|
+
return this.num;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// https://w3c.github.io/IndexedDB/#possibly-update-the-key-generator
|
|
17
|
+
setIfLarger(num) {
|
|
18
|
+
const value = Math.floor(Math.min(num, MAX_KEY)) - 1;
|
|
19
|
+
if (value >= this.num) {
|
|
20
|
+
this.num = value + 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export default KeyGenerator;
|
|
25
|
+
//# sourceMappingURL=KeyGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ConstraintError","MAX_KEY","KeyGenerator","num","next","setIfLarger","value","Math","floor","min"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/KeyGenerator.js"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,aAAa;AAC7C,MAAMC,OAAO,GAAG,gBAAgB;AAChC,MAAMC,YAAY,CAAC;EACjB;EACAC,GAAG,GAAG,CAAC;EACPC,IAAIA,CAAA,EAAG;IACL,IAAI,IAAI,CAACD,GAAG,IAAIF,OAAO,EAAE;MACvB,MAAM,IAAID,eAAe,CAAC,CAAC;IAC7B;IACA,IAAI,CAACG,GAAG,IAAI,CAAC;IACb,OAAO,IAAI,CAACA,GAAG;EACjB;;EAEA;EACAE,WAAWA,CAACF,GAAG,EAAE;IACf,MAAMG,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,GAAG,CAACN,GAAG,EAAEF,OAAO,CAAC,CAAC,GAAG,CAAC;IACpD,IAAIK,KAAK,IAAI,IAAI,CAACH,GAAG,EAAE;MACrB,IAAI,CAACA,GAAG,GAAGG,KAAK,GAAG,CAAC;IACtB;EACF;AACF;AACA,eAAeJ,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ConstraintError, DataError } from './errors.js';
|
|
4
|
+
import extractKey from './extractKey.js';
|
|
5
|
+
import KeyGenerator from './KeyGenerator.js';
|
|
6
|
+
import RecordStore from './RecordStore.js';
|
|
7
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-object-store
|
|
8
|
+
class ObjectStore {
|
|
9
|
+
deleted = false;
|
|
10
|
+
records = new RecordStore();
|
|
11
|
+
rawIndexes = new Map();
|
|
12
|
+
constructor(rawDatabase, name, keyPath, autoIncrement) {
|
|
13
|
+
this.rawDatabase = rawDatabase;
|
|
14
|
+
this.keyGenerator = autoIncrement === true ? new KeyGenerator() : null;
|
|
15
|
+
this.deleted = false;
|
|
16
|
+
this.name = name;
|
|
17
|
+
this.keyPath = keyPath;
|
|
18
|
+
this.autoIncrement = autoIncrement;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-retrieving-a-value-from-an-object-store
|
|
22
|
+
getKey(key) {
|
|
23
|
+
const record = this.records.get(key);
|
|
24
|
+
return record !== undefined ? structuredClone(record.key) : undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// http://w3c.github.io/IndexedDB/#retrieve-multiple-keys-from-an-object-store
|
|
28
|
+
getAllKeys(range, count) {
|
|
29
|
+
if (count === undefined || count === 0) {
|
|
30
|
+
count = Infinity;
|
|
31
|
+
}
|
|
32
|
+
const records = [];
|
|
33
|
+
for (const record of this.records.values(range)) {
|
|
34
|
+
records.push(structuredClone(record.key));
|
|
35
|
+
if (records.length >= count) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return records;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-retrieving-a-value-from-an-object-store
|
|
43
|
+
getValue(key) {
|
|
44
|
+
const record = this.records.get(key);
|
|
45
|
+
return record !== undefined ? structuredClone(record.value) : undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// http://w3c.github.io/IndexedDB/#retrieve-multiple-values-from-an-object-store
|
|
49
|
+
getAllValues(range, count) {
|
|
50
|
+
if (count === undefined || count === 0) {
|
|
51
|
+
count = Infinity;
|
|
52
|
+
}
|
|
53
|
+
const records = [];
|
|
54
|
+
for (const record of this.records.values(range)) {
|
|
55
|
+
records.push(structuredClone(record.value));
|
|
56
|
+
if (records.length >= count) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return records;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-storing-a-record-into-an-object-store
|
|
64
|
+
storeRecord(newRecord, noOverwrite, rollbackLog) {
|
|
65
|
+
if (this.keyPath !== null) {
|
|
66
|
+
const key = extractKey(this.keyPath, newRecord.value);
|
|
67
|
+
if (key !== undefined) {
|
|
68
|
+
newRecord.key = key;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (this.keyGenerator !== null && newRecord.key === undefined) {
|
|
72
|
+
if (rollbackLog) {
|
|
73
|
+
const keyGeneratorBefore = this.keyGenerator.num;
|
|
74
|
+
rollbackLog.push(() => {
|
|
75
|
+
if (this.keyGenerator) {
|
|
76
|
+
this.keyGenerator.num = keyGeneratorBefore;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
newRecord.key = this.keyGenerator.next();
|
|
81
|
+
|
|
82
|
+
// Set in value if keyPath defiend but led to no key
|
|
83
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-to-assign-a-key-to-a-value-using-a-key-path
|
|
84
|
+
if (this.keyPath !== null) {
|
|
85
|
+
if (Array.isArray(this.keyPath)) {
|
|
86
|
+
throw new Error('Cannot have an array key path in an object store with a key generator');
|
|
87
|
+
}
|
|
88
|
+
let remainingKeyPath = this.keyPath;
|
|
89
|
+
let object = newRecord.value;
|
|
90
|
+
let identifier;
|
|
91
|
+
let i = 0; // Just to run the loop at least once
|
|
92
|
+
while (i >= 0) {
|
|
93
|
+
if (typeof object !== 'object') {
|
|
94
|
+
throw new DataError();
|
|
95
|
+
}
|
|
96
|
+
i = remainingKeyPath.indexOf('.');
|
|
97
|
+
if (i >= 0) {
|
|
98
|
+
identifier = remainingKeyPath.slice(0, i);
|
|
99
|
+
remainingKeyPath = remainingKeyPath.slice(i + 1);
|
|
100
|
+
if (!Object.hasOwn(object, identifier)) {
|
|
101
|
+
object[identifier] = {};
|
|
102
|
+
}
|
|
103
|
+
object = object[identifier];
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
identifier = remainingKeyPath;
|
|
107
|
+
object[identifier] = newRecord.key;
|
|
108
|
+
}
|
|
109
|
+
} else if (this.keyGenerator !== null && typeof newRecord.key === 'number') {
|
|
110
|
+
this.keyGenerator.setIfLarger(newRecord.key);
|
|
111
|
+
}
|
|
112
|
+
const existingRecord = this.records.get(newRecord.key);
|
|
113
|
+
if (existingRecord) {
|
|
114
|
+
if (noOverwrite) {
|
|
115
|
+
throw new ConstraintError();
|
|
116
|
+
}
|
|
117
|
+
this.deleteRecord(newRecord.key, rollbackLog);
|
|
118
|
+
}
|
|
119
|
+
this.records.add(newRecord);
|
|
120
|
+
if (rollbackLog) {
|
|
121
|
+
rollbackLog.push(() => {
|
|
122
|
+
this.deleteRecord(newRecord.key);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Update indexes
|
|
127
|
+
for (const rawIndex of this.rawIndexes.values()) {
|
|
128
|
+
if (rawIndex.initialized) {
|
|
129
|
+
rawIndex.storeRecord(newRecord);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return newRecord.key;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-deleting-records-from-an-object-store
|
|
136
|
+
deleteRecord(key, rollbackLog) {
|
|
137
|
+
const deletedRecords = this.records.delete(key);
|
|
138
|
+
if (rollbackLog) {
|
|
139
|
+
for (const record of deletedRecords) {
|
|
140
|
+
rollbackLog.push(() => {
|
|
141
|
+
this.storeRecord(record, true);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
for (const rawIndex of this.rawIndexes.values()) {
|
|
146
|
+
rawIndex.records.deleteByValue(key);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-clearing-an-object-store
|
|
151
|
+
clear(rollbackLog) {
|
|
152
|
+
const deletedRecords = this.records.clear();
|
|
153
|
+
if (rollbackLog) {
|
|
154
|
+
for (const record of deletedRecords) {
|
|
155
|
+
rollbackLog.push(() => {
|
|
156
|
+
this.storeRecord(record, true);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
for (const rawIndex of this.rawIndexes.values()) {
|
|
161
|
+
rawIndex.records.clear();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
count(range) {
|
|
165
|
+
let count = 0;
|
|
166
|
+
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
168
|
+
for (const record of this.records.values(range)) {
|
|
169
|
+
count += 1;
|
|
170
|
+
}
|
|
171
|
+
return count;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
export default ObjectStore;
|
|
175
|
+
//# sourceMappingURL=ObjectStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ConstraintError","DataError","extractKey","KeyGenerator","RecordStore","ObjectStore","deleted","records","rawIndexes","Map","constructor","rawDatabase","name","keyPath","autoIncrement","keyGenerator","getKey","key","record","get","undefined","structuredClone","getAllKeys","range","count","Infinity","values","push","length","getValue","value","getAllValues","storeRecord","newRecord","noOverwrite","rollbackLog","keyGeneratorBefore","num","next","Array","isArray","Error","remainingKeyPath","object","identifier","i","indexOf","slice","Object","hasOwn","setIfLarger","existingRecord","deleteRecord","add","rawIndex","initialized","deletedRecords","delete","deleteByValue","clear"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/ObjectStore.js"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,SAAS,QAAQ,aAAa;AACxD,OAAOC,UAAU,MAAM,iBAAiB;AACxC,OAAOC,YAAY,MAAM,mBAAmB;AAC5C,OAAOC,WAAW,MAAM,kBAAkB;AAC1C;AACA,MAAMC,WAAW,CAAC;EAChBC,OAAO,GAAG,KAAK;EACfC,OAAO,GAAG,IAAIH,WAAW,CAAC,CAAC;EAC3BI,UAAU,GAAG,IAAIC,GAAG,CAAC,CAAC;EACtBC,WAAWA,CAACC,WAAW,EAAEC,IAAI,EAAEC,OAAO,EAAEC,aAAa,EAAE;IACrD,IAAI,CAACH,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACI,YAAY,GAAGD,aAAa,K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AAC,CAAC,EAAE;MAC/C4B,QAAQ,CAAC/C,OAAO,CAACoD,KAAK,CAAC,CAAC;IAC1B;EACF;EACAnC,KAAKA,CAACD,KAAK,EAAE;IACX,IAAIC,KAAK,GAAG,CAAC;;IAEb;IACA,KAAK,MAAMN,MAAM,IAAI,IAAI,CAACX,OAAO,CAACmB,MAAM,CAACH,KAAK,CAAC,EAAE;MAC/CC,KAAK,IAAI,CAAC;IACZ;IACA,OAAOA,KAAK;EACd;AACF;AACA,eAAenB,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import FDBKeyRange from '../FDBKeyRange.js';
|
|
4
|
+
import { getByKey, getByKeyRange, getIndexByKey, getIndexByKeyGTE, getIndexByKeyRange } from './binarySearch.js';
|
|
5
|
+
import cmp from './cmp.js';
|
|
6
|
+
class RecordStore {
|
|
7
|
+
records = [];
|
|
8
|
+
get(key) {
|
|
9
|
+
if (key instanceof FDBKeyRange) {
|
|
10
|
+
return getByKeyRange(this.records, key);
|
|
11
|
+
}
|
|
12
|
+
return getByKey(this.records, key);
|
|
13
|
+
}
|
|
14
|
+
add(newRecord) {
|
|
15
|
+
// Find where to put it so it's sorted by key
|
|
16
|
+
let i;
|
|
17
|
+
if (this.records.length === 0) {
|
|
18
|
+
i = 0;
|
|
19
|
+
} else {
|
|
20
|
+
i = getIndexByKeyGTE(this.records, newRecord.key);
|
|
21
|
+
if (i === -1) {
|
|
22
|
+
// If no matching key, add to end
|
|
23
|
+
i = this.records.length;
|
|
24
|
+
} else {
|
|
25
|
+
// If matching key, advance to appropriate position based on value (used in indexes)
|
|
26
|
+
while (i < this.records.length && cmp(this.records[i].key, newRecord.key) === 0) {
|
|
27
|
+
if (cmp(this.records[i].value, newRecord.value) !== -1) {
|
|
28
|
+
// Record value >= newRecord value, so insert here
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
i += 1; // Look at next record
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
this.records.splice(i, 0, newRecord);
|
|
36
|
+
}
|
|
37
|
+
delete(key) {
|
|
38
|
+
const deletedRecords = [];
|
|
39
|
+
const isRange = key instanceof FDBKeyRange;
|
|
40
|
+
while (true) {
|
|
41
|
+
const idx = isRange ? getIndexByKeyRange(this.records, key) : getIndexByKey(this.records, key);
|
|
42
|
+
if (idx === -1) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
deletedRecords.push(this.records[idx]);
|
|
46
|
+
this.records.splice(idx, 1);
|
|
47
|
+
}
|
|
48
|
+
return deletedRecords;
|
|
49
|
+
}
|
|
50
|
+
deleteByValue(key) {
|
|
51
|
+
const range = key instanceof FDBKeyRange ? key : FDBKeyRange.only(key);
|
|
52
|
+
const deletedRecords = [];
|
|
53
|
+
this.records = this.records.filter(record => {
|
|
54
|
+
const shouldDelete = range.includes(record.value);
|
|
55
|
+
if (shouldDelete) {
|
|
56
|
+
deletedRecords.push(record);
|
|
57
|
+
}
|
|
58
|
+
return !shouldDelete;
|
|
59
|
+
});
|
|
60
|
+
return deletedRecords;
|
|
61
|
+
}
|
|
62
|
+
clear() {
|
|
63
|
+
const deletedRecords = this.records.slice();
|
|
64
|
+
this.records = [];
|
|
65
|
+
return deletedRecords;
|
|
66
|
+
}
|
|
67
|
+
values(range, direction = 'next') {
|
|
68
|
+
return {
|
|
69
|
+
[Symbol.iterator]: () => {
|
|
70
|
+
let i;
|
|
71
|
+
if (direction === 'next') {
|
|
72
|
+
i = 0;
|
|
73
|
+
if (range !== undefined && range.lower !== undefined) {
|
|
74
|
+
while (this.records[i] !== undefined) {
|
|
75
|
+
const cmpResult = cmp(this.records[i].key, range.lower);
|
|
76
|
+
if (cmpResult === 1 || cmpResult === 0 && !range.lowerOpen) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
i += 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
i = this.records.length - 1;
|
|
84
|
+
if (range !== undefined && range.upper !== undefined) {
|
|
85
|
+
while (this.records[i] !== undefined) {
|
|
86
|
+
const cmpResult = cmp(this.records[i].key, range.upper);
|
|
87
|
+
if (cmpResult === -1 || cmpResult === 0 && !range.upperOpen) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
i -= 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
next: () => {
|
|
96
|
+
let done;
|
|
97
|
+
let value;
|
|
98
|
+
if (direction === 'next') {
|
|
99
|
+
value = this.records[i];
|
|
100
|
+
done = i >= this.records.length;
|
|
101
|
+
i += 1;
|
|
102
|
+
if (!done && range !== undefined && range.upper !== undefined) {
|
|
103
|
+
const cmpResult = cmp(value.key, range.upper);
|
|
104
|
+
done = cmpResult === 1 || cmpResult === 0 && range.upperOpen;
|
|
105
|
+
if (done) {
|
|
106
|
+
value = undefined;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
value = this.records[i];
|
|
111
|
+
done = i < 0;
|
|
112
|
+
i -= 1;
|
|
113
|
+
if (!done && range !== undefined && range.lower !== undefined) {
|
|
114
|
+
const cmpResult = cmp(value.key, range.lower);
|
|
115
|
+
done = cmpResult === -1 || cmpResult === 0 && range.lowerOpen;
|
|
116
|
+
if (done) {
|
|
117
|
+
value = undefined;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// The weird "as IteratorResult<Record>" is needed because of
|
|
123
|
+
// https://github.com/Microsoft/TypeScript/issues/11375 and
|
|
124
|
+
// https://github.com/Microsoft/TypeScript/issues/2983
|
|
125
|
+
return {
|
|
126
|
+
done,
|
|
127
|
+
value
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export default RecordStore;
|
|
136
|
+
//# sourceMappingURL=RecordStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FDBKeyRange","getByKey","getByKeyRange","getIndexByKey","getIndexByKeyGTE","getIndexByKeyRange","cmp","RecordStore","records","get","key","add","newRecord","i","length","value","splice","delete","deletedRecords","isRange","idx","push","deleteByValue","range","only","filter","record","shouldDelete","includes","clear","slice","values","direction","Symbol","iterator","undefined","lower","cmpResult","lowerOpen","upper","upperOpen","next","done"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/RecordStore.js"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,mBAAmB;AAC3C,SACEC,QAAQ,EACRC,aAAa,EACbC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,QACb,mBAAmB;AAC1B,OAAOC,GAAG,MAAM,UAAU;AAC1B,MAAMC,WAAW,CAAC;EAChBC,OAAO,GAAG,EAAE;EACZC,GAAGA,CAACC,GAAG,EAAE;IACP,IAAIA,GAAG,YAAYV,WAAW,EAAE;MAC9B,OAAOE,aAAa,CAAC,IAAI,CAACM,OAAO,EAAEE,GAAG,CAAC;IACzC;IACA,OAAOT,QAAQ,CAAC,IAAI,CAACO,OAAO,EAAEE,GAAG,CAAC;EACpC;EACAC,GAAGA,CAACC,SAAS,EAAE;IACb;IACA,IAAIC,CAAC;IACL,IAAI,IAAI,CAACL,OAAO,CAACM,MAAM,KAAK,CAAC,EAAE;MAC7BD,CAAC,GAAG,CAAC;IACP,CAAC,MAAM;MACLA,CAAC,GAAGT,gBAAgB,CAAC,IAAI,CAACI,OAAO,EAAEI,SAAS,CAACF,GAAG,CAAC;MACjD,IAAIG,CAAC,KAAK,CAAC,CAAC,EAAE;QACZ;QACAA,CAAC,GAAG,IAAI,CAACL,OAAO,CAACM,MAAM;MACzB,CAAC,MAAM;QACL;QACA,OAAOD,CAAC,GAAG,IAAI,CAACL,OAAO,CAACM,MAAM,IAAIR,GAAG,CAAC,IAAI,CAACE,OAAO,CAACK,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YAEA;YACA;YACA;YACA,OAAO;cACLO,IAAI;cACJ3B;YACF,CAAC;UACH;QACF,CAAC;MACH;IACF,CAAC;EACH;AACF;AACA,eAAeR,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import cmp from './cmp.js';
|
|
4
|
+
/**
|
|
5
|
+
* Classic binary search implementation. Returns the index where the key
|
|
6
|
+
* should be inserted, assuming the records list is ordered.
|
|
7
|
+
*/
|
|
8
|
+
function binarySearch(records, key) {
|
|
9
|
+
let low = 0;
|
|
10
|
+
let high = records.length;
|
|
11
|
+
let mid;
|
|
12
|
+
while (low < high) {
|
|
13
|
+
mid = low + high >>> 1; // like Math.floor((low + high) / 2) but fast
|
|
14
|
+
if (cmp(records[mid].key, key) < 0) {
|
|
15
|
+
low = mid + 1;
|
|
16
|
+
} else {
|
|
17
|
+
high = mid;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return low;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Equivalent to `records.findIndex(record => cmp(record.key, key) === 0)`
|
|
25
|
+
*/
|
|
26
|
+
export function getIndexByKey(records, key) {
|
|
27
|
+
const idx = binarySearch(records, key);
|
|
28
|
+
const record = records[idx];
|
|
29
|
+
if (record && cmp(record.key, key) === 0) {
|
|
30
|
+
return idx;
|
|
31
|
+
}
|
|
32
|
+
return -1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Equivalent to `records.find(record => cmp(record.key, key) === 0)`
|
|
37
|
+
*/
|
|
38
|
+
export function getByKey(records, key) {
|
|
39
|
+
const idx = getIndexByKey(records, key);
|
|
40
|
+
return records[idx];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Equivalent to `records.findIndex(record => key.includes(record.key))`
|
|
45
|
+
*/
|
|
46
|
+
export function getIndexByKeyRange(records, keyRange) {
|
|
47
|
+
const lowerIdx = typeof keyRange.lower === 'undefined' ? 0 : binarySearch(records, keyRange.lower);
|
|
48
|
+
const upperIdx = typeof keyRange.upper === 'undefined' ? records.length - 1 : binarySearch(records, keyRange.upper);
|
|
49
|
+
for (let i = lowerIdx; i <= upperIdx; i++) {
|
|
50
|
+
const record = records[i];
|
|
51
|
+
if (record && keyRange.includes(record.key)) {
|
|
52
|
+
return i;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return -1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Equivalent to `records.find(record => key.includes(record.key))`
|
|
60
|
+
*/
|
|
61
|
+
export function getByKeyRange(records, keyRange) {
|
|
62
|
+
const idx = getIndexByKeyRange(records, keyRange);
|
|
63
|
+
return records[idx];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Equivalent to `records.findIndex(record => cmp(record.key, key) >= 0)`
|
|
68
|
+
*/
|
|
69
|
+
export function getIndexByKeyGTE(records, key) {
|
|
70
|
+
const idx = binarySearch(records, key);
|
|
71
|
+
const record = records[idx];
|
|
72
|
+
if (record && cmp(record.key, key) >= 0) {
|
|
73
|
+
return idx;
|
|
74
|
+
}
|
|
75
|
+
return -1;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=binarySearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cmp","binarySearch","records","key","low","high","length","mid","getIndexByKey","idx","record","getByKey","getIndexByKeyRange","keyRange","lowerIdx","lower","upperIdx","upper","i","includes","getByKeyRange","getIndexByKeyGTE"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/binarySearch.js"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,UAAU;AAC1B;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAACC,OAAO,EAAEC,GAAG,EAAE;EAClC,IAAIC,GAAG,GAAG,CAAC;EACX,IAAIC,IAAI,GAAGH,OAAO,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C;EAC3C,KAAK,IAAIC,CAAC,GAAGJ,QAAQ,EAAEI,CAAC,IAAIF,QAAQ,EAAEE,CAAC,EAAE,EAAE;IACzC,MAAMR,MAAM,GAAGR,OAAO,CAACgB,CAAC,CAAC;IACzB,IAAIR,MAAM,IAAIG,QAAQ,CAACM,QAAQ,CAACT,MAAM,CAACP,GAAG,CAAC,EAAE;MAC3C,OAAOe,CAAC;IACV;EACF;EACA,OAAO,CAAC,CAAC;AACX;;AAEA;AACA;AACA;AACA,OAAO,SAASE,aAAaA,CAAClB,OAAO,EAAEW,QAAQ,EAAE;EAC/C,MAAMJ,GAAG,GAAGG,kBAAkB,CAACV,OAAO,EAAEW,QAAQ,CAAC;EACjD,OAAOX,OAAO,CAACO,GAAG,CAAC;AACrB;;AAEA;AACA;AACA;AACA,OAAO,SAASY,gBAAgBA,CAACnB,OAAO,EAAEC,GAAG,EAAE;EAC7C,MAAMM,GAAG,GAAGR,YAAY,CAACC,OAAO,EAAEC,GAAG,CAAC;EACtC,MAAMO,MAAM,GAAGR,OAAO,CAACO,GAAG,CAAC;EAC3B,IAAIC,MAAM,IAAIV,GAAG,CAACU,MAAM,CAACP,GAAG,EAAEA,GAAG,CAAC,IAAI,CAAC,EAAE;IACvC,OAAOM,GAAG;EACZ;EACA,OAAO,CAAC,CAAC;AACX","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// http://w3c.github.io/IndexedDB/#check-that-a-key-could-be-injected-into-a-value
|
|
4
|
+
const canInjectKey = (keyPath, value) => {
|
|
5
|
+
if (Array.isArray(keyPath)) {
|
|
6
|
+
throw new Error('The key paths used in this section are always strings and never sequences, since it is not possible to create a object store which has a key generator and also has a key path that is a sequence.');
|
|
7
|
+
}
|
|
8
|
+
const identifiers = keyPath.split('.');
|
|
9
|
+
if (identifiers.length === 0) {
|
|
10
|
+
throw new Error('Assert: identifiers is not empty');
|
|
11
|
+
}
|
|
12
|
+
identifiers.pop();
|
|
13
|
+
for (const identifier of identifiers) {
|
|
14
|
+
if (typeof value !== 'object' && !Array.isArray(value)) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
const hop = Object.hasOwn(value, identifier);
|
|
18
|
+
if (!hop) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
value = value[identifier];
|
|
22
|
+
}
|
|
23
|
+
return typeof value === 'object' || Array.isArray(value);
|
|
24
|
+
};
|
|
25
|
+
export default canInjectKey;
|
|
26
|
+
//# sourceMappingURL=canInjectKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canInjectKey","keyPath","value","Array","isArray","Error","identifiers","split","length","pop","identifier","hop","Object","hasOwn"],"sourceRoot":"../../../../../../lib","sources":["internal/web/memidb/lib/canInjectKey.js"],"mappings":";;AAAA;AACA,MAAMA,YAAY,GAAGA,CAACC,OAAO,EAAEC,KAAK,KAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACH,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAII,KAAK,CACb,oMACF,CAAC;EACH;EACA,MAAMC,WAAW,GAAGL,OAAO,CAACM,KAAK,CAAC,GAAG,CAAC;EACtC,IAAID,WAAW,CAACE,MAAM,KAAK,CAAC,EAAE;IAC5B,MAAM,IAAIH,KAAK,CAAC,kCAAkC,CAAC;EACrD;EACAC,WAAW,CAACG,GAAG,CAAC,CAAC;EACjB,KAAK,MAAMC,UAAU,IAAIJ,WAAW,EAAE;IACpC,IAAI,OAAOJ,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACtD,OAAO,KAAK;IACd;IACA,MAAMS,GAAG,GAAGC,MAAM,CAACC,MAAM,CAACX,KAAK,EAAEQ,UAAU,CAAC;IAC5C,IAAI,CAACC,GAAG,EAAE;MACR,OAAO,IAAI;IACb;IACAT,KAAK,GAAGA,KAAK,CAACQ,UAAU,CAAC;EAC3B;EACA,OAAO,OAAOR,KAAK,KAAK,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC;AAC1D,CAAC;AACD,eAAeF,YAAY","ignoreList":[]}
|