@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.
Files changed (672) hide show
  1. package/dist/commonjs/FirebaseApp.js +85 -0
  2. package/dist/commonjs/FirebaseApp.js.map +1 -0
  3. package/dist/commonjs/common/Base64.js +106 -0
  4. package/dist/commonjs/common/Base64.js.map +1 -0
  5. package/dist/commonjs/common/MutatableParams.js +50 -0
  6. package/dist/commonjs/common/MutatableParams.js.map +1 -0
  7. package/dist/commonjs/common/ReferenceBase.js +49 -0
  8. package/dist/commonjs/common/ReferenceBase.js.map +1 -0
  9. package/dist/commonjs/common/deeps.js +82 -0
  10. package/dist/commonjs/common/deeps.js.map +1 -0
  11. package/dist/commonjs/common/id.js +88 -0
  12. package/dist/commonjs/common/id.js.map +1 -0
  13. package/dist/commonjs/common/index.js +799 -0
  14. package/dist/commonjs/common/index.js.map +1 -0
  15. package/dist/commonjs/common/path.js +133 -0
  16. package/dist/commonjs/common/path.js.map +1 -0
  17. package/dist/commonjs/common/promise.js +65 -0
  18. package/dist/commonjs/common/promise.js.map +1 -0
  19. package/dist/commonjs/common/serialize.js +48 -0
  20. package/dist/commonjs/common/serialize.js.map +1 -0
  21. package/dist/commonjs/common/unitTestUtils.js +54 -0
  22. package/dist/commonjs/common/unitTestUtils.js.map +1 -0
  23. package/dist/commonjs/common/validate.js +236 -0
  24. package/dist/commonjs/common/validate.js.map +1 -0
  25. package/dist/commonjs/index.js +42 -0
  26. package/dist/commonjs/index.js.map +1 -0
  27. package/dist/commonjs/internal/FirebaseModule.js +63 -0
  28. package/dist/commonjs/internal/FirebaseModule.js.map +1 -0
  29. package/dist/commonjs/internal/NativeFirebaseError.js +92 -0
  30. package/dist/commonjs/internal/NativeFirebaseError.js.map +1 -0
  31. package/dist/commonjs/internal/NativeModules.js +6 -0
  32. package/dist/commonjs/internal/NativeModules.js.map +1 -0
  33. package/dist/commonjs/internal/RNFBNativeEventEmitter.js +118 -0
  34. package/dist/commonjs/internal/RNFBNativeEventEmitter.js.map +1 -0
  35. package/dist/commonjs/internal/SharedEventEmitter.js +26 -0
  36. package/dist/commonjs/internal/SharedEventEmitter.js.map +1 -0
  37. package/dist/commonjs/internal/asyncStorage.js +83 -0
  38. package/dist/commonjs/internal/asyncStorage.js.map +1 -0
  39. package/dist/commonjs/internal/constants.js +27 -0
  40. package/dist/commonjs/internal/constants.js.map +1 -0
  41. package/dist/commonjs/internal/index.js +109 -0
  42. package/dist/commonjs/internal/index.js.map +1 -0
  43. package/dist/commonjs/internal/logger.js +256 -0
  44. package/dist/commonjs/internal/logger.js.map +1 -0
  45. package/dist/commonjs/internal/nativeModule.android.js +19 -0
  46. package/dist/commonjs/internal/nativeModule.android.js.map +1 -0
  47. package/dist/commonjs/internal/nativeModule.ios.js +19 -0
  48. package/dist/commonjs/internal/nativeModule.ios.js.map +1 -0
  49. package/dist/commonjs/internal/nativeModule.js +19 -0
  50. package/dist/commonjs/internal/nativeModule.js.map +1 -0
  51. package/dist/commonjs/internal/nativeModuleAndroidIos.js +51 -0
  52. package/dist/commonjs/internal/nativeModuleAndroidIos.js.map +1 -0
  53. package/dist/commonjs/internal/nativeModuleWeb.js +52 -0
  54. package/dist/commonjs/internal/nativeModuleWeb.js.map +1 -0
  55. package/dist/commonjs/internal/nullSerialization.js +162 -0
  56. package/dist/commonjs/internal/nullSerialization.js.map +1 -0
  57. package/dist/commonjs/internal/registry/app.js +238 -0
  58. package/dist/commonjs/internal/registry/app.js.map +1 -0
  59. package/dist/commonjs/internal/registry/namespace.js +269 -0
  60. package/dist/commonjs/internal/registry/namespace.js.map +1 -0
  61. package/dist/commonjs/internal/registry/nativeModule.js +224 -0
  62. package/dist/commonjs/internal/registry/nativeModule.js.map +1 -0
  63. package/dist/commonjs/internal/web/RNFBAppModule.js +273 -0
  64. package/dist/commonjs/internal/web/RNFBAppModule.js.map +1 -0
  65. package/dist/commonjs/internal/web/firebaseApp.js +17 -0
  66. package/dist/commonjs/internal/web/firebaseApp.js.map +1 -0
  67. package/dist/commonjs/internal/web/firebaseAppCheck.js +36 -0
  68. package/dist/commonjs/internal/web/firebaseAppCheck.js.map +1 -0
  69. package/dist/commonjs/internal/web/firebaseAuth.js +28 -0
  70. package/dist/commonjs/internal/web/firebaseAuth.js.map +1 -0
  71. package/dist/commonjs/internal/web/firebaseDatabase.js +28 -0
  72. package/dist/commonjs/internal/web/firebaseDatabase.js.map +1 -0
  73. package/dist/commonjs/internal/web/firebaseFirestore.js +28 -0
  74. package/dist/commonjs/internal/web/firebaseFirestore.js.map +1 -0
  75. package/dist/commonjs/internal/web/firebaseFunctions.js +28 -0
  76. package/dist/commonjs/internal/web/firebaseFunctions.js.map +1 -0
  77. package/dist/commonjs/internal/web/firebaseInstallations.js +36 -0
  78. package/dist/commonjs/internal/web/firebaseInstallations.js.map +1 -0
  79. package/dist/commonjs/internal/web/firebaseRemoteConfig.js +36 -0
  80. package/dist/commonjs/internal/web/firebaseRemoteConfig.js.map +1 -0
  81. package/dist/commonjs/internal/web/firebaseStorage.js +28 -0
  82. package/dist/commonjs/internal/web/firebaseStorage.js.map +1 -0
  83. package/dist/commonjs/internal/web/memidb/FDBCursor.js +479 -0
  84. package/dist/commonjs/internal/web/memidb/FDBCursor.js.map +1 -0
  85. package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js +19 -0
  86. package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
  87. package/dist/commonjs/internal/web/memidb/FDBDatabase.js +163 -0
  88. package/dist/commonjs/internal/web/memidb/FDBDatabase.js.map +1 -0
  89. package/dist/commonjs/internal/web/memidb/FDBFactory.js +264 -0
  90. package/dist/commonjs/internal/web/memidb/FDBFactory.js.map +1 -0
  91. package/dist/commonjs/internal/web/memidb/FDBIndex.js +191 -0
  92. package/dist/commonjs/internal/web/memidb/FDBIndex.js.map +1 -0
  93. package/dist/commonjs/internal/web/memidb/FDBKeyRange.js +78 -0
  94. package/dist/commonjs/internal/web/memidb/FDBKeyRange.js.map +1 -0
  95. package/dist/commonjs/internal/web/memidb/FDBObjectStore.js +383 -0
  96. package/dist/commonjs/internal/web/memidb/FDBObjectStore.js.map +1 -0
  97. package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js +17 -0
  98. package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
  99. package/dist/commonjs/internal/web/memidb/FDBRequest.js +41 -0
  100. package/dist/commonjs/internal/web/memidb/FDBRequest.js.map +1 -0
  101. package/dist/commonjs/internal/web/memidb/FDBTransaction.js +221 -0
  102. package/dist/commonjs/internal/web/memidb/FDBTransaction.js.map +1 -0
  103. package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js +20 -0
  104. package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
  105. package/dist/commonjs/internal/web/memidb/LICENSE +208 -0
  106. package/dist/commonjs/internal/web/memidb/index.js +45 -0
  107. package/dist/commonjs/internal/web/memidb/index.js.map +1 -0
  108. package/dist/commonjs/internal/web/memidb/lib/Database.js +38 -0
  109. package/dist/commonjs/internal/web/memidb/lib/Database.js.map +1 -0
  110. package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js +78 -0
  111. package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
  112. package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js +45 -0
  113. package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js.map +1 -0
  114. package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js +111 -0
  115. package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
  116. package/dist/commonjs/internal/web/memidb/lib/Index.js +164 -0
  117. package/dist/commonjs/internal/web/memidb/lib/Index.js.map +1 -0
  118. package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js +29 -0
  119. package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
  120. package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js +180 -0
  121. package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js.map +1 -0
  122. package/dist/commonjs/internal/web/memidb/lib/RecordStore.js +141 -0
  123. package/dist/commonjs/internal/web/memidb/lib/RecordStore.js.map +1 -0
  124. package/dist/commonjs/internal/web/memidb/lib/binarySearch.js +86 -0
  125. package/dist/commonjs/internal/web/memidb/lib/binarySearch.js.map +1 -0
  126. package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js +30 -0
  127. package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js.map +1 -0
  128. package/dist/commonjs/internal/web/memidb/lib/cmp.js +85 -0
  129. package/dist/commonjs/internal/web/memidb/lib/cmp.js.map +1 -0
  130. package/dist/commonjs/internal/web/memidb/lib/enforceRange.js +20 -0
  131. package/dist/commonjs/internal/web/memidb/lib/enforceRange.js.map +1 -0
  132. package/dist/commonjs/internal/web/memidb/lib/errors.js +95 -0
  133. package/dist/commonjs/internal/web/memidb/lib/errors.js.map +1 -0
  134. package/dist/commonjs/internal/web/memidb/lib/extractKey.js +46 -0
  135. package/dist/commonjs/internal/web/memidb/lib/extractKey.js.map +1 -0
  136. package/dist/commonjs/internal/web/memidb/lib/scheduling.js +37 -0
  137. package/dist/commonjs/internal/web/memidb/lib/scheduling.js.map +1 -0
  138. package/dist/commonjs/internal/web/memidb/lib/types.js +6 -0
  139. package/dist/commonjs/internal/web/memidb/lib/types.js.map +1 -0
  140. package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js +51 -0
  141. package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
  142. package/dist/commonjs/internal/web/memidb/lib/valueToKey.js +62 -0
  143. package/dist/commonjs/internal/web/memidb/lib/valueToKey.js.map +1 -0
  144. package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js +26 -0
  145. package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
  146. package/dist/commonjs/internal/web/structuredClone/index.js +239 -0
  147. package/dist/commonjs/internal/web/structuredClone/index.js.map +1 -0
  148. package/dist/commonjs/internal/web/utils.js +59 -0
  149. package/dist/commonjs/internal/web/utils.js.map +1 -0
  150. package/dist/commonjs/modular.js +190 -0
  151. package/dist/commonjs/modular.js.map +1 -0
  152. package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppRegistrar.java → dist/commonjs/namespaced.js} +17 -17
  153. package/dist/commonjs/namespaced.js.map +1 -0
  154. package/dist/commonjs/package.json +1 -0
  155. package/dist/commonjs/types/app.js +139 -0
  156. package/dist/commonjs/types/app.js.map +1 -0
  157. package/dist/commonjs/types/internal.js +6 -0
  158. package/dist/commonjs/types/internal.js.map +1 -0
  159. package/dist/commonjs/utils/UtilsStatics.js +59 -0
  160. package/dist/commonjs/utils/UtilsStatics.js.map +1 -0
  161. package/dist/commonjs/utils/index.js +94 -0
  162. package/dist/commonjs/utils/index.js.map +1 -0
  163. package/dist/commonjs/version.js +9 -0
  164. package/dist/commonjs/version.js.map +1 -0
  165. package/{lib → dist/module}/FirebaseApp.js +14 -14
  166. package/dist/module/FirebaseApp.js.map +1 -0
  167. package/dist/module/common/Base64.js +100 -0
  168. package/dist/module/common/Base64.js.map +1 -0
  169. package/{lib → dist/module}/common/MutatableParams.js +4 -6
  170. package/dist/module/common/MutatableParams.js.map +1 -0
  171. package/{lib → dist/module}/common/ReferenceBase.js +3 -2
  172. package/dist/module/common/ReferenceBase.js.map +1 -0
  173. package/{lib → dist/module}/common/deeps.js +5 -9
  174. package/dist/module/common/deeps.js.map +1 -0
  175. package/{lib → dist/module}/common/id.js +20 -11
  176. package/dist/module/common/id.js.map +1 -0
  177. package/dist/module/common/index.js +701 -0
  178. package/dist/module/common/index.js.map +1 -0
  179. package/{lib → dist/module}/common/path.js +4 -8
  180. package/dist/module/common/path.js.map +1 -0
  181. package/{lib → dist/module}/common/promise.js +21 -23
  182. package/dist/module/common/promise.js.map +1 -0
  183. package/dist/module/common/serialize.js +43 -0
  184. package/dist/module/common/serialize.js.map +1 -0
  185. package/dist/module/common/unitTestUtils.js +48 -0
  186. package/dist/module/common/unitTestUtils.js.map +1 -0
  187. package/{lib → dist/module}/common/validate.js +20 -16
  188. package/dist/module/common/validate.js.map +1 -0
  189. package/{ios/RNFBApp/RNFBVersion.m → dist/module/index.js} +6 -5
  190. package/dist/module/index.js.map +1 -0
  191. package/{lib → dist/module}/internal/FirebaseModule.js +6 -11
  192. package/dist/module/internal/FirebaseModule.js.map +1 -0
  193. package/{lib → dist/module}/internal/NativeFirebaseError.js +19 -24
  194. package/dist/module/internal/NativeFirebaseError.js.map +1 -0
  195. package/dist/module/internal/NativeModules.js +4 -0
  196. package/dist/module/internal/NativeModules.js.map +1 -0
  197. package/{lib → dist/module}/internal/RNFBNativeEventEmitter.js +30 -21
  198. package/dist/module/internal/RNFBNativeEventEmitter.js.map +1 -0
  199. package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java → dist/module/internal/SharedEventEmitter.js} +5 -5
  200. package/dist/module/internal/SharedEventEmitter.js.map +1 -0
  201. package/dist/module/internal/asyncStorage.js +73 -0
  202. package/dist/module/internal/asyncStorage.js.map +1 -0
  203. package/dist/module/internal/constants.js +23 -0
  204. package/dist/module/internal/constants.js.map +1 -0
  205. package/dist/module/internal/index.js +30 -0
  206. package/dist/module/internal/index.js.map +1 -0
  207. package/{lib → dist/module}/internal/logger.js +65 -55
  208. package/dist/module/internal/logger.js.map +1 -0
  209. package/dist/module/internal/nativeModule.android.js +5 -0
  210. package/dist/module/internal/nativeModule.android.js.map +1 -0
  211. package/dist/module/internal/nativeModule.ios.js +5 -0
  212. package/dist/module/internal/nativeModule.ios.js.map +1 -0
  213. package/dist/module/internal/nativeModule.js +7 -0
  214. package/dist/module/internal/nativeModule.js.map +1 -0
  215. package/dist/module/internal/nativeModuleAndroidIos.js +46 -0
  216. package/dist/module/internal/nativeModuleAndroidIos.js.map +1 -0
  217. package/dist/module/internal/nativeModuleWeb.js +45 -0
  218. package/dist/module/internal/nativeModuleWeb.js.map +1 -0
  219. package/dist/module/internal/nullSerialization.js +158 -0
  220. package/dist/module/internal/nullSerialization.js.map +1 -0
  221. package/{lib → dist/module}/internal/registry/app.js +41 -79
  222. package/dist/module/internal/registry/app.js.map +1 -0
  223. package/dist/module/internal/registry/namespace.js +262 -0
  224. package/dist/module/internal/registry/namespace.js.map +1 -0
  225. package/{lib → dist/module}/internal/registry/nativeModule.js +46 -62
  226. package/dist/module/internal/registry/nativeModule.js.map +1 -0
  227. package/{lib → dist/module}/internal/web/RNFBAppModule.js +76 -67
  228. package/dist/module/internal/web/RNFBAppModule.js.map +1 -0
  229. package/{android/src/reactnative/java/io/invertase/firebase/interfaces/NativeEvent.java → dist/module/internal/web/firebaseApp.js} +5 -10
  230. package/dist/module/internal/web/firebaseApp.js.map +1 -0
  231. package/{android/src/reactnative/java/io/invertase/firebase/interfaces/NativeError.java → dist/module/internal/web/firebaseAppCheck.js} +8 -14
  232. package/dist/module/internal/web/firebaseAppCheck.js.map +1 -0
  233. package/dist/module/internal/web/firebaseAuth.js +24 -0
  234. package/dist/module/internal/web/firebaseAuth.js.map +1 -0
  235. package/dist/module/internal/web/firebaseDatabase.js +24 -0
  236. package/dist/module/internal/web/firebaseDatabase.js.map +1 -0
  237. package/dist/module/internal/web/firebaseFirestore.js +24 -0
  238. package/dist/module/internal/web/firebaseFirestore.js.map +1 -0
  239. package/dist/module/internal/web/firebaseFunctions.js +24 -0
  240. package/dist/module/internal/web/firebaseFunctions.js.map +1 -0
  241. package/dist/module/internal/web/firebaseInstallations.js +26 -0
  242. package/dist/module/internal/web/firebaseInstallations.js.map +1 -0
  243. package/{android/src/reactnative/java/io/invertase/firebase/interfaces/ContextProvider.java → dist/module/internal/web/firebaseRemoteConfig.js} +8 -12
  244. package/dist/module/internal/web/firebaseRemoteConfig.js.map +1 -0
  245. package/dist/module/internal/web/firebaseStorage.js +24 -0
  246. package/dist/module/internal/web/firebaseStorage.js.map +1 -0
  247. package/dist/module/internal/web/memidb/FDBCursor.js +474 -0
  248. package/dist/module/internal/web/memidb/FDBCursor.js.map +1 -0
  249. package/dist/module/internal/web/memidb/FDBCursorWithValue.js +14 -0
  250. package/dist/module/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
  251. package/dist/module/internal/web/memidb/FDBDatabase.js +158 -0
  252. package/dist/module/internal/web/memidb/FDBDatabase.js.map +1 -0
  253. package/dist/module/internal/web/memidb/FDBFactory.js +259 -0
  254. package/dist/module/internal/web/memidb/FDBFactory.js.map +1 -0
  255. package/dist/module/internal/web/memidb/FDBIndex.js +186 -0
  256. package/dist/module/internal/web/memidb/FDBIndex.js.map +1 -0
  257. package/dist/module/internal/web/memidb/FDBKeyRange.js +74 -0
  258. package/dist/module/internal/web/memidb/FDBKeyRange.js.map +1 -0
  259. package/dist/module/internal/web/memidb/FDBObjectStore.js +378 -0
  260. package/dist/module/internal/web/memidb/FDBObjectStore.js.map +1 -0
  261. package/dist/module/internal/web/memidb/FDBOpenDBRequest.js +12 -0
  262. package/dist/module/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
  263. package/dist/module/internal/web/memidb/FDBRequest.js +36 -0
  264. package/dist/module/internal/web/memidb/FDBRequest.js.map +1 -0
  265. package/dist/module/internal/web/memidb/FDBTransaction.js +216 -0
  266. package/dist/module/internal/web/memidb/FDBTransaction.js.map +1 -0
  267. package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js +15 -0
  268. package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
  269. package/dist/module/internal/web/memidb/LICENSE +208 -0
  270. package/dist/module/internal/web/memidb/index.js +41 -0
  271. package/dist/module/internal/web/memidb/index.js.map +1 -0
  272. package/dist/module/internal/web/memidb/lib/Database.js +35 -0
  273. package/dist/module/internal/web/memidb/lib/Database.js.map +1 -0
  274. package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js +75 -0
  275. package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
  276. package/dist/module/internal/web/memidb/lib/FakeEvent.js +41 -0
  277. package/dist/module/internal/web/memidb/lib/FakeEvent.js.map +1 -0
  278. package/dist/module/internal/web/memidb/lib/FakeEventTarget.js +107 -0
  279. package/dist/module/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
  280. package/dist/module/internal/web/memidb/lib/Index.js +160 -0
  281. package/dist/module/internal/web/memidb/lib/Index.js.map +1 -0
  282. package/dist/module/internal/web/memidb/lib/KeyGenerator.js +25 -0
  283. package/dist/module/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
  284. package/dist/module/internal/web/memidb/lib/ObjectStore.js +175 -0
  285. package/dist/module/internal/web/memidb/lib/ObjectStore.js.map +1 -0
  286. package/dist/module/internal/web/memidb/lib/RecordStore.js +136 -0
  287. package/dist/module/internal/web/memidb/lib/RecordStore.js.map +1 -0
  288. package/dist/module/internal/web/memidb/lib/binarySearch.js +77 -0
  289. package/dist/module/internal/web/memidb/lib/binarySearch.js.map +1 -0
  290. package/dist/module/internal/web/memidb/lib/canInjectKey.js +26 -0
  291. package/dist/module/internal/web/memidb/lib/canInjectKey.js.map +1 -0
  292. package/dist/module/internal/web/memidb/lib/cmp.js +80 -0
  293. package/dist/module/internal/web/memidb/lib/cmp.js.map +1 -0
  294. package/dist/module/internal/web/memidb/lib/enforceRange.js +16 -0
  295. package/dist/module/internal/web/memidb/lib/enforceRange.js.map +1 -0
  296. package/dist/module/internal/web/memidb/lib/errors.js +81 -0
  297. package/dist/module/internal/web/memidb/lib/errors.js.map +1 -0
  298. package/dist/module/internal/web/memidb/lib/extractKey.js +42 -0
  299. package/dist/module/internal/web/memidb/lib/extractKey.js.map +1 -0
  300. package/dist/module/internal/web/memidb/lib/scheduling.js +32 -0
  301. package/dist/module/internal/web/memidb/lib/scheduling.js.map +1 -0
  302. package/dist/module/internal/web/memidb/lib/types.js +4 -0
  303. package/dist/module/internal/web/memidb/lib/types.js.map +1 -0
  304. package/dist/module/internal/web/memidb/lib/validateKeyPath.js +47 -0
  305. package/dist/module/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
  306. package/dist/module/internal/web/memidb/lib/valueToKey.js +58 -0
  307. package/dist/module/internal/web/memidb/lib/valueToKey.js.map +1 -0
  308. package/dist/module/internal/web/memidb/lib/valueToKeyRange.js +22 -0
  309. package/dist/module/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
  310. package/dist/module/internal/web/structuredClone/index.js +235 -0
  311. package/dist/module/internal/web/structuredClone/index.js.map +1 -0
  312. package/{lib → dist/module}/internal/web/utils.js +24 -5
  313. package/dist/module/internal/web/utils.js.map +1 -0
  314. package/dist/module/modular.js +172 -0
  315. package/dist/module/modular.js.map +1 -0
  316. package/dist/module/namespaced.js +25 -0
  317. package/dist/module/namespaced.js.map +1 -0
  318. package/dist/module/package.json +1 -0
  319. package/dist/module/types/app.js +135 -0
  320. package/dist/module/types/app.js.map +1 -0
  321. package/dist/module/types/internal.js +4 -0
  322. package/dist/module/types/internal.js.map +1 -0
  323. package/dist/module/utils/UtilsStatics.js +55 -0
  324. package/dist/module/utils/UtilsStatics.js.map +1 -0
  325. package/{lib → dist/module}/utils/index.js +13 -15
  326. package/dist/module/utils/index.js.map +1 -0
  327. package/dist/module/version.js +5 -0
  328. package/dist/module/version.js.map +1 -0
  329. package/dist/typescript/commonjs/lib/FirebaseApp.d.ts +21 -0
  330. package/dist/typescript/commonjs/lib/FirebaseApp.d.ts.map +1 -0
  331. package/dist/typescript/commonjs/lib/common/Base64.d.ts +23 -0
  332. package/dist/typescript/commonjs/lib/common/Base64.d.ts.map +1 -0
  333. package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts +10 -0
  334. package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts +12 -0
  336. package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/lib/common/deeps.d.ts +19 -0
  338. package/dist/typescript/commonjs/lib/common/deeps.d.ts.map +1 -0
  339. package/dist/typescript/commonjs/lib/common/id.d.ts +12 -0
  340. package/dist/typescript/commonjs/lib/common/id.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/lib/common/index.d.ts +33 -0
  342. package/dist/typescript/commonjs/lib/common/index.d.ts.map +1 -0
  343. package/dist/typescript/commonjs/lib/common/path.d.ts +51 -0
  344. package/dist/typescript/commonjs/lib/common/path.d.ts.map +1 -0
  345. package/dist/typescript/commonjs/lib/common/promise.d.ts +12 -0
  346. package/dist/typescript/commonjs/lib/common/promise.d.ts.map +1 -0
  347. package/dist/typescript/commonjs/lib/common/serialize.d.ts +4 -0
  348. package/dist/typescript/commonjs/lib/common/serialize.d.ts.map +1 -0
  349. package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts +4 -0
  350. package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts.map +1 -0
  351. package/dist/typescript/commonjs/lib/common/validate.d.ts +100 -0
  352. package/dist/typescript/commonjs/lib/common/validate.d.ts.map +1 -0
  353. package/dist/typescript/commonjs/lib/index.d.ts +4 -0
  354. package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
  355. package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts +17 -0
  356. package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts +20 -0
  358. package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts.map +1 -0
  359. package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts +83 -0
  360. package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts.map +1 -0
  361. package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
  362. package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
  363. package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts +4 -0
  364. package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts.map +1 -0
  365. package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts +10 -0
  366. package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts.map +1 -0
  367. package/dist/typescript/commonjs/lib/internal/constants.d.ts +5 -0
  368. package/dist/typescript/commonjs/lib/internal/constants.d.ts.map +1 -0
  369. package/dist/typescript/commonjs/lib/internal/index.d.ts +12 -0
  370. package/dist/typescript/commonjs/lib/internal/index.d.ts.map +1 -0
  371. package/dist/typescript/commonjs/lib/internal/logger.d.ts +83 -0
  372. package/dist/typescript/commonjs/lib/internal/logger.d.ts.map +1 -0
  373. package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts +3 -0
  374. package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts +3 -0
  376. package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts +3 -0
  378. package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
  380. package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
  381. package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts +3 -0
  382. package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts.map +1 -0
  383. package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts +16 -0
  384. package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts.map +1 -0
  385. package/dist/typescript/commonjs/lib/internal/registry/app.d.ts +47 -0
  386. package/dist/typescript/commonjs/lib/internal/registry/app.d.ts.map +1 -0
  387. package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts +26 -0
  388. package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts.map +1 -0
  389. package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts +17 -0
  390. package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts.map +1 -0
  391. package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts +139 -0
  392. package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
  393. package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts +2 -0
  394. package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts.map +1 -0
  395. package/{lib/internal/web/firebaseAppCheck.js → dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts} +1 -2
  396. package/dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts +3 -0
  398. package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts.map +1 -0
  399. package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts +3 -0
  400. package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
  401. package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts +3 -0
  402. package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
  403. package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts +3 -0
  404. package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
  405. package/{lib/internal/web/firebaseInstallations.js → dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts} +1 -2
  406. package/dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
  407. package/{lib/internal/web/firebaseRemoteConfig.js → dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts} +1 -2
  408. package/dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts +3 -0
  410. package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts.map +1 -0
  411. package/dist/typescript/commonjs/lib/internal/web/utils.d.ts +13 -0
  412. package/dist/typescript/commonjs/lib/internal/web/utils.d.ts.map +1 -0
  413. package/dist/typescript/commonjs/lib/modular.d.ts +95 -0
  414. package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/lib/namespaced.d.ts +5 -0
  416. package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
  417. package/dist/typescript/commonjs/lib/types/app.d.ts +561 -0
  418. package/dist/typescript/commonjs/lib/types/app.d.ts.map +1 -0
  419. package/dist/typescript/commonjs/lib/types/internal.d.ts +101 -0
  420. package/dist/typescript/commonjs/lib/types/internal.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts +4 -0
  422. package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/lib/utils/index.d.ts +4 -0
  424. package/dist/typescript/commonjs/lib/utils/index.d.ts.map +1 -0
  425. package/dist/typescript/commonjs/lib/version.d.ts +2 -0
  426. package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
  427. package/dist/typescript/commonjs/package.json +1 -0
  428. package/dist/typescript/module/lib/FirebaseApp.d.ts +21 -0
  429. package/dist/typescript/module/lib/FirebaseApp.d.ts.map +1 -0
  430. package/dist/typescript/module/lib/common/Base64.d.ts +23 -0
  431. package/dist/typescript/module/lib/common/Base64.d.ts.map +1 -0
  432. package/dist/typescript/module/lib/common/MutatableParams.d.ts +10 -0
  433. package/dist/typescript/module/lib/common/MutatableParams.d.ts.map +1 -0
  434. package/dist/typescript/module/lib/common/ReferenceBase.d.ts +12 -0
  435. package/dist/typescript/module/lib/common/ReferenceBase.d.ts.map +1 -0
  436. package/dist/typescript/module/lib/common/deeps.d.ts +19 -0
  437. package/dist/typescript/module/lib/common/deeps.d.ts.map +1 -0
  438. package/dist/typescript/module/lib/common/id.d.ts +12 -0
  439. package/dist/typescript/module/lib/common/id.d.ts.map +1 -0
  440. package/dist/typescript/module/lib/common/index.d.ts +33 -0
  441. package/dist/typescript/module/lib/common/index.d.ts.map +1 -0
  442. package/dist/typescript/module/lib/common/path.d.ts +51 -0
  443. package/dist/typescript/module/lib/common/path.d.ts.map +1 -0
  444. package/dist/typescript/module/lib/common/promise.d.ts +12 -0
  445. package/dist/typescript/module/lib/common/promise.d.ts.map +1 -0
  446. package/dist/typescript/module/lib/common/serialize.d.ts +4 -0
  447. package/dist/typescript/module/lib/common/serialize.d.ts.map +1 -0
  448. package/dist/typescript/module/lib/common/unitTestUtils.d.ts +4 -0
  449. package/dist/typescript/module/lib/common/unitTestUtils.d.ts.map +1 -0
  450. package/dist/typescript/module/lib/common/validate.d.ts +100 -0
  451. package/dist/typescript/module/lib/common/validate.d.ts.map +1 -0
  452. package/dist/typescript/module/lib/index.d.ts +4 -0
  453. package/dist/typescript/module/lib/index.d.ts.map +1 -0
  454. package/dist/typescript/module/lib/internal/FirebaseModule.d.ts +17 -0
  455. package/dist/typescript/module/lib/internal/FirebaseModule.d.ts.map +1 -0
  456. package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts +20 -0
  457. package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts.map +1 -0
  458. package/dist/typescript/module/lib/internal/NativeModules.d.ts +83 -0
  459. package/dist/typescript/module/lib/internal/NativeModules.d.ts.map +1 -0
  460. package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
  461. package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
  462. package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts +4 -0
  463. package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts.map +1 -0
  464. package/dist/typescript/module/lib/internal/asyncStorage.d.ts +10 -0
  465. package/dist/typescript/module/lib/internal/asyncStorage.d.ts.map +1 -0
  466. package/dist/typescript/module/lib/internal/constants.d.ts +5 -0
  467. package/dist/typescript/module/lib/internal/constants.d.ts.map +1 -0
  468. package/dist/typescript/module/lib/internal/index.d.ts +12 -0
  469. package/dist/typescript/module/lib/internal/index.d.ts.map +1 -0
  470. package/dist/typescript/module/lib/internal/logger.d.ts +83 -0
  471. package/dist/typescript/module/lib/internal/logger.d.ts.map +1 -0
  472. package/dist/typescript/module/lib/internal/nativeModule.android.d.ts +3 -0
  473. package/dist/typescript/module/lib/internal/nativeModule.android.d.ts.map +1 -0
  474. package/dist/typescript/module/lib/internal/nativeModule.d.ts +3 -0
  475. package/dist/typescript/module/lib/internal/nativeModule.d.ts.map +1 -0
  476. package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts +3 -0
  477. package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts.map +1 -0
  478. package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
  479. package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
  480. package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts +3 -0
  481. package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts.map +1 -0
  482. package/dist/typescript/module/lib/internal/nullSerialization.d.ts +16 -0
  483. package/dist/typescript/module/lib/internal/nullSerialization.d.ts.map +1 -0
  484. package/dist/typescript/module/lib/internal/registry/app.d.ts +47 -0
  485. package/dist/typescript/module/lib/internal/registry/app.d.ts.map +1 -0
  486. package/dist/typescript/module/lib/internal/registry/namespace.d.ts +26 -0
  487. package/dist/typescript/module/lib/internal/registry/namespace.d.ts.map +1 -0
  488. package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts +17 -0
  489. package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts.map +1 -0
  490. package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts +139 -0
  491. package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
  492. package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts +2 -0
  493. package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts.map +1 -0
  494. package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts +5 -0
  495. package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
  496. package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts +3 -0
  497. package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts.map +1 -0
  498. package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts +3 -0
  499. package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
  500. package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts +3 -0
  501. package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
  502. package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts +3 -0
  503. package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
  504. package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts +5 -0
  505. package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
  506. package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts +5 -0
  507. package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
  508. package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts +3 -0
  509. package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts.map +1 -0
  510. package/dist/typescript/module/lib/internal/web/utils.d.ts +13 -0
  511. package/dist/typescript/module/lib/internal/web/utils.d.ts.map +1 -0
  512. package/dist/typescript/module/lib/modular.d.ts +95 -0
  513. package/dist/typescript/module/lib/modular.d.ts.map +1 -0
  514. package/dist/typescript/module/lib/namespaced.d.ts +5 -0
  515. package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
  516. package/dist/typescript/module/lib/types/app.d.ts +561 -0
  517. package/dist/typescript/module/lib/types/app.d.ts.map +1 -0
  518. package/dist/typescript/module/lib/types/internal.d.ts +101 -0
  519. package/dist/typescript/module/lib/types/internal.d.ts.map +1 -0
  520. package/dist/typescript/module/lib/utils/UtilsStatics.d.ts +4 -0
  521. package/dist/typescript/module/lib/utils/UtilsStatics.d.ts.map +1 -0
  522. package/dist/typescript/module/lib/utils/index.d.ts +4 -0
  523. package/dist/typescript/module/lib/utils/index.d.ts.map +1 -0
  524. package/dist/typescript/module/lib/version.d.ts +2 -0
  525. package/dist/typescript/module/lib/version.d.ts.map +1 -0
  526. package/dist/typescript/module/package.json +1 -0
  527. package/lib/FirebaseApp.ts +98 -0
  528. package/lib/common/{Base64.js → Base64.ts} +19 -11
  529. package/lib/common/MutatableParams.ts +50 -0
  530. package/lib/common/ReferenceBase.ts +45 -0
  531. package/lib/common/deeps.ts +92 -0
  532. package/lib/common/id.ts +91 -0
  533. package/lib/common/{index.js → index.ts} +60 -38
  534. package/lib/common/path.ts +124 -0
  535. package/lib/common/promise.ts +68 -0
  536. package/lib/common/{serialize.js → serialize.ts} +3 -2
  537. package/lib/common/unitTestUtils.ts +5 -4
  538. package/lib/common/validate.ts +232 -0
  539. package/lib/index.ts +27 -0
  540. package/lib/internal/FirebaseModule.ts +78 -0
  541. package/lib/internal/NativeFirebaseError.ts +111 -0
  542. package/lib/internal/NativeModules.ts +116 -0
  543. package/lib/internal/RNFBNativeEventEmitter.ts +139 -0
  544. package/lib/internal/asyncStorage.ts +76 -0
  545. package/lib/internal/{constants.js → constants.ts} +3 -1
  546. package/{ios/RNFBApp/RCTConvert+FIRApp.m → lib/internal/global.d.ts} +14 -12
  547. package/lib/internal/{index.js → index.ts} +2 -0
  548. package/lib/internal/logger.ts +270 -0
  549. package/lib/internal/nativeModuleAndroidIos.ts +55 -0
  550. package/lib/internal/nativeModuleWeb.ts +60 -0
  551. package/lib/internal/nullSerialization.ts +186 -0
  552. package/lib/internal/registry/app.ts +278 -0
  553. package/lib/internal/registry/{namespace.js → namespace.ts} +93 -54
  554. package/lib/internal/registry/nativeModule.ts +282 -0
  555. package/lib/internal/web/RNFBAppModule.ts +318 -0
  556. package/{ios/RNFBApp/RCTConvert+FIRApp.h → lib/internal/web/firebaseApp.ts} +4 -7
  557. package/lib/internal/web/firebaseAppCheck.ts +23 -0
  558. package/lib/internal/web/firebaseAuth.ts +21 -0
  559. package/lib/internal/web/firebaseDatabase.ts +21 -0
  560. package/{android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppInitProvider.java → lib/internal/web/firebaseFirestore.ts} +4 -5
  561. package/lib/internal/web/firebaseFunctions.ts +21 -0
  562. package/lib/internal/web/firebaseInstallations.ts +23 -0
  563. package/lib/internal/web/firebaseRemoteConfig.ts +23 -0
  564. package/lib/internal/web/firebaseStorage.ts +21 -0
  565. package/{ios/RNFBApp/RNFBVersion.h → lib/internal/web/memidb/index.d.ts} +5 -4
  566. package/lib/internal/web/memidb/lib/errors.js +17 -0
  567. package/lib/internal/web/utils.ts +57 -0
  568. package/lib/modular.ts +219 -0
  569. package/lib/{index.js → namespaced.ts} +2 -2
  570. package/lib/{index.d.ts → types/app.ts} +81 -40
  571. package/lib/types/internal.ts +142 -0
  572. package/lib/utils/{UtilsStatics.js → UtilsStatics.ts} +20 -12
  573. package/lib/utils/index.ts +94 -0
  574. package/lib/version.ts +2 -0
  575. package/package.json +106 -9
  576. package/CHANGELOG.md +0 -1525
  577. package/RNFBApp.podspec +0 -49
  578. package/android/.editorconfig +0 -10
  579. package/android/build.gradle +0 -129
  580. package/android/firebase-json.gradle +0 -73
  581. package/android/gradle.properties +0 -2
  582. package/android/lint.xml +0 -5
  583. package/android/settings.gradle +0 -1
  584. package/android/src/main/AndroidManifest.xml +0 -24
  585. package/android/src/main/java/io/invertase/firebase/app/.gitkeep +0 -0
  586. package/android/src/main/java/io/invertase/firebase/common/TaskExecutorService.java +0 -124
  587. package/android/src/main/java/io/invertase/firebase/common/UniversalFirebaseModule.java +0 -62
  588. package/android/src/main/java/io/invertase/firebase/common/UniversalFirebasePreferences.java +0 -91
  589. package/android/src/main/java/io/invertase/firebase/interfaces/.gitkeep +0 -0
  590. package/android/src/reactnative/AndroidManifest.xml +0 -2
  591. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseApp.java +0 -46
  592. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java +0 -186
  593. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java +0 -49
  594. package/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java +0 -191
  595. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java +0 -53
  596. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java +0 -151
  597. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseInitProvider.java +0 -78
  598. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseJSON.java +0 -107
  599. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java +0 -93
  600. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java +0 -146
  601. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java +0 -88
  602. package/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java +0 -440
  603. package/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java +0 -191
  604. package/app.plugin.js +0 -1
  605. package/firebase-schema.json +0 -149
  606. package/firebase_json.rb +0 -72
  607. package/ios/RNFBApp/RCTConvert+FIROptions.h +0 -23
  608. package/ios/RNFBApp/RCTConvert+FIROptions.m +0 -36
  609. package/ios/RNFBApp/RNFBAppModule.h +0 -28
  610. package/ios/RNFBApp/RNFBAppModule.m +0 -305
  611. package/ios/RNFBApp/RNFBJSON.h +0 -36
  612. package/ios/RNFBApp/RNFBJSON.m +0 -99
  613. package/ios/RNFBApp/RNFBMeta.h +0 -30
  614. package/ios/RNFBApp/RNFBMeta.m +0 -61
  615. package/ios/RNFBApp/RNFBPreferences.h +0 -44
  616. package/ios/RNFBApp/RNFBPreferences.m +0 -94
  617. package/ios/RNFBApp/RNFBRCTEventEmitter.h +0 -73
  618. package/ios/RNFBApp/RNFBRCTEventEmitter.m +0 -151
  619. package/ios/RNFBApp/RNFBSharedUtils.h +0 -65
  620. package/ios/RNFBApp/RNFBSharedUtils.m +0 -167
  621. package/ios/RNFBApp/RNFBUtilsModule.h +0 -30
  622. package/ios/RNFBApp/RNFBUtilsModule.m +0 -100
  623. package/ios/RNFBApp.xcodeproj/project.pbxproj +0 -405
  624. package/ios/RNFBApp.xcodeproj/xcshareddata/IDETemplateMacros.plist +0 -24
  625. package/ios_config.sh +0 -269
  626. package/lib/internal/asyncStorage.js +0 -47
  627. package/lib/internal/logger.d.ts +0 -85
  628. package/lib/internal/nativeModuleAndroidIos.js +0 -45
  629. package/lib/internal/nativeModuleWeb.js +0 -49
  630. package/lib/internal/web/firebaseApp.js +0 -3
  631. package/lib/internal/web/firebaseAuth.js +0 -4
  632. package/lib/internal/web/firebaseDatabase.js +0 -4
  633. package/lib/internal/web/firebaseFirestore.js +0 -4
  634. package/lib/internal/web/firebaseFunctions.js +0 -4
  635. package/lib/internal/web/firebaseStorage.js +0 -4
  636. package/lib/modular/index.d.ts +0 -131
  637. package/lib/modular/index.js +0 -150
  638. package/lib/version.js +0 -2
  639. package/plugin/build/android/applyPlugin.d.ts +0 -6
  640. package/plugin/build/android/applyPlugin.js +0 -29
  641. package/plugin/build/android/buildscriptDependency.d.ts +0 -6
  642. package/plugin/build/android/buildscriptDependency.js +0 -31
  643. package/plugin/build/android/constants.d.ts +0 -4
  644. package/plugin/build/android/constants.js +0 -8
  645. package/plugin/build/android/copyGoogleServices.d.ts +0 -5
  646. package/plugin/build/android/copyGoogleServices.js +0 -33
  647. package/plugin/build/android/index.d.ts +0 -4
  648. package/plugin/build/android/index.js +0 -9
  649. package/plugin/build/index.d.ts +0 -3
  650. package/plugin/build/index.js +0 -21
  651. package/plugin/build/ios/appDelegate.d.ts +0 -6
  652. package/plugin/build/ios/appDelegate.js +0 -116
  653. package/plugin/build/ios/googleServicesPlist.d.ts +0 -7
  654. package/plugin/build/ios/googleServicesPlist.js +0 -42
  655. package/plugin/build/ios/index.d.ts +0 -3
  656. package/plugin/build/ios/index.js +0 -7
  657. package/plugin/src/android/applyPlugin.ts +0 -30
  658. package/plugin/src/android/buildscriptDependency.ts +0 -33
  659. package/plugin/src/android/constants.ts +0 -7
  660. package/plugin/src/android/copyGoogleServices.ts +0 -36
  661. package/plugin/src/android/index.ts +0 -5
  662. package/plugin/src/index.ts +0 -27
  663. package/plugin/src/ios/appDelegate.ts +0 -140
  664. package/plugin/src/ios/googleServicesPlist.ts +0 -55
  665. package/plugin/src/ios/index.ts +0 -4
  666. package/plugin/tsconfig.json +0 -9
  667. package/plugin/tsconfig.tsbuildinfo +0 -1
  668. package/react-native.config.js +0 -19
  669. /package/lib/internal/{SharedEventEmitter.js → SharedEventEmitter.ts} +0 -0
  670. /package/lib/internal/{nativeModule.android.js → nativeModule.android.ts} +0 -0
  671. /package/lib/internal/{nativeModule.ios.js → nativeModule.ios.ts} +0 -0
  672. /package/lib/internal/{nativeModule.js → nativeModule.ts} +0 -0
