payload-live-preview 2.1.0 → 2.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 +15 -8
- 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/core.d.cts
CHANGED
|
@@ -1235,7 +1235,11 @@ interface AuthorizedPreviewContext {
|
|
|
1235
1235
|
/** The minimal request material a draft read forwards to Payload — one verified cookie, never the whole `Cookie` header. */
|
|
1236
1236
|
readonly payloadHeaders: Readonly<Record<string, string>>;
|
|
1237
1237
|
}
|
|
1238
|
-
/**
|
|
1238
|
+
/**
|
|
1239
|
+
* Whether `value` carries the brand `authorizePreviewRequest()` gives it. A JSON round trip or an
|
|
1240
|
+
* unfrozen copy does not; a frozen spread copy keeps the registry symbol and passes, because the
|
|
1241
|
+
* brand is a runtime check, not a cryptographic one (ADR 0006).
|
|
1242
|
+
*/
|
|
1239
1243
|
declare function isAuthorizedPreviewContext(value: unknown): value is AuthorizedPreviewContext;
|
|
1240
1244
|
|
|
1241
1245
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1235,7 +1235,11 @@ interface AuthorizedPreviewContext {
|
|
|
1235
1235
|
/** The minimal request material a draft read forwards to Payload — one verified cookie, never the whole `Cookie` header. */
|
|
1236
1236
|
readonly payloadHeaders: Readonly<Record<string, string>>;
|
|
1237
1237
|
}
|
|
1238
|
-
/**
|
|
1238
|
+
/**
|
|
1239
|
+
* Whether `value` carries the brand `authorizePreviewRequest()` gives it. A JSON round trip or an
|
|
1240
|
+
* unfrozen copy does not; a frozen spread copy keeps the registry symbol and passes, because the
|
|
1241
|
+
* brand is a runtime check, not a cryptographic one (ADR 0006).
|
|
1242
|
+
*/
|
|
1239
1243
|
declare function isAuthorizedPreviewContext(value: unknown): value is AuthorizedPreviewContext;
|
|
1240
1244
|
|
|
1241
1245
|
/**
|