@intuitionrobotics/firebase 0.41.68 → 0.41.71
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/app-backend/FirebaseModule.js +46 -63
- package/app-backend/FirebaseModule.js.map +1 -1
- package/app-backend/auth/FirebaseBaseWrapper.d.ts +2 -2
- package/app-backend/auth/FirebaseBaseWrapper.js +8 -24
- package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
- package/app-backend/auth/FirebaseSession_Admin.d.ts +4 -6
- package/app-backend/auth/FirebaseSession_Admin.js +21 -37
- package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
- package/app-backend/auth/firebase-session.d.ts +2 -7
- package/app-backend/auth/firebase-session.js +22 -42
- package/app-backend/auth/firebase-session.js.map +1 -1
- package/app-backend/database/DatabaseWrapper.d.ts +1 -1
- package/app-backend/database/DatabaseWrapper.js +91 -195
- package/app-backend/database/DatabaseWrapper.js.map +1 -1
- package/app-backend/firestore/FirestoreCollection.js +92 -216
- package/app-backend/firestore/FirestoreCollection.js.map +1 -1
- package/app-backend/firestore/FirestoreInterface.js +30 -34
- package/app-backend/firestore/FirestoreInterface.js.map +1 -1
- package/app-backend/firestore/FirestoreTransaction.js +125 -321
- package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
- package/app-backend/firestore/FirestoreWrapper.d.ts +1 -1
- package/app-backend/firestore/FirestoreWrapper.js +25 -72
- package/app-backend/firestore/FirestoreWrapper.js.map +1 -1
- package/app-backend/functions/firebase-function.js +178 -327
- package/app-backend/functions/firebase-function.js.map +1 -1
- package/app-backend/push/PushMessagesWrapper.d.ts +1 -1
- package/app-backend/push/PushMessagesWrapper.js +31 -86
- package/app-backend/push/PushMessagesWrapper.js.map +1 -1
- package/app-backend/storage/StorageWrapper.d.ts +2 -2
- package/app-backend/storage/StorageWrapper.js +166 -347
- package/app-backend/storage/StorageWrapper.js.map +1 -1
- package/app-frontend/FirebaseModule.js +81 -169
- package/app-frontend/FirebaseModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsModule.js +17 -68
- package/app-frontend/analytics/AnalyticsModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsWrapper.js +17 -33
- package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
- package/app-frontend/auth/FirebaseSession.js +33 -80
- package/app-frontend/auth/FirebaseSession.js.map +1 -1
- package/app-frontend/auth/SwFirebaseSession.js +11 -27
- package/app-frontend/auth/SwFirebaseSession.js.map +1 -1
- package/app-frontend/database/DatabaseWrapper.js +64 -148
- package/app-frontend/database/DatabaseWrapper.js.map +1 -1
- package/app-frontend/messaging/MessagingWrapper.js +16 -68
- package/app-frontend/messaging/MessagingWrapper.js.map +1 -1
- package/app-frontend/messaging/SwMessagingWrapper.js +11 -28
- package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
- package/package.json +6 -6
|
@@ -17,32 +17,16 @@
|
|
|
17
17
|
* See the License for the specific language governing permissions and
|
|
18
18
|
* limitations under the License.
|
|
19
19
|
*/
|
|
20
|
-
var __extends = (this && this.__extends) || (function () {
|
|
21
|
-
var extendStatics = function (d, b) {
|
|
22
|
-
extendStatics = Object.setPrototypeOf ||
|
|
23
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25
|
-
return extendStatics(d, b);
|
|
26
|
-
};
|
|
27
|
-
return function (d, b) {
|
|
28
|
-
extendStatics(d, b);
|
|
29
|
-
function __() { this.constructor = d; }
|
|
30
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31
|
-
};
|
|
32
|
-
})();
|
|
33
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
21
|
exports.SwMessagingWrapper = void 0;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_this.messaging = messaging;
|
|
42
|
-
return _this;
|
|
22
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
23
|
+
const sw_1 = require("firebase/messaging/sw");
|
|
24
|
+
class SwMessagingWrapper extends ts_common_1.Logger {
|
|
25
|
+
constructor(messaging) {
|
|
26
|
+
super();
|
|
27
|
+
this.messaging = messaging;
|
|
43
28
|
}
|
|
44
|
-
|
|
45
|
-
var _this = this;
|
|
29
|
+
onBackgroundMessage(callback) {
|
|
46
30
|
// This means that the bundle is being evaluated in the main thread to register the service worker so there is no need to run the rest
|
|
47
31
|
// Also because it would fail since firebase would initialize the messaging controller as the main thread one instead of the sw one...
|
|
48
32
|
if (!self || !("ServiceWorkerGlobalScope" in self))
|
|
@@ -50,11 +34,10 @@ var SwMessagingWrapper = /** @class */ (function (_super) {
|
|
|
50
34
|
this.logInfo("This is a service worker context");
|
|
51
35
|
return sw_1.onBackgroundMessage(this.messaging, {
|
|
52
36
|
next: callback,
|
|
53
|
-
error:
|
|
54
|
-
complete:
|
|
37
|
+
error: error => this.logWarning(error),
|
|
38
|
+
complete: () => this.logInfo("Successfully set on background messaging")
|
|
55
39
|
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
}(ts_common_1.Logger));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
59
42
|
exports.SwMessagingWrapper = SwMessagingWrapper;
|
|
60
43
|
//# sourceMappingURL=SwMessagingWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwMessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/SwMessagingWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG
|
|
1
|
+
{"version":3,"file":"SwMessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/SwMessagingWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,4DAAoD;AAEpD,8CAA0D;AAE1D,MAAa,kBACZ,SAAQ,kBAAM;IAId,YAAY,SAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,mBAAmB,CAAC,QAAgC;QACnD,sIAAsI;QACtI,sIAAsI;QACtI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,0BAA0B,IAAI,IAAI,CAAC;YACjD,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;QAExD,IAAI,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;QACjD,OAAO,wBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE;YAC1C,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,0CAA0C,CAAC;SACxE,CAAC,CAAC;IACJ,CAAC;CAED;AAxBD,gDAwBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/firebase",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.71",
|
|
4
4
|
"description": "Storm - Express & Typescript based backend framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"build": "tsc"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@intuitionrobotics/ts-common": "~0.41.0",
|
|
33
32
|
"@google-cloud/common": "^3.0.0",
|
|
34
|
-
"@google-cloud/storage": "^
|
|
33
|
+
"@google-cloud/storage": "^6.0.0",
|
|
35
34
|
"@grpc/proto-loader": "0.6.9",
|
|
35
|
+
"@intuitionrobotics/ts-common": "~0.41.0",
|
|
36
36
|
"express": "^4.17.1",
|
|
37
|
-
"firebase": "^9.
|
|
38
|
-
"firebase-admin": "^
|
|
39
|
-
"firebase-functions": "^3.
|
|
37
|
+
"firebase": "^9.9.1",
|
|
38
|
+
"firebase-admin": "^11.0.0",
|
|
39
|
+
"firebase-functions": "^3.22.0",
|
|
40
40
|
"google-auth-library": "7.12.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|