@farm.js/core 0.1.0-beta.65 → 0.1.0-beta.67
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/api/route-manager.cjs +2 -1
- package/dist/api/route-manager.cjs.map +1 -1
- package/dist/api/route-manager.d.mts +6 -2
- package/dist/api/route-manager.d.ts +6 -2
- package/dist/api/route-manager.mjs +1 -1
- package/dist/api.cjs +2 -1
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.mjs +2 -2
- package/dist/{chunk-R6UV2YLL.mjs → chunk-335JWE6F.mjs} +4 -4
- package/dist/{chunk-R6UV2YLL.mjs.map → chunk-335JWE6F.mjs.map} +1 -1
- package/dist/{chunk-VQYZ6JT6.mjs → chunk-3PO3UK5B.mjs} +2 -2
- package/dist/{chunk-VQYZ6JT6.mjs.map → chunk-3PO3UK5B.mjs.map} +1 -1
- package/dist/{chunk-BYBYZSQ4.mjs → chunk-6HZ23B26.mjs} +2 -2
- package/dist/{chunk-ITSBK56Q.mjs → chunk-BDDLX64F.mjs} +3 -2
- package/dist/chunk-BDDLX64F.mjs.map +1 -0
- package/dist/{chunk-ECLBGYGZ.mjs → chunk-GAPAL2TO.mjs} +2 -2
- package/dist/{chunk-H5D6FDSG.mjs → chunk-HLMU3U7K.mjs} +3 -3
- package/dist/client/lifecycle.mjs +2 -2
- package/dist/client-plugins.cjs +1 -1
- package/dist/client-plugins.cjs.map +1 -1
- package/dist/client-plugins.mjs +2 -2
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -6
- package/dist/internal/build-runtime.cjs +4 -3
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +4 -4
- 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/plugin.cjs +4 -3
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +3 -3
- package/dist/server.cjs +4 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +3 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.mjs +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 -3
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-ITSBK56Q.mjs.map +0 -1
- /package/dist/{chunk-BYBYZSQ4.mjs.map → chunk-6HZ23B26.mjs.map} +0 -0
- /package/dist/{chunk-ECLBGYGZ.mjs.map → chunk-GAPAL2TO.mjs.map} +0 -0
- /package/dist/{chunk-H5D6FDSG.mjs.map → chunk-HLMU3U7K.mjs.map} +0 -0
package/dist/api.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as APIRouteMatch, c as APIRouteParamValue, b as APIRouteParams, s as AnyEndpointMiddleware, D as DELETE, f as EndpointErrorContracts, d as EndpointErrorDefinition, e as EndpointErrorDefinitions, g as EndpointErrorHandler, E as EndpointErrorSchema, h as EndpointFail, j as EndpointFailure, x as EndpointHandler, u as EndpointInvalidationContext, t as EndpointInvalidationTarget, v as EndpointInvalidations, r as EndpointMiddleware, p as EndpointMiddlewareContext, q as EndpointMiddlewareResult, w as EndpointOptions, l as EndpointParamValue, o as EndpointParams, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, O as OPTIONS, B as PATCH, P as POST, z as PUT, Q as QUERY, T as TypedEndpoint, y as createEndpoint, i as invokeAPIRouteEndpoint, k as isEndpointFailure, a as isWebResponse, m as matchAPIRoute, n as normalizeRouteResponse } from './runtime-CDDYfuNz.mjs';
|
|
2
|
-
export { APIRoute, APIRouteManager, APIRouteManagerOptions, API_ROUTE_METHODS } from './api/route-manager.mjs';
|
|
2
|
+
export { APIRoute, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions, API_ROUTE_METHODS } from './api/route-manager.mjs';
|
|
3
3
|
export { r as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, g as APIResult, A as APIRouteRefMetadata, C as CacheKey, l as CacheOptions, k as CachePolicy, p as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, n as InvalidateOptions, I as InvalidateTarget, o as OptimisticOptions, O as OptimisticUpdate, R as RequestEvent, j as ResponseEvent, m as RetryOptions, q as RouteAPIClient, s as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, t as createAPIClient, w as createServerAPIClient, v as getAPIRouteRefMetadata, u as isAPIRouteRef } from './client-Di1SbJp5.mjs';
|
|
4
4
|
export { D as DEFAULT_FARM_API_BASE_PATH, l as FarmAPIConfig, j as FarmAPIConfigResolverContext, k as FarmAPIConfigValue, R as ResolvedFarmAPIConfig, o as getFarmAPIBaseURL, m as normalizeFarmAPIBasePath, n as normalizeFarmAPIConfig, r as resolveFarmAPIConfig, p as resolveFarmAPIRequestURL } from './config-DtTPh5Ml.mjs';
|
|
5
5
|
export { F as FarmAPIStream, c as FarmStreamResponse, a as MultipartField, M as MultipartSchema, b as MultipartValues, T as TypedFormData, e as isFarmAPIStream, d as isJSONStreamResponse, i as isMultipartSchema, j as jsonStream, m as multipart, r as readJSONStream, t as toFormData } from './transport-BmbGTXA5.mjs';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as APIRouteMatch, c as APIRouteParamValue, b as APIRouteParams, s as AnyEndpointMiddleware, D as DELETE, f as EndpointErrorContracts, d as EndpointErrorDefinition, e as EndpointErrorDefinitions, g as EndpointErrorHandler, E as EndpointErrorSchema, h as EndpointFail, j as EndpointFailure, x as EndpointHandler, u as EndpointInvalidationContext, t as EndpointInvalidationTarget, v as EndpointInvalidations, r as EndpointMiddleware, p as EndpointMiddlewareContext, q as EndpointMiddlewareResult, w as EndpointOptions, l as EndpointParamValue, o as EndpointParams, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, O as OPTIONS, B as PATCH, P as POST, z as PUT, Q as QUERY, T as TypedEndpoint, y as createEndpoint, i as invokeAPIRouteEndpoint, k as isEndpointFailure, a as isWebResponse, m as matchAPIRoute, n as normalizeRouteResponse } from './runtime-BMOVEfom.js';
|
|
2
|
-
export { APIRoute, APIRouteManager, APIRouteManagerOptions, API_ROUTE_METHODS } from './api/route-manager.js';
|
|
2
|
+
export { APIRoute, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions, API_ROUTE_METHODS } from './api/route-manager.js';
|
|
3
3
|
export { r as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, g as APIResult, A as APIRouteRefMetadata, C as CacheKey, l as CacheOptions, k as CachePolicy, p as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, n as InvalidateOptions, I as InvalidateTarget, o as OptimisticOptions, O as OptimisticUpdate, R as RequestEvent, j as ResponseEvent, m as RetryOptions, q as RouteAPIClient, s as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, t as createAPIClient, w as createServerAPIClient, v as getAPIRouteRefMetadata, u as isAPIRouteRef } from './client-C_2pDigc.js';
|
|
4
4
|
export { D as DEFAULT_FARM_API_BASE_PATH, l as FarmAPIConfig, j as FarmAPIConfigResolverContext, k as FarmAPIConfigValue, R as ResolvedFarmAPIConfig, o as getFarmAPIBaseURL, m as normalizeFarmAPIBasePath, n as normalizeFarmAPIConfig, r as resolveFarmAPIConfig, p as resolveFarmAPIRequestURL } from './config-kwlUiWBX.js';
|
|
5
5
|
export { F as FarmAPIStream, c as FarmStreamResponse, a as MultipartField, M as MultipartSchema, b as MultipartValues, T as TypedFormData, e as isFarmAPIStream, d as isJSONStreamResponse, i as isMultipartSchema, j as jsonStream, m as multipart, r as readJSONStream, t as toFormData } from './transport-BmbGTXA5.js';
|
package/dist/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmApiPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6HZ23B26.mjs";
|
|
4
4
|
import {
|
|
5
5
|
APIClientError,
|
|
6
6
|
FARM_API_ROUTE_META_SYMBOL,
|
|
@@ -15,7 +15,7 @@ import "./chunk-E6EPN5BT.mjs";
|
|
|
15
15
|
import {
|
|
16
16
|
APIRouteManager,
|
|
17
17
|
API_ROUTE_METHODS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BDDLX64F.mjs";
|
|
19
19
|
import "./chunk-HO33MT4X.mjs";
|
|
20
20
|
import "./chunk-FQYDHKKU.mjs";
|
|
21
21
|
import "./chunk-SXWF4QRU.mjs";
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
parseProgrammaticRouteModuleId,
|
|
147
147
|
parseProgrammaticRoutePath,
|
|
148
148
|
scanProgrammaticPagePaths
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-BDDLX64F.mjs";
|
|
150
150
|
import {
|
|
151
151
|
_runWithFarmI18nRequest,
|
|
152
152
|
_setDefaultFarmI18nRuntime,
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
227
227
|
} from "./chunk-7ZMKVETU.mjs";
|
|
228
228
|
import {
|
|
229
229
|
FARM_VERSION
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-3PO3UK5B.mjs";
|
|
231
231
|
import {
|
|
232
232
|
__name,
|
|
233
233
|
__require
|
|
@@ -8368,7 +8368,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
8368
8368
|
res.end(JSON.stringify({ error: "Internal server error" }));
|
|
8369
8369
|
return;
|
|
8370
8370
|
}
|
|
8371
|
-
const apiHandler = apiRouteManager.getHandler();
|
|
8371
|
+
const apiHandler = apiRouteManager.getHandler({ throwOnError: true });
|
|
8372
8372
|
const hasExplicitAPIRoute = hasMatchedApiRoute || Boolean(apiRouteManager.matchRoute(pathname2));
|
|
8373
8373
|
if (apiHandler && hasExplicitAPIRoute) {
|
|
8374
8374
|
const apiRoutePattern = matchedApiRoute?.route.path || apiRouteManager.matchRoute(pathname2)?.route.path || urlPath2;
|
|
@@ -11432,4 +11432,4 @@ export {
|
|
|
11432
11432
|
farmPlugin,
|
|
11433
11433
|
defineConfig
|
|
11434
11434
|
};
|
|
11435
|
-
//# sourceMappingURL=chunk-
|
|
11435
|
+
//# sourceMappingURL=chunk-335JWE6F.mjs.map
|