chayns-api 1.0.5 → 1.0.6

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.
@@ -66,7 +66,10 @@ class AppWrapper {
66
66
  locationPersonId: AppInfo.LocationPersonId,
67
67
  urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
68
68
  },
69
- parameters: [...new URLSearchParams(location.search)],
69
+ parameters: [...new URLSearchParams(location.search)].reduce((p, [k, v]) => {
70
+ p[k] = v;
71
+ return p;
72
+ }, {}),
70
73
  user: {
71
74
  firstName: AppUser.FirstName,
72
75
  lastName: AppUser.LastName,
@@ -56,7 +56,11 @@ export class AppWrapper {
56
56
  locationPersonId: AppInfo.LocationPersonId,
57
57
  urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
58
58
  },
59
- parameters: [...new URLSearchParams(location.search)],
59
+ parameters: [...new URLSearchParams(location.search)].reduce((p, _ref) => {
60
+ let [k, v] = _ref;
61
+ p[k] = v;
62
+ return p;
63
+ }, {}),
60
64
  user: {
61
65
  firstName: AppUser.FirstName,
62
66
  lastName: AppUser.LastName,
@@ -179,10 +183,10 @@ export class AppWrapper {
179
183
  },
180
184
  invokeDialogCall: async (value, callback) => {
181
185
  const callbackName = `chaynsApiV5Callback_${this.counter++}`;
182
- window[callbackName] = _ref => {
186
+ window[callbackName] = _ref2 => {
183
187
  let {
184
188
  retVal
185
- } = _ref;
189
+ } = _ref2;
186
190
  callback === null || callback === void 0 ? void 0 : callback(retVal);
187
191
  delete window[callbackName];
188
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",