@nuxt/bridge-edge 3.2.1-28604977.7fe72fb → 3.2.1-28609714.8d7c5f0
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.
|
@@ -7,7 +7,7 @@ import { genObjectFromRawEntries, genDynamicImport } from 'knitwork';
|
|
|
7
7
|
import fse from 'fs-extra';
|
|
8
8
|
import { debounce } from 'perfect-debounce';
|
|
9
9
|
import { isIgnored, logger } from '@nuxt/kit';
|
|
10
|
-
import { h as hashId, u as uniq, g as generateDevSSRManifest, i as isCSS } from '../shared/bridge-edge.
|
|
10
|
+
import { h as hashId, u as uniq, g as generateDevSSRManifest, i as isCSS } from '../shared/bridge-edge.bc242c82.mjs';
|
|
11
11
|
import { c as createIsExternal } from './vite.mjs';
|
|
12
12
|
import 'h3';
|
|
13
13
|
import 'node-fetch';
|
package/dist/chunks/module.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.2.1-
|
|
6
|
+
const version = "3.2.1-28609714.8d7c5f0";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
package/dist/chunks/vite.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { normalize, isAbsolute, resolve as resolve$1, join } from 'pathe';
|
|
|
2
2
|
import { logger, isIgnored } from '@nuxt/kit';
|
|
3
3
|
import { resolve, findExports, sanitizeFilePath } from 'mlly';
|
|
4
4
|
import { joinURL, withoutLeadingSlash, withTrailingSlash } from 'ufo';
|
|
5
|
-
import { t as transpile, d as distDir, i as isCSS, p as prepareManifests, a as pkgDir } from '../shared/bridge-edge.
|
|
5
|
+
import { t as transpile, d as distDir, i as isCSS, p as prepareManifests, a as pkgDir } from '../shared/bridge-edge.bc242c82.mjs';
|
|
6
6
|
import createVuePlugin from '@vitejs/plugin-vue2';
|
|
7
7
|
import { getPort } from 'get-port-please';
|
|
8
8
|
import { toNodeListener, createApp, defineEventHandler, defineLazyEventHandler, eventHandler, createError } from 'h3';
|
package/dist/module.mjs
CHANGED
|
@@ -56,8 +56,10 @@ export function useFetch(request, arg1, arg2) {
|
|
|
56
56
|
controller?.abort?.();
|
|
57
57
|
controller = typeof AbortController !== "undefined" ? new AbortController() : {};
|
|
58
58
|
const timeoutLength = toValue(opts.timeout);
|
|
59
|
+
let timeoutId;
|
|
59
60
|
if (timeoutLength) {
|
|
60
|
-
setTimeout(() => controller.abort(), timeoutLength);
|
|
61
|
+
timeoutId = setTimeout(() => controller.abort(), timeoutLength);
|
|
62
|
+
controller.signal.onabort = () => clearTimeout(timeoutId);
|
|
61
63
|
}
|
|
62
64
|
let _$fetch = opts.$fetch || globalThis.$fetch;
|
|
63
65
|
if (process.server && !opts.$fetch) {
|
|
@@ -66,7 +68,9 @@ export function useFetch(request, arg1, arg2) {
|
|
|
66
68
|
_$fetch = useRequestFetch();
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
|
-
return _$fetch(_request.value, { signal: controller.signal, ..._fetchOptions })
|
|
71
|
+
return _$fetch(_request.value, { signal: controller.signal, ..._fetchOptions }).finally(() => {
|
|
72
|
+
clearTimeout(timeoutId);
|
|
73
|
+
});
|
|
70
74
|
}, _asyncDataOptions);
|
|
71
75
|
return asyncData;
|
|
72
76
|
}
|
|
@@ -1791,6 +1791,9 @@ const PageMetaPlugin = createUnplugin(
|
|
|
1791
1791
|
s.overwrite(node.start, node.end, "");
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
|
+
if (!contents) {
|
|
1795
|
+
return;
|
|
1796
|
+
}
|
|
1794
1797
|
s.prependLeft(exportDeclaration.start, contents);
|
|
1795
1798
|
if (code.includes("__nuxt_page_meta")) {
|
|
1796
1799
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.2.1-
|
|
3
|
+
"version": "3.2.1-28609714.8d7c5f0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/bridge.git"
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
23
23
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
24
24
|
"@babel/plugin-transform-typescript": "^7.24.5",
|
|
25
|
-
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.2.1-
|
|
25
|
+
"@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.2.1-28609714.8d7c5f0",
|
|
26
26
|
"@nuxt/devalue": "^2.0.2",
|
|
27
27
|
"@nuxt/kit": "3.11.2",
|
|
28
28
|
"@nuxt/postcss8": "^1.1.3",
|
|
29
29
|
"@nuxt/schema": "3.11.2",
|
|
30
|
-
"@nuxt/ui-templates": "^1.3.
|
|
30
|
+
"@nuxt/ui-templates": "^1.3.4",
|
|
31
31
|
"@rollup/plugin-replace": "^5.0.5",
|
|
32
32
|
"@unhead/ssr": "^1.9.10",
|
|
33
33
|
"@unhead/vue": "^1.9.10",
|