@wailsio/runtime 3.0.0-alpha.8 → 3.0.0-alpha.9

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": "@wailsio/runtime",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "Wails Runtime",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
package/src/calls.js CHANGED
@@ -17,8 +17,8 @@ const call = newRuntimeCallerWithID(objectNames.Call, '');
17
17
  let callResponses = new Map();
18
18
 
19
19
  window._wails = window._wails || {};
20
- window._wails.callCallback = resultHandler;
21
- window._wails.callErrorCallback = errorHandler;
20
+ window._wails.callResultHandler = resultHandler;
21
+ window._wails.callErrorHandler = errorHandler;
22
22
 
23
23
  function generateID() {
24
24
  let result;
package/src/dialogs.js CHANGED
@@ -70,7 +70,7 @@ function dialog(type, options = {}) {
70
70
  *
71
71
  * @return {undefined}
72
72
  */
73
- export function dialogCallback(id, data, isJSON) {
73
+ export function dialogResultCallback(id, data, isJSON) {
74
74
  let p = dialogResponses.get(id);
75
75
  if (p) {
76
76
  if (isJSON) {
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @return {undefined}
9
9
  */
10
- export function dialogCallback(id: string, data: string, isJSON: boolean): undefined;
10
+ export function dialogResultCallback(id: string, data: string, isJSON: boolean): undefined;
11
11
  /**
12
12
  * Callback function for handling errors in dialog.
13
13
  *