@decocms/start 2.4.1 → 2.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/start",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "type": "module",
5
5
  "description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
6
6
  "main": "./src/index.ts",
@@ -1,6 +1,6 @@
1
- import { getRevision, loadBlocks, setBlocks } from "../cms/loader.ts";
2
- import { clearLoaderCache } from "../sdk/cachedLoader.ts";
3
- import { invalidateMetaCache } from "./meta.ts";
1
+ import { getRevision, loadBlocks, setBlocks } from "../cms/loader";
2
+ import { clearLoaderCache } from "../sdk/cachedLoader";
3
+ import { invalidateMetaCache } from "./meta";
4
4
 
5
5
  export function handleDecofileRead(): Response {
6
6
  const blocks = loadBlocks();
package/src/admin/meta.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { djb2Hex } from "../sdk/djb2.ts";
2
- import { composeMeta, type MetaResponse } from "./schema.ts";
1
+ import { djb2Hex } from "../sdk/djb2";
2
+ import { composeMeta, type MetaResponse } from "./schema";
3
3
 
4
4
  // Use globalThis to share meta state across module instances.
5
5
  // The daemon middleware imports this module via native import() (outside Vite SSR),
package/src/cms/loader.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as asyncHooks from "node:async_hooks";
2
- import { djb2Hex } from "../sdk/djb2.ts";
2
+ import { djb2Hex } from "../sdk/djb2";
3
3
 
4
4
  export type Resolvable = {
5
5
  __resolveType?: string;
package/src/daemon/fs.ts CHANGED
@@ -11,7 +11,7 @@ import { join, resolve, sep } from "node:path";
11
11
  import type { IncomingMessage, ServerResponse } from "node:http";
12
12
  import fjp from "fast-json-patch";
13
13
  import type { Operation } from "fast-json-patch";
14
- import { inferMetadata, broadcastFSEvent, type Metadata } from "./watch.ts";
14
+ import { inferMetadata, broadcastFSEvent, type Metadata } from "./watch";
15
15
 
16
16
  const cwd = process.cwd();
17
17
  const toPosix = (p: string) => p.replaceAll(sep, "/");
@@ -1,8 +1,8 @@
1
- export { startTunnel } from "./tunnel.ts";
2
- export type { TunnelOptions, TunnelConnection } from "./tunnel.ts";
3
- export { createAuthMiddleware, verifyAdminJwt, tokenIsValid } from "./auth.ts";
4
- export type { JwtPayload } from "./auth.ts";
5
- export { createDaemonMiddleware } from "./middleware.ts";
6
- export type { DaemonOptions } from "./middleware.ts";
7
- export { createVolumesHandler } from "./volumes.ts";
8
- export { createWatchHandler, watchFS, broadcastFSEvent } from "./watch.ts";
1
+ export { startTunnel } from "./tunnel";
2
+ export type { TunnelOptions, TunnelConnection } from "./tunnel";
3
+ export { createAuthMiddleware, verifyAdminJwt, tokenIsValid } from "./auth";
4
+ export type { JwtPayload } from "./auth";
5
+ export { createDaemonMiddleware } from "./middleware";
6
+ export type { DaemonOptions } from "./middleware";
7
+ export { createVolumesHandler } from "./volumes";
8
+ export { createWatchHandler, watchFS, broadcastFSEvent } from "./watch";
@@ -10,10 +10,10 @@
10
10
  * Ported from: deco-cx/deco daemon/daemon.ts
11
11
  */
12
12
  import type { IncomingMessage, ServerResponse, Server as HttpServer } from "node:http";
13
- import { createAuthMiddleware } from "./auth.ts";
14
- import { createFSHandler } from "./fs.ts";
15
- import { createVolumesHandler } from "./volumes.ts";
16
- import { createWatchHandler, watchFS } from "./watch.ts";
13
+ import { createAuthMiddleware } from "./auth";
14
+ import { createFSHandler } from "./fs";
15
+ import { createVolumesHandler } from "./volumes";
16
+ import { createWatchHandler, watchFS } from "./watch";
17
17
 
18
18
  const DAEMON_API_SPECIFIER = "x-daemon-api";
19
19
  const HYPERVISOR_API_SPECIFIER = "x-hypervisor-api";
@@ -11,7 +11,7 @@
11
11
  * (e.g. "product") which derives timing from the unified profile system.
12
12
  */
13
13
 
14
- import { loaderCacheOptions, type CacheProfileName } from "./cacheHeaders.ts";
14
+ import { loaderCacheOptions, type CacheProfileName } from "./cacheHeaders";
15
15
 
16
16
  export type CachePolicy = "no-store" | "no-cache" | "stale-while-revalidate";
17
17