@volter/twin-hubspot 0.1.1 → 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.
@@ -13,11 +13,11 @@
13
13
  // PURE FRONTEND (R3): the mirror imports no handler and no twin internals — it MOUNTS the pack's
14
14
  // fetch adapter as its API backend and reads every byte of state back over the wire.
15
15
  import { readFile } from 'node:fs/promises';
16
- import { bundleClient, fileResponse } from '@volter/world-core';
16
+ import { bundleClient, fileResponse, filePathOf } from '@volter/world-core';
17
17
  import { serveHttp } from '@volter/world-core';
18
18
  import { createHubspotTwinFetch } from "./hubspot-server.js";
19
- const CLIENT_ENTRY = () => new URL('../client/hubspot-mirror.tsx', import.meta.url).pathname; // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
20
- const CLIENT_CSS = () => new URL('../client/hubspot-mirror.css', import.meta.url).pathname; // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
19
+ const CLIENT_ENTRY = () => filePathOf(new URL('../client/hubspot-mirror.tsx', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
20
+ const CLIENT_CSS = () => filePathOf(new URL('../client/hubspot-mirror.css', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
21
21
  /** The four record sections the mirror shows, keyed by HubSpot's own object-type path segment. */
22
22
  export const MIRROR_SECTIONS = [
23
23
  { key: 'contacts', label: 'Contacts', path: '/crm/v3/objects/contacts?limit=100&properties=email,firstname,lastname,phone,lifecyclestage' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/twin-hubspot",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Local HubSpot CRM twin — a faithful, stateful local HubSpot v3/v4 CRM API your @hubspot/api-client integration talks to unmodified. Mirror, simulate, and fork. Built on @volter/world-core.",
5
5
  "keywords": [
6
6
  "twin",
@@ -52,15 +52,15 @@
52
52
  "postpack": "node ../../../scripts/publish/prepare-publish.mjs postpack"
53
53
  },
54
54
  "dependencies": {
55
- "@volter/world-ui": "0.1.1",
55
+ "@volter/world-ui": "0.1.2",
56
56
  "react": "^19.2.7",
57
57
  "react-dom": "^19.2.7"
58
58
  },
59
59
  "peerDependencies": {
60
- "@volter/world-core": "2.0.1"
60
+ "@volter/world-core": "2.0.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@volter/world-core": "2.0.1",
63
+ "@volter/world-core": "2.0.2",
64
64
  "@volter/world-tooling": "0.1.0",
65
65
  "@hubspot/api-client": "^14.0.1",
66
66
  "@types/bun": "^1.2.20",
@@ -13,12 +13,12 @@
13
13
  // PURE FRONTEND (R3): the mirror imports no handler and no twin internals — it MOUNTS the pack's
14
14
  // fetch adapter as its API backend and reads every byte of state back over the wire.
15
15
  import { readFile } from 'node:fs/promises';
16
- import { bundleClient, fileResponse } from '@volter/world-core';
16
+ import { bundleClient, fileResponse, filePathOf } from '@volter/world-core';
17
17
  import { serveHttp } from '@volter/world-core';
18
18
  import { createHubspotTwinFetch } from './hubspot-server.ts';
19
19
 
20
- const CLIENT_ENTRY = () => new URL('../client/hubspot-mirror.tsx', import.meta.url).pathname; // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
21
- const CLIENT_CSS = () => new URL('../client/hubspot-mirror.css', import.meta.url).pathname; // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
20
+ const CLIENT_ENTRY = () => filePathOf(new URL('../client/hubspot-mirror.tsx', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
21
+ const CLIENT_CSS = () => filePathOf(new URL('../client/hubspot-mirror.css', import.meta.url)); // lazy: workerd rejects top-level relative URL from import.meta.url (bundled via pack index)
22
22
 
23
23
  // ---------------------------------------------------------------------------
24
24
  // Pure, dependency-free render/format helpers (importable by the React client; Bun