@nuxt/bridge-edge 3.0.0-27417251.3fccbfa → 3.0.0-27417425.77aeaa3

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.
@@ -4,7 +4,7 @@ import hash from 'hash-sum';
4
4
  import { resolve } from 'pathe';
5
5
  import { genImport, genObjectFromRawEntries } from 'knitwork';
6
6
 
7
- const version = "3.0.0-27417251.3fccbfa";
7
+ const version = "3.0.0-27417425.77aeaa3";
8
8
 
9
9
  const middlewareTemplate = {
10
10
  filename: "middleware.js",
@@ -102,10 +102,10 @@ export const useNuxt2Meta = (metaOptions) => {
102
102
  const originalHead = app.head;
103
103
  app.head = function() {
104
104
  const head = originalHead.call(this) || {};
105
- return defu(unwrap(metaInfoFromOptions(metaOptions)), head);
105
+ return defu(unwrap(metaInfoFromOptions(metaOptions)()), head);
106
106
  };
107
107
  } else {
108
- app.head = defu(unwrap(metaInfoFromOptions(metaOptions)), app.head);
108
+ app.head = defu(unwrap(metaInfoFromOptions(metaOptions)()), app.head);
109
109
  }
110
110
  }
111
111
  };
@@ -5,5 +5,5 @@ export declare type FetchResult<ReqT extends FetchRequest> = TypedInternalRespon
5
5
  export declare type UseFetchOptions<DataT, Transform extends _Transform<DataT, any> = _Transform<DataT, DataT>, PickKeys extends KeyOfRes<Transform> = KeyOfRes<Transform>> = AsyncDataOptions<DataT, Transform, PickKeys> & FetchOptions & {
6
6
  key?: string;
7
7
  };
8
- export declare function useFetch<ReqT extends string = string, ResT = FetchResult<ReqT>, Transform extends (res: ResT) => any = (res: ResT) => ResT, PickKeys extends KeyOfRes<Transform> = KeyOfRes<Transform>>(url: ReqT, opts?: UseFetchOptions<ResT, Transform, PickKeys>): import("./asyncData").AsyncData<import("./asyncData").PickFrom<ReturnType<Transform>, PickKeys>>;
9
- export declare function useLazyFetch<ReqT extends string = string, ResT = FetchResult<ReqT>, Transform extends (res: ResT) => any = (res: ResT) => ResT, PickKeys extends KeyOfRes<Transform> = KeyOfRes<Transform>>(url: ReqT, opts?: Omit<UseFetchOptions<ResT, Transform, PickKeys>, 'lazy'>): import("./asyncData").AsyncData<import("./asyncData").PickFrom<ReturnType<Transform>, PickKeys>>;
8
+ export declare function useFetch<ResT = void, ReqT extends string = string, _ResT = ResT extends void ? FetchResult<ReqT> : ResT, Transform extends (res: _ResT) => any = (res: _ResT) => _ResT, PickKeys extends KeyOfRes<Transform> = KeyOfRes<Transform>>(url: ReqT, opts?: UseFetchOptions<_ResT, Transform, PickKeys>): import("./asyncData").AsyncData<import("./asyncData").PickFrom<ReturnType<Transform>, PickKeys>>;
9
+ export declare function useLazyFetch<ResT = void, ReqT extends string = string, _ResT = ResT extends void ? FetchResult<ReqT> : ResT, Transform extends (res: _ResT) => any = (res: _ResT) => _ResT, PickKeys extends KeyOfRes<Transform> = KeyOfRes<Transform>>(url: ReqT, opts?: Omit<UseFetchOptions<_ResT, Transform, PickKeys>, 'lazy'>): import("./asyncData").AsyncData<import("./asyncData").PickFrom<ReturnType<Transform>, PickKeys>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-27417251.3fccbfa",
3
+ "version": "3.0.0-27417425.77aeaa3",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,10 +21,10 @@
21
21
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
22
22
  "@babel/plugin-proposal-optional-chaining": "^7.16.7",
23
23
  "@babel/plugin-transform-typescript": "^7.16.8",
24
- "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27417251.3fccbfa",
25
- "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27417251.3fccbfa",
24
+ "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27417425.77aeaa3",
25
+ "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27417425.77aeaa3",
26
26
  "@nuxt/postcss8": "^1.1.3",
27
- "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27417251.3fccbfa",
27
+ "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27417425.77aeaa3",
28
28
  "@vitejs/plugin-legacy": "^1.6.4",
29
29
  "@vue/composition-api": "^1.4.6",
30
30
  "@vueuse/head": "^0.7.5",
@@ -46,7 +46,7 @@
46
46
  "mlly": "^0.4.2",
47
47
  "murmurhash-es": "^0.1.1",
48
48
  "node-fetch": "^3.2.0",
49
- "nuxi": "npm:nuxi-edge@3.0.0-27417251.3fccbfa",
49
+ "nuxi": "npm:nuxi-edge@3.0.0-27417425.77aeaa3",
50
50
  "p-debounce": "^4.0.0",
51
51
  "pathe": "^0.2.0",
52
52
  "postcss": "^8",