@farm.js/core 0.1.15 → 0.1.17
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/agent-runtime.d.mts +5 -2
- package/dist/agent-runtime.d.ts +5 -2
- package/dist/api/client.cjs +62 -28
- package/dist/api/client.d.mts +3 -2
- package/dist/api/client.d.ts +3 -2
- package/dist/api/client.mjs +3 -3
- package/dist/api/route-manager.cjs +69 -32
- package/dist/api/route-manager.d.mts +5 -2
- package/dist/api/route-manager.d.ts +5 -2
- package/dist/api/route-manager.mjs +5 -5
- package/dist/api/runtime.cjs +65 -29
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +6 -3
- package/dist/{api-client-C8d7BZNp.d.mts → api-client-Cx54IR5g.d.mts} +2 -1
- package/dist/{api-client-BWrEbxfO.d.ts → api-client-DykpaKcY.d.ts} +2 -1
- package/dist/api.cjs +106 -33
- package/dist/api.d.mts +7 -4
- package/dist/api.d.ts +7 -4
- package/dist/api.mjs +8 -8
- package/dist/{app-wIYse61b.d.ts → app-BHY_10Lm.d.ts} +3 -3
- package/dist/{app-B3nVSjen.d.mts → app-BMk0do23.d.mts} +3 -3
- package/dist/app-markdown.d.mts +6 -3
- package/dist/app-markdown.d.ts +6 -3
- package/dist/app-markdown.mjs +3 -3
- package/dist/cache.cjs +62 -28
- package/dist/cache.d.mts +11 -1
- package/dist/cache.d.ts +11 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-FOGLGRDS.mjs → chunk-4OOBRCJX.mjs} +122 -8
- package/dist/{chunk-JRF3C33L.mjs → chunk-56DAX2BE.mjs} +172 -53
- package/dist/{chunk-B76DT5Y6.mjs → chunk-57J3Y7Y3.mjs} +1 -1
- package/dist/{chunk-MOQNHLTS.mjs → chunk-5QOEPUYE.mjs} +5 -2
- package/dist/{chunk-HKLRP3BN.mjs → chunk-5SPPCN5J.mjs} +1 -1
- package/dist/{chunk-LUC2FAGW.mjs → chunk-6VQIKZZO.mjs} +1 -1
- package/dist/{chunk-7ZWL7XOU.mjs → chunk-76DG3LF3.mjs} +1 -1
- package/dist/{chunk-EWDK36MM.mjs → chunk-A72YEUZ3.mjs} +1 -1
- package/dist/{chunk-ZHOIQC6U.mjs → chunk-ATERBVHQ.mjs} +2 -2
- package/dist/{chunk-27JNCYEK.mjs → chunk-EN7WTEAY.mjs} +2 -2
- package/dist/{chunk-IGO2HEV7.mjs → chunk-F6SJAKFJ.mjs} +62 -28
- package/dist/{chunk-GSDIZACQ.mjs → chunk-FG5H2VCJ.mjs} +2 -2
- package/dist/{chunk-LZK5CXDW.mjs → chunk-KLSSO6YD.mjs} +2 -2
- package/dist/{chunk-KUO3GBPK.mjs → chunk-L6V3P73N.mjs} +1 -1
- package/dist/{chunk-FBHGHMOA.mjs → chunk-MVIWBEJF.mjs} +37 -27
- package/dist/{chunk-KTGFMHET.mjs → chunk-N6UROPT7.mjs} +1 -1
- package/dist/{chunk-NDD2YVGU.mjs → chunk-NRVGEI5I.mjs} +10 -3
- package/dist/{chunk-GNTPTTLA.mjs → chunk-QGVJVSNX.mjs} +5 -5
- package/dist/{chunk-6SCB2MXB.mjs → chunk-SXHV42UQ.mjs} +16 -1
- package/dist/{chunk-OWTIOHON.mjs → chunk-SYGGPS4A.mjs} +2 -2
- package/dist/{chunk-NC333MFA.mjs → chunk-TSWW5BVH.mjs} +7 -4
- package/dist/{chunk-LK6FGAQR.mjs → chunk-UDBJCUPA.mjs} +7 -4
- package/dist/{chunk-NJ47VORC.mjs → chunk-UTBVHYS3.mjs} +2 -2
- package/dist/{chunk-76MNRHTS.mjs → chunk-UUYF3CHN.mjs} +2 -2
- package/dist/{chunk-S3QW3BIS.mjs → chunk-WD4YXVLV.mjs} +99 -6
- package/dist/{chunk-W7IVHTOP.mjs → chunk-WD5PNSOB.mjs} +16 -3
- package/dist/{chunk-DPZUDPVJ.mjs → chunk-XP777LRD.mjs} +1 -1
- package/dist/{chunk-KATQ6I56.mjs → chunk-XWAYMDLB.mjs} +1 -1
- package/dist/{chunk-UE75PB52.mjs → chunk-YD4J4XCI.mjs} +1 -1
- package/dist/{chunk-Q3MDL7TM.mjs → chunk-ZCNJKLA2.mjs} +30 -11
- package/dist/{client-plugins-CslwYp3E.d.ts → client-plugins-C089bQhN.d.ts} +16 -4
- package/dist/{client-plugins-C1EgdoJM.d.mts → client-plugins-JXXmZliS.d.mts} +16 -4
- package/dist/client-plugins.d.mts +5 -2
- package/dist/client-plugins.d.ts +5 -2
- package/dist/client.cjs +62 -28
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/client.mjs +6 -6
- package/dist/config.d.mts +5 -2
- package/dist/config.d.ts +5 -2
- package/dist/cron.mjs +2 -2
- package/dist/{devtools-PCGEBRSC.mjs → devtools-UFVTMQX5.mjs} +7 -7
- package/dist/docs.cjs +83 -4
- package/dist/docs.mjs +9 -9
- package/dist/{route-CHBaW55F.d.ts → endpoint-1zA994xL.d.ts} +3 -128
- package/dist/{route-C6UClI1z.d.mts → endpoint-DAc96i93.d.mts} +3 -128
- package/dist/env.cjs +135 -8
- package/dist/env.d.mts +22 -2
- package/dist/env.d.ts +22 -2
- package/dist/env.mjs +4 -1
- package/dist/index.cjs +516 -105
- package/dist/index.d.mts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.mjs +46 -34
- package/dist/integrations.d.mts +5 -2
- package/dist/integrations.d.ts +5 -2
- package/dist/internal/app-markdown-runtime.d.mts +5 -2
- package/dist/internal/app-markdown-runtime.d.ts +5 -2
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +600 -284
- package/dist/internal/build-runtime.d.mts +7 -4
- package/dist/internal/build-runtime.d.ts +7 -4
- package/dist/internal/build-runtime.mjs +23 -23
- package/dist/internal/cli-runtime.cjs +143 -33
- package/dist/internal/cli-runtime.mjs +13 -13
- package/dist/internal/client-error-overlay.cjs +1 -1
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +5 -2
- package/dist/internal/compression-runtime.d.ts +5 -2
- package/dist/internal/config-runtime.cjs +80 -4
- package/dist/internal/config-runtime.d.mts +6 -3
- package/dist/internal/config-runtime.d.ts +6 -3
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/product-telemetry-runtime.cjs +1 -1
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +101 -41
- package/dist/internal/production-runtime.d.mts +11 -8
- package/dist/internal/production-runtime.d.ts +11 -8
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/markdown.cjs +16 -1
- package/dist/markdown.mjs +1 -1
- package/dist/{metadata-BsUcOEXg.d.ts → metadata-BcNJP4fq.d.ts} +1 -1
- package/dist/{metadata-B1bxCPUY.d.mts → metadata-C1Z9vLbb.d.mts} +1 -1
- package/dist/middleware.cjs +10 -3
- package/dist/middleware.d.mts +7 -4
- package/dist/middleware.d.ts +7 -4
- package/dist/middleware.mjs +4 -4
- package/dist/{nitro-ICBP5APY.mjs → nitro-CVZ36JM5.mjs} +8 -5
- package/dist/plugin.cjs +358 -106
- package/dist/plugin.d.mts +5 -2
- package/dist/plugin.d.ts +5 -2
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime-BDllolVh.d.mts → production-runtime-jcrTlRTb.d.mts} +1 -1
- package/dist/{production-runtime-CsNn2-zx.d.ts → production-runtime-oKmC0WU-.d.ts} +1 -1
- package/dist/{render-plan-CNUlzylR.d.mts → render-plan-BLIfc4jt.d.mts} +1 -1
- package/dist/{render-plan-EG4hNFjy.d.ts → render-plan-DOB9cV-h.d.ts} +1 -1
- package/dist/renderer-client.cjs +62 -28
- package/dist/renderer-client.d.mts +5 -4
- package/dist/renderer-client.d.ts +5 -4
- package/dist/renderer-client.mjs +3 -3
- package/dist/{request-Blh_f7Z3.d.mts → request-Cr53NRHr.d.mts} +1 -1
- package/dist/{request-DsVSQVfD.d.ts → request-Dt2gNuQD.d.ts} +1 -1
- package/dist/request.d.mts +6 -3
- package/dist/request.d.ts +6 -3
- package/dist/route-B0XrsrFk.d.mts +128 -0
- package/dist/route-DOEpbyWZ.d.ts +128 -0
- package/dist/{route-rendering-hUETRCbM.d.ts → route-rendering-CWYd8Mv1.d.ts} +1 -1
- package/dist/{route-rendering-LT4XSoQK.d.mts → route-rendering-CeFBEAoZ.d.mts} +1 -1
- package/dist/routes.cjs +68 -31
- package/dist/routes.d.mts +5 -3
- package/dist/routes.d.ts +5 -3
- package/dist/routes.mjs +2 -2
- package/dist/server-fn-client.d.mts +3 -2
- package/dist/server-fn-client.d.ts +3 -2
- package/dist/server-fn.cjs +212 -32
- package/dist/server-fn.d.mts +72 -1
- package/dist/server-fn.d.ts +72 -1
- package/dist/server-fn.mjs +13 -2
- package/dist/server-plugins.d.mts +6 -3
- package/dist/server-plugins.d.ts +6 -3
- package/dist/server-query-client.cjs +62 -28
- package/dist/server-query-client.d.mts +1 -0
- package/dist/server-query-client.d.ts +1 -0
- package/dist/server-query-client.mjs +4 -4
- package/dist/server-query.cjs +131 -32
- package/dist/server-query.d.mts +6 -1
- package/dist/server-query.d.ts +6 -1
- package/dist/server-query.mjs +4 -3
- package/dist/server.cjs +393 -84
- package/dist/server.d.mts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.mjs +22 -22
- package/dist/{spa-router-csKR9Ebj.d.mts → spa-router-CQWiYGxS.d.mts} +2 -2
- package/dist/{spa-router-Y_2FSJQK.d.ts → spa-router-Wjiw-8hB.d.ts} +2 -2
- package/dist/testing.cjs +73 -32
- package/dist/testing.d.mts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/testing.mjs +11 -7
- package/dist/{utils-jISOE9SD.d.ts → utils-B0XJmG_b.d.ts} +1 -1
- package/dist/{utils-DR2wfZAn.d.mts → utils-uUxF0K0P.d.mts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +500 -252
- package/dist/vite.d.mts +5 -2
- package/dist/vite.d.ts +5 -2
- package/dist/vite.mjs +19 -19
- package/dist/workflows.mjs +2 -2
- package/package.json +2 -2
- package/dist/{chunk-VO5SCWF5.mjs → chunk-BNGS6KJ6.mjs} +0 -0
- package/dist/{chunk-MUUZJLCI.mjs → chunk-EGJDUF4Q.mjs} +3 -3
- package/dist/{chunk-4L7SZOHZ.mjs → chunk-YHOCRI4H.mjs} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyProductionMiddlewareHeaders,
|
|
3
3
|
createProductionMiddlewareRunner
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-N6UROPT7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createFarmInstrumentationLifecycle,
|
|
7
7
|
resolveFarmInstrumentationRuntime
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getDefaultErrorStatusText,
|
|
23
23
|
renderFarmLocaleAlternateLinks,
|
|
24
24
|
resolveDefaultErrorStatus
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-76DG3LF3.mjs";
|
|
26
26
|
import {
|
|
27
27
|
mergeRouteRenderingDirectiveConfig
|
|
28
28
|
} from "../chunk-DAO7JGTS.mjs";
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
renderFarmLlmsFullTxt,
|
|
48
48
|
reportFarmPreloadWarnings,
|
|
49
49
|
resolveFarmSecurityConfig
|
|
50
|
-
} from "../chunk-
|
|
51
|
-
import "../chunk-
|
|
50
|
+
} from "../chunk-ZCNJKLA2.mjs";
|
|
51
|
+
import "../chunk-SXHV42UQ.mjs";
|
|
52
52
|
import {
|
|
53
53
|
farmSecretsMatch
|
|
54
54
|
} from "../chunk-2UC36WAC.mjs";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
import {
|
|
61
61
|
_runWithMiddlewareContext,
|
|
62
62
|
_runWithMiddlewareData
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-NRVGEI5I.mjs";
|
|
64
64
|
import "../chunk-5TISYEQF.mjs";
|
|
65
65
|
import {
|
|
66
66
|
_runWithAPIRequestRuntime
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
createFarmCacheKey,
|
|
113
113
|
getFarmDataCache,
|
|
114
114
|
normalizeRevalidatePath
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-F6SJAKFJ.mjs";
|
|
116
116
|
import "../chunk-4SIYUGRY.mjs";
|
|
117
117
|
import "../chunk-C4NCTZLM.mjs";
|
|
118
118
|
import {
|
package/dist/markdown.cjs
CHANGED
|
@@ -139,8 +139,16 @@ async function createMarkdownMirrorResponse(options) {
|
|
|
139
139
|
if (!hasMarkdownExtension) {
|
|
140
140
|
headersOut.set("Vary", "Accept");
|
|
141
141
|
}
|
|
142
|
+
for (const token of pageResponse.headers.get("vary")?.split(",") ?? []) {
|
|
143
|
+
const name = token.trim();
|
|
144
|
+
if (name && name.toLowerCase() !== "accept") appendHeaderToken(headersOut, "Vary", name);
|
|
145
|
+
}
|
|
146
|
+
const pageCacheControl = pageResponse.headers.get("cache-control");
|
|
142
147
|
const cache = target.route?.cache ?? options.config?.cache ?? false;
|
|
143
|
-
headersOut.set(
|
|
148
|
+
headersOut.set(
|
|
149
|
+
"Cache-Control",
|
|
150
|
+
pageCacheControl && isPrivateCacheControl(pageCacheControl) ? pageCacheControl : createMarkdownCacheHeader(cache)
|
|
151
|
+
);
|
|
144
152
|
return new Response(options.request.method === "HEAD" ? null : markdown, {
|
|
145
153
|
status: pageResponse.status,
|
|
146
154
|
headers: headersOut
|
|
@@ -370,6 +378,13 @@ function isHtmlResponse(response) {
|
|
|
370
378
|
return contentType.includes("text/html");
|
|
371
379
|
}
|
|
372
380
|
__name(isHtmlResponse, "isHtmlResponse");
|
|
381
|
+
function isPrivateCacheControl(value) {
|
|
382
|
+
return value.split(",").some((directive) => {
|
|
383
|
+
const name = directive.split("=", 1)[0].trim().toLowerCase();
|
|
384
|
+
return name === "private" || name === "no-store";
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
__name(isPrivateCacheControl, "isPrivateCacheControl");
|
|
373
388
|
function createMarkdownCacheHeader(cache) {
|
|
374
389
|
if (cache === false || cache <= 0) {
|
|
375
390
|
return "no-store";
|
package/dist/markdown.mjs
CHANGED
package/dist/middleware.cjs
CHANGED
|
@@ -1611,7 +1611,7 @@ function parseColonParam(segment) {
|
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
1613
|
__name(parseColonParam, "parseColonParam");
|
|
1614
|
-
function compilePathPattern(pattern) {
|
|
1614
|
+
function compilePathPattern(pattern, trailingSlash = false) {
|
|
1615
1615
|
const params = [];
|
|
1616
1616
|
const segments = pattern.split("/").filter(Boolean);
|
|
1617
1617
|
if (segments.length === 0) {
|
|
@@ -1647,11 +1647,18 @@ function compilePathPattern(pattern) {
|
|
|
1647
1647
|
});
|
|
1648
1648
|
return {
|
|
1649
1649
|
kind: "path",
|
|
1650
|
-
regex: new RegExp(`^${parts.join("")}$`),
|
|
1650
|
+
regex: new RegExp(`^${parts.join("")}${trailingSlash ? "/?" : ""}$`),
|
|
1651
1651
|
params
|
|
1652
1652
|
};
|
|
1653
1653
|
}
|
|
1654
1654
|
__name(compilePathPattern, "compilePathPattern");
|
|
1655
|
+
function compileMatcherPattern(pattern) {
|
|
1656
|
+
if (typeof pattern === "string" && pattern !== "*" && !pattern.endsWith("(.*)")) {
|
|
1657
|
+
return compilePathPattern(pattern, true);
|
|
1658
|
+
}
|
|
1659
|
+
return compilePattern(pattern);
|
|
1660
|
+
}
|
|
1661
|
+
__name(compileMatcherPattern, "compileMatcherPattern");
|
|
1655
1662
|
function compilePattern(pattern) {
|
|
1656
1663
|
if (pattern instanceof RegExp) {
|
|
1657
1664
|
return { kind: "regexp", regex: pattern };
|
|
@@ -1671,7 +1678,7 @@ __name(compilePattern, "compilePattern");
|
|
|
1671
1678
|
function compileMiddlewareConfig(config) {
|
|
1672
1679
|
const compiled = {
|
|
1673
1680
|
matcher: config.matcher ? toMatcherList(config.matcher).map(
|
|
1674
|
-
(matcher) => typeof matcher === "function" ? matcher :
|
|
1681
|
+
(matcher) => typeof matcher === "function" ? matcher : compileMatcherPattern(matcher)
|
|
1675
1682
|
) : void 0,
|
|
1676
1683
|
exclude: config.exclude?.map(compilePattern)
|
|
1677
1684
|
};
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ep as MiddlewareChain, eu as RateLimitStorage, ev as RateLimitStatus, ew as MemoryRateLimitStorageOptions, an as MiddlewareContext, ak as FarmMiddlewareConfig, el as MiddlewareFunction, am as MiddlewareConfig, u as MiddlewareProps } from './client-plugins-JXXmZliS.mjs';
|
|
2
|
+
export { eq as CookieJar, er as CookieOptions, ey as MiddlewareResult, eo as MiddlewareStore, ex as NextFunction, es as RateLimitConfig, et as RateLimitIncrementResult, aj as ReadonlyMiddlewareStore, em as RequestMiddleware, en as RequestMiddlewareContext } from './client-plugins-JXXmZliS.mjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.mjs';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-jcrTlRTb.mjs';
|
|
8
8
|
import './lifecycle-DK06VuKP.mjs';
|
|
9
|
-
import './route-
|
|
9
|
+
import './route-B0XrsrFk.mjs';
|
|
10
|
+
import './endpoint-DAc96i93.mjs';
|
|
10
11
|
import './cache.mjs';
|
|
11
12
|
import './renderer.mjs';
|
|
12
13
|
import './deployment.mjs';
|
|
@@ -29,6 +30,8 @@ import './server-action-security.mjs';
|
|
|
29
30
|
import './server-fn-error-DDh14a0V.mjs';
|
|
30
31
|
import 'esbuild';
|
|
31
32
|
import './image-config-Duob7wER.mjs';
|
|
33
|
+
import './server-fn.mjs';
|
|
34
|
+
import './server-query.mjs';
|
|
32
35
|
import './types-DQnyD3VD.mjs';
|
|
33
36
|
import './font.mjs';
|
|
34
37
|
import './after.mjs';
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ep as MiddlewareChain, eu as RateLimitStorage, ev as RateLimitStatus, ew as MemoryRateLimitStorageOptions, an as MiddlewareContext, ak as FarmMiddlewareConfig, el as MiddlewareFunction, am as MiddlewareConfig, u as MiddlewareProps } from './client-plugins-C089bQhN.js';
|
|
2
|
+
export { eq as CookieJar, er as CookieOptions, ey as MiddlewareResult, eo as MiddlewareStore, ex as NextFunction, es as RateLimitConfig, et as RateLimitIncrementResult, aj as ReadonlyMiddlewareStore, em as RequestMiddleware, en as RequestMiddlewareContext } from './client-plugins-C089bQhN.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.js';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-oKmC0WU-.js';
|
|
8
8
|
import './lifecycle-DK06VuKP.js';
|
|
9
|
-
import './route-
|
|
9
|
+
import './route-DOEpbyWZ.js';
|
|
10
|
+
import './endpoint-1zA994xL.js';
|
|
10
11
|
import './cache.js';
|
|
11
12
|
import './renderer.js';
|
|
12
13
|
import './deployment.js';
|
|
@@ -29,6 +30,8 @@ import './server-action-security.js';
|
|
|
29
30
|
import './server-fn-error-DDh14a0V.js';
|
|
30
31
|
import 'esbuild';
|
|
31
32
|
import './image-config-Duob7wER.js';
|
|
33
|
+
import './server-fn.js';
|
|
34
|
+
import './server-query.js';
|
|
32
35
|
import './types-DQnyD3VD.js';
|
|
33
36
|
import './font.js';
|
|
34
37
|
import './after.js';
|
package/dist/middleware.mjs
CHANGED
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
memoryRateLimitStorage,
|
|
8
8
|
middleware,
|
|
9
9
|
unwrapMiddleware
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A72YEUZ3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
applyProductionMiddlewareHeaders,
|
|
13
13
|
createProductionMiddlewareRunner,
|
|
14
14
|
matchesMiddlewareConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6UROPT7.mjs";
|
|
16
16
|
import {
|
|
17
17
|
MiddlewareManager,
|
|
18
18
|
createContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-57J3Y7Y3.mjs";
|
|
20
20
|
import {
|
|
21
21
|
_runWithMiddlewareContext,
|
|
22
22
|
_runWithMiddlewareData,
|
|
23
23
|
getMiddlewareContext,
|
|
24
24
|
getMiddlewareData,
|
|
25
25
|
getMiddlewareValue
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NRVGEI5I.mjs";
|
|
27
27
|
import "./chunk-5TISYEQF.mjs";
|
|
28
28
|
import "./chunk-I2BHUNBU.mjs";
|
|
29
29
|
import "./chunk-7GNWGLWB.mjs";
|
|
@@ -5,12 +5,15 @@ import {
|
|
|
5
5
|
createFarmCronCloudflareConfig,
|
|
6
6
|
mergeScheduledTasks,
|
|
7
7
|
prepareFarmCronForNitro
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YHOCRI4H.mjs";
|
|
9
|
+
import {
|
|
10
|
+
createBundledEnv
|
|
11
|
+
} from "./chunk-4OOBRCJX.mjs";
|
|
9
12
|
import {
|
|
10
13
|
prepareFarmWorkflowsForNitro
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-ONUEYC6N.mjs";
|
|
14
|
+
} from "./chunk-EGJDUF4Q.mjs";
|
|
13
15
|
import "./chunk-2UC36WAC.mjs";
|
|
16
|
+
import "./chunk-ONUEYC6N.mjs";
|
|
14
17
|
import {
|
|
15
18
|
resolveFarmAPIServerBasePath
|
|
16
19
|
} from "./chunk-I6XDAKWQ.mjs";
|
|
@@ -76,7 +79,7 @@ export const farmRegistry: {
|
|
|
76
79
|
clientManifest?: any;
|
|
77
80
|
routePaths?: Record<string, string>;
|
|
78
81
|
} = {
|
|
79
|
-
env: ${JSON.stringify(config.env
|
|
82
|
+
env: ${JSON.stringify(createBundledEnv(config.env), null, 2)},
|
|
80
83
|
deploymentId: ${JSON.stringify(config.deploymentId)},
|
|
81
84
|
basePath: ${JSON.stringify(config.basePath)},
|
|
82
85
|
apiBasePath: ${JSON.stringify(apiBasePath)},
|
|
@@ -580,7 +583,7 @@ export default defineEventHandler(async (event: H3Event) => {
|
|
|
580
583
|
farmRegistry.apiRouteManager = apiRouteManager;
|
|
581
584
|
farmRegistry.routeManager = routeManager;
|
|
582
585
|
farmRegistry.serverRenderer = serverRenderer;
|
|
583
|
-
farmRegistry.env = config.env
|
|
586
|
+
farmRegistry.env = createBundledEnv(config.env);
|
|
584
587
|
farmRegistry.deploymentId = config.deploymentId;
|
|
585
588
|
farmRegistry.basePath = config.basePath;
|
|
586
589
|
};
|