@recordreplay/protocol
Advanced tools
Comparing version 0.10.4 to 0.11.4
@@ -12,3 +12,3 @@ import { uploadedData, awaitingSourcemaps, sessionError, getDescriptionParameters, createSessionParameters, releaseSessionParameters, processRecordingParameters, addSourceMapParameters, addOriginalSourceParameters } from "../../protocol/Recording"; | ||
import { analysisResult, analysisError, analysisPoints, createAnalysisParameters, addLocationParameters, addFunctionEntryPointsParameters, addRandomPointsParameters, addEventHandlerEntryPointsParameters, addExceptionPointsParameters, addPointsParameters, runAnalysisParameters, releaseAnalysisParameters, findAnalysisPointsParameters } from "../../protocol/Analysis"; | ||
import { convertLocationToFunctionOffsetParameters, convertFunctionOffsetToLocationParameters, getStepOffsetsParameters, getHTMLSourceParameters, getFunctionsInRangeParameters, getSourceMapURLParameters, getSheetSourceMapURLParameters, getCurrentMessageContentsParameters, countStackFramesParameters, getStackFunctionIDsParameters, currentGeneratorIdParameters, topFrameLocationParameters } from "../../protocol/Target"; | ||
import { convertLocationToFunctionOffsetParameters, convertFunctionOffsetToLocationParameters, convertFunctionOffsetsToLocationsParameters, getStepOffsetsParameters, getHTMLSourceParameters, getFunctionsInRangeParameters, getSourceMapURLParameters, getSheetSourceMapURLParameters, getCurrentMessageContentsParameters, countStackFramesParameters, getStackFunctionIDsParameters, currentGeneratorIdParameters, topFrameLocationParameters } from "../../protocol/Target"; | ||
import { createRecordingParameters, setRecordingMetadataParameters, addRecordingDataParameters, addRecordingDescriptionParameters, finishRecordingParameters, beginRecordingResourceUploadParameters, endRecordingResourceUploadParameters, echoParameters, labelTestSessionParameters, reportCrashParameters } from "../../protocol/Internal"; | ||
@@ -587,2 +587,8 @@ import { GenericProtocolClient } from "../generic"; | ||
/** | ||
* Get all the locations to use for some offsets in a function. This can be | ||
* implemented more efficiently by some targets than when separate | ||
* <code>convertFunctionOffsetToLocation</code> commands are used. | ||
*/ | ||
convertFunctionOffsetsToLocations: (parameters: convertFunctionOffsetsToLocationsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Target").convertFunctionOffsetsToLocationsResult>; | ||
/** | ||
* Get the offsets at which execution should pause when stepping around within | ||
@@ -589,0 +595,0 @@ * a frame for a function. |
@@ -762,2 +762,10 @@ "use strict"; | ||
/** | ||
* Get all the locations to use for some offsets in a function. This can be | ||
* implemented more efficiently by some targets than when separate | ||
* <code>convertFunctionOffsetToLocation</code> commands are used. | ||
*/ | ||
convertFunctionOffsetsToLocations: function (parameters, sessionId, pauseId) { | ||
return _this.genericClient.sendCommand("Target.convertFunctionOffsetsToLocations", parameters, sessionId, pauseId); | ||
}, | ||
/** | ||
* Get the offsets at which execution should pause when stepping around within | ||
@@ -764,0 +772,0 @@ * a frame for a function. |
@@ -46,2 +46,15 @@ import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
/** | ||
* A logical name for the analysis. Does not have any constraints | ||
* aside from being a valid string. May be omitted. | ||
*/ | ||
name?: string; | ||
/** | ||
* A priority for the analysis. The priority must be one of the strings | ||
* <code>"user"</code> (indicating that the analysis was user-created), | ||
* or <code>"app"</code> (indicating that the analysis was automatically | ||
* created by the frontend app). The priority may be omitted, in | ||
* which case <code>"user"</code> priority is assumed. | ||
*/ | ||
priority?: string; | ||
/** | ||
* Body of the reducer function. The reducer function takes two arguments: | ||
@@ -48,0 +61,0 @@ * <code>key</code> is an <code>AnalysisKey</code>, and <code>values</code> |
@@ -25,3 +25,3 @@ export * from "./Recording"; | ||
import { analysisResult, analysisError, analysisPoints, createAnalysisParameters, createAnalysisResult, addLocationParameters, addLocationResult, addFunctionEntryPointsParameters, addFunctionEntryPointsResult, addRandomPointsParameters, addRandomPointsResult, addEventHandlerEntryPointsParameters, addEventHandlerEntryPointsResult, addExceptionPointsParameters, addExceptionPointsResult, addPointsParameters, addPointsResult, runAnalysisParameters, runAnalysisResult, releaseAnalysisParameters, releaseAnalysisResult, findAnalysisPointsParameters, findAnalysisPointsResult } from "./Analysis"; | ||
import { convertLocationToFunctionOffsetParameters, convertLocationToFunctionOffsetResult, convertFunctionOffsetToLocationParameters, convertFunctionOffsetToLocationResult, getStepOffsetsParameters, getStepOffsetsResult, getHTMLSourceParameters, getHTMLSourceResult, getFunctionsInRangeParameters, getFunctionsInRangeResult, getSourceMapURLParameters, getSourceMapURLResult, getSheetSourceMapURLParameters, getSheetSourceMapURLResult, getCurrentMessageContentsParameters, getCurrentMessageContentsResult, countStackFramesParameters, countStackFramesResult, getStackFunctionIDsParameters, getStackFunctionIDsResult, currentGeneratorIdParameters, currentGeneratorIdResult, topFrameLocationParameters, topFrameLocationResult } from "./Target"; | ||
import { convertLocationToFunctionOffsetParameters, convertLocationToFunctionOffsetResult, convertFunctionOffsetToLocationParameters, convertFunctionOffsetToLocationResult, convertFunctionOffsetsToLocationsParameters, convertFunctionOffsetsToLocationsResult, getStepOffsetsParameters, getStepOffsetsResult, getHTMLSourceParameters, getHTMLSourceResult, getFunctionsInRangeParameters, getFunctionsInRangeResult, getSourceMapURLParameters, getSourceMapURLResult, getSheetSourceMapURLParameters, getSheetSourceMapURLResult, getCurrentMessageContentsParameters, getCurrentMessageContentsResult, countStackFramesParameters, countStackFramesResult, getStackFunctionIDsParameters, getStackFunctionIDsResult, currentGeneratorIdParameters, currentGeneratorIdResult, topFrameLocationParameters, topFrameLocationResult } from "./Target"; | ||
import { createRecordingParameters, createRecordingResult, setRecordingMetadataParameters, setRecordingMetadataResult, addRecordingDataParameters, addRecordingDataResult, addRecordingDescriptionParameters, addRecordingDescriptionResult, finishRecordingParameters, finishRecordingResult, beginRecordingResourceUploadParameters, beginRecordingResourceUploadResult, endRecordingResourceUploadParameters, endRecordingResourceUploadResult, echoParameters, echoResult, labelTestSessionParameters, labelTestSessionResult, reportCrashParameters, reportCrashResult } from "./Internal"; | ||
@@ -992,2 +992,14 @@ interface Events { | ||
/** | ||
* Get all the locations to use for some offsets in a function. This can be | ||
* implemented more efficiently by some targets than when separate | ||
* <code>convertFunctionOffsetToLocation</code> commands are used. | ||
*/ | ||
"Target.convertFunctionOffsetsToLocations": { | ||
parameters: convertFunctionOffsetsToLocationsParameters; | ||
result: convertFunctionOffsetsToLocationsResult; | ||
sessionId: false; | ||
pauseId: false; | ||
binary: false; | ||
}; | ||
/** | ||
* Get the offsets at which execution should pause when stepping around within | ||
@@ -994,0 +1006,0 @@ * a frame for a function. |
@@ -13,3 +13,14 @@ import { RecordingId, BuildId, TimeStamp } from "./Recording"; | ||
lastScreenMimeType: string; | ||
operations: OperationsData; | ||
} | ||
/** | ||
* Operations that could be considered security sensitive and is | ||
* currently targeted at times when the recording accesses existing | ||
* information from the user's profile like cookies and local storage. | ||
*/ | ||
export interface OperationsData { | ||
scriptDomains: string[]; | ||
cookies?: string[]; | ||
storage?: string[]; | ||
} | ||
export interface createRecordingParameters { | ||
@@ -16,0 +27,0 @@ /** |
@@ -18,2 +18,18 @@ import { Location, SourceId, SourceLocation } from "./Debugger"; | ||
} | ||
export interface convertFunctionOffsetsToLocationsParameters { | ||
/** | ||
* Function ID shared by all the offsets. | ||
*/ | ||
functionId: string; | ||
/** | ||
* Sorted array of offsets to compute the locations for. | ||
*/ | ||
offsets: number[]; | ||
} | ||
export interface convertFunctionOffsetsToLocationsResult { | ||
/** | ||
* Resulting locations, with the same length as <code>offsets</code>. | ||
*/ | ||
locations: Location[]; | ||
} | ||
export interface getStepOffsetsParameters { | ||
@@ -20,0 +36,0 @@ functionId: string; |
{ | ||
"name": "@recordreplay/protocol", | ||
"version": "0.10.4", | ||
"version": "0.11.4", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
387901
9144
1