@akanjs/signal 0.9.60-canary.2 → 0.9.60-canary.4
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/cjs/src/fetchInfo.js +1 -1
- package/esm/src/fetchInfo.js +1 -1
- package/package.json +1 -1
package/cjs/src/fetchInfo.js
CHANGED
|
@@ -230,7 +230,7 @@ const databaseFetchOf = (signal, option = {}) => {
|
|
|
230
230
|
modelSortKeys: `${fieldName}SortKeys`
|
|
231
231
|
};
|
|
232
232
|
const fetch = serviceFetchOf(signal);
|
|
233
|
-
const fetchInstance = typeof global !== "undefined" ? global.
|
|
233
|
+
const fetchInstance = typeof global !== "undefined" ? global.fetch : window.fetch;
|
|
234
234
|
const util = {
|
|
235
235
|
// TODO: migrate file endpoint to shared
|
|
236
236
|
[names.addModelFiles]: async (files, id, option2) => {
|
package/esm/src/fetchInfo.js
CHANGED
|
@@ -207,7 +207,7 @@ const databaseFetchOf = (signal, option = {}) => {
|
|
|
207
207
|
modelSortKeys: `${fieldName}SortKeys`
|
|
208
208
|
};
|
|
209
209
|
const fetch = serviceFetchOf(signal);
|
|
210
|
-
const fetchInstance = typeof global !== "undefined" ? global.
|
|
210
|
+
const fetchInstance = typeof global !== "undefined" ? global.fetch : window.fetch;
|
|
211
211
|
const util = {
|
|
212
212
|
// TODO: migrate file endpoint to shared
|
|
213
213
|
[names.addModelFiles]: async (files, id, option2) => {
|