@recordreplay/protocol
Advanced tools
Comparing version 0.15.1 to 0.15.2
@@ -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, findSourcesParameters, getSourceContentsParameters, getPossibleBreakpointsParameters, getMappedLocationParameters, setBreakpointParameters, removeBreakpointParameters, findResumeTargetParameters, findRewindTargetParameters, findReverseStepOverTargetParameters, findStepOverTargetParameters, findStepInTargetParameters, findStepOutTargetParameters, blackboxSourceParameters, unblackboxSourceParameters } from "../../protocol/Debugger"; | ||
import { newSource, searchSourceContentsMatches, findSourcesParameters, getSourceContentsParameters, getPossibleBreakpointsParameters, searchSourceContentsParameters, getMappedLocationParameters, setBreakpointParameters, removeBreakpointParameters, findResumeTargetParameters, findRewindTargetParameters, findReverseStepOverTargetParameters, findStepOverTargetParameters, findStepInTargetParameters, findStepOutTargetParameters, blackboxSourceParameters, unblackboxSourceParameters } from "../../protocol/Debugger"; | ||
import { newMessage, findMessagesParameters } from "../../protocol/Console"; | ||
@@ -281,2 +281,4 @@ import { evaluateInFrameParameters, evaluateInGlobalParameters, getObjectPropertyParameters, callFunctionParameters, callObjectPropertyParameters, getObjectPreviewParameters, getScopeParameters, getTopFrameParameters, getAllFramesParameters, getFrameArgumentsParameters, getFrameStepsParameters, getExceptionValueParameters } from "../../protocol/Pause"; | ||
removeNewSourceListener: () => void | undefined; | ||
addSearchSourceContentsMatchesListener: (listener: (parameters: searchSourceContentsMatches) => void) => void; | ||
removeSearchSourceContentsMatchesListener: () => void | undefined; | ||
/** | ||
@@ -297,2 +299,3 @@ * Find all sources in the recording. Does not return until the recording is | ||
getPossibleBreakpoints: (parameters: getPossibleBreakpointsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Debugger").getPossibleBreakpointsResult>; | ||
searchSourceContents: (parameters: searchSourceContentsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Debugger").searchSourceContentsResult>; | ||
/** | ||
@@ -299,0 +302,0 @@ * Get the mapped location for a source location. |
@@ -347,2 +347,6 @@ "use strict"; | ||
removeNewSourceListener: function () { var _a, _b; return (_b = (_a = _this.genericClient).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "Debugger.newSource"); }, | ||
addSearchSourceContentsMatchesListener: function (listener) { | ||
return _this.genericClient.addEventListener("Debugger.searchSourceContentsMatches", listener); | ||
}, | ||
removeSearchSourceContentsMatchesListener: function () { var _a, _b; return (_b = (_a = _this.genericClient).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "Debugger.searchSourceContentsMatches"); }, | ||
/** | ||
@@ -369,2 +373,5 @@ * Find all sources in the recording. Does not return until the recording is | ||
}, | ||
searchSourceContents: function (parameters, sessionId, pauseId) { | ||
return _this.genericClient.sendCommand("Debugger.searchSourceContents", parameters, sessionId, pauseId); | ||
}, | ||
/** | ||
@@ -371,0 +378,0 @@ * Get the mapped location for a source location. |
@@ -33,2 +33,17 @@ import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
export declare type ContentType = "text/javascript" | "text/html"; | ||
export interface SearchSourceContentsMatch { | ||
location: Location; | ||
/** | ||
* Some snippet of text from around the match | ||
*/ | ||
context: string; | ||
/** | ||
* The beginning of the match within the context snippet | ||
*/ | ||
contextStart: SourceLocation; | ||
/** | ||
* The end of the match within the context snippet | ||
*/ | ||
contextEnd: SourceLocation; | ||
} | ||
/** | ||
@@ -146,2 +161,8 @@ * Location within a particular source. | ||
} | ||
export interface searchSourceContentsParameters { | ||
searchId: string; | ||
query: string; | ||
} | ||
export interface searchSourceContentsResult { | ||
} | ||
export interface getMappedLocationParameters { | ||
@@ -301,1 +322,3 @@ location: Location; | ||
} | ||
export interface searchSourceContentsMatches { | ||
} |
@@ -20,3 +20,3 @@ export * from "./Recording"; | ||
import { paintPoints, playbackVideoFragment, findPaintsParameters, findPaintsResult, getPlaybackVideoParameters, getPlaybackVideoResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "./Graphics"; | ||
import { newSource, findSourcesParameters, findSourcesResult, getSourceContentsParameters, getSourceContentsResult, getPossibleBreakpointsParameters, getPossibleBreakpointsResult, getMappedLocationParameters, getMappedLocationResult, setBreakpointParameters, setBreakpointResult, removeBreakpointParameters, removeBreakpointResult, findResumeTargetParameters, findResumeTargetResult, findRewindTargetParameters, findRewindTargetResult, findReverseStepOverTargetParameters, findReverseStepOverTargetResult, findStepOverTargetParameters, findStepOverTargetResult, findStepInTargetParameters, findStepInTargetResult, findStepOutTargetParameters, findStepOutTargetResult, blackboxSourceParameters, blackboxSourceResult, unblackboxSourceParameters, unblackboxSourceResult } from "./Debugger"; | ||
import { newSource, searchSourceContentsMatches, findSourcesParameters, findSourcesResult, getSourceContentsParameters, getSourceContentsResult, getPossibleBreakpointsParameters, getPossibleBreakpointsResult, searchSourceContentsParameters, searchSourceContentsResult, getMappedLocationParameters, getMappedLocationResult, setBreakpointParameters, setBreakpointResult, removeBreakpointParameters, removeBreakpointResult, findResumeTargetParameters, findResumeTargetResult, findRewindTargetParameters, findRewindTargetResult, findReverseStepOverTargetParameters, findReverseStepOverTargetResult, findStepOverTargetParameters, findStepOverTargetResult, findStepInTargetParameters, findStepInTargetResult, findStepOutTargetParameters, findStepOutTargetResult, blackboxSourceParameters, blackboxSourceResult, unblackboxSourceParameters, unblackboxSourceResult } from "./Debugger"; | ||
import { newMessage, findMessagesParameters, findMessagesResult } from "./Console"; | ||
@@ -125,2 +125,6 @@ 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"; | ||
}; | ||
"Debugger.searchSourceContentsMatches": { | ||
parameters: searchSourceContentsMatches; | ||
sessionId: true; | ||
}; | ||
/** | ||
@@ -511,2 +515,9 @@ * Describes a console message in the recording. | ||
}; | ||
"Debugger.searchSourceContents": { | ||
parameters: searchSourceContentsParameters; | ||
result: searchSourceContentsResult; | ||
sessionId: true; | ||
pauseId: false; | ||
binary: false; | ||
}; | ||
/** | ||
@@ -513,0 +524,0 @@ * Get the mapped location for a source location. |
{ | ||
"name": "@recordreplay/protocol", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"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
419025
9941