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