@react-native-firebase/storage 24.1.1 → 25.0.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 (95) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/{lib → dist/module}/StorageDownloadTask.js +4 -3
  3. package/dist/module/StorageDownloadTask.js.map +1 -0
  4. package/{lib → dist/module}/StorageListResult.js +13 -8
  5. package/dist/module/StorageListResult.js.map +1 -0
  6. package/dist/module/StorageReference.js +270 -0
  7. package/dist/module/StorageReference.js.map +1 -0
  8. package/{lib → dist/module}/StorageStatics.js +5 -16
  9. package/dist/module/StorageStatics.js.map +1 -0
  10. package/{lib → dist/module}/StorageTask.js +82 -71
  11. package/dist/module/StorageTask.js.map +1 -0
  12. package/{lib → dist/module}/StorageUploadTask.js +4 -3
  13. package/dist/module/StorageUploadTask.js.map +1 -0
  14. package/dist/module/index.js +29 -0
  15. package/dist/module/index.js.map +1 -0
  16. package/{lib/modular/index.js → dist/module/modular.js} +65 -79
  17. package/dist/module/modular.js.map +1 -0
  18. package/dist/module/namespaced.js +192 -0
  19. package/dist/module/namespaced.js.map +1 -0
  20. package/dist/module/package.json +1 -0
  21. package/dist/module/types/internal.js +4 -0
  22. package/dist/module/types/internal.js.map +1 -0
  23. package/dist/module/types/namespaced.js +64 -0
  24. package/dist/module/types/namespaced.js.map +1 -0
  25. package/dist/module/types/storage.js +139 -0
  26. package/dist/module/types/storage.js.map +1 -0
  27. package/dist/module/utils.js +105 -0
  28. package/dist/module/utils.js.map +1 -0
  29. package/dist/module/version.js +5 -0
  30. package/dist/module/version.js.map +1 -0
  31. package/dist/module/web/RNFBStorageModule.android.js +6 -0
  32. package/dist/module/web/RNFBStorageModule.android.js.map +1 -0
  33. package/dist/module/web/RNFBStorageModule.ios.js +6 -0
  34. package/dist/module/web/RNFBStorageModule.ios.js.map +1 -0
  35. package/{lib → dist/module}/web/RNFBStorageModule.js +115 -197
  36. package/dist/module/web/RNFBStorageModule.js.map +1 -0
  37. package/dist/typescript/lib/StorageDownloadTask.d.ts +6 -0
  38. package/dist/typescript/lib/StorageDownloadTask.d.ts.map +1 -0
  39. package/dist/typescript/lib/StorageListResult.d.ts +13 -0
  40. package/dist/typescript/lib/StorageListResult.d.ts.map +1 -0
  41. package/dist/typescript/lib/StorageReference.d.ts +87 -0
  42. package/dist/typescript/lib/StorageReference.d.ts.map +1 -0
  43. package/dist/typescript/lib/StorageStatics.d.ts +2 -0
  44. package/dist/typescript/lib/StorageStatics.d.ts.map +1 -0
  45. package/dist/typescript/lib/StorageTask.d.ts +43 -0
  46. package/dist/typescript/lib/StorageTask.d.ts.map +1 -0
  47. package/dist/typescript/lib/StorageUploadTask.d.ts +6 -0
  48. package/dist/typescript/lib/StorageUploadTask.d.ts.map +1 -0
  49. package/dist/typescript/lib/index.d.ts +6 -0
  50. package/dist/typescript/lib/index.d.ts.map +1 -0
  51. package/dist/typescript/lib/modular.d.ts +154 -0
  52. package/dist/typescript/lib/modular.d.ts.map +1 -0
  53. package/dist/typescript/lib/namespaced.d.ts +12 -0
  54. package/dist/typescript/lib/namespaced.d.ts.map +1 -0
  55. package/dist/typescript/lib/types/internal.d.ts +131 -0
  56. package/dist/typescript/lib/types/internal.d.ts.map +1 -0
  57. package/dist/typescript/lib/types/namespaced.d.ts +1122 -0
  58. package/dist/typescript/lib/types/namespaced.d.ts.map +1 -0
  59. package/dist/typescript/lib/types/storage.d.ts +338 -0
  60. package/dist/typescript/lib/types/storage.d.ts.map +1 -0
  61. package/dist/typescript/lib/utils.d.ts +20 -0
  62. package/dist/typescript/lib/utils.d.ts.map +1 -0
  63. package/dist/typescript/lib/version.d.ts +2 -0
  64. package/dist/typescript/lib/version.d.ts.map +1 -0
  65. package/dist/typescript/lib/web/RNFBStorageModule.android.d.ts +3 -0
  66. package/dist/typescript/lib/web/RNFBStorageModule.android.d.ts.map +1 -0
  67. package/dist/typescript/lib/web/RNFBStorageModule.d.ts +142 -0
  68. package/dist/typescript/lib/web/RNFBStorageModule.d.ts.map +1 -0
  69. package/dist/typescript/lib/web/RNFBStorageModule.ios.d.ts +3 -0
  70. package/dist/typescript/lib/web/RNFBStorageModule.ios.d.ts.map +1 -0
  71. package/dist/typescript/package.json +1 -0
  72. package/lib/StorageDownloadTask.ts +30 -0
  73. package/lib/StorageListResult.ts +61 -0
  74. package/lib/{StorageReference.js → StorageReference.ts} +103 -61
  75. package/lib/StorageStatics.ts +19 -0
  76. package/lib/StorageTask.ts +336 -0
  77. package/lib/StorageUploadTask.ts +30 -0
  78. package/lib/index.ts +27 -0
  79. package/lib/modular.ts +401 -0
  80. package/lib/{index.js → namespaced.ts} +70 -28
  81. package/lib/types/internal.ts +189 -0
  82. package/lib/{index.d.ts → types/namespaced.ts} +111 -49
  83. package/lib/types/storage.ts +417 -0
  84. package/lib/{utils.js → utils.ts} +62 -15
  85. package/lib/version.ts +2 -0
  86. package/lib/web/RNFBStorageModule.android.ts +3 -0
  87. package/lib/web/RNFBStorageModule.ios.ts +3 -0
  88. package/lib/web/RNFBStorageModule.ts +557 -0
  89. package/package.json +41 -7
  90. package/tsconfig.json +23 -0
  91. package/typedoc.json +1 -1
  92. package/lib/modular/index.d.ts +0 -276
  93. package/lib/version.js +0 -2
  94. package/lib/web/RNFBStorageModule.android.js +0 -2
  95. package/lib/web/RNFBStorageModule.ios.js +0 -2
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { isAndroid, isNumber, isString, createDeprecationProxy } from '@react-native-firebase/app/dist/module/common';
21
+ import { setReactNativeModule } from '@react-native-firebase/app/dist/module/internal/nativeModule';
22
+ import { createModuleNamespace, FirebaseModule, getFirebaseRoot } from '@react-native-firebase/app/dist/module/internal';
23
+ import Reference from "./StorageReference.js";
24
+ import { StringFormat, TaskEvent, TaskState } from "./StorageStatics.js";
25
+ import { getGsUrlParts, getHttpUrlParts, handleStorageEvent } from "./utils.js";
26
+ import { version } from "./version.js";
27
+ import fallBackModule from './web/RNFBStorageModule';
28
+ const statics = {
29
+ StringFormat,
30
+ TaskEvent,
31
+ TaskState
32
+ };
33
+ const namespace = 'storage';
34
+ const nativeEvents = ['storage_event'];
35
+ const nativeModuleName = 'RNFBStorageModule';
36
+ class FirebaseStorageModule extends FirebaseModule {
37
+ constructor(app, config, bucketUrl) {
38
+ super(app, config, bucketUrl ?? undefined);
39
+ if (bucketUrl == null) {
40
+ this._customUrlOrRegion = `gs://${app.options.storageBucket}`;
41
+ } else if (!isString(bucketUrl) || !bucketUrl.startsWith('gs://')) {
42
+ throw new Error("firebase.app().storage(*) bucket url must be a string and begin with 'gs://'");
43
+ }
44
+ const storageEvent = nativeEvents[0];
45
+ if (!storageEvent) {
46
+ throw new Error('storage_event is not defined in nativeEvents');
47
+ }
48
+ this.emitter.addListener(this.eventNameForApp(storageEvent), handleStorageEvent.bind(null, this));
49
+
50
+ // Emulator instance vars needed to send through on iOS, iOS does not persist emulator state between calls
51
+ this.emulatorHost = undefined;
52
+ this.emulatorPort = 0;
53
+ this._maxUploadRetryTime = this.native.maxUploadRetryTime || 0;
54
+ this._maxDownloadRetryTime = this.native.maxDownloadRetryTime || 0;
55
+ this._maxOperationRetryTime = this.native.maxOperationRetryTime || 0;
56
+ }
57
+
58
+ /**
59
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setmaxuploadretrytime
60
+ */
61
+ get maxUploadRetryTime() {
62
+ return this._maxUploadRetryTime;
63
+ }
64
+
65
+ /**
66
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setmaxdownloadretrytime
67
+ */
68
+ get maxDownloadRetryTime() {
69
+ return this._maxDownloadRetryTime;
70
+ }
71
+
72
+ /**
73
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#maxoperationretrytime
74
+ */
75
+ get maxOperationRetryTime() {
76
+ return this._maxOperationRetryTime;
77
+ }
78
+
79
+ /**
80
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#ref
81
+ */
82
+ ref(path = '/') {
83
+ if (!isString(path)) {
84
+ throw new Error("firebase.storage().ref(*) 'path' must be a string value.");
85
+ }
86
+ return createDeprecationProxy(new Reference(this, path));
87
+ }
88
+
89
+ /**
90
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#refFromURL
91
+ */
92
+ refFromURL(url) {
93
+ if (!isString(url) || !url.startsWith('gs://') && !url.startsWith('http')) {
94
+ throw new Error("firebase.storage().refFromURL(*) 'url' must be a string value and begin with 'gs://' or 'https://'.");
95
+ }
96
+ let path;
97
+ let bucket;
98
+ if (url.startsWith('http')) {
99
+ const parts = getHttpUrlParts(url);
100
+ if (!parts) {
101
+ throw new Error("firebase.storage().refFromURL(*) unable to parse 'url', ensure it's a valid storage url'.");
102
+ }
103
+ ({
104
+ bucket,
105
+ path
106
+ } = parts);
107
+ } else {
108
+ ({
109
+ bucket,
110
+ path
111
+ } = getGsUrlParts(url));
112
+ }
113
+ const storageInstance = this.app.storage(bucket);
114
+ return new Reference(storageInstance, path);
115
+ }
116
+
117
+ /**
118
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxOperationRetryTime
119
+ */
120
+ setMaxOperationRetryTime(time) {
121
+ if (!isNumber(time)) {
122
+ throw new Error("firebase.storage().setMaxOperationRetryTime(*) 'time' must be a number value.");
123
+ }
124
+ this._maxOperationRetryTime = time;
125
+ return this.native.setMaxOperationRetryTime(time);
126
+ }
127
+
128
+ /**
129
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxUploadRetryTime
130
+ */
131
+ setMaxUploadRetryTime(time) {
132
+ if (!isNumber(time)) {
133
+ throw new Error("firebase.storage().setMaxUploadRetryTime(*) 'time' must be a number value.");
134
+ }
135
+ this._maxUploadRetryTime = time;
136
+ return this.native.setMaxUploadRetryTime(time);
137
+ }
138
+
139
+ /**
140
+ * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxDownloadRetryTime
141
+ */
142
+ setMaxDownloadRetryTime(time) {
143
+ if (!isNumber(time)) {
144
+ throw new Error("firebase.storage().setMaxDownloadRetryTime(*) 'time' must be a number value.");
145
+ }
146
+ this._maxDownloadRetryTime = time;
147
+ return this.native.setMaxDownloadRetryTime(time);
148
+ }
149
+ useEmulator(host, port, _options) {
150
+ if (!host || !isString(host) || !port || !isNumber(port)) {
151
+ throw new Error('firebase.storage().useEmulator() takes a non-empty host and port');
152
+ }
153
+ let _host = host;
154
+ const androidBypassEmulatorUrlRemap = typeof this.firebaseJson.android_bypass_emulator_url_remap === 'boolean' && this.firebaseJson.android_bypass_emulator_url_remap;
155
+ if (!androidBypassEmulatorUrlRemap && isAndroid && _host) {
156
+ if (_host === 'localhost' || _host === '127.0.0.1') {
157
+ _host = '10.0.2.2';
158
+ // eslint-disable-next-line no-console
159
+ console.log('Mapping storage host to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.');
160
+ }
161
+ }
162
+ this.emulatorHost = host;
163
+ this.emulatorPort = port;
164
+ this.native.useEmulator(_host, port, this._customUrlOrRegion);
165
+ // @ts-ignore undocumented return, just used to unit test android host remapping
166
+ return [_host, port];
167
+ }
168
+ }
169
+
170
+ // import { SDK_VERSION } from '@react-native-firebase/storage';
171
+ export const SDK_VERSION = version;
172
+ const storageNamespace = createModuleNamespace({
173
+ statics,
174
+ version,
175
+ namespace,
176
+ nativeEvents,
177
+ nativeModuleName,
178
+ hasMultiAppSupport: true,
179
+ hasCustomUrlOrRegionSupport: true,
180
+ disablePrependCustomUrlOrRegion: true,
181
+ ModuleClass: FirebaseStorageModule
182
+ });
183
+ // import storage from '@react-native-firebase/storage';
184
+ // storage().X(...);
185
+ export default storageNamespace;
186
+
187
+ // import storage, { firebase } from '@react-native-firebase/storage';
188
+ // storage().X(...);
189
+ // firebase.storage().X(...);
190
+ export const firebase = getFirebaseRoot();
191
+ setReactNativeModule(nativeModuleName, fallBackModule);
192
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isAndroid","isNumber","isString","createDeprecationProxy","setReactNativeModule","createModuleNamespace","FirebaseModule","getFirebaseRoot","Reference","StringFormat","TaskEvent","TaskState","getGsUrlParts","getHttpUrlParts","handleStorageEvent","version","fallBackModule","statics","namespace","nativeEvents","nativeModuleName","FirebaseStorageModule","constructor","app","config","bucketUrl","undefined","_customUrlOrRegion","options","storageBucket","startsWith","Error","storageEvent","emitter","addListener","eventNameForApp","bind","emulatorHost","emulatorPort","_maxUploadRetryTime","native","maxUploadRetryTime","_maxDownloadRetryTime","maxDownloadRetryTime","_maxOperationRetryTime","maxOperationRetryTime","ref","path","refFromURL","url","bucket","parts","storageInstance","storage","setMaxOperationRetryTime","time","setMaxUploadRetryTime","setMaxDownloadRetryTime","useEmulator","host","port","_options","_host","androidBypassEmulatorUrlRemap","firebaseJson","android_bypass_emulator_url_remap","console","log","SDK_VERSION","storageNamespace","hasMultiAppSupport","hasCustomUrlOrRegionSupport","disablePrependCustomUrlOrRegion","ModuleClass","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,SAAS,EACTC,QAAQ,EACRC,QAAQ,EACRC,sBAAsB,QACjB,+CAA+C;AAEtD,SAASC,oBAAoB,QAAQ,8DAA8D;AACnG,SACEC,qBAAqB,EACrB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
+ export {};
4
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../lib","sources":["types/internal.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ /**
20
+ * Firebase Cloud Storage package for React Native.
21
+ *
22
+ * #### Example 1
23
+ *
24
+ * Access the firebase export from the `storage` package:
25
+ *
26
+ * ```js
27
+ * import { firebase } from '@react-native-firebase/storage';
28
+ *
29
+ * // firebase.storage().X
30
+ * ```
31
+ *
32
+ * #### Example 2
33
+ *
34
+ * Using the default export from the `storage` package:
35
+ *
36
+ * ```js
37
+ * import storage from '@react-native-firebase/storage';
38
+ *
39
+ * // storage().X
40
+ * ```
41
+ *
42
+ * #### Example 3
43
+ *
44
+ * Using the default export from the `app` package:
45
+ *
46
+ * ```js
47
+ * import firebase from '@react-native-firebase/app';
48
+ * import '@react-native-firebase/storage';
49
+ *
50
+ * // firebase.storage().X
51
+ * ```
52
+ *
53
+ * @firebase storage
54
+ */
55
+ /**
56
+ * @deprecated Use the exported types directly instead.
57
+ * FirebaseStorageTypes namespace is kept for backwards compatibility.
58
+ */
59
+ /* eslint-disable @typescript-eslint/no-namespace */
60
+ export let FirebaseStorageTypes;
61
+ /**
62
+ * Attach namespace to `firebase.` and `FirebaseApp.`.
63
+ */
64
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FirebaseStorageTypes"],"sourceRoot":"../../../lib","sources":["types/namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,WACiBA,oBAAoB;AAkpCrC;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ /**
21
+ * Storage module instance
22
+ */
23
+
24
+ /**
25
+ * Storage reference to a file or folder location.
26
+ */
27
+
28
+ /**
29
+ * Options for listing files and folders.
30
+ */
31
+
32
+ /**
33
+ * Result of listing files and folders.
34
+ */
35
+
36
+ /**
37
+ * Object metadata that can be set at any time.
38
+ */
39
+
40
+ /**
41
+ * Object metadata that can be set at upload.
42
+ * @public
43
+ */
44
+
45
+ /**
46
+ * The full set of object metadata, including read-only properties.
47
+ */
48
+
49
+ /**
50
+ * An enumeration of the possible string formats for upload.
51
+ * @public
52
+ */
53
+
54
+ /**
55
+ * An enumeration of the possible string formats for upload.
56
+ * @public
57
+ */
58
+ export const StringFormat = {
59
+ RAW: 'raw',
60
+ BASE64: 'base64',
61
+ BASE64URL: 'base64url',
62
+ DATA_URL: 'data_url'
63
+ };
64
+
65
+ /**
66
+ * An event that is triggered on a task.
67
+ * @public
68
+ */
69
+
70
+ /**
71
+ * An event that is triggered on a task.
72
+ * @public
73
+ */
74
+ export const TaskEvent = {
75
+ STATE_CHANGED: 'state_changed'
76
+ };
77
+
78
+ /**
79
+ * Represents the current state of a running upload/download.
80
+ * @public
81
+ */
82
+
83
+ /**
84
+ * Represents the current state of a running upload/download.
85
+ * @public
86
+ */
87
+ export const TaskState = {
88
+ RUNNING: 'running',
89
+ PAUSED: 'paused',
90
+ SUCCESS: 'success',
91
+ CANCELED: 'canceled',
92
+ // Backwards-compat alias
93
+ CANCELLED: 'canceled',
94
+ ERROR: 'error'
95
+ };
96
+
97
+ /**
98
+ * A stream observer for Firebase Storage.
99
+ * @public
100
+ */
101
+
102
+ /**
103
+ * Represents the process of uploading an object. Allows you to monitor and manage the upload.
104
+ *
105
+ * Note: React Native Firebase returns Promises for pause/resume/cancel to communicate with native iOS/Android.
106
+ *
107
+ * @public
108
+ */
109
+
110
+ /**
111
+ * Holds data about the current state of the upload task.
112
+ * @public
113
+ */
114
+
115
+ /**
116
+ * Result returned from a non-resumable upload.
117
+ * @public
118
+ */
119
+
120
+ /**
121
+ * Snapshot of a storage task (upload or download).
122
+ */
123
+
124
+ /**
125
+ * Result of a completed task.
126
+ */
127
+
128
+ /**
129
+ * Observer object for task state changes.
130
+ */
131
+
132
+ /**
133
+ * Storage task for uploads or downloads.
134
+ */
135
+
136
+ /**
137
+ * Options for connecting to the storage emulator (web only).
138
+ */
139
+ //# sourceMappingURL=storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StringFormat","RAW","BASE64","BASE64URL","DATA_URL","TaskEvent","STATE_CHANGED","TaskState","RUNNING","PAUSED","SUCCESS","CANCELED","CANCELLED","ERROR"],"sourceRoot":"../../../lib","sources":["types/storage.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;;AAqBA;AACA;AACA;;AAmCA;AACA;AACA;;AAcA;AACA;AACA;;AAsBA;AACA;AACA;;AAUA;AACA;AACA;AACA;;AAQA;AACA;AACA;;AAwDA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,GAAG,EAAE,KAAK;EACVC,MAAM,EAAE,QAAQ;EAChBC,SAAS,EAAE,WAAW;EACtBC,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAG;EACvBC,aAAa,EAAE;AACjB,CAAU;;AAEV;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAG;EACvBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpB;EACAC,SAAS,EAAE,UAAU;EACrBC,KAAK,EAAE;AACT,CAAU;;AAEV;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;;AAuDA;AACA;AACA;AACA;;AAkCA;AACA;AACA;AACA;;AAmBA;AACA;AACA;;AAQA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { isNull, isObject, isString } from '@react-native-firebase/app/dist/module/common';
21
+ import { NativeFirebaseError } from '@react-native-firebase/app/dist/module/internal';
22
+ const SETTABLE_FIELDS = ['cacheControl', 'contentDisposition', 'contentEncoding', 'contentLanguage', 'contentType', 'customMetadata', 'md5Hash'];
23
+ const LEGACY_MD5_HASH_FIELD = 'md5hash';
24
+ const MD5_HASH_FIELD = 'md5Hash';
25
+ export async function handleStorageEvent(storageInstance, event) {
26
+ const {
27
+ taskId,
28
+ eventName
29
+ } = event;
30
+ const body = event.body || {};
31
+ if (body.error) {
32
+ // Convert NativeErrorUserInfo to NativeFirebaseError instance
33
+ const nativeError = NativeFirebaseError.fromEvent(body.error, storageInstance._config.namespace);
34
+ // Assign NativeFirebaseError (Error instance) to body.error for consumers
35
+ // Type assertion needed because body.error is typed as NativeErrorUserInfo in input,
36
+ // but consumers expect Error instance
37
+ body.error = nativeError;
38
+ }
39
+ storageInstance.emitter.emit(storageInstance.eventNameForApp(taskId, eventName), body);
40
+ }
41
+ export function getHttpUrlParts(url) {
42
+ const decoded = decodeURIComponent(url);
43
+ const parts = decoded.match(/\/b\/(.*)\/o\/([a-zA-Z0-9./\-_]+)(.*)/);
44
+ if (!parts || parts.length < 3) {
45
+ return null;
46
+ }
47
+ return {
48
+ bucket: `gs://${parts[1]}`,
49
+ path: parts[2]
50
+ };
51
+ }
52
+ export function getGsUrlParts(url) {
53
+ const bucket = url.substring(0, url.indexOf('/', 5)) || url;
54
+ const path = (url.indexOf('/', 5) > -1 ? url.substring(url.indexOf('/', 5) + 1, url.length) : '/') || '/';
55
+ return {
56
+ bucket,
57
+ path
58
+ };
59
+ }
60
+ export function validateMetadata(metadata, update = true) {
61
+ if (!isObject(metadata)) {
62
+ throw new Error('firebase.storage.SettableMetadata must be an object value if provided.');
63
+ }
64
+ const metadataEntries = Object.entries(metadata);
65
+ const validatedMetadata = {};
66
+ let hasLegacyMd5Hash = false;
67
+ let hasMd5Hash = false;
68
+ for (let i = 0; i < metadataEntries.length; i++) {
69
+ const entry = metadataEntries[i];
70
+ if (!entry) continue;
71
+ const [key, value] = entry;
72
+ const normalizedKey = key === LEGACY_MD5_HASH_FIELD ? MD5_HASH_FIELD : key;
73
+ if (key === LEGACY_MD5_HASH_FIELD) {
74
+ hasLegacyMd5Hash = true;
75
+ }
76
+ if (key === MD5_HASH_FIELD) {
77
+ hasMd5Hash = true;
78
+ }
79
+
80
+ // validate keys
81
+ if (!SETTABLE_FIELDS.includes(normalizedKey)) {
82
+ throw new Error(`firebase.storage.SettableMetadata unknown property '${key}' provided for metadata.`);
83
+ }
84
+
85
+ // md5 is only allowed on put, not on update
86
+ if (normalizedKey === MD5_HASH_FIELD && update === true) {
87
+ throw new Error(`firebase.storage.SettableMetadata ${MD5_HASH_FIELD} may only be set on upload, not on updateMetadata`);
88
+ }
89
+
90
+ // validate values
91
+ if (normalizedKey !== 'customMetadata') {
92
+ if (!isString(value) && !isNull(value)) {
93
+ throw new Error(`firebase.storage.SettableMetadata invalid property '${key}' should be a string or null value.`);
94
+ }
95
+ } else if (!isObject(value) && !isNull(value)) {
96
+ throw new Error('firebase.storage.SettableMetadata.customMetadata must be an object of keys and string values or null value.');
97
+ }
98
+ validatedMetadata[normalizedKey] = value;
99
+ }
100
+ if (hasLegacyMd5Hash && hasMd5Hash) {
101
+ throw new Error("firebase.storage.SettableMetadata cannot contain both 'md5Hash' and legacy 'md5hash' properties.");
102
+ }
103
+ return validatedMetadata;
104
+ }
105
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isNull","isObject","isString","NativeFirebaseError","SETTABLE_FIELDS","LEGACY_MD5_HASH_FIELD","MD5_HASH_FIELD","handleStorageEvent","storageInstance","event","taskId","eventName","body","error","nativeError","fromEvent","_config","namespace","emitter","emit","eventNameForApp","getHttpUrlParts","url","decoded","decodeURIComponent","parts","match","length","bucket","path","getGsUrlParts","substring","indexOf","validateMetadata","metadata","update","Error","metadataEntries","Object","entries","validatedMetadata","hasLegacyMd5Hash","hasMd5Hash","i","entry","key","value","normalizedKey","includes"],"sourceRoot":"../../lib","sources":["utils.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,+CAA+C;AAC1F,SAASC,mBAAmB,QAAQ,iDAAiD;AAKrF,MAAMC,eAAe,GAAG,CACtB,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,SAAS,CACD;AAEV,MAAMC,qBAAqB,GAAG,SAAS;AACvC,MAAMC,cAAc,GAAG,SAAS;AAEhC,OAAO,eAAeC,kBAAkBA,CACtCC,eAAgC,EAChCC,KAIC,EACc;EACf,MAAM;IAAEC,MAAM;IAAEC;EAAU,CAAC,GAAGF,KAAK;EACnC,MAAMG,IAAI,GAAGH,KAAK,CAACG,IAAI,IAAI,CAAC,CAAC;EAE7B,IAAIA,IAAI,CAACC,KAAK,EAAE;IACd;IACA,MAAMC,WAAW,GAAGX,mBAAmB,CAACY,SAAS,CAC/CH,IAAI,CAACC,KAAK,EACVL,eAAe,CAACQ,OAAO,CAACC,SAC1B,CAAC;IACD;IACA;IACA;IACCL,IAAI,CAAuBC,KAAK,GAAGC,WAAW;EACjD;EAEAN,eAAe,CAACU,OAAO,CAACC,IAAI,CAACX,eAAe,CAACY,eAAe,CAACV,MAAM,EAAEC,SAAS,CAAC,EAAEC,IAAI,CAAC;AACxF;AAEA,OAAO,SAASS,eAAeA,CAACC,GAAW,EAA2C;EACpF,MAAMC,OAAO,GAAGC,kBAAkB,CAACF,GAAG,CAAC;EACvC,MAAMG,KAAK,GAAGF,OAAO,CAACG,KAAK,CAAC,uCAAuC,CAAC;EAEpE,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CAACC,GAAG,EAAEC,KAAK,CAAC,GAAGF,KAAK;IAC1B,MAAMG,aAAa,GAAGF,GAAG,KAAKxC,qBAAqB,GAAGC,cAAc,GAAGuC,GAAG;IAE1E,IAAIA,GAAG,KAAKxC,qBAAqB,EAAE;MACjCoC,gBAAgB,GAAG,IAAI;IACzB;IAEA,IAAII,GAAG,KAAKvC,cAAc,EAAE;MAC1BoC,UAAU,GAAG,IAAI;IACnB;;IAEA;IACA,IAAI,CAACtC,eAAe,CAAC4C,QAAQ,CAACD,aAAiD,CAAC,EAAE;MAChF,MAAM,IAAIX,KAAK,CACb,uDAAuDS,GAAG,0BAC5D,CAAC;IACH;;IAEA;IACA,IAAIE,aAAa,KAAKzC,cAAc,IAAI6B,MAAM,KAAK,IAAI,EAAE;MACvD,MAAM,IAAIC,KAAK,CACb,qCAAqC9B,cAAc,mDACrD,CAAC;IACH;;IAEA;IACA,IAAIyC,aAAa,KAAK,gBAAgB,EAAE;MACtC,IAAI,CAAC7C,QAAQ,CAAC4C,KAAK,CAAC,IAAI,CAAC9C,MAAM,CAAC8C,KAAK,CAAC,EAAE;QACtC,MAAM,IAAIV,KAAK,CACb,uDAAuDS,GAAG,qCAC5D,CAAC;MACH;IACF,CAAC,MAAM,IAAI,CAAC5C,QAAQ,CAAC6C,KAAK,CAAC,IAAI,CAAC9C,MAAM,CAAC8C,KAAK,CAAC,EAAE;MAC7C,MAAM,IAAIV,KAAK,CACb,6GACF,CAAC;IACH;IAEAI,iBAAiB,CAACO,aAAa,CAAC,GAAGD,KAAK;EAC1C;EAEA,IAAIL,gBAAgB,IAAIC,UAAU,EAAE;IAClC,MAAM,IAAIN,KAAK,CACb,kGACF,CAAC;EACH;EAEA,OAAOI,iBAAiB;AAC1B","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // Generated by genversion.
4
+ export const version = '25.0.0';
5
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["version"],"sourceRoot":"../../lib","sources":["version.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ // No-op for android.
4
+ const RNFBStorageModule = {};
5
+ export default RNFBStorageModule;
6
+ //# sourceMappingURL=RNFBStorageModule.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNFBStorageModule"],"sourceRoot":"../../../lib","sources":["web/RNFBStorageModule.android.ts"],"mappings":";;AAAA;AACA,MAAMA,iBAAiB,GAAG,CAAC,CAAC;AAC5B,eAAeA,iBAAiB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ // Re-export the main module
4
+ const RNFBStorageModule = {};
5
+ export default RNFBStorageModule;
6
+ //# sourceMappingURL=RNFBStorageModule.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNFBStorageModule"],"sourceRoot":"../../../lib","sources":["web/RNFBStorageModule.ios.ts"],"mappings":";;AAAA;AACA,MAAMA,iBAAiB,GAAG,CAAC,CAAC;AAC5B,eAAeA,iBAAiB","ignoreList":[]}