@aurigami/sdk 1.4.2 → 1.4.3

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/dist/sdk.esm.js CHANGED
@@ -1033,27 +1033,33 @@ function _getQuery() {
1033
1033
  params = {};
1034
1034
  }
1035
1035
 
1036
+ if (!globalThis.fetch) {
1037
+ Object.assign(globalThis, {
1038
+ fetch: fetch
1039
+ });
1040
+ }
1041
+
1036
1042
  params = _extends({}, params, {
1037
1043
  'module': module,
1038
1044
  'action': action
1039
1045
  });
1040
- _context.next = 4;
1041
- return fetch(AURORA_API_BASE_URL + '?' + new URLSearchParams(params), {
1046
+ _context.next = 5;
1047
+ return globalThis.fetch(AURORA_API_BASE_URL + '?' + new URLSearchParams(params), {
1042
1048
  headers: {
1043
1049
  'Content-Type': 'application/json'
1044
1050
  },
1045
1051
  method: 'GET'
1046
1052
  });
1047
1053
 
1048
- case 4:
1054
+ case 5:
1049
1055
  resp = _context.sent;
1050
- _context.next = 7;
1056
+ _context.next = 8;
1051
1057
  return resp.json();
1052
1058
 
1053
- case 7:
1059
+ case 8:
1054
1060
  return _context.abrupt("return", _context.sent.result);
1055
1061
 
1056
- case 8:
1062
+ case 9:
1057
1063
  case "end":
1058
1064
  return _context.stop();
1059
1065
  }