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/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
- /** Whether `value` was produced by `authorizePreviewRequest()`; a copy or JSON round trip is not. */
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
- /** Whether `value` was produced by `authorizePreviewRequest()`; a copy or JSON round trip is not. */
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
  /**