@nuxt/bridge-edge 3.0.0-27468761.cd8dbdc → 3.0.0-27468803.23e7afb
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 +18 -9
- package/dist/chunks/module2.mjs +1 -1
- package/package.json +6 -6
package/dist/chunks/module.mjs
CHANGED
|
@@ -873,7 +873,7 @@ const autoImports = defineNuxtModule({
|
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
875
|
const ctx = createUnimport({
|
|
876
|
-
presets:
|
|
876
|
+
presets: options.presets,
|
|
877
877
|
imports: options.imports
|
|
878
878
|
});
|
|
879
879
|
let composablesDirs = [];
|
|
@@ -962,19 +962,28 @@ const CapiHelpers = new Set(Object.keys(CompositionApi));
|
|
|
962
962
|
function setupAutoImports() {
|
|
963
963
|
const nuxt = useNuxt();
|
|
964
964
|
const bridgePresets = [
|
|
965
|
-
...commonPresets,
|
|
966
|
-
{
|
|
967
|
-
from: "#app",
|
|
968
|
-
imports: [
|
|
969
|
-
...appPreset.imports.filter((i) => !UnsupportedImports.has(i)),
|
|
970
|
-
"useNuxt2Meta"
|
|
971
|
-
]
|
|
972
|
-
},
|
|
973
965
|
{
|
|
974
966
|
from: "@vue/composition-api",
|
|
975
967
|
imports: vuePreset.imports.filter((i) => CapiHelpers.has(i))
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
from: "#app",
|
|
971
|
+
imports: ["useNuxt2Meta"]
|
|
976
972
|
}
|
|
977
973
|
];
|
|
974
|
+
nuxt.hook("autoImports:sources", (presets) => {
|
|
975
|
+
const vuePreset2 = presets.find((p) => p.from === "vue");
|
|
976
|
+
if (vuePreset2) {
|
|
977
|
+
vuePreset2.disabled = true;
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
nuxt.hook("autoImports:extend", (imports) => {
|
|
981
|
+
for (const i of imports) {
|
|
982
|
+
if (i.from === "#app" && UnsupportedImports.has(i.name)) {
|
|
983
|
+
i.disabled = true;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
});
|
|
978
987
|
nuxt.hook("modules:done", () => installModule(autoImports, { presets: bridgePresets }));
|
|
979
988
|
}
|
|
980
989
|
|
package/dist/chunks/module2.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import hash from 'hash-sum';
|
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { genImport, genObjectFromRawEntries } from 'knitwork';
|
|
5
5
|
|
|
6
|
-
const version = "3.0.0-
|
|
6
|
+
const version = "3.0.0-27468803.23e7afb";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
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-27468803.23e7afb",
|
|
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-
|
|
25
|
-
"@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-
|
|
24
|
+
"@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27468803.23e7afb",
|
|
25
|
+
"@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27468803.23e7afb",
|
|
26
26
|
"@nuxt/postcss8": "^1.1.3",
|
|
27
|
-
"@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-
|
|
27
|
+
"@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27468803.23e7afb",
|
|
28
28
|
"@vitejs/plugin-legacy": "^1.7.1",
|
|
29
29
|
"@vue/composition-api": "^1.4.9",
|
|
30
30
|
"@vueuse/head": "^0.7.5",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"mlly": "^0.4.3",
|
|
46
46
|
"murmurhash-es": "^0.1.1",
|
|
47
47
|
"node-fetch": "^3.2.3",
|
|
48
|
-
"nuxi": "npm:nuxi-edge@3.0.0-
|
|
48
|
+
"nuxi": "npm:nuxi-edge@3.0.0-27468803.23e7afb",
|
|
49
49
|
"ohash": "^0.1.0",
|
|
50
50
|
"pathe": "^0.2.0",
|
|
51
51
|
"perfect-debounce": "^0.1.3",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"scule": "^0.2.1",
|
|
58
58
|
"semver": "^7.3.5",
|
|
59
59
|
"ufo": "^0.8.1",
|
|
60
|
-
"unimport": "^0.1.
|
|
60
|
+
"unimport": "^0.1.3",
|
|
61
61
|
"unplugin": "^0.6.0",
|
|
62
62
|
"unplugin-vue2-script-setup": "^0.10.0",
|
|
63
63
|
"untyped": "^0.4.3",
|