@reactll/connect 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -71,6 +71,15 @@ await submitLead('Contact', { name, email, message }, { pv: req.body._rc_pv, pag
71
71
  Frameworks on web `Request`/`Response` (Hono, Remix, Nuxt/h3, Astro, Bun, Deno): route
72
72
  `GET /api/reactll/health` to `health(request)` from `@reactll/connect/server`.
73
73
 
74
+ ## Content-Security-Policy
75
+
76
+ If the site sends a CSP header, allow Reactll Connect in it, or the browser blocks the script and its beacons:
77
+
78
+ ```
79
+ script-src … https://connect.reactll.com
80
+ connect-src … https://connect.reactll.com
81
+ ```
82
+
74
83
  ## License
75
84
 
76
85
  MIT © Reactor Technology
package/dist/server.js CHANGED
@@ -109,6 +109,8 @@ export async function GET(request) {
109
109
  node: process.version.replace(/^v/, ''),
110
110
  environment: process.env.VERCEL_ENV ?? process.env.NODE_ENV,
111
111
  host: process.env.VERCEL ? 'Vercel' : undefined,
112
+ // Reactll counts the site's days on this clock (UTC is read as "not set"; set TZ to override).
113
+ timezone: process.env.TZ || Intl.DateTimeFormat().resolvedOptions().timeZone,
112
114
  }).filter(([, v]) => v)),
113
115
  }, { headers: { 'Cache-Control': 'no-store' } });
114
116
  }
package/dist/token.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * endpoint, the site's public key and its secret. Only the endpoint and the public key ever reach
6
6
  * the browser.
7
7
  */
8
- export declare const VERSION = "1.0.0";
8
+ export declare const VERSION = "1.1.1";
9
9
  export interface Credentials {
10
10
  /** Endpoint, e.g. https://connect.reactll.com/v1 */
11
11
  u: string;
package/dist/token.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * endpoint, the site's public key and its secret. Only the endpoint and the public key ever reach
6
6
  * the browser.
7
7
  */
8
- export const VERSION = '1.0.0';
8
+ export const VERSION = '1.1.1';
9
9
  export function credentials(token = process.env.REACTLL_CONNECT_TOKEN) {
10
10
  const raw = (token ?? '').trim();
11
11
  if (!raw.startsWith('rcc_'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactll/connect",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Reactll Connect for Next.js and any Node.js app: visits, clicks, form leads and site health for your Reactll dashboard.",
5
5
  "keywords": [
6
6
  "nextjs",