@recordreplay/protocol
Advanced tools
Comparing version 0.21.0 to 0.22.0
@@ -6,3 +6,3 @@ import { uploadedData, awaitingSourcemaps, sessionError, getDescriptionParameters, createSessionParameters, releaseSessionParameters, processRecordingParameters, addSourceMapParameters, addOriginalSourceParameters } from "../../protocol/Recording"; | ||
import { paintPoints, playbackVideoFragment, findPaintsParameters, getPlaybackVideoParameters, getPaintContentsParameters, getDevicePixelRatioParameters } from "../../protocol/Graphics"; | ||
import { newSource, searchSourceContentsMatches, functionsMatches, findSourcesParameters, getSourceContentsParameters, getSourceMapParameters, getPossibleBreakpointsParameters, getHitCountsParameters, searchSourceContentsParameters, getMappedLocationParameters, setBreakpointParameters, removeBreakpointParameters, findResumeTargetParameters, findRewindTargetParameters, findReverseStepOverTargetParameters, findStepOverTargetParameters, findStepInTargetParameters, findStepOutTargetParameters, blackboxSourceParameters, unblackboxSourceParameters, searchFunctionsParameters } from "../../protocol/Debugger"; | ||
import { newSource, searchSourceContentsMatches, functionsMatches, findSourcesParameters, getSourceContentsParameters, getSourceMapParameters, getPossibleBreakpointsParameters, getHitCountsParameters, getEventHandlerCountParameters, searchSourceContentsParameters, getMappedLocationParameters, setBreakpointParameters, removeBreakpointParameters, findResumeTargetParameters, findRewindTargetParameters, findReverseStepOverTargetParameters, findStepOverTargetParameters, findStepInTargetParameters, findStepOutTargetParameters, blackboxSourceParameters, unblackboxSourceParameters, searchFunctionsParameters } from "../../protocol/Debugger"; | ||
import { newMessage, findMessagesParameters } from "../../protocol/Console"; | ||
@@ -320,2 +320,6 @@ import { evaluateInFrameParameters, evaluateInGlobalParameters, getObjectPropertyParameters, callFunctionParameters, callObjectPropertyParameters, getObjectPreviewParameters, getScopeParameters, getTopFrameParameters, getAllFramesParameters, getFrameArgumentsParameters, getFrameStepsParameters, getExceptionValueParameters } from "../../protocol/Pause"; | ||
getHitCounts: (parameters: getHitCountsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Debugger").getHitCountsResult>; | ||
/** | ||
* Get the number of times handlers for a type of event executed. | ||
*/ | ||
getEventHandlerCount: (parameters: getEventHandlerCountParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Debugger").getEventHandlerCountResult>; | ||
searchSourceContents: (parameters: searchSourceContentsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Debugger").searchSourceContentsResult>; | ||
@@ -322,0 +326,0 @@ /** |
@@ -404,2 +404,8 @@ "use strict"; | ||
}, | ||
/** | ||
* Get the number of times handlers for a type of event executed. | ||
*/ | ||
getEventHandlerCount: function (parameters, sessionId, pauseId) { | ||
return _this.genericClient.sendCommand("Debugger.getEventHandlerCount", parameters, sessionId, pauseId); | ||
}, | ||
searchSourceContents: function (parameters, sessionId, pauseId) { | ||
@@ -406,0 +412,0 @@ return _this.genericClient.sendCommand("Debugger.searchSourceContents", parameters, sessionId, pauseId); |
import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
import { PauseId } from "./Pause"; | ||
import { PointDescription, Location, SourceId, SourceLocation } from "./Debugger"; | ||
import { PointDescription, Location, SourceId, SourceLocation, EventHandlerType } from "./Debugger"; | ||
/** | ||
@@ -141,3 +141,3 @@ * Unique identifier for an analysis. | ||
*/ | ||
eventType: string; | ||
eventType: EventHandlerType; | ||
} | ||
@@ -144,0 +144,0 @@ export interface addEventHandlerEntryPointsResult { |
@@ -47,2 +47,6 @@ import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
} | ||
/** | ||
* Type of an event which handlers can be associated with. | ||
*/ | ||
export declare type EventHandlerType = string; | ||
export interface SearchSourceContentsMatch { | ||
@@ -213,2 +217,14 @@ location: Location; | ||
} | ||
export interface getEventHandlerCountParameters { | ||
/** | ||
* Type of event to get the handler count for. | ||
*/ | ||
eventType: EventHandlerType; | ||
} | ||
export interface getEventHandlerCountResult { | ||
/** | ||
* How many times handlers for the event type executed. | ||
*/ | ||
count: number; | ||
} | ||
export interface searchSourceContentsParameters { | ||
@@ -215,0 +231,0 @@ searchId: string; |
@@ -20,3 +20,3 @@ export * from "./Recording"; | ||
import { paintPoints, playbackVideoFragment, findPaintsParameters, findPaintsResult, getPlaybackVideoParameters, getPlaybackVideoResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "./Graphics"; | ||
import { newSource, searchSourceContentsMatches, functionsMatches, findSourcesParameters, findSourcesResult, getSourceContentsParameters, getSourceContentsResult, getSourceMapParameters, getSourceMapResult, getPossibleBreakpointsParameters, getPossibleBreakpointsResult, getHitCountsParameters, getHitCountsResult, searchSourceContentsParameters, searchSourceContentsResult, getMappedLocationParameters, getMappedLocationResult, setBreakpointParameters, setBreakpointResult, removeBreakpointParameters, removeBreakpointResult, findResumeTargetParameters, findResumeTargetResult, findRewindTargetParameters, findRewindTargetResult, findReverseStepOverTargetParameters, findReverseStepOverTargetResult, findStepOverTargetParameters, findStepOverTargetResult, findStepInTargetParameters, findStepInTargetResult, findStepOutTargetParameters, findStepOutTargetResult, blackboxSourceParameters, blackboxSourceResult, unblackboxSourceParameters, unblackboxSourceResult, searchFunctionsParameters, searchFunctionsResult } from "./Debugger"; | ||
import { newSource, searchSourceContentsMatches, functionsMatches, findSourcesParameters, findSourcesResult, getSourceContentsParameters, getSourceContentsResult, getSourceMapParameters, getSourceMapResult, getPossibleBreakpointsParameters, getPossibleBreakpointsResult, getHitCountsParameters, getHitCountsResult, getEventHandlerCountParameters, getEventHandlerCountResult, searchSourceContentsParameters, searchSourceContentsResult, getMappedLocationParameters, getMappedLocationResult, setBreakpointParameters, setBreakpointResult, removeBreakpointParameters, removeBreakpointResult, findResumeTargetParameters, findResumeTargetResult, findRewindTargetParameters, findRewindTargetResult, findReverseStepOverTargetParameters, findReverseStepOverTargetResult, findStepOverTargetParameters, findStepOverTargetResult, findStepInTargetParameters, findStepInTargetResult, findStepOutTargetParameters, findStepOutTargetResult, blackboxSourceParameters, blackboxSourceResult, unblackboxSourceParameters, unblackboxSourceResult, searchFunctionsParameters, searchFunctionsResult } from "./Debugger"; | ||
import { newMessage, findMessagesParameters, findMessagesResult } from "./Console"; | ||
@@ -570,2 +570,12 @@ import { evaluateInFrameParameters, evaluateInFrameResult, evaluateInGlobalParameters, evaluateInGlobalResult, getObjectPropertyParameters, getObjectPropertyResult, callFunctionParameters, callFunctionResult, callObjectPropertyParameters, callObjectPropertyResult, getObjectPreviewParameters, getObjectPreviewResult, getScopeParameters, getScopeResult, getTopFrameParameters, getTopFrameResult, getAllFramesParameters, getAllFramesResult, getFrameArgumentsParameters, getFrameArgumentsResult, getFrameStepsParameters, getFrameStepsResult, getExceptionValueParameters, getExceptionValueResult } from "./Pause"; | ||
}; | ||
/** | ||
* Get the number of times handlers for a type of event executed. | ||
*/ | ||
"Debugger.getEventHandlerCount": { | ||
parameters: getEventHandlerCountParameters; | ||
result: getEventHandlerCountResult; | ||
sessionId: true; | ||
pauseId: false; | ||
binary: false; | ||
}; | ||
"Debugger.searchSourceContents": { | ||
@@ -572,0 +582,0 @@ parameters: searchSourceContentsParameters; |
@@ -164,2 +164,7 @@ import { TimeRange, TimeStampedPointRange, MouseEvent, KeyboardEvent, NavigationEvent, Annotation, TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
loading: TimeStampedPointRange[]; | ||
/** | ||
* Timespans which have been indexed. Note: Indexed timespans are a subset | ||
* of loading in the same way that loaded is a subset of loading. | ||
*/ | ||
indexed: TimeStampedPointRange[]; | ||
} | ||
@@ -166,0 +171,0 @@ /** |
{ | ||
"name": "@recordreplay/protocol", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"description": "Definition of the protocol used by the Record Replay web service", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
466688
11053