chayns-api 1.0.75 → 1.0.76

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.
@@ -577,7 +577,8 @@ class AppWrapper {
577
577
  async init() {
578
578
  this.values = this.mapOldApiToNew(await this.appCall(18));
579
579
  this.appCall(66, {
580
- enabled: true,
580
+ enabled: true
581
+ }, {
581
582
  callback: async () => {
582
583
  this.values = this.mapOldApiToNew(await this.appCall(18));
583
584
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
@@ -586,7 +587,8 @@ class AppWrapper {
586
587
  value: this.values.user
587
588
  }
588
589
  }));
589
- }
590
+ },
591
+ awaitResult: true
590
592
  });
591
593
  return undefined;
592
594
  }
@@ -575,7 +575,8 @@ export class AppWrapper {
575
575
  async init() {
576
576
  this.values = this.mapOldApiToNew(await this.appCall(18));
577
577
  this.appCall(66, {
578
- enabled: true,
578
+ enabled: true
579
+ }, {
579
580
  callback: async () => {
580
581
  this.values = this.mapOldApiToNew(await this.appCall(18));
581
582
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
@@ -584,7 +585,8 @@ export class AppWrapper {
584
585
  value: this.values.user
585
586
  }
586
587
  }));
587
- }
588
+ },
589
+ awaitResult: true
588
590
  });
589
591
  return undefined;
590
592
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",