nuxt-glorious 1.2.9-8-5 → 1.2.9-8-7

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.9-8-5"
4
+ "version": "1.2.9-8-7"
5
5
  }
@@ -23,7 +23,7 @@ export default async function(url, options = defaultOptions) {
23
23
  options.headers = {
24
24
  ...options.headers,
25
25
  ...computeAuth(),
26
- ...await computeHeaderFetch()
26
+ ...await computeHeaderFetch({ ...options, url })
27
27
  };
28
28
  if (options.bodyType === "formData") options.body = computeFormData(options);
29
29
  const opt = {
@@ -100,12 +100,12 @@ function computeFormData(options) {
100
100
  });
101
101
  return form;
102
102
  }
103
- async function computeHeaderFetch() {
103
+ async function computeHeaderFetch(options) {
104
104
  const fetch = import.meta.glob("/glorious/fetch.ts");
105
105
  let data = {};
106
106
  if (typeof fetch["/glorious/fetch.ts"] !== "undefined") {
107
107
  data = await fetch["/glorious/fetch.ts"]();
108
- data = data.fetchHandler.headers();
108
+ data = data.fetchHandler.headers(options);
109
109
  }
110
110
  return data;
111
111
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.9-8-5",
2
+ "version": "1.2.9-8-7",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",