@nuxt/bridge-edge 3.0.0-27276275.abfbd2f → 3.0.0-27282866.73f9cd2

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.
@@ -132,7 +132,6 @@ function setupNitroBridge() {
132
132
  }
133
133
  nuxt.options.build.loadingScreen = false;
134
134
  nuxt.options.build.indicator = false;
135
- nuxt.options.fetch.server = false;
136
135
  const nitroOptions = nuxt.options.nitro || {};
137
136
  const nitroContext = getNitroContext(nuxt.options, nitroOptions);
138
137
  const nitroDevContext = getNitroContext(nuxt.options, { ...nitroOptions, preset: "dev" });
@@ -293,6 +292,8 @@ function setupAppBridge(_options) {
293
292
  nuxt.options.alias["#build"] = nuxt.options.buildDir;
294
293
  nuxt.options.alias.vue2 = resolveModule("vue/dist/vue.runtime.esm.js", { paths: nuxt.options.modulesDir });
295
294
  nuxt.options.build.transpile.push("vue");
295
+ nuxt.options.fetch.server = false;
296
+ nuxt.options.fetch.client = false;
296
297
  nuxt.options.alias["vue2-bridge"] = resolve(distDir$1, "runtime/vue2-bridge.mjs");
297
298
  for (const alias of [
298
299
  "vue",
@@ -595,7 +596,6 @@ const Nuxt3AutoImports = [
595
596
  "defineEmits",
596
597
  "defineExpose",
597
598
  "defineProps",
598
- "withAsyncContext",
599
599
  "withCtx",
600
600
  "withDefaults",
601
601
  "withDirectives",
@@ -3,7 +3,7 @@ import { defineNuxtModule, addPluginTemplate } from '@nuxt/kit';
3
3
  import hash from 'hash-sum';
4
4
  import { resolve } from 'pathe';
5
5
 
6
- const version = "3.0.0-27276275.abfbd2f";
6
+ const version = "3.0.0-27282866.73f9cd2";
7
7
 
8
8
  const middlewareTemplate = {
9
9
  filename: "middleware.js",
@@ -581,7 +581,7 @@ function defaultExportPlugin() {
581
581
  if (hasPrefix(id)) {
582
582
  let code = await fse.readFile(removePrefix(id), "utf8");
583
583
  const exports = findExports(code);
584
- if (!exports.find((i) => i.type === "default" || i.name === "default")) {
584
+ if (!exports.find((i) => i.names.includes("default"))) {
585
585
  code = addDefaultExport(code);
586
586
  }
587
587
  return { map: null, code };
@@ -154,10 +154,10 @@ export const useContext = () => {
154
154
  const nuxt = useNuxtApp()
155
155
 
156
156
  return {
157
- ...nuxt.nuxt2App.context,
157
+ ...nuxt.nuxt2Context,
158
158
  route: computed(() => route),
159
159
  query: computed(() => route.value.query),
160
- from: computed(() => nuxt.nuxt2App.context.from),
160
+ from: computed(() => nuxt.nuxt2Context.from),
161
161
  params: computed(() => route.value.params)
162
162
  }
163
163
  }
@@ -154,10 +154,10 @@ export const useContext = () => {
154
154
  const nuxt = useNuxtApp()
155
155
 
156
156
  return {
157
- ...nuxt.nuxt2App.context,
157
+ ...nuxt.nuxt2Context,
158
158
  route: computed(() => route),
159
159
  query: computed(() => route.value.query),
160
- from: computed(() => nuxt.nuxt2App.context.from),
160
+ from: computed(() => nuxt.nuxt2Context.from),
161
161
  params: computed(() => route.value.params)
162
162
  }
163
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-27276275.abfbd2f",
3
+ "version": "3.0.0-27282866.73f9cd2",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@babel/plugin-transform-typescript": "^7.16.1",
22
- "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27276275.abfbd2f",
23
- "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27276275.abfbd2f",
22
+ "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27282866.73f9cd2",
23
+ "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27282866.73f9cd2",
24
24
  "@nuxt/postcss8": "^1.1.3",
25
25
  "@vitejs/plugin-legacy": "^1.6.2",
26
26
  "@vue/composition-api": "^1.3.3",
@@ -35,9 +35,9 @@
35
35
  "globby": "^11.0.4",
36
36
  "hash-sum": "^2.0.0",
37
37
  "magic-string": "^0.25.7",
38
- "mlly": "^0.3.12",
38
+ "mlly": "^0.3.13",
39
39
  "node-fetch": "^3.1.0",
40
- "nuxi": "npm:nuxi-edge@3.0.0-27276275.abfbd2f",
40
+ "nuxi": "npm:nuxi-edge@3.0.0-27282866.73f9cd2",
41
41
  "p-debounce": "^4.0.0",
42
42
  "pathe": "^0.2.0",
43
43
  "postcss": "^8",