@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/middleware.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c_ as MiddlewareChain, d3 as RateLimitStorage, d4 as RateLimitStatus, d5 as MemoryRateLimitStorageOptions, cV as MiddlewareContext, a9 as FarmMiddlewareConfig, cW as MiddlewareFunction, dn as MiddlewareConfig, M as MiddlewareProps } from './client-plugins-
|
|
2
|
-
export { c$ as CookieJar, d0 as CookieOptions, d7 as MiddlewareResult, cZ as MiddlewareStore, d6 as NextFunction, d1 as RateLimitConfig, d2 as RateLimitIncrementResult, a8 as ReadonlyMiddlewareStore, cX as RequestMiddleware, cY as RequestMiddlewareContext } from './client-plugins-
|
|
1
|
+
import { c_ as MiddlewareChain, d3 as RateLimitStorage, d4 as RateLimitStatus, d5 as MemoryRateLimitStorageOptions, cV as MiddlewareContext, a9 as FarmMiddlewareConfig, cW as MiddlewareFunction, dn as MiddlewareConfig, M as MiddlewareProps } from './client-plugins-D1wDIJjS.mjs';
|
|
2
|
+
export { c$ as CookieJar, d0 as CookieOptions, d7 as MiddlewareResult, cZ as MiddlewareStore, d6 as NextFunction, d1 as RateLimitConfig, d2 as RateLimitIncrementResult, a8 as ReadonlyMiddlewareStore, cX as RequestMiddleware, cY as RequestMiddlewareContext } from './client-plugins-D1wDIJjS.mjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { R as ResolvedFarmI18nConfig } from './types-mP6R6CzS.mjs';
|
|
6
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue } from './production-runtime-
|
|
6
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue } from './production-runtime-8nfBJO3d.mjs';
|
|
7
7
|
import './lifecycle-CgO0tX2y.mjs';
|
|
8
8
|
import './renderer.mjs';
|
|
9
9
|
import './types-D1A6-XvH.mjs';
|
|
@@ -18,7 +18,7 @@ import '@farming-labs/docs';
|
|
|
18
18
|
import './markdown.mjs';
|
|
19
19
|
import './observability.mjs';
|
|
20
20
|
import '@opentelemetry/api';
|
|
21
|
-
import './workflows-
|
|
21
|
+
import './workflows-CkDu_SeN.mjs';
|
|
22
22
|
import './cron.mjs';
|
|
23
23
|
import './server-action-security.mjs';
|
|
24
24
|
import './server-fn-error-DDh14a0V.mjs';
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c_ as MiddlewareChain, d3 as RateLimitStorage, d4 as RateLimitStatus, d5 as MemoryRateLimitStorageOptions, cV as MiddlewareContext, a9 as FarmMiddlewareConfig, cW as MiddlewareFunction, dn as MiddlewareConfig, M as MiddlewareProps } from './client-plugins-
|
|
2
|
-
export { c$ as CookieJar, d0 as CookieOptions, d7 as MiddlewareResult, cZ as MiddlewareStore, d6 as NextFunction, d1 as RateLimitConfig, d2 as RateLimitIncrementResult, a8 as ReadonlyMiddlewareStore, cX as RequestMiddleware, cY as RequestMiddlewareContext } from './client-plugins-
|
|
1
|
+
import { c_ as MiddlewareChain, d3 as RateLimitStorage, d4 as RateLimitStatus, d5 as MemoryRateLimitStorageOptions, cV as MiddlewareContext, a9 as FarmMiddlewareConfig, cW as MiddlewareFunction, dn as MiddlewareConfig, M as MiddlewareProps } from './client-plugins-DvLyPAe2.js';
|
|
2
|
+
export { c$ as CookieJar, d0 as CookieOptions, d7 as MiddlewareResult, cZ as MiddlewareStore, d6 as NextFunction, d1 as RateLimitConfig, d2 as RateLimitIncrementResult, a8 as ReadonlyMiddlewareStore, cX as RequestMiddleware, cY as RequestMiddlewareContext } from './client-plugins-DvLyPAe2.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { R as ResolvedFarmI18nConfig } from './types-mP6R6CzS.js';
|
|
6
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue } from './production-runtime-
|
|
6
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue } from './production-runtime-BqDGTzlt.js';
|
|
7
7
|
import './lifecycle-CgO0tX2y.js';
|
|
8
8
|
import './renderer.js';
|
|
9
9
|
import './types-D1A6-XvH.js';
|
|
@@ -18,7 +18,7 @@ import '@farming-labs/docs';
|
|
|
18
18
|
import './markdown.js';
|
|
19
19
|
import './observability.js';
|
|
20
20
|
import '@opentelemetry/api';
|
|
21
|
-
import './workflows-
|
|
21
|
+
import './workflows-CkDu_SeN.js';
|
|
22
22
|
import './cron.js';
|
|
23
23
|
import './server-action-security.js';
|
|
24
24
|
import './server-fn-error-DDh14a0V.js';
|
package/dist/middleware.mjs
CHANGED
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
memoryRateLimitStorage,
|
|
8
8
|
middleware,
|
|
9
9
|
unwrapMiddleware
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VSDJ4EX2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
applyProductionMiddlewareHeaders,
|
|
13
13
|
createProductionMiddlewareRunner
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5TLXU6MG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
MiddlewareManager,
|
|
17
17
|
createContext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S35F2MY7.mjs";
|
|
19
19
|
import {
|
|
20
20
|
_runWithMiddlewareContext,
|
|
21
21
|
_runWithMiddlewareData,
|
package/dist/plugin.cjs
CHANGED
|
@@ -5501,6 +5501,7 @@ async function runIntegrationRouteAfterHooks(route, request, context2, response)
|
|
|
5501
5501
|
function createQueryInput(searchParams) {
|
|
5502
5502
|
const input = {};
|
|
5503
5503
|
searchParams.forEach((value, key) => {
|
|
5504
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
5504
5505
|
const existing = input[key];
|
|
5505
5506
|
if (existing === void 0) {
|
|
5506
5507
|
input[key] = value;
|
|
@@ -5513,6 +5514,7 @@ function createQueryInput(searchParams) {
|
|
|
5513
5514
|
function createFormInput(formData) {
|
|
5514
5515
|
const input = {};
|
|
5515
5516
|
formData.forEach((value, key) => {
|
|
5517
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
5516
5518
|
const existing = input[key];
|
|
5517
5519
|
if (existing === void 0) {
|
|
5518
5520
|
input[key] = value;
|
|
@@ -19188,7 +19190,7 @@ _setFarmThemeServerSnapshotResolver(() => {
|
|
|
19188
19190
|
});
|
|
19189
19191
|
|
|
19190
19192
|
// package.json
|
|
19191
|
-
var version = "0.1.0-beta.
|
|
19193
|
+
var version = "0.1.0-beta.65";
|
|
19192
19194
|
|
|
19193
19195
|
// src/version.ts
|
|
19194
19196
|
var FARM_VERSION = version;
|
|
@@ -22357,7 +22359,7 @@ function parseCookies(cookieHeader) {
|
|
|
22357
22359
|
__name(parseCookies, "parseCookies");
|
|
22358
22360
|
function serializeCookie(name2, value, options = {}) {
|
|
22359
22361
|
let cookie = `${encodeURIComponent(name2)}=${encodeURIComponent(value)}`;
|
|
22360
|
-
if (options.maxAge) {
|
|
22362
|
+
if (options.maxAge != null) {
|
|
22361
22363
|
cookie += `; Max-Age=${options.maxAge}`;
|
|
22362
22364
|
}
|
|
22363
22365
|
if (options.expires) {
|
|
@@ -22420,13 +22422,6 @@ function createContext(req, res, viteServer, parent) {
|
|
|
22420
22422
|
const data = parent?.data ? new Map(parent.data) : /* @__PURE__ */ new Map();
|
|
22421
22423
|
const locals = parent?.locals ? new Map(parent.locals) : /* @__PURE__ */ new Map();
|
|
22422
22424
|
const cookies = new CookieJarImpl(req, res);
|
|
22423
|
-
Object.entries(req.headers).forEach(([key, value]) => {
|
|
22424
|
-
if (typeof value === "string") {
|
|
22425
|
-
headers.set(key, value);
|
|
22426
|
-
} else if (Array.isArray(value)) {
|
|
22427
|
-
headers.set(key, value.join(", "));
|
|
22428
|
-
}
|
|
22429
|
-
});
|
|
22430
22425
|
if (parent?.headers) {
|
|
22431
22426
|
for (const [key, value] of Object.entries(parent.headers)) {
|
|
22432
22427
|
headers.set(key, value);
|