@@ -0,0 +1,474 @@
1
+ "use strict";
2
+
3
+ import FDBKeyRange from './FDBKeyRange.js';
4
+ import FDBObjectStore from './FDBObjectStore.js';
5
+ import cmp from './lib/cmp.js';
6
+ import { DataError, InvalidAccessError, InvalidStateError, ReadOnlyError, TransactionInactiveError } from './lib/errors.js';
7
+ import extractKey from './lib/extractKey.js';
8
+ import valueToKey from './lib/valueToKey.js';
9
+ const getEffectiveObjectStore = cursor => {
10
+ if (cursor.source instanceof FDBObjectStore) {
11
+ return cursor.source;
12
+ }
13
+ return cursor.source.objectStore;
14
+ };
15
+
16
+ // This takes a key range, a list of lower bounds, and a list of upper bounds and combines them all into a single key
17
+ // range. It does not handle gt/gte distinctions, because it doesn't really matter much anyway, since for next/prev
18
+ // cursor iteration it'd also have to look at values to be precise, which would be complicated. This should get us 99%
19
+ // of the way there.
20
+ const makeKeyRange = (range, lowers, uppers) => {
21
+ // Start with bounds from range
22
+ let lower = range !== undefined ? range.lower : undefined;
23
+ let upper = range !== undefined ? range.upper : undefined;
24
+
25
+ // Augment with values from lowers and uppers
26
+ for (const lowerTemp of lowers) {
27
+ if (lowerTemp === undefined) {
28
+ continue;
29
+ }
30
+ if (lower === undefined || cmp(lower, lowerTemp) === 1) {
31
+ lower = lowerTemp;
32
+ }
33
+ }
34
+ for (const upperTemp of uppers) {
35
+ if (upperTemp === undefined) {
36
+ continue;
37
+ }
38
+ if (upper === undefined || cmp(upper, upperTemp) === -1) {
39
+ upper = upperTemp;
40
+ }
41
+ }
42
+ if (lower !== undefined && upper !== undefined) {
43
+ return FDBKeyRange.bound(lower, upper);
44
+ }
45
+ if (lower !== undefined) {
46
+ return FDBKeyRange.lowerBound(lower);
47
+ }
48
+ if (upper !== undefined) {
49
+ return FDBKeyRange.upperBound(upper);
50
+ }
51
+ };
52
+
53
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#cursor
54
+ class FDBCursor {
55
+ _gotValue = false;
56
+ _position = undefined; // Key of previously returned record
57
+ _objectStorePosition = undefined;
58
+ _keyOnly = false;
59
+ _key = undefined;
60
+ _primaryKey = undefined;
61
+ constructor(source, range, direction = 'next', request, keyOnly = false) {
62
+ this._range = range;
63
+ this._source = source;
64
+ this._direction = direction;
65
+ this._request = request;
66
+ this._keyOnly = keyOnly;
67
+ }
68
+
69
+ // Read only properties
70
+ get source() {
71
+ return this._source;
72
+ }
73
+ set source(val) {
74
+ /* For babel */
75
+ }
76
+ get request() {
77
+ return this._request;
78
+ }
79
+ set request(val) {
80
+ /* For babel */
81
+ }
82
+ get direction() {
83
+ return this._direction;
84
+ }
85
+ set direction(val) {
86
+ /* For babel */
87
+ }
88
+ get key() {
89
+ return this._key;
90
+ }
91
+ set key(val) {
92
+ /* For babel */
93
+ }
94
+ get primaryKey() {
95
+ return this._primaryKey;
96
+ }
97
+ set primaryKey(val) {
98
+ /* For babel */
99
+ }
100
+
101
+ // https://w3c.github.io/IndexedDB/#iterate-a-cursor
102
+ _iterate(key, primaryKey) {
103
+ const sourceIsObjectStore = this.source instanceof FDBObjectStore;
104
+
105
+ // Can't use sourceIsObjectStore because TypeScript
106
+ const records = this.source instanceof FDBObjectStore ? this.source._rawObjectStore.records : this.source._rawIndex.records;
107
+ let foundRecord;
108
+ if (this.direction === 'next') {
109
+ const range = makeKeyRange(this._range, [key, this._position], []);
110
+ for (const record of records.values(range)) {
111
+ const cmpResultKey = key !== undefined ? cmp(record.key, key) : undefined;
112
+ const cmpResultPosition = this._position !== undefined ? cmp(record.key, this._position) : undefined;
113
+ if (key !== undefined) {
114
+ if (cmpResultKey === -1) {
115
+ continue;
116
+ }
117
+ }
118
+ if (primaryKey !== undefined) {
119
+ if (cmpResultKey === -1) {
120
+ continue;
121
+ }
122
+ const cmpResultPrimaryKey = cmp(record.value, primaryKey);
123
+ if (cmpResultKey === 0 && cmpResultPrimaryKey === -1) {
124
+ continue;
125
+ }
126
+ }
127
+ if (this._position !== undefined && sourceIsObjectStore) {
128
+ if (cmpResultPosition !== 1) {
129
+ continue;
130
+ }
131
+ }
132
+ if (this._position !== undefined && !sourceIsObjectStore) {
133
+ if (cmpResultPosition === -1) {
134
+ continue;
135
+ }
136
+ if (cmpResultPosition === 0 && cmp(record.value, this._objectStorePosition) !== 1) {
137
+ continue;
138
+ }
139
+ }
140
+ if (this._range !== undefined) {
141
+ if (!this._range.includes(record.key)) {
142
+ continue;
143
+ }
144
+ }
145
+ foundRecord = record;
146
+ break;
147
+ }
148
+ } else if (this.direction === 'nextunique') {
149
+ // This could be done without iterating, if the range was defined slightly better (to handle gt/gte cases).
150
+ // But the performance difference should be small, and that wouldn't work anyway for directions where the
151
+ // value needs to be used (like next and prev).
152
+ const range = makeKeyRange(this._range, [key, this._position], []);
153
+ for (const record of records.values(range)) {
154
+ if (key !== undefined) {
155
+ if (cmp(record.key, key) === -1) {
156
+ continue;
157
+ }
158
+ }
159
+ if (this._position !== undefined) {
160
+ if (cmp(record.key, this._position) !== 1) {
161
+ continue;
162
+ }
163
+ }
164
+ if (this._range !== undefined) {
165
+ if (!this._range.includes(record.key)) {
166
+ continue;
167
+ }
168
+ }
169
+ foundRecord = record;
170
+ break;
171
+ }
172
+ } else if (this.direction === 'prev') {
173
+ const range = makeKeyRange(this._range, [], [key, this._position]);
174
+ for (const record of records.values(range, 'prev')) {
175
+ const cmpResultKey = key !== undefined ? cmp(record.key, key) : undefined;
176
+ const cmpResultPosition = this._position !== undefined ? cmp(record.key, this._position) : undefined;
177
+ if (key !== undefined) {
178
+ if (cmpResultKey === 1) {
179
+ continue;
180
+ }
181
+ }
182
+ if (primaryKey !== undefined) {
183
+ if (cmpResultKey === 1) {
184
+ continue;
185
+ }
186
+ const cmpResultPrimaryKey = cmp(record.value, primaryKey);
187
+ if (cmpResultKey === 0 && cmpResultPrimaryKey === 1) {
188
+ continue;
189
+ }
190
+ }
191
+ if (this._position !== undefined && sourceIsObjectStore) {
192
+ if (cmpResultPosition !== -1) {
193
+ continue;
194
+ }
195
+ }
196
+ if (this._position !== undefined && !sourceIsObjectStore) {
197
+ if (cmpResultPosition === 1) {
198
+ continue;
199
+ }
200
+ if (cmpResultPosition === 0 && cmp(record.value, this._objectStorePosition) !== -1) {
201
+ continue;
202
+ }
203
+ }
204
+ if (this._range !== undefined) {
205
+ if (!this._range.includes(record.key)) {
206
+ continue;
207
+ }
208
+ }
209
+ foundRecord = record;
210
+ break;
211
+ }
212
+ } else if (this.direction === 'prevunique') {
213
+ let tempRecord;
214
+ const range = makeKeyRange(this._range, [], [key, this._position]);
215
+ for (const record of records.values(range, 'prev')) {
216
+ if (key !== undefined) {
217
+ if (cmp(record.key, key) === 1) {
218
+ continue;
219
+ }
220
+ }
221
+ if (this._position !== undefined) {
222
+ if (cmp(record.key, this._position) !== -1) {
223
+ continue;
224
+ }
225
+ }
226
+ if (this._range !== undefined) {
227
+ if (!this._range.includes(record.key)) {
228
+ continue;
229
+ }
230
+ }
231
+ tempRecord = record;
232
+ break;
233
+ }
234
+ if (tempRecord) {
235
+ foundRecord = records.get(tempRecord.key);
236
+ }
237
+ }
238
+ let result;
239
+ if (!foundRecord) {
240
+ this._key = undefined;
241
+ if (!sourceIsObjectStore) {
242
+ this._objectStorePosition = undefined;
243
+ }
244
+
245
+ // "this instanceof FDBCursorWithValue" would be better and not require (this as any), but causes runtime
246
+ // error due to circular dependency.
247
+ if (!this._keyOnly && this.toString() === '[object IDBCursorWithValue]') {
248
+ this.value = undefined;
249
+ }
250
+ result = null;
251
+ } else {
252
+ this._position = foundRecord.key;
253
+ if (!sourceIsObjectStore) {
254
+ this._objectStorePosition = foundRecord.value;
255
+ }
256
+ this._key = foundRecord.key;
257
+ if (sourceIsObjectStore) {
258
+ this._primaryKey = structuredClone(foundRecord.key);
259
+ if (!this._keyOnly && this.toString() === '[object IDBCursorWithValue]') {
260
+ this.value = structuredClone(foundRecord.value);
261
+ }
262
+ } else {
263
+ this._primaryKey = structuredClone(foundRecord.value);
264
+ if (!this._keyOnly && this.toString() === '[object IDBCursorWithValue]') {
265
+ if (this.source instanceof FDBObjectStore) {
266
+ // Can't use sourceIsObjectStore because TypeScript
267
+ throw new Error('This should never happen');
268
+ }
269
+ const value = this.source.objectStore._rawObjectStore.getValue(foundRecord.value);
270
+ this.value = structuredClone(value);
271
+ }
272
+ }
273
+ this._gotValue = true;
274
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
275
+ result = this;
276
+ }
277
+ return result;
278
+ }
279
+
280
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#widl-IDBCursor-update-IDBRequest-any-value
281
+ update(value) {
282
+ if (value === undefined) {
283
+ throw new TypeError();
284
+ }
285
+ const effectiveObjectStore = getEffectiveObjectStore(this);
286
+ const effectiveKey = Object.hasOwn(this.source, '_rawIndex') ? this.primaryKey : this._position;
287
+ const transaction = effectiveObjectStore.transaction;
288
+ if (transaction._state !== 'active') {
289
+ throw new TransactionInactiveError();
290
+ }
291
+ if (transaction.mode === 'readonly') {
292
+ throw new ReadOnlyError();
293
+ }
294
+ if (effectiveObjectStore._rawObjectStore.deleted) {
295
+ throw new InvalidStateError();
296
+ }
297
+ if (!(this.source instanceof FDBObjectStore) && this.source._rawIndex.deleted) {
298
+ throw new InvalidStateError();
299
+ }
300
+ if (!this._gotValue || !Object.hasOwn(this, 'value')) {
301
+ throw new InvalidStateError();
302
+ }
303
+ const clone = structuredClone(value);
304
+ if (effectiveObjectStore.keyPath !== null) {
305
+ let tempKey;
306
+ try {
307
+ tempKey = extractKey(effectiveObjectStore.keyPath, clone);
308
+ } catch (_) {
309
+ /* Handled immediately below */
310
+ }
311
+ if (cmp(tempKey, effectiveKey) !== 0) {
312
+ throw new DataError();
313
+ }
314
+ }
315
+ const record = {
316
+ key: effectiveKey,
317
+ value: clone
318
+ };
319
+ return transaction._execRequestAsync({
320
+ operation: effectiveObjectStore._rawObjectStore.storeRecord.bind(effectiveObjectStore._rawObjectStore, record, false, transaction._rollbackLog),
321
+ source: this
322
+ });
323
+ }
324
+
325
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#widl-IDBCursor-advance-void-unsigned-long-count
326
+ advance(count) {
327
+ if (!Number.isInteger(count) || count <= 0) {
328
+ throw new TypeError();
329
+ }
330
+ const effectiveObjectStore = getEffectiveObjectStore(this);
331
+ const transaction = effectiveObjectStore.transaction;
332
+ if (transaction._state !== 'active') {
333
+ throw new TransactionInactiveError();
334
+ }
335
+ if (effectiveObjectStore._rawObjectStore.deleted) {
336
+ throw new InvalidStateError();
337
+ }
338
+ if (!(this.source instanceof FDBObjectStore) && this.source._rawIndex.deleted) {
339
+ throw new InvalidStateError();
340
+ }
341
+ if (!this._gotValue) {
342
+ throw new InvalidStateError();
343
+ }
344
+ if (this._request) {
345
+ this._request.readyState = 'pending';
346
+ }
347
+ transaction._execRequestAsync({
348
+ operation: () => {
349
+ let result;
350
+ for (let i = 0; i < count; i++) {
351
+ result = this._iterate();
352
+
353
+ // Not sure why this is needed
354
+ if (!result) {
355
+ break;
356
+ }
357
+ }
358
+ return result;
359
+ },
360
+ request: this._request,
361
+ source: this.source
362
+ });
363
+ this._gotValue = false;
364
+ }
365
+
366
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#widl-IDBCursor-continue-void-any-key
367
+ continue(key) {
368
+ const effectiveObjectStore = getEffectiveObjectStore(this);
369
+ const transaction = effectiveObjectStore.transaction;
370
+ if (transaction._state !== 'active') {
371
+ throw new TransactionInactiveError();
372
+ }
373
+ if (effectiveObjectStore._rawObjectStore.deleted) {
374
+ throw new InvalidStateError();
375
+ }
376
+ if (!(this.source instanceof FDBObjectStore) && this.source._rawIndex.deleted) {
377
+ throw new InvalidStateError();
378
+ }
379
+ if (!this._gotValue) {
380
+ throw new InvalidStateError();
381
+ }
382
+ if (key !== undefined) {
383
+ key = valueToKey(key);
384
+ const cmpResult = cmp(key, this._position);
385
+ if (cmpResult <= 0 && (this.direction === 'next' || this.direction === 'nextunique') || cmpResult >= 0 && (this.direction === 'prev' || this.direction === 'prevunique')) {
386
+ throw new DataError();
387
+ }
388
+ }
389
+ if (this._request) {
390
+ this._request.readyState = 'pending';
391
+ }
392
+ transaction._execRequestAsync({
393
+ operation: this._iterate.bind(this, key),
394
+ request: this._request,
395
+ source: this.source
396
+ });
397
+ this._gotValue = false;
398
+ }
399
+
400
+ // hthttps://w3c.github.io/IndexedDB/#dom-idbcursor-continueprimarykey
401
+ continuePrimaryKey(key, primaryKey) {
402
+ const effectiveObjectStore = getEffectiveObjectStore(this);
403
+ const transaction = effectiveObjectStore.transaction;
404
+ if (transaction._state !== 'active') {
405
+ throw new TransactionInactiveError();
406
+ }
407
+ if (effectiveObjectStore._rawObjectStore.deleted) {
408
+ throw new InvalidStateError();
409
+ }
410
+ if (!(this.source instanceof FDBObjectStore) && this.source._rawIndex.deleted) {
411
+ throw new InvalidStateError();
412
+ }
413
+ if (this.source instanceof FDBObjectStore || this.direction !== 'next' && this.direction !== 'prev') {
414
+ throw new InvalidAccessError();
415
+ }
416
+ if (!this._gotValue) {
417
+ throw new InvalidStateError();
418
+ }
419
+
420
+ // Not sure about this
421
+ if (key === undefined || primaryKey === undefined) {
422
+ throw new DataError();
423
+ }
424
+ key = valueToKey(key);
425
+ const cmpResult = cmp(key, this._position);
426
+ if (cmpResult === -1 && this.direction === 'next' || cmpResult === 1 && this.direction === 'prev') {
427
+ throw new DataError();
428
+ }
429
+ const cmpResult2 = cmp(primaryKey, this._objectStorePosition);
430
+ if (cmpResult === 0) {
431
+ if (cmpResult2 <= 0 && this.direction === 'next' || cmpResult2 >= 0 && this.direction === 'prev') {
432
+ throw new DataError();
433
+ }
434
+ }
435
+ if (this._request) {
436
+ this._request.readyState = 'pending';
437
+ }
438
+ transaction._execRequestAsync({
439
+ operation: this._iterate.bind(this, key, primaryKey),
440
+ request: this._request,
441
+ source: this.source
442
+ });
443
+ this._gotValue = false;
444
+ }
445
+ delete() {
446
+ const effectiveObjectStore = getEffectiveObjectStore(this);
447
+ const effectiveKey = Object.hasOwn(this.source, '_rawIndex') ? this.primaryKey : this._position;
448
+ const transaction = effectiveObjectStore.transaction;
449
+ if (transaction._state !== 'active') {
450
+ throw new TransactionInactiveError();
451
+ }
452
+ if (transaction.mode === 'readonly') {
453
+ throw new ReadOnlyError();
454
+ }
455
+ if (effectiveObjectStore._rawObjectStore.deleted) {
456
+ throw new InvalidStateError();
457
+ }
458
+ if (!(this.source instanceof FDBObjectStore) && this.source._rawIndex.deleted) {
459
+ throw new InvalidStateError();
460
+ }
461
+ if (!this._gotValue || !Object.hasOwn(this, 'value')) {
462
+ throw new InvalidStateError();
463
+ }
464
+ return transaction._execRequestAsync({
465
+ operation: effectiveObjectStore._rawObjectStore.deleteRecord.bind(effectiveObjectStore._rawObjectStore, effectiveKey, transaction._rollbackLog),
466
+ source: this
467
+ });
468
+ }
469
+ toString() {
470
+ return '[object IDBCursor]';
471
+ }
472
+ }
473
+ export default FDBCursor;
474
+ //# sourceMappingURL=FDBCursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FDBKeyRange","FDBObjectStore","cmp","DataError","InvalidAccessError","InvalidStateError","ReadOnlyError","TransactionInactiveError","extractKey","valueToKey","getEffectiveObjectStore","cursor","source","objectStore","makeKeyRange","range","lowers","uppers","lower","undefined","upper","lowerTemp","upperTemp","bound","lowerBound","upperBound","FDBCursor","_gotValue","_position","_objectStorePosition","_keyOnly","_key","_primaryKey","constructor","direction","request","keyOnly","_range","_source","_direction","_request","val","key","primaryKey","_iterate","sourceIsObjectStore","records","_rawObjectStore","_rawIndex","foundRecord","record","values","cmpResultKey","cmpResultPosition","cmpResultPrimaryKey","value","includes","tempRecord","get","result","toString","structuredClone","Error","getValue","update","TypeError","effectiveObjectStore","effectiveKey","Object","hasOwn","transaction","_state","mode","deleted","clone","keyPath","tempKey","_","_execRequestAsync","operation","storeRecord","bind","_rollbackLog","advance","count","Number","isInteger","readyState","i","continue","cmpResult","continuePrimaryKey","cmpResult2","delete","deleteRecord"],"sourceRoot":"../../../../../lib","sources":["internal/web/memidb/FDBCursor.js"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,kBAAkB;AAC1C,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,GAAG,MAAM,cAAc;AAC9B,SACEC,SAAS,EACTC,kBAAkB,EAClBC,iBAAiB,EACjBC,aAAa,EACbC,wBAAwB,QACnB,iBAAiB;AACxB,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,MAAMC,uBAAuB,GAAGC,MAAM,IAAI;EACxC,IAAIA,MAAM,CAACC,MAAM,YAAYX,cAAc,EAAE;IAC3C,OAAOU,MAAM,CAACC,MAAM;EACtB;EACA,OAAOD,MAAM,CAACC,MAAM,CAACC,WAAW;AAClC,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMC,YAAY,GAAGA,CAACC,KAAK,EAAEC,MAAM,EAAEC,MAAM,KAAK;EAC9C;EACA,IAAIC,KAAK,GAAGH,KAAK,KAAKI,SAAS,GAAGJ,KAAK,CAAC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W,GAAGJ,oBAAoB,CAACI,WAAW;IACpD,IAAIA,WAAW,CAACC,MAAM,KAAK,QAAQ,EAAE;MACnC,MAAM,IAAIhE,wBAAwB,CAAC,CAAC;IACtC;IACA,IAAI+D,WAAW,CAACE,IAAI,KAAK,UAAU,EAAE;MACnC,MAAM,IAAIlE,aAAa,CAAC,CAAC;IAC3B;IACA,IAAI4D,oBAAoB,CAACnB,eAAe,CAAC0B,OAAO,EAAE;MAChD,MAAM,IAAIpE,iBAAiB,CAAC,CAAC;IAC/B;IACA,IAAI,EAAE,IAAI,CAACO,MAAM,YAAYX,cAAc,CAAC,IAAI,IAAI,CAACW,MAAM,CAACoC,SAAS,CAACyB,OAAO,EAAE;MAC7E,MAAM,IAAIpE,iBAAiB,CAAC,CAAC;IAC/B;IACA,IAAI,CAAC,IAAI,CAACsB,SAAS,IAAI,CAACyC,MAAM,CAACC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE;MACpD,MAAM,IAAIhE,iBAAiB,CAAC,CAAC;IAC/B;IACA,OAAOiE,WAAW,CAACQ,iBAAiB,CAAC;MACnCC,SAAS,EAAEb,oBAAoB,CAACnB,eAAe,CAAC+C,YAAY,CAACb,IAAI,CAC/Df,oBAAoB,CAACnB,eAAe,EACpCoB,YAAY,EACZG,WAAW,CAACY,YACd,CAAC;MACDtE,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;EACAgD,QAAQA,CAAA,EAAG;IACT,OAAO,oBAAoB;EAC7B;AACF;AACA,eAAelC,SAAS","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import FDBCursor from './FDBCursor.js';
4
+ class FDBCursorWithValue extends FDBCursor {
5
+ value = undefined;
6
+ constructor(source, range, direction, request) {
7
+ super(source, range, direction, request);
8
+ }
9
+ toString() {
10
+ return '[object IDBCursorWithValue]';
11
+ }
12
+ }
13
+ export default FDBCursorWithValue;
14
+ //# sourceMappingURL=FDBCursorWithValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FDBCursor","FDBCursorWithValue","value","undefined","constructor","source","range","direction","request","toString"],"sourceRoot":"../../../../../lib","sources":["internal/web/memidb/FDBCursorWithValue.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,gBAAgB;AACtC,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EACzCE,KAAK,GAAGC,SAAS;EACjBC,WAAWA,CAACC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,OAAO,EAAE;IAC7C,KAAK,CAACH,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,OAAO,CAAC;EAC1C;EACAC,QAAQA,CAAA,EAAG;IACT,OAAO,6BAA6B;EACtC;AACF;AACA,eAAeR,kBAAkB","ignoreList":[]}
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+
3
+ import FDBTransaction from './FDBTransaction.js';
4
+ import { ConstraintError, InvalidAccessError, InvalidStateError, NotFoundError, TransactionInactiveError } from './lib/errors.js';
5
+ import FakeDOMStringList from './lib/FakeDOMStringList.js';
6
+ import FakeEventTarget from './lib/FakeEventTarget.js';
7
+ import ObjectStore from './lib/ObjectStore.js';
8
+ import { queueTask } from './lib/scheduling.js';
9
+ import validateKeyPath from './lib/validateKeyPath.js';
10
+ const confirmActiveVersionchangeTransaction = database => {
11
+ if (!database._runningVersionchangeTransaction) {
12
+ throw new InvalidStateError();
13
+ }
14
+
15
+ // Find the latest versionchange transaction
16
+ const transactions = database._rawDatabase.transactions.filter(tx => {
17
+ return tx.mode === 'versionchange';
18
+ });
19
+ const transaction = transactions[transactions.length - 1];
20
+ if (!transaction || transaction._state === 'finished') {
21
+ throw new InvalidStateError();
22
+ }
23
+ if (transaction._state !== 'active') {
24
+ throw new TransactionInactiveError();
25
+ }
26
+ return transaction;
27
+ };
28
+
29
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#database-closing-steps
30
+ const closeConnection = connection => {
31
+ connection._closePending = true;
32
+ const transactionsComplete = connection._rawDatabase.transactions.every(transaction => {
33
+ return transaction._state === 'finished';
34
+ });
35
+ if (transactionsComplete) {
36
+ connection._closed = true;
37
+ connection._rawDatabase.connections = connection._rawDatabase.connections.filter(otherConnection => {
38
+ return connection !== otherConnection;
39
+ });
40
+ } else {
41
+ queueTask(() => {
42
+ closeConnection(connection);
43
+ });
44
+ }
45
+ };
46
+
47
+ // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#database-interface
48
+ class FDBDatabase extends FakeEventTarget {
49
+ _closePending = false;
50
+ _closed = false;
51
+ _runningVersionchangeTransaction = false;
52
+ constructor(rawDatabase) {
53
+ super();
54
+ this._rawDatabase = rawDatabase;
55
+ this._rawDatabase.connections.push(this);
56
+ this.name = rawDatabase.name;
57
+ this.version = rawDatabase.version;
58
+ this.objectStoreNames = new FakeDOMStringList(...Array.from(rawDatabase.rawObjectStores.keys()).sort());
59
+ }
60
+
61
+ // http://w3c.github.io/IndexedDB/#dom-idbdatabase-createobjectstore
62
+ createObjectStore(name, options = {}) {
63
+ if (name === undefined) {
64
+ throw new TypeError();
65
+ }
66
+ const transaction = confirmActiveVersionchangeTransaction(this);
67
+ const keyPath = options !== null && options.keyPath !== undefined ? options.keyPath : null;
68
+ const autoIncrement = options !== null && options.autoIncrement !== undefined ? options.autoIncrement : false;
69
+ if (keyPath !== null) {
70
+ validateKeyPath(keyPath);
71
+ }
72
+ if (this._rawDatabase.rawObjectStores.has(name)) {
73
+ throw new ConstraintError();
74
+ }
75
+ if (autoIncrement && (keyPath === '' || Array.isArray(keyPath))) {
76
+ throw new InvalidAccessError();
77
+ }
78
+ const objectStoreNames = [...this.objectStoreNames];
79
+ transaction._rollbackLog.push(() => {
80
+ const objectStore = this._rawDatabase.rawObjectStores.get(name);
81
+ if (objectStore) {
82
+ objectStore.deleted = true;
83
+ }
84
+ this.objectStoreNames = new FakeDOMStringList(...objectStoreNames);
85
+ transaction._scope.delete(name);
86
+ this._rawDatabase.rawObjectStores.delete(name);
87
+ });
88
+ const rawObjectStore = new ObjectStore(this._rawDatabase, name, keyPath, autoIncrement);
89
+ this.objectStoreNames._push(name);
90
+ this.objectStoreNames._sort();
91
+ transaction._scope.add(name);
92
+ this._rawDatabase.rawObjectStores.set(name, rawObjectStore);
93
+ transaction.objectStoreNames = new FakeDOMStringList(...this.objectStoreNames);
94
+ return transaction.objectStore(name);
95
+ }
96
+ deleteObjectStore(name) {
97
+ if (name === undefined) {
98
+ throw new TypeError();
99
+ }
100
+ const transaction = confirmActiveVersionchangeTransaction(this);
101
+ const store = this._rawDatabase.rawObjectStores.get(name);
102
+ if (store === undefined) {
103
+ throw new NotFoundError();
104
+ }
105
+ this.objectStoreNames = new FakeDOMStringList(...Array.from(this.objectStoreNames).filter(objectStoreName => {
106
+ return objectStoreName !== name;
107
+ }));
108
+ transaction.objectStoreNames = new FakeDOMStringList(...this.objectStoreNames);
109
+ transaction._rollbackLog.push(() => {
110
+ store.deleted = false;
111
+ this._rawDatabase.rawObjectStores.set(name, store);
112
+ this.objectStoreNames._push(name);
113
+ this.objectStoreNames._sort();
114
+ });
115
+ store.deleted = true;
116
+ this._rawDatabase.rawObjectStores.delete(name);
117
+ transaction._objectStoresCache.delete(name);
118
+ }
119
+ transaction(storeNames, mode) {
120
+ mode = mode !== undefined ? mode : 'readonly';
121
+ if (mode !== 'readonly' && mode !== 'readwrite' && mode !== 'versionchange') {
122
+ throw new TypeError('Invalid mode: ' + mode);
123
+ }
124
+ const hasActiveVersionchange = this._rawDatabase.transactions.some(transaction => {
125
+ return transaction._state === 'active' && transaction.mode === 'versionchange' && transaction.db === this;
126
+ });
127
+ if (hasActiveVersionchange) {
128
+ throw new InvalidStateError();
129
+ }
130
+ if (this._closePending) {
131
+ throw new InvalidStateError();
132
+ }
133
+ if (!Array.isArray(storeNames)) {
134
+ storeNames = [storeNames];
135
+ }
136
+ if (storeNames.length === 0 && mode !== 'versionchange') {
137
+ throw new InvalidAccessError();
138
+ }
139
+ for (const storeName of storeNames) {
140
+ if (!this.objectStoreNames.contains(storeName)) {
141
+ throw new NotFoundError('No objectStore named ' + storeName + ' in this database');
142
+ }
143
+ }
144
+ const tx = new FDBTransaction(storeNames, mode, this);
145
+ this._rawDatabase.transactions.push(tx);
146
+ this._rawDatabase.processTransactions(); // See if can start right away (async)
147
+
148
+ return tx;
149
+ }
150
+ close() {
151
+ closeConnection(this);
152
+ }
153
+ toString() {
154
+ return '[object IDBDatabase]';
155
+ }
156
+ }
157
+ export default FDBDatabase;
158
+ //# sourceMappingURL=FDBDatabase.js.map