stylebot-harmony/patches/i18next-http-backend@2.2.1.patch
2023-08-03 20:09:32 -04:00

22 lines
1.2 KiB
Diff

diff --git a/esm/getFetch.cjs b/esm/getFetch.cjs
deleted file mode 100644
index 9e99af3cae1cb4e1ebb543c510132741bc7036e5..0000000000000000000000000000000000000000
diff --git a/esm/getFetch.js b/esm/getFetch.js
new file mode 100644
index 0000000000000000000000000000000000000000..7b36684e2e54181eb45f5d2b718f3da5a925ea40
--- /dev/null
+++ b/esm/getFetch.js
@@ -0,0 +1 @@
+export default globalThis.fetch;
diff --git a/esm/request.js b/esm/request.js
index b6a6e8976beab48feaa9eedcd44fc2945f27952d..02ccb089b571bb8627a297abaa131c6657861481 100644
--- a/esm/request.js
+++ b/esm/request.js
@@ -1,6 +1,6 @@
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
import { defaults, hasXMLHttpRequest } from './utils.js';
-import * as fetchNode from './getFetch.cjs';
+import * as fetchNode from './getFetch.js';
var fetchApi;
if (typeof fetch === 'function') {
if (typeof global !== 'undefined' && global.fetch) {