@xelis/sdk 0.11.43 → 0.11.44

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.
@@ -111,9 +111,14 @@ class WSRPC {
111
111
  if (data.id === id) {
112
112
  return evaluate_data();
113
113
  }
114
- // special XSWD case - sending first call will return null id
115
- if (data.id === null && id === 0) {
116
- return evaluate_data();
114
+ // special XSWD case
115
+ // previously sending first call will return null id
116
+ // now it returns the id as app id
117
+ if (id === 0) {
118
+ const body_data = JSON.parse(body);
119
+ if (body_data.id === data.id || data.id === null) {
120
+ return evaluate_data();
121
+ }
117
122
  }
118
123
  }
119
124
  };
@@ -105,9 +105,14 @@ export class WSRPC {
105
105
  if (data.id === id) {
106
106
  return evaluate_data();
107
107
  }
108
- // special XSWD case - sending first call will return null id
109
- if (data.id === null && id === 0) {
110
- return evaluate_data();
108
+ // special XSWD case
109
+ // previously sending first call will return null id
110
+ // now it returns the id as app id
111
+ if (id === 0) {
112
+ const body_data = JSON.parse(body);
113
+ if (body_data.id === data.id || data.id === null) {
114
+ return evaluate_data();
115
+ }
111
116
  }
112
117
  }
113
118
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.43",
2
+ "version": "0.11.44",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {