devtools-protocol 0.0.936174 → 0.0.938446

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.
@@ -1479,6 +1479,29 @@
1479
1479
  }
1480
1480
  ]
1481
1481
  },
1482
+ {
1483
+ "id": "DeprecationIssueDetails",
1484
+ "description": "This issue tracks information needed to print a deprecation message.\nThe formatting is inherited from the old console.log version, see more at:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc\nTODO(crbug.com/1264960): Re-work format to add i18n support per:\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md",
1485
+ "type": "object",
1486
+ "properties": [
1487
+ {
1488
+ "name": "affectedFrame",
1489
+ "optional": true,
1490
+ "$ref": "AffectedFrame"
1491
+ },
1492
+ {
1493
+ "name": "sourceCodeLocation",
1494
+ "$ref": "SourceCodeLocation"
1495
+ },
1496
+ {
1497
+ "name": "message",
1498
+ "description": "The content of the deprecation issue (this won't be translated),\ne.g. \"window.inefficientLegacyStorageMethod will be removed in M97,\naround January 2022. Please use Web Storage or Indexed Database\ninstead. This standard was abandoned in January, 1970. See\nhttps://www.chromestatus.com/feature/5684870116278272 for more details.\"",
1499
+ "deprecated": true,
1500
+ "optional": true,
1501
+ "type": "string"
1502
+ }
1503
+ ]
1504
+ },
1482
1505
  {
1483
1506
  "id": "InspectorIssueCode",
1484
1507
  "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
@@ -1497,7 +1520,8 @@
1497
1520
  "QuirksModeIssue",
1498
1521
  "NavigatorUserAgentIssue",
1499
1522
  "WasmCrossOriginModuleSharingIssue",
1500
- "GenericIssue"
1523
+ "GenericIssue",
1524
+ "DeprecationIssue"
1501
1525
  ]
1502
1526
  },
1503
1527
  {
@@ -1574,6 +1598,11 @@
1574
1598
  "name": "genericIssueDetails",
1575
1599
  "optional": true,
1576
1600
  "$ref": "GenericIssueDetails"
1601
+ },
1602
+ {
1603
+ "name": "deprecationIssueDetails",
1604
+ "optional": true,
1605
+ "$ref": "DeprecationIssueDetails"
1577
1606
  }
1578
1607
  ]
1579
1608
  },
@@ -6068,6 +6097,35 @@
6068
6097
  }
6069
6098
  ]
6070
6099
  },
6100
+ {
6101
+ "domain": "EventBreakpoints",
6102
+ "description": "EventBreakpoints permits setting breakpoints on particular operations and\nevents in targets that run JavaScript but do not have a DOM.\nJavaScript execution will stop on these operations as if there was a regular\nbreakpoint set.",
6103
+ "experimental": true,
6104
+ "commands": [
6105
+ {
6106
+ "name": "setInstrumentationBreakpoint",
6107
+ "description": "Sets breakpoint on particular native event.",
6108
+ "parameters": [
6109
+ {
6110
+ "name": "eventName",
6111
+ "description": "Instrumentation name to stop on.",
6112
+ "type": "string"
6113
+ }
6114
+ ]
6115
+ },
6116
+ {
6117
+ "name": "removeInstrumentationBreakpoint",
6118
+ "description": "Removes breakpoint on particular native event.",
6119
+ "parameters": [
6120
+ {
6121
+ "name": "eventName",
6122
+ "description": "Instrumentation name to stop on.",
6123
+ "type": "string"
6124
+ }
6125
+ ]
6126
+ }
6127
+ ]
6128
+ },
6071
6129
  {
6072
6130
  "domain": "DOMSnapshot",
6073
6131
  "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.",
@@ -10425,8 +10483,8 @@
10425
10483
  },
10426
10484
  {
10427
10485
  "name": "timestamp",
10428
- "description": "Issuance date.",
10429
- "$ref": "TimeSinceEpoch"
10486
+ "description": "Issuance date. Unlike TimeSinceEpoch, this contains the number of\nmilliseconds since January 1, 1970, UTC, not the number of seconds.",
10487
+ "type": "number"
10430
10488
  },
