@intuitionrobotics/firebase 0.41.69 → 0.41.72

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 (48) hide show
  1. package/app-backend/FirebaseModule.js +46 -63
  2. package/app-backend/FirebaseModule.js.map +1 -1
  3. package/app-backend/auth/FirebaseBaseWrapper.d.ts +2 -2
  4. package/app-backend/auth/FirebaseBaseWrapper.js +8 -24
  5. package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
  6. package/app-backend/auth/FirebaseSession_Admin.d.ts +4 -6
  7. package/app-backend/auth/FirebaseSession_Admin.js +21 -37
  8. package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
  9. package/app-backend/auth/firebase-session.d.ts +2 -7
  10. package/app-backend/auth/firebase-session.js +22 -42
  11. package/app-backend/auth/firebase-session.js.map +1 -1
  12. package/app-backend/database/DatabaseWrapper.d.ts +1 -1
  13. package/app-backend/database/DatabaseWrapper.js +91 -195
  14. package/app-backend/database/DatabaseWrapper.js.map +1 -1
  15. package/app-backend/firestore/FirestoreCollection.js +92 -216
  16. package/app-backend/firestore/FirestoreCollection.js.map +1 -1
  17. package/app-backend/firestore/FirestoreInterface.js +30 -34
  18. package/app-backend/firestore/FirestoreInterface.js.map +1 -1
  19. package/app-backend/firestore/FirestoreTransaction.js +125 -321
  20. package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
  21. package/app-backend/firestore/FirestoreWrapper.d.ts +1 -1
  22. package/app-backend/firestore/FirestoreWrapper.js +25 -72
  23. package/app-backend/firestore/FirestoreWrapper.js.map +1 -1
  24. package/app-backend/functions/firebase-function.js +178 -327
  25. package/app-backend/functions/firebase-function.js.map +1 -1
  26. package/app-backend/push/PushMessagesWrapper.d.ts +1 -1
  27. package/app-backend/push/PushMessagesWrapper.js +31 -86
  28. package/app-backend/push/PushMessagesWrapper.js.map +1 -1
  29. package/app-backend/storage/StorageWrapper.d.ts +2 -2
  30. package/app-backend/storage/StorageWrapper.js +166 -347
  31. package/app-backend/storage/StorageWrapper.js.map +1 -1
  32. package/app-frontend/FirebaseModule.js +81 -169
  33. package/app-frontend/FirebaseModule.js.map +1 -1
  34. package/app-frontend/analytics/AnalyticsModule.js +17 -68
  35. package/app-frontend/analytics/AnalyticsModule.js.map +1 -1
  36. package/app-frontend/analytics/AnalyticsWrapper.js +17 -33
  37. package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
  38. package/app-frontend/auth/FirebaseSession.js +33 -80
  39. package/app-frontend/auth/FirebaseSession.js.map +1 -1
  40. package/app-frontend/auth/SwFirebaseSession.js +11 -27
  41. package/app-frontend/auth/SwFirebaseSession.js.map +1 -1
  42. package/app-frontend/database/DatabaseWrapper.js +64 -148
  43. package/app-frontend/database/DatabaseWrapper.js.map +1 -1
  44. package/app-frontend/messaging/MessagingWrapper.js +16 -68
  45. package/app-frontend/messaging/MessagingWrapper.js.map +1 -1
  46. package/app-frontend/messaging/SwMessagingWrapper.js +11 -28
  47. package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
  48. package/package.json +8 -8
@@ -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
- var ts_common_1 = require("@intuitionrobotics/ts-common");
36
- var sw_1 = require("firebase/messaging/sw");
37
- var SwMessagingWrapper = /** @class */ (function (_super) {
38
- __extends(SwMessagingWrapper, _super);
39
- function SwMessagingWrapper(messaging) {
40
- var _this = _super.call(this) || this;
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
- SwMessagingWrapper.prototype.onBackgroundMessage = function (callback) {
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: function (error) { return _this.logWarning(error); },
54
- complete: function () { return _this.logInfo("Successfully set on background messaging"); }
37
+ error: error => this.logWarning(error),
38
+ complete: () => this.logInfo("Successfully set on background messaging")
55
39
  });
56
- };
57
- return SwMessagingWrapper;
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;;;;;;;;;;;;;;;;AAEH,0DAAoD;AAEpD,4CAA0D;AAE1D;IACS,sCAAM;IAId,4BAAY,SAAiC;QAA7C,YACC,iBAAO,SAEP;QADA,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC5B,CAAC;IAED,gDAAmB,GAAnB,UAAoB,QAAgC;QAApD,iBAYC;QAXA,sIAA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C,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.69",
3
+ "version": "0.41.72",
4
4
  "description": "Storm - Express & Typescript based backend framework",
5
5
  "keywords": [
6
6
  "IR",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "author": "IR",
23
- "main": "main/index.js",
24
- "types": "main/index.d.ts",
23
+ "main": "index.js",
24
+ "types": "index.d.ts",
25
25
  "files": [
26
26
  "**/*"
27
27
  ],
@@ -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": "^5.0.0",
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.6.1",
38
- "firebase-admin": "^10.0.1",
39
- "firebase-functions": "^3.16.0",
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": {