@farm.js/core 0.1.0-beta.29 → 0.1.0-beta.31
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.map +1 -1
- package/dist/api/route-manager.mjs +2 -2
- package/dist/api.cjs.map +1 -1
- package/dist/api.mjs +3 -3
- package/dist/{chunk-NOEMO7PN.mjs → chunk-ASIPQH4E.mjs} +7 -6
- package/dist/chunk-ASIPQH4E.mjs.map +1 -0
- package/dist/{chunk-BGG6JGVT.mjs → chunk-BR25OMT7.mjs} +5 -5
- package/dist/chunk-BR25OMT7.mjs.map +1 -0
- package/dist/{chunk-KC6DAOUM.mjs → chunk-H4C2N7R6.mjs} +2 -2
- package/dist/chunk-H4C2N7R6.mjs.map +1 -0
- package/dist/{chunk-RI5O4MAB.mjs → chunk-HHRVE3L7.mjs} +2 -2
- package/dist/{chunk-WNOEIVHU.mjs → chunk-MJWLSJQR.mjs} +2 -2
- package/dist/{chunk-CC6RY7BK.mjs → chunk-MT3TQEQF.mjs} +3 -3
- package/dist/{chunk-6RYYA6GT.mjs → chunk-VKAYE6GQ.mjs} +2 -2
- package/dist/{chunk-Z32W4V4H.mjs → chunk-ZTQERPE7.mjs} +2 -2
- package/dist/{chunk-Z32W4V4H.mjs.map → chunk-ZTQERPE7.mjs.map} +1 -1
- package/dist/index.cjs +7 -6
- 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 +10 -10
- package/dist/index.mjs.map +1 -1
- package/dist/internal/build-runtime.cjs +5 -4
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +6 -6
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.mjs +1 -1
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.mjs +3 -3
- package/dist/plugin.cjs +3 -2
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +5 -5
- package/dist/server.cjs +4 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +5 -5
- package/dist/testing.mjs +2 -2
- 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 +5 -5
- package/package.json +1 -1
- package/dist/chunk-BGG6JGVT.mjs.map +0 -1
- package/dist/chunk-KC6DAOUM.mjs.map +0 -1
- package/dist/chunk-NOEMO7PN.mjs.map +0 -1
- /package/dist/{chunk-RI5O4MAB.mjs.map → chunk-HHRVE3L7.mjs.map} +0 -0
- /package/dist/{chunk-WNOEIVHU.mjs.map → chunk-MJWLSJQR.mjs.map} +0 -0
- /package/dist/{chunk-CC6RY7BK.mjs.map → chunk-MT3TQEQF.mjs.map} +0 -0
- /package/dist/{chunk-6RYYA6GT.mjs.map → chunk-VKAYE6GQ.mjs.map} +0 -0
package/dist/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmApiPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MT3TQEQF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
APIClientError,
|
|
6
6
|
FARM_API_ROUTE_META_SYMBOL,
|
|
@@ -17,14 +17,14 @@ import "./chunk-QGOHVJ6J.mjs";
|
|
|
17
17
|
import {
|
|
18
18
|
APIRouteManager,
|
|
19
19
|
API_ROUTE_METHODS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VKAYE6GQ.mjs";
|
|
21
21
|
import "./chunk-2ED5Q2GH.mjs";
|
|
22
22
|
import "./chunk-GN72QAIH.mjs";
|
|
23
23
|
import "./chunk-FQYDHKKU.mjs";
|
|
24
24
|
import "./chunk-FRJ4J735.mjs";
|
|
25
25
|
import "./chunk-QKVUNGAH.mjs";
|
|
26
26
|
import "./chunk-GQVGIUSN.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-H4C2N7R6.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DELETE,
|
|
30
30
|
EndpointFailure,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
} from "./chunk-T4QJQK76.mjs";
|
|
111
111
|
import {
|
|
112
112
|
MiddlewareManager
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-MJWLSJQR.mjs";
|
|
114
114
|
import {
|
|
115
115
|
_clearCurrentMiddlewareContext,
|
|
116
116
|
_clearCurrentMiddlewareData,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
discoverProgrammaticRoutePaths,
|
|
132
132
|
findProgrammaticRouteFiles,
|
|
133
133
|
loadProgrammaticRouteManifests
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-VKAYE6GQ.mjs";
|
|
135
135
|
import {
|
|
136
136
|
_runWithFarmI18nRequest,
|
|
137
137
|
_setDefaultFarmI18nRuntime,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
parseRoutePath,
|
|
176
176
|
resolveAppPath,
|
|
177
177
|
toViteModuleId
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-H4C2N7R6.mjs";
|
|
179
179
|
import {
|
|
180
180
|
createFarmRequestBodyErrorResponse,
|
|
181
181
|
readNodeRequestBody,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
} from "./chunk-RHIFZZUI.mjs";
|
|
188
188
|
import {
|
|
189
189
|
FARM_VERSION
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-ZTQERPE7.mjs";
|
|
191
191
|
import {
|
|
192
192
|
FARM_DEPLOYMENT_ID_HEADER,
|
|
193
193
|
createFarmDeploymentCookie,
|
|
@@ -901,6 +901,7 @@ function resolveModuleSourcePath(modulePath, root) {
|
|
|
901
901
|
}
|
|
902
902
|
__name(resolveModuleSourcePath, "resolveModuleSourcePath");
|
|
903
903
|
var RESOLVABLE_SOURCE_EXTENSIONS = [
|
|
904
|
+
".svelte",
|
|
904
905
|
".vue",
|
|
905
906
|
".tsx",
|
|
906
907
|
".ts",
|
|
@@ -1593,7 +1594,7 @@ function parseRouteSlotFile(filePath) {
|
|
|
1593
1594
|
const normalized = filePath.replace(/\\/g, "/");
|
|
1594
1595
|
const parts = normalized.split("/").filter(Boolean);
|
|
1595
1596
|
const fileName = parts.at(-1) ?? "";
|
|
1596
|
-
const baseName = fileName.replace(/\.(tsx?|jsx?|vue)$/, "");
|
|
1597
|
+
const baseName = fileName.replace(/\.(tsx?|jsx?|vue|svelte)$/, "");
|
|
1597
1598
|
if (baseName !== "page" && baseName !== "default") return null;
|
|
1598
1599
|
const slotIndex = parts.findIndex((part) => SLOT_SEGMENT.test(part));
|
|
1599
1600
|
if (slotIndex < 0) return null;
|
|
@@ -10922,4 +10923,4 @@ export {
|
|
|
10922
10923
|
farmPlugin,
|
|
10923
10924
|
defineConfig
|
|
10924
10925
|
};
|
|
10925
|
-
//# sourceMappingURL=chunk-
|
|
10926
|
+
//# sourceMappingURL=chunk-ASIPQH4E.mjs.map
|