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