senza-sdk 4.2.62 → 4.2.63-8d2e60f.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "senza-sdk",
3
- "version": "4.2.62",
3
+ "version": "4.2.63-8d2e60f.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "eslint": "eslint --max-warnings 0 src test",
16
16
  "build": "npx webpack --config webpack.config.js",
17
17
  "test": "jest --coverage --verbose",
18
- "testall" : "jest --coverage --verbose && npm run eslint --fix"
18
+ "testall": "jest --coverage --verbose && npm run eslint --fix"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.13.16",
@@ -66,7 +66,7 @@ class AlarmManager extends EventTarget {
66
66
  if (isTriggering) {
67
67
  if (!this._moveToForegroundHasBeenCalled && window.cefQuery) {
68
68
  logger.log("Application is about to be terminated since didn't move to foreground");
69
- const message = { type: "terminating" };
69
+ const message = { type: "disconnect" };
70
70
  const request = { target:"TC", waitForResponse: false, message: JSON.stringify(message) };
71
71
  window.cefQuery({
72
72
  request: JSON.stringify(request),
package/src/lifecycle.js CHANGED
@@ -914,7 +914,7 @@ class Lifecycle extends EventTarget {
914
914
  if (window.cefQuery) {
915
915
  const FCID = getFCID();
916
916
  const message = {
917
- type: "terminating",
917
+ type: "disconnect",
918
918
  fcid: FCID
919
919
  };
920
920
  const request = { target: "TC", waitForResponse: false, message: JSON.stringify(message) };