@farm.js/core 0.1.0-beta.63 → 0.1.0-beta.65
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.cjs +2 -0
- package/dist/agent-runtime.cjs.map +1 -1
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +1 -1
- package/dist/{app-CXD_2F0_.d.ts → app-BNcok8cp.d.ts} +4 -4
- package/dist/{app-CDOe7z8C.d.mts → app-J5WfOI54.d.mts} +4 -4
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/{chunk-72PXP3EO.mjs → chunk-2O67SLNB.mjs} +2 -2
- package/dist/{chunk-HSHHUDHL.mjs → chunk-4R7TBTJL.mjs} +2 -2
- package/dist/{chunk-6HUGGEFE.mjs → chunk-5TLXU6MG.mjs} +2 -2
- package/dist/chunk-5TLXU6MG.mjs.map +1 -0
- package/dist/{chunk-5CXJTH45.mjs → chunk-ECLBGYGZ.mjs} +2 -2
- package/dist/{chunk-2OF7I73I.mjs → chunk-H5D6FDSG.mjs} +6 -6
- package/dist/{chunk-CYEPGSVA.mjs → chunk-Q7ZTEADY.mjs} +2 -2
- package/dist/{chunk-CYEPGSVA.mjs.map → chunk-Q7ZTEADY.mjs.map} +1 -1
- package/dist/{chunk-TC6ECATF.mjs → chunk-R6UV2YLL.mjs} +5 -5
- package/dist/{chunk-PFMBMZP7.mjs → chunk-RUCTQDNI.mjs} +2 -2
- package/dist/{chunk-O7JLZXUV.mjs → chunk-S35F2MY7.mjs} +2 -9
- package/dist/chunk-S35F2MY7.mjs.map +1 -0
- package/dist/{chunk-R2R2SDVA.mjs → chunk-VQYZ6JT6.mjs} +2 -2
- package/dist/{chunk-R2R2SDVA.mjs.map → chunk-VQYZ6JT6.mjs.map} +1 -1
- package/dist/{chunk-SDCCR55N.mjs → chunk-VSDJ4EX2.mjs} +2 -2
- package/dist/{chunk-VEMZQ66A.mjs → chunk-YHYS4POL.mjs} +3 -1
- package/dist/{chunk-VEMZQ66A.mjs.map → chunk-YHYS4POL.mjs.map} +1 -1
- package/dist/client/lifecycle.mjs +2 -2
- package/dist/{client-plugins-CkZgBOOM.d.mts → client-plugins-D1wDIJjS.d.mts} +1 -1
- package/dist/{client-plugins-C-PSOtea.d.ts → client-plugins-DvLyPAe2.d.ts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/client-plugins.cjs.map +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client-plugins.mjs +2 -2
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-2FEBZ7RN.mjs → devtools-5BSQV6GL.mjs} +3 -3
- package/dist/docs.cjs +2 -0
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +3 -3
- package/dist/index.cjs +6 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +12 -12
- package/dist/integrations.cjs +2 -0
- package/dist/integrations.cjs.map +1 -1
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +1 -1
- package/dist/internal/build-runtime.cjs +4 -9
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +8 -8
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +2 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +3 -1
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +7 -7
- package/dist/internal/production-runtime.d.ts +7 -7
- package/dist/internal/production-runtime.mjs +3 -1
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/{metadata-route-DsGastBa.d.ts → metadata-route-BqEz7r1K.d.ts} +1 -1
- package/dist/{metadata-route-Cp4wPM4w.d.mts → metadata-route-DdVou1J2.d.mts} +1 -1
- package/dist/middleware.cjs +2 -9
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +3 -3
- package/dist/plugin.cjs +4 -9
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +2 -2
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.mjs +5 -5
- package/dist/{production-runtime-BZFqIn8J.d.mts → production-runtime-8nfBJO3d.d.mts} +2 -2
- package/dist/{production-runtime-DSqh4YXr.d.ts → production-runtime-BqDGTzlt.d.ts} +2 -2
- package/dist/{render-plan-fCFoTM4r.d.ts → render-plan-31JfM9Wy.d.ts} +1 -1
- package/dist/{render-plan-uBR98RLY.d.mts → render-plan-DpTGGrJg.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-B165X1nu.d.mts → request-BKx8aFMD.d.mts} +1 -1
- package/dist/{request-CLZ9Aa86.d.ts → request-CdPtgIYB.d.ts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-query.cjs +1 -1
- package/dist/server-query.cjs.map +1 -1
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +5 -10
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +8 -8
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +7 -7
- package/dist/{spa-router-EgElBa3J.d.mts → spa-router-BHufQUlC.d.mts} +1 -1
- package/dist/{spa-router-cdXv8ZrK.d.ts → spa-router-Cd233yg5.d.ts} +1 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/{utils-Cf5JwlaG.d.ts → utils-Csf77Qu9.d.ts} +1 -1
- package/dist/{utils-d_Dur6jw.d.mts → utils-PJft6eJm.d.mts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +4 -9
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.mjs +4 -4
- package/dist/{workflows-CusFV6mn.d.mts → workflows-CkDu_SeN.d.mts} +2 -1
- package/dist/{workflows-CusFV6mn.d.ts → workflows-CkDu_SeN.d.ts} +2 -1
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-6HUGGEFE.mjs.map +0 -1
- package/dist/chunk-O7JLZXUV.mjs.map +0 -1
- /package/dist/{chunk-72PXP3EO.mjs.map → chunk-2O67SLNB.mjs.map} +0 -0
- /package/dist/{chunk-HSHHUDHL.mjs.map → chunk-4R7TBTJL.mjs.map} +0 -0
- /package/dist/{chunk-5CXJTH45.mjs.map → chunk-ECLBGYGZ.mjs.map} +0 -0
- /package/dist/{chunk-2OF7I73I.mjs.map → chunk-H5D6FDSG.mjs.map} +0 -0
- /package/dist/{chunk-TC6ECATF.mjs.map → chunk-R6UV2YLL.mjs.map} +0 -0
- /package/dist/{chunk-PFMBMZP7.mjs.map → chunk-RUCTQDNI.mjs.map} +0 -0
- /package/dist/{chunk-SDCCR55N.mjs.map → chunk-VSDJ4EX2.mjs.map} +0 -0
- /package/dist/{devtools-2FEBZ7RN.mjs.map → devtools-5BSQV6GL.mjs.map} +0 -0
package/dist/docs.mjs
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
isFarmDocsRequest,
|
|
12
12
|
loadFarmDocsPage,
|
|
13
13
|
resolveFarmDocsContentDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4R7TBTJL.mjs";
|
|
15
15
|
import "./chunk-V7RBCSDJ.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-RUCTQDNI.mjs";
|
|
17
17
|
import "./chunk-UVCIEUJC.mjs";
|
|
18
18
|
import "./chunk-RQ633A5I.mjs";
|
|
19
19
|
import "./chunk-USLFXFFH.mjs";
|
|
@@ -31,7 +31,7 @@ import "./chunk-DD7QQZZO.mjs";
|
|
|
31
31
|
import "./chunk-RS5Z5M26.mjs";
|
|
32
32
|
import "./chunk-WORFTBLU.mjs";
|
|
33
33
|
import "./chunk-H53KVQUU.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YHYS4POL.mjs";
|
|
35
35
|
import "./chunk-35SSRS5K.mjs";
|
|
36
36
|
import "./chunk-FQYDHKKU.mjs";
|
|
37
37
|
import "./chunk-SXWF4QRU.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -2949,6 +2949,7 @@ async function runIntegrationRouteAfterHooks(route2, request, context2, response
|
|
|
2949
2949
|
function createQueryInput(searchParams) {
|
|
2950
2950
|
const input = {};
|
|
2951
2951
|
searchParams.forEach((value, key) => {
|
|
2952
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
2952
2953
|
const existing = input[key];
|
|
2953
2954
|
if (existing === void 0) {
|
|
2954
2955
|
input[key] = value;
|
|
@@ -2961,6 +2962,7 @@ function createQueryInput(searchParams) {
|
|
|
2961
2962
|
function createFormInput(formData) {
|
|
2962
2963
|
const input = {};
|
|
2963
2964
|
formData.forEach((value, key) => {
|
|
2965
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
2964
2966
|
const existing = input[key];
|
|
2965
2967
|
if (existing === void 0) {
|
|
2966
2968
|
input[key] = value;
|
|
@@ -15370,7 +15372,7 @@ var init_server3 = __esm({
|
|
|
15370
15372
|
var version;
|
|
15371
15373
|
var init_package = __esm({
|
|
15372
15374
|
"package.json"() {
|
|
15373
|
-
version = "0.1.0-beta.
|
|
15375
|
+
version = "0.1.0-beta.65";
|
|
15374
15376
|
}
|
|
15375
15377
|
});
|
|
15376
15378
|
|
|
@@ -19735,7 +19737,7 @@ function parseCookies(cookieHeader) {
|
|
|
19735
19737
|
}
|
|
19736
19738
|
function serializeCookie(name2, value, options = {}) {
|
|
19737
19739
|
let cookie = `${encodeURIComponent(name2)}=${encodeURIComponent(value)}`;
|
|
19738
|
-
if (options.maxAge) {
|
|
19740
|
+
if (options.maxAge != null) {
|
|
19739
19741
|
cookie += `; Max-Age=${options.maxAge}`;
|
|
19740
19742
|
}
|
|
19741
19743
|
if (options.expires) {
|
|
@@ -19766,13 +19768,6 @@ function createContext2(req, res, viteServer, parent) {
|
|
|
19766
19768
|
const data = parent?.data ? new Map(parent.data) : /* @__PURE__ */ new Map();
|
|
19767
19769
|
const locals = parent?.locals ? new Map(parent.locals) : /* @__PURE__ */ new Map();
|
|
19768
19770
|
const cookies2 = new CookieJarImpl(req, res);
|
|
19769
|
-
Object.entries(req.headers).forEach(([key, value]) => {
|
|
19770
|
-
if (typeof value === "string") {
|
|
19771
|
-
headers2.set(key, value);
|
|
19772
|
-
} else if (Array.isArray(value)) {
|
|
19773
|
-
headers2.set(key, value.join(", "));
|
|
19774
|
-
}
|
|
19775
|
-
});
|
|
19776
19771
|
if (parent?.headers) {
|
|
19777
19772
|
for (const [key, value] of Object.entries(parent.headers)) {
|
|
19778
19773
|
headers2.set(key, value);
|
|
@@ -37691,7 +37686,7 @@ function parseCookies2(cookieHeader) {
|
|
|
37691
37686
|
__name(parseCookies2, "parseCookies");
|
|
37692
37687
|
function serializeCookie2(name2, value, options = {}) {
|
|
37693
37688
|
let cookie = `${encodeURIComponent(name2)}=${encodeURIComponent(value)}`;
|
|
37694
|
-
if (options.maxAge) cookie += `; Max-Age=${options.maxAge}`;
|
|
37689
|
+
if (options.maxAge != null) cookie += `; Max-Age=${options.maxAge}`;
|
|
37695
37690
|
if (options.expires) cookie += `; Expires=${options.expires.toUTCString()}`;
|
|
37696
37691
|
cookie += `; Path=${options.path || "/"}`;
|
|
37697
37692
|
if (options.domain) cookie += `; Domain=${options.domain}`;
|
|
@@ -39196,7 +39191,7 @@ function createServerQuery(options) {
|
|
|
39196
39191
|
const cache = getFarmDataCache();
|
|
39197
39192
|
data = await cache.getOrSet(cacheKey, producer, {
|
|
39198
39193
|
tags: [createRouteDataCacheTag(routeKey)],
|
|
39199
|
-
revalidate: staleTime === false ? false :
|
|
39194
|
+
revalidate: staleTime === false ? false : staleTime / 1e3
|
|
39200
39195
|
});
|
|
39201
39196
|
updatedAt = (await cache.getEntryAsync(cacheKey, { allowStale: true }))?.createdAt ?? Date.now();
|
|
39202
39197
|
}
|