@volter/twin-calcom 0.1.0 → 0.1.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.
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// PURE FRONTEND (R3): the mirror imports no handler and no twin internals — it MOUNTS the pack's
|
|
6
6
|
// own fetch adapter as its API backend and reads every byte of state back over the wire.
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
|
-
import { bundleClient, fileResponse } from '@volter/world-core';
|
|
8
|
+
import { bundleClient, fileResponse, filePathOf } from '@volter/world-core';
|
|
9
9
|
import { serveHttp } from '@volter/world-core';
|
|
10
10
|
import { createCalcomTwinFetch } from "./calcom-server.js";
|
|
11
|
-
const CLIENT_ENTRY = () => new URL('../client/calcom-mirror.tsx', import.meta.url)
|
|
12
|
-
const CLIENT_CSS = () => new URL('../client/calcom-mirror.css', import.meta.url)
|
|
11
|
+
const CLIENT_ENTRY = () => filePathOf(new URL('../client/calcom-mirror.tsx', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
|
|
12
|
+
const CLIENT_CSS = () => filePathOf(new URL('../client/calcom-mirror.css', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
|
|
13
13
|
export function bookingTone(status) {
|
|
14
14
|
const s = String(status ?? '').toLowerCase();
|
|
15
15
|
if (s === 'accepted')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/twin-calcom",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local Cal.com twin — a faithful, stateful local Cal.com v2 API your scheduling integration talks to unmodified. Mirror, simulate, and fork. Built on @volter/world-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"react-dom": "^19.2.7"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@volter/world-core": "2.0.
|
|
58
|
+
"@volter/world-core": "2.0.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@volter/world-core": "2.0.
|
|
61
|
+
"@volter/world-core": "2.0.2",
|
|
62
62
|
"@volter/world-tooling": "0.1.0",
|
|
63
63
|
"@types/bun": "^1.2.20",
|
|
64
64
|
"@types/node": "^24.0.0",
|
package/src/calcom-mirror-ui.ts
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
// PURE FRONTEND (R3): the mirror imports no handler and no twin internals — it MOUNTS the pack's
|
|
6
6
|
// own fetch adapter as its API backend and reads every byte of state back over the wire.
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
|
-
import { bundleClient, fileResponse } from '@volter/world-core';
|
|
8
|
+
import { bundleClient, fileResponse, filePathOf } from '@volter/world-core';
|
|
9
9
|
import { serveHttp } from '@volter/world-core';
|
|
10
10
|
import { createCalcomTwinFetch } from './calcom-server.ts';
|
|
11
11
|
|
|
12
|
-
const CLIENT_ENTRY = () => new URL('../client/calcom-mirror.tsx', import.meta.url)
|
|
13
|
-
const CLIENT_CSS = () => new URL('../client/calcom-mirror.css', import.meta.url)
|
|
12
|
+
const CLIENT_ENTRY = () => filePathOf(new URL('../client/calcom-mirror.tsx', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
|
|
13
|
+
const CLIENT_CSS = () => filePathOf(new URL('../client/calcom-mirror.css', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
|
|
14
14
|
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
16
16
|
// Pure, dependency-free render/format helpers (importable by the React client; Bun
|