@kimesh/query 0.2.6 → 0.2.7-nightly.20260124083945
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/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -249,7 +249,7 @@ function fetchPlugin(options = {}) {
|
|
|
249
249
|
const { config: overrideConfig = {}, key = "fetch", disableLayerAware = false } = options;
|
|
250
250
|
const plugin = (app) => {
|
|
251
251
|
const defaultFetchConfig = extractFetchConfig(app.$config?.fetch);
|
|
252
|
-
const defaultConfig
|
|
252
|
+
const defaultConfig = {
|
|
253
253
|
...defaultFetchConfig,
|
|
254
254
|
...overrideConfig,
|
|
255
255
|
headers: mergeHeaders(defaultFetchConfig.headers, overrideConfig.headers)
|
|
@@ -264,12 +264,12 @@ function fetchPlugin(options = {}) {
|
|
|
264
264
|
}
|
|
265
265
|
initLayerFetch({
|
|
266
266
|
layers: layerFetchConfigs,
|
|
267
|
-
default: defaultConfig
|
|
267
|
+
default: defaultConfig
|
|
268
268
|
});
|
|
269
269
|
setRouter(app.router);
|
|
270
270
|
return { provide: { [key]: $fetch } };
|
|
271
271
|
}
|
|
272
|
-
return { provide: { [key]: createKmFetch(defaultConfig
|
|
272
|
+
return { provide: { [key]: createKmFetch(defaultConfig) } };
|
|
273
273
|
};
|
|
274
274
|
plugin.__kimesh_plugin = true;
|
|
275
275
|
plugin._name = "kimesh:fetch";
|