10431
10489
  {
10432
10490
  "name": "hashAlgorithm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.936174",
3
+ "version": "0.0.938446",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -709,6 +709,22 @@ experimental domain Audits
709
709
  GenericIssueErrorType errorType
710
710
  optional Page.FrameId frameId
711
711
 
712
+ # This issue tracks information needed to print a deprecation message.
713
+ # The formatting is inherited from the old console.log version, see more at:
714
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
715
+ # TODO(crbug.com/1264960): Re-work format to add i18n support per:
716
+ # https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
717
+ type DeprecationIssueDetails extends object
718
+ properties
719
+ optional AffectedFrame affectedFrame
720
+ SourceCodeLocation sourceCodeLocation
721
+ # The content of the deprecation issue (this won't be translated),
722
+ # e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
723
+ # around January 2022. Please use Web Storage or Indexed Database
724
+ # instead. This standard was abandoned in January, 1970. See
725
+ # https://www.chromestatus.com/feature/5684870116278272 for more details."
726
+ deprecated optional string message
727
+
712
728
  # A unique identifier for the type of issue. Each type may use one of the
713
729
  # optional fields in InspectorIssueDetails to convey more specific
714
730
  # information about the kind of issue.
@@ -728,6 +744,7 @@ experimental domain Audits
728
744
  NavigatorUserAgentIssue
729
745
  WasmCrossOriginModuleSharingIssue
730
746
  GenericIssue
747
+ DeprecationIssue
731
748
 
732
749
  # This struct holds a list of optional fields with additional information
733
750
  # specific to the kind of issue. When adding a new issue code, please also
@@ -748,6 +765,7 @@ experimental domain Audits
748
765
  optional NavigatorUserAgentIssueDetails navigatorUserAgentIssueDetails
749
766
  optional WasmCrossOriginModuleSharingIssueDetails wasmCrossOriginModuleSharingIssue
750
767
  optional GenericIssueDetails genericIssueDetails
768
+ optional DeprecationIssueDetails deprecationIssueDetails
751
769
 
752
770
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
753
771
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -2824,6 +2842,23 @@ domain DOMDebugger
2824
2842
  # Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
2825
2843
  string url
2826
2844
 
2845
+ # EventBreakpoints permits setting breakpoints on particular operations and
2846
+ # events in targets that run JavaScript but do not have a DOM.
2847
+ # JavaScript execution will stop on these operations as if there was a regular
2848
+ # breakpoint set.
2849
+ experimental domain EventBreakpoints
2850
+ # Sets breakpoint on particular native event.
2851
+ command setInstrumentationBreakpoint
2852
+ parameters
2853
+ # Instrumentation name to stop on.
2854
+ string eventName
2855
+
2856
+ # Removes breakpoint on particular native event.
2857
+ command removeInstrumentationBreakpoint
2858
+ parameters
2859
+ # Instrumentation name to stop on.
2860
+ string eventName
2861
+
2827
2862
  # This domain facilitates obtaining document snapshots with DOM, layout, and style information.
2828
2863
  experimental domain DOMSnapshot
2829
2864
  depends on CSS
@@ -4749,8 +4784,9 @@ domain Network
4749
4784
  string logDescription
4750
4785
  # Log ID.
4751
4786
  string logId
4752
- # Issuance date.
4753
- TimeSinceEpoch timestamp
4787
+ # Issuance date. Unlike TimeSinceEpoch, this contains the number of
4788
+ # milliseconds since January 1, 1970, UTC, not the number of seconds.
4789
+ number timestamp
4754
4790
  # Hash algorithm.
4755
4791
  string hashAlgorithm
4756
4792
  # Signature algorithm.
@@ -2205,6 +2205,20 @@ export namespace ProtocolMapping {
2205
2205
  paramsType: [Protocol.DOMDebugger.SetXHRBreakpointRequest];
2206
2206
  returnType: void;
2207
2207
  };
2208
+ /**
2209
+ * Sets breakpoint on particular native event.
2210
+ */
2211
+ 'EventBreakpoints.setInstrumentationBreakpoint': {
2212
+ paramsType: [Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest];
2213
+ returnType: void;
2214
+ };
2215
+ /**
2216
+ * Removes breakpoint on particular native event.
2217
+ */
2218
+ 'EventBreakpoints.removeInstrumentationBreakpoint': {
2219
+ paramsType: [Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest];
2220
+ returnType: void;
2221
+ };
2208
2222
  /**
2209
2223
  * Disables DOM snapshot agent for the given page.
2210
2224
  */
@@ -42,6 +42,8 @@ export namespace ProtocolProxyApi {
42
42
 
43
43
  DOMDebugger: DOMDebuggerApi;
44
44
 
45
+ EventBreakpoints: EventBreakpointsApi;
46
+
45
47
  DOMSnapshot: DOMSnapshotApi;
46
48
 
47
49
  DOMStorage: DOMStorageApi;
@@ -1501,6 +1503,19 @@ export namespace ProtocolProxyApi {
1501
1503
 
1502
1504
  }
1503
1505
 
1506
+ export interface EventBreakpointsApi {
1507
+ /**
1508
+ * Sets breakpoint on particular native event.
1509
+ */
1510
+ setInstrumentationBreakpoint(params: Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest): Promise<void>;
1511
+
1512
+ /**
1513
+ * Removes breakpoint on particular native event.
1514
+ */
1515
+ removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest): Promise<void>;
1516
+
1517
+ }
1518
+
1504
1519
  export interface DOMSnapshotApi {
1505
1520
  /**
1506
1521
  * Disables DOM snapshot agent for the given page.
@@ -3256,12 +3256,32 @@ export namespace Protocol {
3256
3256
  frameId?: Page.FrameId;
3257
3257
  }
3258
3258
 
3259
+ /**
3260
+ * This issue tracks information needed to print a deprecation message.
3261
+ * The formatting is inherited from the old console.log version, see more at:
3262
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc
3263
+ * TODO(crbug.com/1264960): Re-work format to add i18n support per:
3264
+ * https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
3265
+ */
3266
+ export interface DeprecationIssueDetails {
3267
+ affectedFrame?: AffectedFrame;
3268
+ sourceCodeLocation: SourceCodeLocation;
3269
+ /**
3270
+ * The content of the deprecation issue (this won't be translated),
3271
+ * e.g. "window.inefficientLegacyStorageMethod will be removed in M97,
3272
+ * around January 2022. Please use Web Storage or Indexed Database
3273
+ * instead. This standard was abandoned in January, 1970. See
3274
+ * https://www.chromestatus.com/feature/5684870116278272 for more details."
3275
+ */
3276
+ message?: string;
3277
+ }
3278
+
3259
3279
  /**
3260
3280
  * A unique identifier for the type of issue. Each type may use one of the
3261
3281
  * optional fields in InspectorIssueDetails to convey more specific
3262
3282
  * information about the kind of issue.
3263
3283
  */
3264
- export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue');
3284
+ export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue' | 'DeprecationIssue');
3265
3285
 
3266
3286
  /**
3267
3287
  * This struct holds a list of optional fields with additional information
@@ -3283,6 +3303,7 @@ export namespace Protocol {
3283
3303
  navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
3284
3304
  wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
3285
3305
  genericIssueDetails?: GenericIssueDetails;
3306
+ deprecationIssueDetails?: DeprecationIssueDetails;
3286
3307
  }
3287
3308
 
3288
3309
  /**
@@ -6260,6 +6281,29 @@ export namespace Protocol {
6260
6281
  }
6261
6282
  }
6262
6283
 
6284
+ /**
6285
+ * EventBreakpoints permits setting breakpoints on particular operations and
6286
+ * events in targets that run JavaScript but do not have a DOM.
6287
+ * JavaScript execution will stop on these operations as if there was a regular
6288
+ * breakpoint set.
6289
+ */
6290
+ export namespace EventBreakpoints {
6291
+
6292
+ export interface SetInstrumentationBreakpointRequest {
6293
+ /**
6294
+ * Instrumentation name to stop on.
6295
+ */
6296
+ eventName: string;
6297
+ }
6298
+
6299
+ export interface RemoveInstrumentationBreakpointRequest {
6300
+ /**
6301
+ * Instrumentation name to stop on.
6302
+ */
6303
+ eventName: string;
6304
+ }
6305
+ }
6306
+
6263
6307
  /**
6264
6308
  * This domain facilitates obtaining document snapshots with DOM, layout, and style information.
6265
6309
  */
@@ -9048,9 +9092,10 @@ export namespace Protocol {
9048
9092
  */
9049
9093
  logId: string;
9050
9094
  /**
9051
- * Issuance date.
9095
+ * Issuance date. Unlike TimeSinceEpoch, this contains the number of
9096
+ * milliseconds since January 1, 1970, UTC, not the number of seconds.
9052
9097
  */
9053
- timestamp: TimeSinceEpoch;
9098
+ timestamp: number;
9054
9099
  /**
9055
9100
  * Hash algorithm.
9056
9101
  */