abstracted-firebase
Advanced tools
Comparing version 0.27.14 to 0.27.15
@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types"; | ||
targetType: any; | ||
/** | ||
* this tagging has been added as optional to not break prior API but all | ||
* server events will set this variable so that when it is received by **Firemodel** | ||
* it can distiguish local versus server triggered events. | ||
*/ | ||
kind?: "server-event"; | ||
} | ||
@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */ |
@@ -10,5 +10,9 @@ "use strict"; | ||
const key = snapshot.key; | ||
const fullEvent = Object.assign({}, context, { value, key, previousChildKey }); | ||
const kind = "server-event"; | ||
const fullEvent = Object.assign({}, context, { value, | ||
key, | ||
kind, | ||
previousChildKey }); | ||
return handler(fullEvent); | ||
}; | ||
}; |
@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types"; | ||
targetType: any; | ||
/** | ||
* this tagging has been added as optional to not break prior API but all | ||
* server events will set this variable so that when it is received by **Firemodel** | ||
* it can distiguish local versus server triggered events. | ||
*/ | ||
kind?: "server-event"; | ||
} | ||
@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */ |
@@ -8,5 +8,9 @@ function isValueBasedEvent(evt, context) { | ||
const key = snapshot.key; | ||
const fullEvent = Object.assign({}, context, { value, key, previousChildKey }); | ||
const kind = "server-event"; | ||
const fullEvent = Object.assign({}, context, { value, | ||
key, | ||
kind, | ||
previousChildKey }); | ||
return handler(fullEvent); | ||
}; | ||
}; |
@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types"; | ||
targetType: any; | ||
/** | ||
* this tagging has been added as optional to not break prior API but all | ||
* server events will set this variable so that when it is received by **Firemodel** | ||
* it can distiguish local versus server triggered events. | ||
*/ | ||
kind?: "server-event"; | ||
} | ||
@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */ |
@@ -19,3 +19,7 @@ (function (factory) { | ||
const key = snapshot.key; | ||
const fullEvent = Object.assign({}, context, { value, key, previousChildKey }); | ||
const kind = "server-event"; | ||
const fullEvent = Object.assign({}, context, { value, | ||
key, | ||
kind, | ||
previousChildKey }); | ||
return handler(fullEvent); | ||
@@ -22,0 +26,0 @@ }; |
{ | ||
"name": "abstracted-firebase", | ||
"version": "0.27.14", | ||
"version": "0.27.15", | ||
"description": "Core functional library supporting 'abstracted-admin' and 'abstracted-client'", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154495
3728