@handstage/core 0.0.1 → 0.0.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.
@@ -61,7 +61,7 @@ export class Page {
61
61
  consoleHandlers = new Map();
62
62
  /** Document-start scripts installed across every session this page owns. */
63
63
  initScripts = [];
64
- extraHTTPHeaders;
64
+ extraHTTPHeaders = {};
65
65
  constructor(conn, mainSession, _targetId, mainFrameId) {
66
66
  this.conn = conn;
67
67
  this.mainSession = mainSession;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handstage/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -93,7 +93,7 @@ export class Page {
93
93
  private readonly frameCache = new Map<string, Frame>()
94
94
 
95
95
  /** Stable id for Frames created by this Page (use top-level TargetId). */
96
- private readonly pageId: string
96
+ public readonly pageId: string
97
97
  /** Cached current URL for synchronous page.url() */
98
98
  private _currentUrl: string = "about:blank"
99
99
 
@@ -108,7 +108,7 @@ export class Page {
108
108
  >()
109
109
  /** Document-start scripts installed across every session this page owns. */
110
110
  private readonly initScripts: string[] = []
111
- private extraHTTPHeaders: Record<string, string>
111
+ private extraHTTPHeaders: Record<string, string> = {}
112
112
 
113
113
  private constructor(
114
114
  private readonly conn: CdpConnection,