payload-live-preview 2.1.0 → 2.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.
- package/README.md +18 -11
- package/dist/adapters/astro/index.js +1 -1
- package/dist/adapters/astro/index.js.map +1 -1
- package/dist/adapters/astro/middleware-entry.js +1 -1
- package/dist/adapters/astro/middleware-entry.js.map +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/adapters/nextjs/index.js.map +1 -1
- package/dist/adapters/nuxt/index.js +1 -1
- package/dist/adapters/nuxt/index.js.map +1 -1
- package/dist/adapters/sveltekit/index.js +1 -1
- package/dist/adapters/sveltekit/index.js.map +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +5 -1
- package/dist/core.d.ts +5 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lean.cjs +1 -1
- package/dist/lean.cjs.map +1 -1
- package/dist/lean.js +1 -1
- package/dist/lean.js.map +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +1 -1
- package/dist/plugins.js.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -3
- package/dist/server.d.ts +8 -3
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1499,7 +1499,11 @@ interface AuthorizedPreviewContext {
|
|
|
1499
1499
|
/** The minimal request material a draft read forwards to Payload — one verified cookie, never the whole `Cookie` header. */
|
|
1500
1500
|
readonly payloadHeaders: Readonly<Record<string, string>>;
|
|
1501
1501
|
}
|
|
1502
|
-
/**
|
|
1502
|
+
/**
|
|
1503
|
+
* Whether `value` carries the brand `authorizePreviewRequest()` gives it. A JSON round trip or an
|
|
1504
|
+
* unfrozen copy does not; a frozen spread copy keeps the registry symbol and passes, because the
|
|
1505
|
+
* brand is a runtime check, not a cryptographic one (ADR 0006).
|
|
1506
|
+
*/
|
|
1503
1507
|
declare function isAuthorizedPreviewContext(value: unknown): value is AuthorizedPreviewContext;
|
|
1504
1508
|
|
|
1505
1509
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1499,7 +1499,11 @@ interface AuthorizedPreviewContext {
|
|
|
1499
1499
|
/** The minimal request material a draft read forwards to Payload — one verified cookie, never the whole `Cookie` header. */
|
|
1500
1500
|
readonly payloadHeaders: Readonly<Record<string, string>>;
|
|
1501
1501
|
}
|
|
1502
|
-
/**
|
|
1502
|
+
/**
|
|
1503
|
+
* Whether `value` carries the brand `authorizePreviewRequest()` gives it. A JSON round trip or an
|
|
1504
|
+
* unfrozen copy does not; a frozen spread copy keeps the registry symbol and passes, because the
|
|
1505
|
+
* brand is a runtime check, not a cryptographic one (ADR 0006).
|
|
1506
|
+
*/
|
|
1503
1507
|
declare function isAuthorizedPreviewContext(value: unknown): value is AuthorizedPreviewContext;
|
|
1504
1508
|
|
|
1505
1509
|
/**
|