@jskit-ai/uploads-image-web 0.2.41 → 0.2.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/uploads-image-web",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -15,6 +15,7 @@
15
15
  "./locales/en.json": "./locales/en.json"
16
16
  },
17
17
  "dependencies": {
18
+ "@jskit-ai/http-runtime": "0.2.43",
18
19
  "@jskit-ai/uploads-runtime": "0.2.41",
19
20
  "@uppy/compressor": "^3.1.0",
20
21
  "@uppy/core": "^5.2.0",
@@ -1,4 +1,5 @@
1
1
  import { computed, ref, unref } from "vue";
2
+ import { appFetch } from "@jskit-ai/http-runtime/client";
2
3
  import { normalizeObject, normalizeText } from "@jskit-ai/kernel/shared/support/normalize";
3
4
  import { createImageUploadRuntime } from "./createImageUploadRuntime.js";
4
5
  import { closeDashboard } from "../support/uppyPlugins.js";
@@ -111,7 +112,7 @@ function createManagedImageAssetRuntime({
111
112
  source = "uploads-image-web.managed-image-asset",
112
113
  dependencies: {
113
114
  createImageUploadRuntimeFactory = createImageUploadRuntime,
114
- fetchImpl = globalThis.fetch.bind(globalThis)
115
+ fetchImpl = appFetch
115
116
  } = {}
116
117
  }) {
117
118
  const { t, text } = useJskitText();