@firebase/database 0.13.3 → 0.13.4-20220804201204
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 +6 -0
- package/dist/index.esm2017.js +5 -6
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +5 -6
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +5 -6
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +4 -5
- package/dist/index.standalone.js.map +1 -1
- package/dist/internal.d.ts +7 -6
- package/dist/node-esm/index.node.esm.js +5 -6
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api/Reference_impl.d.ts +7 -6
- package/dist/private.d.ts +7 -6
- package/dist/public.d.ts +7 -6
- package/dist/src/api/Reference_impl.d.ts +7 -6
- package/package.json +2 -2
|
@@ -156,7 +156,9 @@ export declare class DataSnapshot {
|
|
|
156
156
|
* @returns true if enumeration was canceled due to your callback returning
|
|
157
157
|
* true.
|
|
158
158
|
*/
|
|
159
|
-
forEach(action: (child: DataSnapshot
|
|
159
|
+
forEach(action: (child: DataSnapshot & {
|
|
160
|
+
key: string;
|
|
161
|
+
}) => boolean | void): boolean;
|
|
160
162
|
/**
|
|
161
163
|
* Returns true if the specified child path has (non-null) data.
|
|
162
164
|
*
|
|
@@ -842,12 +844,11 @@ export declare function onChildRemoved(query: Query, callback: (snapshot: DataSn
|
|
|
842
844
|
export declare function onChildRemoved(query: Query, callback: (snapshot: DataSnapshot) => unknown, cancelCallback: (error: Error) => unknown, options: ListenOptions): Unsubscribe;
|
|
843
845
|
export { EventType };
|
|
844
846
|
/**
|
|
845
|
-
* Detaches a callback previously attached with `on()
|
|
847
|
+
* Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
|
|
848
|
+
* Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
|
|
849
|
+
* the respective `on*` callbacks.
|
|
846
850
|
*
|
|
847
|
-
* Detach a callback previously attached with `on()`.
|
|
848
|
-
* called multiple times with the same eventType and callback, the callback
|
|
849
|
-
* will be called multiple times for each event, and `off()` must be called
|
|
850
|
-
* multiple times to remove the callback. Calling `off()` on a parent listener
|
|
851
|
+
* Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
|
|
851
852
|
* will not automatically remove listeners registered on child nodes, `off()`
|
|
852
853
|
* must also be called on any child listeners to remove the callback.
|
|
853
854
|
*
|
package/dist/private.d.ts
CHANGED
|
@@ -337,7 +337,9 @@ export declare class DataSnapshot {
|
|
|
337
337
|
* @returns true if enumeration was canceled due to your callback returning
|
|
338
338
|
* true.
|
|
339
339
|
*/
|
|
340
|
-
forEach(action: (child: DataSnapshot
|
|
340
|
+
forEach(action: (child: DataSnapshot & {
|
|
341
|
+
key: string;
|
|
342
|
+
}) => boolean | void): boolean;
|
|
341
343
|
/**
|
|
342
344
|
* Returns true if the specified child path has (non-null) data.
|
|
343
345
|
*
|
|
@@ -1151,12 +1153,11 @@ declare interface NodeFilter_2 {
|
|
|
1151
1153
|
}
|
|
1152
1154
|
|
|
1153
1155
|
/**
|
|
1154
|
-
* Detaches a callback previously attached with `on()
|
|
1156
|
+
* Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
|
|
1157
|
+
* Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
|
|
1158
|
+
* the respective `on*` callbacks.
|
|
1155
1159
|
*
|
|
1156
|
-
* Detach a callback previously attached with `on()`.
|
|
1157
|
-
* called multiple times with the same eventType and callback, the callback
|
|
1158
|
-
* will be called multiple times for each event, and `off()` must be called
|
|
1159
|
-
* multiple times to remove the callback. Calling `off()` on a parent listener
|
|
1160
|
+
* Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
|
|
1160
1161
|
* will not automatically remove listeners registered on child nodes, `off()`
|
|
1161
1162
|
* must also be called on any child listeners to remove the callback.
|
|
1162
1163
|
*
|
package/dist/public.d.ts
CHANGED
|
@@ -159,7 +159,9 @@ export declare class DataSnapshot {
|
|
|
159
159
|
* @returns true if enumeration was canceled due to your callback returning
|
|
160
160
|
* true.
|
|
161
161
|
*/
|
|
162
|
-
forEach(action: (child: DataSnapshot
|
|
162
|
+
forEach(action: (child: DataSnapshot & {
|
|
163
|
+
key: string;
|
|
164
|
+
}) => boolean | void): boolean;
|
|
163
165
|
/**
|
|
164
166
|
* Returns true if the specified child path has (non-null) data.
|
|
165
167
|
*
|
|
@@ -403,12 +405,11 @@ export declare interface ListenOptions {
|
|
|
403
405
|
readonly onlyOnce?: boolean;
|
|
404
406
|
}
|
|
405
407
|
/**
|
|
406
|
-
* Detaches a callback previously attached with `on()
|
|
408
|
+
* Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
|
|
409
|
+
* Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
|
|
410
|
+
* the respective `on*` callbacks.
|
|
407
411
|
*
|
|
408
|
-
* Detach a callback previously attached with `on()`.
|
|
409
|
-
* called multiple times with the same eventType and callback, the callback
|
|
410
|
-
* will be called multiple times for each event, and `off()` must be called
|
|
411
|
-
* multiple times to remove the callback. Calling `off()` on a parent listener
|
|
412
|
+
* Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
|
|
412
413
|
* will not automatically remove listeners registered on child nodes, `off()`
|
|
413
414
|
* must also be called on any child listeners to remove the callback.
|
|
414
415
|
*
|
|
@@ -156,7 +156,9 @@ export declare class DataSnapshot {
|
|
|
156
156
|
* @returns true if enumeration was canceled due to your callback returning
|
|
157
157
|
* true.
|
|
158
158
|
*/
|
|
159
|
-
forEach(action: (child: DataSnapshot
|
|
159
|
+
forEach(action: (child: DataSnapshot & {
|
|
160
|
+
key: string;
|
|
161
|
+
}) => boolean | void): boolean;
|
|
160
162
|
/**
|
|
161
163
|
* Returns true if the specified child path has (non-null) data.
|
|
162
164
|
*
|
|
@@ -842,12 +844,11 @@ export declare function onChildRemoved(query: Query, callback: (snapshot: DataSn
|
|
|
842
844
|
export declare function onChildRemoved(query: Query, callback: (snapshot: DataSnapshot) => unknown, cancelCallback: (error: Error) => unknown, options: ListenOptions): Unsubscribe;
|
|
843
845
|
export { EventType };
|
|
844
846
|
/**
|
|
845
|
-
* Detaches a callback previously attached with `on()
|
|
847
|
+
* Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
|
|
848
|
+
* Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
|
|
849
|
+
* the respective `on*` callbacks.
|
|
846
850
|
*
|
|
847
|
-
* Detach a callback previously attached with `on()`.
|
|
848
|
-
* called multiple times with the same eventType and callback, the callback
|
|
849
|
-
* will be called multiple times for each event, and `off()` must be called
|
|
850
|
-
* multiple times to remove the callback. Calling `off()` on a parent listener
|
|
851
|
+
* Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
|
|
851
852
|
* will not automatically remove listeners registered on child nodes, `off()`
|
|
852
853
|
* must also be called on any child listeners to remove the callback.
|
|
853
854
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/database",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4-20220804201204",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"tslib": "^2.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@firebase/app": "0.7.
|
|
56
|
+
"@firebase/app": "0.7.30-20220804201204",
|
|
57
57
|
"rollup": "2.72.1",
|
|
58
58
|
"rollup-plugin-typescript2": "0.31.2",
|
|
59
59
|
"typescript": "4.2.2"
|