@react-native-firebase/crashlytics 23.8.2 → 23.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/RNFBCrashlytics.podspec +7 -2
- package/dist/module/handlers.js +1 -1
- package/dist/module/handlers.js.map +1 -1
- package/dist/module/modular.js +1 -1
- package/dist/module/modular.js.map +1 -1
- package/dist/module/namespaced.js +2 -2
- package/dist/module/namespaced.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/handlers.d.ts.map +1 -0
- package/dist/typescript/lib/index.d.ts.map +1 -0
- package/dist/typescript/lib/modular.d.ts.map +1 -0
- package/dist/typescript/{commonjs/lib → lib}/namespaced.d.ts +1 -1
- package/dist/typescript/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/lib/types/crashlytics.d.ts.map +1 -0
- package/dist/typescript/lib/version.d.ts +2 -0
- package/dist/typescript/lib/version.d.ts.map +1 -0
- package/lib/handlers.ts +1 -1
- package/lib/modular.ts +1 -1
- package/lib/namespaced.ts +3 -3
- package/lib/version.ts +1 -1
- package/package.json +8 -20
- package/tsconfig.json +8 -8
- package/dist/commonjs/handlers.js +0 -175
- package/dist/commonjs/handlers.js.map +0 -1
- package/dist/commonjs/index.js +0 -38
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/modular.js +0 -256
- package/dist/commonjs/modular.js.map +0 -1
- package/dist/commonjs/namespaced.js +0 -138
- package/dist/commonjs/namespaced.js.map +0 -1
- package/dist/commonjs/package.json +0 -1
- package/dist/commonjs/types/crashlytics.js +0 -47
- package/dist/commonjs/types/crashlytics.js.map +0 -1
- package/dist/commonjs/version.js +0 -9
- package/dist/commonjs/version.js.map +0 -1
- package/dist/typescript/commonjs/lib/handlers.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/modular.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/types/crashlytics.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/version.d.ts +0 -2
- package/dist/typescript/commonjs/lib/version.d.ts.map +0 -1
- package/dist/typescript/commonjs/package.json +0 -1
- package/dist/typescript/module/lib/handlers.d.ts +0 -28
- package/dist/typescript/module/lib/handlers.d.ts.map +0 -1
- package/dist/typescript/module/lib/index.d.ts +0 -5
- package/dist/typescript/module/lib/index.d.ts.map +0 -1
- package/dist/typescript/module/lib/modular.d.ts +0 -193
- package/dist/typescript/module/lib/modular.d.ts.map +0 -1
- package/dist/typescript/module/lib/namespaced.d.ts +0 -12
- package/dist/typescript/module/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/module/lib/types/crashlytics.d.ts +0 -117
- package/dist/typescript/module/lib/types/crashlytics.d.ts.map +0 -1
- package/dist/typescript/module/lib/version.d.ts +0 -2
- package/dist/typescript/module/lib/version.d.ts.map +0 -1
- /package/dist/typescript/{commonjs/lib → lib}/handlers.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/index.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/modular.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/types/crashlytics.d.ts +0 -0
- /package/dist/typescript/{module/package.json → package.json} +0 -0
package/dist/commonjs/modular.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkForUnsentReports = checkForUnsentReports;
|
|
7
|
-
exports.crash = crash;
|
|
8
|
-
exports.deleteUnsentReports = deleteUnsentReports;
|
|
9
|
-
exports.didCrashOnPreviousExecution = didCrashOnPreviousExecution;
|
|
10
|
-
exports.getCrashlytics = getCrashlytics;
|
|
11
|
-
exports.log = log;
|
|
12
|
-
exports.recordError = recordError;
|
|
13
|
-
exports.sendUnsentReports = sendUnsentReports;
|
|
14
|
-
exports.setAttribute = setAttribute;
|
|
15
|
-
exports.setAttributes = setAttributes;
|
|
16
|
-
exports.setCrashlyticsCollectionEnabled = setCrashlyticsCollectionEnabled;
|
|
17
|
-
exports.setUserId = setUserId;
|
|
18
|
-
var _app = require("@react-native-firebase/app");
|
|
19
|
-
var _common = require("@react-native-firebase/app/lib/common");
|
|
20
|
-
/**
|
|
21
|
-
* Returns Crashlytics instance.
|
|
22
|
-
* #### Example
|
|
23
|
-
* ```js
|
|
24
|
-
* const crashlytics = getCrashlytics();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
function getCrashlytics() {
|
|
28
|
-
return (0, _app.getApp)().crashlytics();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether there are any unsent crash reports cached on the device. The callback only executes
|
|
33
|
-
* if automatic data collection is disabled.
|
|
34
|
-
*
|
|
35
|
-
* #### Example
|
|
36
|
-
*
|
|
37
|
-
* ```js
|
|
38
|
-
* async checkReports() {
|
|
39
|
-
* // returns boolean value
|
|
40
|
-
* const crashlytics = getCrashlytics();
|
|
41
|
-
* const unsentReports = await checkForUnsentReports(crashlytics);
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* checkReports();
|
|
45
|
-
* ```
|
|
46
|
-
* @param crashlytics A crashlytics instance.
|
|
47
|
-
* @returns Promise that resolves to a boolean indicating if there are unsent reports.
|
|
48
|
-
*/
|
|
49
|
-
function checkForUnsentReports(crashlytics) {
|
|
50
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
51
|
-
return crashlytics.checkForUnsentReports.call(crashlytics, _common.MODULAR_DEPRECATION_ARG);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Deletes any unsent reports on the device. This method only applies if automatic data collection is
|
|
56
|
-
* disabled.
|
|
57
|
-
*
|
|
58
|
-
* #### Example
|
|
59
|
-
*
|
|
60
|
-
* ```js
|
|
61
|
-
* const crashlytics = getCrashlytics();
|
|
62
|
-
* deleteUnsentReports(crashlytics);
|
|
63
|
-
* ```
|
|
64
|
-
* @param crashlytics A crashlytics instance.
|
|
65
|
-
*/
|
|
66
|
-
function deleteUnsentReports(crashlytics) {
|
|
67
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
68
|
-
return crashlytics.deleteUnsentReports.call(crashlytics, _common.MODULAR_DEPRECATION_ARG);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Returns a boolean value indicating whether the app crashed during the previous execution.
|
|
73
|
-
*
|
|
74
|
-
* #### Example
|
|
75
|
-
*
|
|
76
|
-
* ```js
|
|
77
|
-
* async didCrashPreviously() {
|
|
78
|
-
* // returns boolean value
|
|
79
|
-
* const crashlytics = getCrashlytics();
|
|
80
|
-
* const didCrash = await didCrashOnPreviousExecution(crashlytics);
|
|
81
|
-
* }
|
|
82
|
-
*
|
|
83
|
-
* didCrashPreviously();
|
|
84
|
-
* ```
|
|
85
|
-
* @param crashlytics A crashlytics instance.
|
|
86
|
-
* @returns Promise that resolves to a boolean indicating if the app crashed previously.
|
|
87
|
-
*/
|
|
88
|
-
function didCrashOnPreviousExecution(crashlytics) {
|
|
89
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
90
|
-
return crashlytics.didCrashOnPreviousExecution.call(crashlytics, _common.MODULAR_DEPRECATION_ARG);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Cause your app to crash for testing purposes. This is a native crash and will not contain a javascript stack trace.
|
|
95
|
-
* Note that crashes are intercepted by debuggers on iOS so no report will be seen under those conditions. Additionally
|
|
96
|
-
* if it is a debug build you will need to ensure your firebase.json is configured to enable crashlytics even in debug mode.
|
|
97
|
-
*
|
|
98
|
-
* #### Example
|
|
99
|
-
*
|
|
100
|
-
* ```js
|
|
101
|
-
* const crashlytics = getCrashlytics();
|
|
102
|
-
* crash(crashlytics);
|
|
103
|
-
* ```
|
|
104
|
-
* @param crashlytics A crashlytics instance.
|
|
105
|
-
*/
|
|
106
|
-
function crash(crashlytics) {
|
|
107
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
108
|
-
return crashlytics.crash.call(crashlytics, _common.MODULAR_DEPRECATION_ARG);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Log a message that will appear in any subsequent Crash or Non-fatal error reports.
|
|
113
|
-
*
|
|
114
|
-
* #### Example
|
|
115
|
-
*
|
|
116
|
-
* ```js
|
|
117
|
-
* const crashlytics = getCrashlytics();
|
|
118
|
-
* log(crashlytics, 'Testing a crash');
|
|
119
|
-
* crash(crashlytics);
|
|
120
|
-
* ```
|
|
121
|
-
* @param crashlytics A crashlytics instance.
|
|
122
|
-
* @param message The message to log.
|
|
123
|
-
*/
|
|
124
|
-
function log(crashlytics, message) {
|
|
125
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
126
|
-
return crashlytics.log.call(crashlytics, message, _common.MODULAR_DEPRECATION_ARG);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Record a JavaScript Error.
|
|
131
|
-
*
|
|
132
|
-
* The JavaScript stack trace is converted into a mock native iOS or Android exception before submission.
|
|
133
|
-
* The line numbers in the stack trace (if available) will be relative to the javascript bundle built by your packager,
|
|
134
|
-
* after whatever transpilation or minimization steps happen. You will need to maintain sourcemaps to decode them if desired.
|
|
135
|
-
*
|
|
136
|
-
* #### Example
|
|
137
|
-
*
|
|
138
|
-
* ```js
|
|
139
|
-
* const crashlytics = getCrashlytics();
|
|
140
|
-
* recordError(
|
|
141
|
-
* crashlytics,
|
|
142
|
-
* new Error('An error was caught')
|
|
143
|
-
* );
|
|
144
|
-
* ```
|
|
145
|
-
* @param crashlytics A crashlytics instance.
|
|
146
|
-
* @param error Expects an instance of Error; e.g. classes that extend Error will also be supported.
|
|
147
|
-
* @param jsErrorName Optional string containing Javascript error name
|
|
148
|
-
*/
|
|
149
|
-
function recordError(crashlytics, error, jsErrorName) {
|
|
150
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
151
|
-
return crashlytics.recordError.call(crashlytics, error, jsErrorName, _common.MODULAR_DEPRECATION_ARG);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Enqueues any unsent reports on the device to upload to Crashlytics. This method only applies if
|
|
156
|
-
* automatic data collection is disabled.
|
|
157
|
-
*
|
|
158
|
-
* #### Example
|
|
159
|
-
*
|
|
160
|
-
* ```js
|
|
161
|
-
* const crashlytics = getCrashlytics();
|
|
162
|
-
* sendUnsentReports(crashlytics);
|
|
163
|
-
* ```
|
|
164
|
-
* @param crashlytics A crashlytics instance.
|
|
165
|
-
*/
|
|
166
|
-
function sendUnsentReports(crashlytics) {
|
|
167
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
168
|
-
return crashlytics.sendUnsentReports.call(crashlytics, _common.MODULAR_DEPRECATION_ARG);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Specify a user identifier which will be visible in the Firebase Crashlytics console.
|
|
173
|
-
*
|
|
174
|
-
* It is recommended for privacy purposes that this value be a value that's meaningless to a third-party
|
|
175
|
-
* observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
176
|
-
*
|
|
177
|
-
* #### Example
|
|
178
|
-
*
|
|
179
|
-
* ```js
|
|
180
|
-
* const auth = getAuth();
|
|
181
|
-
* const crashlytics = getCrashlytics();
|
|
182
|
-
* // Custom user id
|
|
183
|
-
* await setUserId(crashlytics, '123456789');
|
|
184
|
-
* // Firebase auth uid
|
|
185
|
-
* await setUserId(
|
|
186
|
-
* crashlytics,
|
|
187
|
-
* auth.currentUser.uid
|
|
188
|
-
* );
|
|
189
|
-
* ```
|
|
190
|
-
* @param crashlytics A crashlytics instance.
|
|
191
|
-
* @param userId An arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
192
|
-
*/
|
|
193
|
-
function setUserId(crashlytics, userId) {
|
|
194
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
195
|
-
return crashlytics.setUserId.call(crashlytics, userId, _common.MODULAR_DEPRECATION_ARG);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Sets a string value to be associated with the given attribute name which will be visible in the Firebase Crashlytics console.
|
|
200
|
-
*
|
|
201
|
-
* #### Example
|
|
202
|
-
*
|
|
203
|
-
* ```js
|
|
204
|
-
* const crashlytics = getCrashlytics();
|
|
205
|
-
* await setAttribute(crashlytics, 'role', 'admin');
|
|
206
|
-
* ```
|
|
207
|
-
* @param crashlytics A crashlytics instance.
|
|
208
|
-
* @param name The name of the attribute to set.
|
|
209
|
-
* @param value A string value for the given attribute.
|
|
210
|
-
*/
|
|
211
|
-
function setAttribute(crashlytics, name, value) {
|
|
212
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
213
|
-
return crashlytics.setAttribute.call(crashlytics, name, value, _common.MODULAR_DEPRECATION_ARG);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Like `setAttribute` but for multiple attributes.
|
|
218
|
-
*
|
|
219
|
-
* #### Example
|
|
220
|
-
*
|
|
221
|
-
* ```js
|
|
222
|
-
* const crashlytics = getCrashlytics();
|
|
223
|
-
* await setAttributes(crashlytics, {
|
|
224
|
-
* role: 'admin',
|
|
225
|
-
* followers: '13',
|
|
226
|
-
* });
|
|
227
|
-
* ```
|
|
228
|
-
* @param crashlytics A crashlytics instance.
|
|
229
|
-
* @param attributes An object of key/value attribute name and values.
|
|
230
|
-
*/
|
|
231
|
-
function setAttributes(crashlytics, attributes) {
|
|
232
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
233
|
-
return crashlytics.setAttributes.call(crashlytics, attributes, _common.MODULAR_DEPRECATION_ARG);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Enable/disable Crashlytics reporting.
|
|
238
|
-
*
|
|
239
|
-
* Use this for opt-in first user data collection flows combined with `firebase.json` settings to disable auto collection.
|
|
240
|
-
*
|
|
241
|
-
* #### Example
|
|
242
|
-
*
|
|
243
|
-
* ```js
|
|
244
|
-
* const crashlytics = getCrashlytics();
|
|
245
|
-
* // Disable crash reporting
|
|
246
|
-
* await setCrashlyticsCollectionEnabled(crashlytics, false);
|
|
247
|
-
* ```
|
|
248
|
-
* @param crashlytics A crashlytics instance.
|
|
249
|
-
* @param enabled A boolean value representing whether to enable Crashlytics error collection.
|
|
250
|
-
*/
|
|
251
|
-
function setCrashlyticsCollectionEnabled(crashlytics, enabled) {
|
|
252
|
-
return crashlytics.setCrashlyticsCollectionEnabled.call(crashlytics, enabled,
|
|
253
|
-
// @ts-ignore - MODULAR_DEPRECATION_ARG is not defined in the global scope
|
|
254
|
-
_common.MODULAR_DEPRECATION_ARG);
|
|
255
|
-
}
|
|
256
|
-
//# sourceMappingURL=modular.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_app","require","_common","getCrashlytics","getApp","crashlytics","checkForUnsentReports","call","MODULAR_DEPRECATION_ARG","deleteUnsentReports","didCrashOnPreviousExecution","crash","log","message","recordError","error","jsErrorName","sendUnsentReports","setUserId","userId","setAttribute","name","value","setAttributes","attributes","setCrashlyticsCollectionEnabled","enabled"],"sourceRoot":"../../lib","sources":["modular.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,cAAcA,CAAA,EAAgB;EAC5C,OAAO,IAAAC,WAAM,EAAC,CAAC,CAACC,WAAW,CAAC,CAAC;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CAACD,WAAwB,EAAoB;EAChF;EACA,OAAOA,WAAW,CAACC,qBAAqB,CAACC,IAAI,CAACF,WAAW,EAAEG,+BAAuB,CAAC;AACrF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAACJ,WAAwB,EAAiB;EAC3E;EACA,OAAOA,WAAW,CAACI,mBAAmB,CAACF,IAAI,CAACF,WAAW,EAAEG,+BAAuB,CAAC;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,2BAA2BA,CAACL,WAAwB,EAAoB;EACtF;EACA,OAAOA,WAAW,CAACK,2BAA2B,CAACH,IAAI,CAACF,WAAW,EAAEG,+BAAuB,CAAC;AAC3F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,KAAKA,CAACN,WAAwB,EAAQ;EACpD;EACA,OAAOA,WAAW,CAACM,KAAK,CAACJ,IAAI,CAACF,WAAW,EAAEG,+BAAuB,CAAC;AACrE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,GAAGA,CAACP,WAAwB,EAAEQ,OAAe,EAAQ;EACnE;EACA,OAAOR,WAAW,CAACO,GAAG,CAACL,IAAI,CAACF,WAAW,EAAEQ,OAAO,EAAEL,+BAAuB,CAAC;AAC5E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASM,WAAWA,CAACT,WAAwB,EAAEU,KAAY,EAAEC,WAAoB,EAAQ;EAC9F;EACA,OAAOX,WAAW,CAACS,WAAW,CAACP,IAAI,CAACF,WAAW,EAAEU,KAAK,EAAEC,WAAW,EAAER,+BAAuB,CAAC;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASS,iBAAiBA,CAACZ,WAAwB,EAAQ;EAChE;EACA,OAAOA,WAAW,CAACY,iBAAiB,CAACV,IAAI,CAACF,WAAW,EAAEG,+BAAuB,CAAC;AACjF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASU,SAASA,CAACb,WAAwB,EAAEc,MAAc,EAAiB;EACjF;EACA,OAAOd,WAAW,CAACa,SAAS,CAACX,IAAI,CAACF,WAAW,EAAEc,MAAM,EAAEX,+BAAuB,CAAC;AACjF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASY,YAAYA,CAACf,WAAwB,EAAEgB,IAAY,EAAEC,KAAa,EAAiB;EACjG;EACA,OAAOjB,WAAW,CAACe,YAAY,CAACb,IAAI,CAACF,WAAW,EAAEgB,IAAI,EAAEC,KAAK,EAAEd,+BAAuB,CAAC;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASe,aAAaA,CAC3BlB,WAAwB,EACxBmB,UAAqC,EACtB;EACf;EACA,OAAOnB,WAAW,CAACkB,aAAa,CAAChB,IAAI,CAACF,WAAW,EAAEmB,UAAU,EAAEhB,+BAAuB,CAAC;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASiB,+BAA+BA,CAC7CpB,WAAwB,EACxBqB,OAAgB,EACD;EACf,OAAOrB,WAAW,CAACoB,+BAA+B,CAAClB,IAAI,CACrDF,WAAW,EACXqB,OAAO;EACP;EACAlB,+BACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.firebase = exports.default = exports.SDK_VERSION = void 0;
|
|
7
|
-
var _app = require("@react-native-firebase/app");
|
|
8
|
-
var _common = require("@react-native-firebase/app/lib/common");
|
|
9
|
-
var _internal = require("@react-native-firebase/app/lib/internal");
|
|
10
|
-
var _stacktraceJs = _interopRequireDefault(require("stacktrace-js"));
|
|
11
|
-
var _handlers = require("./handlers.js");
|
|
12
|
-
var _version = require("./version.js");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
/* eslint-disable no-console */
|
|
15
|
-
/*
|
|
16
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
17
|
-
*
|
|
18
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
19
|
-
* you may not use this library except in compliance with the License.
|
|
20
|
-
* You may obtain a copy of the License at
|
|
21
|
-
*
|
|
22
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
-
*
|
|
24
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
25
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
-
* See the License for the specific language governing permissions and
|
|
28
|
-
* limitations under the License.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
const statics = {};
|
|
33
|
-
const namespace = 'crashlytics';
|
|
34
|
-
const nativeModuleName = 'RNFBCrashlyticsModule';
|
|
35
|
-
class FirebaseCrashlyticsModule extends _internal.FirebaseModule {
|
|
36
|
-
constructor(app, config, customUrlOrRegion) {
|
|
37
|
-
super(app, config, customUrlOrRegion);
|
|
38
|
-
(0, _handlers.setGlobalErrorHandler)(this.native);
|
|
39
|
-
(0, _handlers.setOnUnhandledPromiseRejectionHandler)(this.native);
|
|
40
|
-
this._isCrashlyticsCollectionEnabled = this.native.isCrashlyticsCollectionEnabled;
|
|
41
|
-
}
|
|
42
|
-
get isCrashlyticsCollectionEnabled() {
|
|
43
|
-
// Purposefully did not deprecate this as I think it should remain a property rather than a method.
|
|
44
|
-
return this._isCrashlyticsCollectionEnabled;
|
|
45
|
-
}
|
|
46
|
-
checkForUnsentReports() {
|
|
47
|
-
if (this.isCrashlyticsCollectionEnabled) {
|
|
48
|
-
throw new Error("firebase.crashlytics().setCrashlyticsCollectionEnabled(*) has been set to 'true', all reports are automatically sent.");
|
|
49
|
-
}
|
|
50
|
-
return this.native.checkForUnsentReports();
|
|
51
|
-
}
|
|
52
|
-
crash() {
|
|
53
|
-
this.native.crash();
|
|
54
|
-
}
|
|
55
|
-
async deleteUnsentReports() {
|
|
56
|
-
await this.native.deleteUnsentReports();
|
|
57
|
-
}
|
|
58
|
-
didCrashOnPreviousExecution() {
|
|
59
|
-
return this.native.didCrashOnPreviousExecution();
|
|
60
|
-
}
|
|
61
|
-
log(message) {
|
|
62
|
-
this.native.log(`${message}`);
|
|
63
|
-
}
|
|
64
|
-
setAttribute(name, value) {
|
|
65
|
-
if (!(0, _common.isString)(name)) {
|
|
66
|
-
throw new Error('firebase.crashlytics().setAttribute(*, _): The supplied property name must be a string.');
|
|
67
|
-
}
|
|
68
|
-
if (!(0, _common.isString)(value)) {
|
|
69
|
-
throw new Error('firebase.crashlytics().setAttribute(_, *): The supplied property value must be a string value.');
|
|
70
|
-
}
|
|
71
|
-
return this.native.setAttribute(name, value);
|
|
72
|
-
}
|
|
73
|
-
setAttributes(object) {
|
|
74
|
-
if (!(0, _common.isObject)(object)) {
|
|
75
|
-
throw new Error('firebase.crashlytics().setAttributes(*): The supplied arg must be an object of key value strings.');
|
|
76
|
-
}
|
|
77
|
-
return this.native.setAttributes(object);
|
|
78
|
-
}
|
|
79
|
-
setUserId(userId) {
|
|
80
|
-
if (!(0, _common.isString)(userId)) {
|
|
81
|
-
throw new Error('firebase.crashlytics().setUserId(*): The supplied userId must be a string value.');
|
|
82
|
-
}
|
|
83
|
-
return this.native.setUserId(userId);
|
|
84
|
-
}
|
|
85
|
-
recordError(error, jsErrorName) {
|
|
86
|
-
if ((0, _common.isError)(error)) {
|
|
87
|
-
_stacktraceJs.default.fromError(error, {
|
|
88
|
-
offline: true
|
|
89
|
-
}).then(stackFrames => {
|
|
90
|
-
this.native.recordError((0, _handlers.createNativeErrorObj)(error, stackFrames, false, jsErrorName));
|
|
91
|
-
});
|
|
92
|
-
} else {
|
|
93
|
-
console.warn('firebase.crashlytics().recordError(*) expects an instance of Error. Non Errors will be ignored.');
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
sendUnsentReports() {
|
|
97
|
-
if (this.isCrashlyticsCollectionEnabled) {
|
|
98
|
-
this.native.sendUnsentReports();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
setCrashlyticsCollectionEnabled(enabled) {
|
|
102
|
-
if (!(0, _common.isBoolean)(enabled)) {
|
|
103
|
-
throw new Error("firebase.crashlytics().setCrashlyticsCollectionEnabled(*) 'enabled' must be a boolean.");
|
|
104
|
-
}
|
|
105
|
-
this._isCrashlyticsCollectionEnabled = enabled;
|
|
106
|
-
return this.native.setCrashlyticsCollectionEnabled(enabled);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// import { SDK_VERSION } from '@react-native-firebase/crashlytics';
|
|
111
|
-
const SDK_VERSION = exports.SDK_VERSION = _version.version;
|
|
112
|
-
const crashlyticsNamespace = (0, _internal.createModuleNamespace)({
|
|
113
|
-
statics,
|
|
114
|
-
version: _version.version,
|
|
115
|
-
namespace,
|
|
116
|
-
nativeModuleName,
|
|
117
|
-
nativeEvents: false,
|
|
118
|
-
hasMultiAppSupport: false,
|
|
119
|
-
hasCustomUrlOrRegionSupport: false,
|
|
120
|
-
ModuleClass: FirebaseCrashlyticsModule
|
|
121
|
-
});
|
|
122
|
-
// import crashlytics from '@react-native-firebase/crashlytics';
|
|
123
|
-
// crashlytics().X(...);
|
|
124
|
-
var _default = exports.default = crashlyticsNamespace; // import crashlytics, { firebase } from '@react-native-firebase/crashlytics';
|
|
125
|
-
// crashlytics().X(...);
|
|
126
|
-
// firebase.crashlytics().X(...);
|
|
127
|
-
const firebase = exports.firebase = (0, _internal.getFirebaseRoot)();
|
|
128
|
-
|
|
129
|
-
// Register the interop module for non-native platforms.
|
|
130
|
-
// Note: This package doesn't have a web fallback module like functions does
|
|
131
|
-
// setReactNativeModule(nativeModuleName, fallBackModule);
|
|
132
|
-
|
|
133
|
-
// This will throw with 'Default App Not initialized' if the default app is not configured.
|
|
134
|
-
if (!_common.isOther) {
|
|
135
|
-
// @ts-ignore - Extra arg used by deprecation proxy to detect namespaced calls
|
|
136
|
-
firebase.crashlytics.call(null, (0, _app.getApp)(), _common.MODULAR_DEPRECATION_ARG);
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=namespaced.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_app","require","_common","_internal","_stacktraceJs","_interopRequireDefault","_handlers","_version","e","__esModule","default","statics","namespace","nativeModuleName","FirebaseCrashlyticsModule","FirebaseModule","constructor","app","config","customUrlOrRegion","setGlobalErrorHandler","native","setOnUnhandledPromiseRejectionHandler","_isCrashlyticsCollectionEnabled","isCrashlyticsCollectionEnabled","checkForUnsentReports","Error","crash","deleteUnsentReports","didCrashOnPreviousExecution","log","message","setAttribute","name","value","isString","setAttributes","object","isObject","setUserId","userId","recordError","error","jsErrorName","isError","StackTrace","fromError","offline","then","stackFrames","createNativeErrorObj","console","warn","sendUnsentReports","setCrashlyticsCollectionEnabled","enabled","isBoolean","SDK_VERSION","exports","version","crashlyticsNamespace","createModuleNamespace","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","ModuleClass","_default","firebase","getFirebaseRoot","isOther","crashlytics","call","getApp","MODULAR_DEPRECATION_ARG"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;;;;;AAkBA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AAKA,IAAAG,aAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,QAAA,GAAAN,OAAA;AAAoC,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAvCpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA,MAAMG,OAAyB,GAAG,CAAC,CAAC;AAEpC,MAAMC,SAAS,GAAG,aAAa;AAE/B,MAAMC,gBAAgB,GAAG,uBAAuB;AAEhD,MAAMC,yBAAyB,SAASC,wBAAc,CAAC;EAGrDC,WAAWA,CACTC,GAAwC,EACxCC,MAAoB,EACpBC,iBAAiC,EACjC;IACA,KAAK,CAACF,GAAG,EAAEC,MAAM,EAAEC,iBAAiB,CAAC;IACrC,IAAAC,+BAAqB,EAAC,IAAI,CAACC,MAAM,CAAC;IAClC,IAAAC,+CAAqC,EAAC,IAAI,CAACD,MAAM,CAAC;IAClD,IAAI,CAACE,+BAA+B,GAAG,IAAI,CAACF,MAAM,CAACG,8BAA8B;EACnF;EAEA,IAAIA,8BAA8BA,CAAA,EAAY;IAC5C;IACA,OAAO,IAAI,CAACD,+BAA+B;EAC7C;EAEAE,qBAAqBA,CAAA,EAAqB;IACxC,IAAI,IAAI,CAACD,8BAA8B,EAAE;MACvC,MAAM,IAAIE,KAAK,CACb,uHACF,CAAC;IACH;IACA,OAAO,IAAI,CAACL,MAAM,CAACI,qBAAqB,CAAC,CAAC;E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ACC,eAAO,EAAE;EACZ;EACAF,QAAQ,CAACG,WAAW,CAACC,IAAI,CAAC,IAAI,EAAE,IAAAC,WAAM,EAAC,CAAC,EAAEC,+BAAuB,CAAC;AACpE","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FirebaseCrashlyticsTypes = void 0;
|
|
7
|
-
/*
|
|
8
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this library except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
// ============ Module Interface ============
|
|
24
|
-
/**
|
|
25
|
-
* Crashlytics module instance - returned from firebase.crashlytics() or firebase.app().crashlytics()
|
|
26
|
-
*/
|
|
27
|
-
// ============ Statics Interface ============
|
|
28
|
-
/**
|
|
29
|
-
* Static properties available on firebase.crashlytics
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* FirebaseApp type with crashlytics() method.
|
|
33
|
-
* @deprecated Import FirebaseApp from '@react-native-firebase/app' instead.
|
|
34
|
-
* The crashlytics() method is added via module augmentation.
|
|
35
|
-
*/
|
|
36
|
-
// ============ Module Augmentation ============
|
|
37
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
38
|
-
/* eslint-enable @typescript-eslint/no-namespace */
|
|
39
|
-
// ============ Backwards Compatibility Namespace - to be removed with namespaced exports ============
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Use the exported types directly instead.
|
|
42
|
-
* FirebaseCrashlyticsTypes namespace is kept for backwards compatibility.
|
|
43
|
-
*/
|
|
44
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
45
|
-
let FirebaseCrashlyticsTypes = exports.FirebaseCrashlyticsTypes = void 0;
|
|
46
|
-
/* eslint-enable @typescript-eslint/no-namespace */
|
|
47
|
-
//# sourceMappingURL=crashlytics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FirebaseCrashlyticsTypes","exports"],"sourceRoot":"../../../lib","sources":["types/crashlytics.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;AACA;AA4FA;AAEA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAGA;AAEA;AAWA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA,IACiBA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA;AAKzC","ignoreList":[]}
|
package/dist/commonjs/version.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["version","exports"],"sourceRoot":"../../lib","sources":["version.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,QAAQ","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../lib/handlers.ts"],"names":[],"mappings":"AAqBA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,eAAO,MAAM,UAAU,+CAA+C,CAAC;AAEvE,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ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AI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GACpC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/namespaced.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAuHtE,eAAO,MAAM,WAAW,WAAU,CAAC;AAanC,KAAK,oBAAoB,GAAG,mBAAmB,CAAC,+BAA+B,CAC7E,WAAW,EACX,OAAO,CACR,GAAG;IACF,WAAW,EAAE,mBAAmB,CAAC,+BAA+B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACvF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;wBAIgD,oBAAoB;AAAtE,wBAAuE;AAKvE,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,aAAa,EACb,WAAW,EACX,OAAO,EACP,KAAK,CACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crashlytics.d.ts","sourceRoot":"","sources":["../../../../../lib/types/crashlytics.ts"],"names":[],"mappings":"AAiBA,OAAO,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GAAG,mBAAmB,CAAC,WAAW,CAAC;AAK1D,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,mBAAmB,CAAC;QAC5B,UAAU,MAAM;YACd,WAAW,EAAE,+BAA+B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;SACpE;QACD,UAAU,WAAW;YACnB,WAAW,IAAI,WAAW,CAAC;SAC5B;KACF;CACF;AAGD,KAAK,QAAQ,GAAG,OAAO,CAAC;AAExB;;;GAGG;AAEH,yBAAiB,wBAAwB,CAAC;IAExC,KAAY,MAAM,GAAG,WAAW,CAAC;IACjC,KAAY,OAAO,GAAG,QAAQ,CAAC;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import StackTrace from 'stacktrace-js';
|
|
2
|
-
export declare const FATAL_FLAG = "com.firebase.crashlytics.reactnative.fatal";
|
|
3
|
-
interface NativeErrorFrame {
|
|
4
|
-
src: string;
|
|
5
|
-
line: number;
|
|
6
|
-
col: number;
|
|
7
|
-
fn: string;
|
|
8
|
-
file: string;
|
|
9
|
-
}
|
|
10
|
-
interface NativeErrorObj {
|
|
11
|
-
message: string;
|
|
12
|
-
isUnhandledRejection: boolean;
|
|
13
|
-
frames: NativeErrorFrame[];
|
|
14
|
-
}
|
|
15
|
-
interface NativeModule {
|
|
16
|
-
isCrashlyticsCollectionEnabled: boolean;
|
|
17
|
-
isErrorGenerationOnJSCrashEnabled: boolean;
|
|
18
|
-
isCrashlyticsJavascriptExceptionHandlerChainingEnabled: boolean;
|
|
19
|
-
logPromise(message: string): Promise<void>;
|
|
20
|
-
setAttribute(name: string, value: string): Promise<void>;
|
|
21
|
-
recordErrorPromise(errorObj: NativeErrorObj): Promise<void>;
|
|
22
|
-
crashWithStackPromise(errorObj: NativeErrorObj): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
export declare function createNativeErrorObj(error: Error, stackFrames: StackTrace.StackFrame[], isUnhandledRejection: boolean, jsErrorName?: string): NativeErrorObj;
|
|
25
|
-
export declare const setGlobalErrorHandler: (nativeModule: NativeModule) => (error: unknown, fatal?: boolean) => Promise<void>;
|
|
26
|
-
export declare const setOnUnhandledPromiseRejectionHandler: (nativeModule: NativeModule) => (_id: number, error: Error) => Promise<void>;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../lib/handlers.ts"],"names":[],"mappings":"AAqBA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,eAAO,MAAM,UAAU,+CAA+C,CAAC;AAEvE,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,cAAc;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAED,UAAU,YAAY;IACpB,8BAA8B,EAAE,OAAO,CAAC;IACxC,iCAAiC,EAAE,OAAO,CAAC;IAC3C,sDAAsD,EAAE,OAAO,CAAC;IAChE,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC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