@nuxt/bridge-edge 3.0.0-27488862.f0714d7 → 3.0.0-27488954.9fbb9be
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/chunks/module.mjs +12 -15
- package/dist/chunks/module2.mjs +1 -1
- package/dist/runtime/cookie.mjs +1 -0
- package/package.json +6 -6
package/dist/chunks/module.mjs
CHANGED
|
@@ -1097,28 +1097,25 @@ const UnsupportedImports = /* @__PURE__ */ new Set(["useAsyncData", "useFetch",
|
|
|
1097
1097
|
const CapiHelpers = new Set(Object.keys(CompositionApi));
|
|
1098
1098
|
function setupAutoImports() {
|
|
1099
1099
|
const nuxt = useNuxt();
|
|
1100
|
-
const bridgePresets = [
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
from: "#app",
|
|
1107
|
-
imports: ["useNuxt2Meta"]
|
|
1108
|
-
}
|
|
1109
|
-
];
|
|
1100
|
+
const bridgePresets = [{
|
|
1101
|
+
from: "@vue/composition-api",
|
|
1102
|
+
imports: vuePreset.imports.filter((i) => CapiHelpers.has(i))
|
|
1103
|
+
}];
|
|
1110
1104
|
nuxt.hook("autoImports:sources", (presets) => {
|
|
1111
1105
|
const vuePreset2 = presets.find((p) => p.from === "vue");
|
|
1112
1106
|
if (vuePreset2) {
|
|
1113
1107
|
vuePreset2.disabled = true;
|
|
1114
1108
|
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1109
|
+
const appPreset = presets.find((p) => p.from === "#app");
|
|
1110
|
+
if (!appPreset) {
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
for (const [index, i] of Object.entries(appPreset.imports).reverse()) {
|
|
1114
|
+
if (typeof i === "string" && UnsupportedImports.has(i)) {
|
|
1115
|
+
appPreset.imports.splice(Number(index), 1);
|
|
1120
1116
|
}
|
|
1121
1117
|
}
|
|
1118
|
+
appPreset.imports.push("useNuxt2Meta");
|
|
1122
1119
|
});
|
|
1123
1120
|
nuxt.hook("modules:done", () => installModule(autoImports, { presets: bridgePresets }));
|
|
1124
1121
|
}
|
package/dist/chunks/module2.mjs
CHANGED
package/dist/runtime/cookie.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import destr from "destr";
|
|
|
5
5
|
import { useRequestEvent } from "./ssr.mjs";
|
|
6
6
|
import { useNuxtApp } from "#app";
|
|
7
7
|
const CookieDefaults = {
|
|
8
|
+
path: "/",
|
|
8
9
|
decode: (val) => destr(decodeURIComponent(val)),
|
|
9
10
|
encode: (val) => encodeURIComponent(typeof val === "string" ? val : JSON.stringify(val))
|
|
10
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-27488954.9fbb9be",
|
|
4
4
|
"repository": "nuxt/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,16 +21,16 @@
|
|
|
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-
|
|
24
|
+
"@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27488954.9fbb9be",
|
|
25
25
|
"@nuxt/postcss8": "^1.1.3",
|
|
26
|
-
"@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-
|
|
26
|
+
"@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27488954.9fbb9be",
|
|
27
27
|
"@vitejs/plugin-legacy": "^1.8.0",
|
|
28
28
|
"@vue/composition-api": "^1.4.9",
|
|
29
29
|
"@vueuse/head": "^0.7.5",
|
|
30
30
|
"acorn": "^8.7.0",
|
|
31
31
|
"cookie-es": "^0.5.0",
|
|
32
32
|
"defu": "^6.0.0",
|
|
33
|
-
"destr": "^1.1.
|
|
33
|
+
"destr": "^1.1.1",
|
|
34
34
|
"enhanced-resolve": "^5.9.2",
|
|
35
35
|
"escape-string-regexp": "^5.0.0",
|
|
36
36
|
"estree-walker": "^3.0.1",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"magic-string": "^0.26.1",
|
|
44
44
|
"mlly": "^0.5.1",
|
|
45
45
|
"murmurhash-es": "^0.1.1",
|
|
46
|
-
"nitropack": "^0.1.
|
|
46
|
+
"nitropack": "^0.1.2",
|
|
47
47
|
"node-fetch": "^3.2.3",
|
|
48
|
-
"nuxi": "npm:nuxi-edge@3.0.0-
|
|
48
|
+
"nuxi": "npm:nuxi-edge@3.0.0-27488954.9fbb9be",
|
|
49
49
|
"ohash": "^0.1.0",
|
|
50
50
|
"pathe": "^0.2.0",
|
|
51
51
|
"perfect-debounce": "^0.1.3",
|