Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@recordreplay/protocol

Package Overview
Dependencies
Maintainers
6
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@recordreplay/protocol - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

js/protocol/Network.d.ts

29

js/client/build/client.d.ts

@@ -12,3 +12,4 @@ 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, convertFunctionOffsetsToLocationsParameters, getStepOffsetsParameters, getHTMLSourceParameters, getFunctionsInRangeParameters, getSourceMapURLParameters, getSheetSourceMapURLParameters, getCurrentMessageContentsParameters, countStackFramesParameters, getStackFunctionIDsParameters, currentGeneratorIdParameters, topFrameLocationParameters } from "../../protocol/Target";
import { requests, findRequestsParameters } from "../../protocol/Network";
import { convertLocationToFunctionOffsetParameters, convertFunctionOffsetToLocationParameters, convertFunctionOffsetsToLocationsParameters, getStepOffsetsParameters, getHTMLSourceParameters, getFunctionsInRangeParameters, getSourceMapURLParameters, getSheetSourceMapURLParameters, getCurrentMessageContentsParameters, countStackFramesParameters, getStackFunctionIDsParameters, currentGeneratorIdParameters, topFrameLocationParameters, getCurrentNetworkRequestEventParameters } from "../../protocol/Target";
import { createRecordingParameters, setRecordingMetadataParameters, addRecordingDataParameters, addRecordingDescriptionParameters, finishRecordingParameters, beginRecordingResourceUploadParameters, endRecordingResourceUploadParameters, echoParameters, labelTestSessionParameters, reportCrashParameters } from "../../protocol/Internal";

@@ -573,2 +574,23 @@ import { GenericProtocolClient } from "../generic";

/**
* The Network domain is used to inspect the Network state at particular execution points.
*
* <br><br>All commands and events in this domain must include both a <code>sessionId</code>.
*/
Network: {
/**
* Describe some requests that were dispatched by the recording.
*
* NOTE: There is no guarantee that request information will be available
* before the request event info, so all temporal combinations should be
* supported when processing this data.
*/
addRequestsListener: (listener: (parameters: requests) => void) => void;
removeRequestsListener: () => void | undefined;
/**
* Query the recording for all network data that is available, returning once
* all 'Network.requests' events have been dispatched.
*/
findRequests: (parameters: findRequestsParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Network").findRequestsResult>;
};
/**
* The Target domain includes commands that are sent by the Record Replay Driver

@@ -641,2 +663,7 @@ * to the target application which it is attached to. Protocol clients should

topFrameLocation: (parameters: topFrameLocationParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Target").topFrameLocationResult>;
/**
* This command might be sent from within a RecordReplayOnNetworkRequestEvent()
* call to get contents of the request data.
*/
getCurrentNetworkRequestEvent: (parameters: getCurrentNetworkRequestEventParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Target").getCurrentNetworkRequestEventResult>;
};

@@ -643,0 +670,0 @@ /**

@@ -744,2 +744,27 @@ "use strict";

/**
* The Network domain is used to inspect the Network state at particular execution points.
*
* <br><br>All commands and events in this domain must include both a <code>sessionId</code>.
*/
this.Network = {
/**
* Describe some requests that were dispatched by the recording.
*
* NOTE: There is no guarantee that request information will be available
* before the request event info, so all temporal combinations should be
* supported when processing this data.
*/
addRequestsListener: function (listener) {
return _this.genericClient.addEventListener("Network.requests", listener);
},
removeRequestsListener: function () { var _a, _b; return (_b = (_a = _this.genericClient).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "Network.requests"); },
/**
* Query the recording for all network data that is available, returning once
* all 'Network.requests' events have been dispatched.
*/
findRequests: function (parameters, sessionId, pauseId) {
return _this.genericClient.sendCommand("Network.findRequests", parameters, sessionId, pauseId);
},
};
/**
* The Target domain includes commands that are sent by the Record Replay Driver

@@ -838,2 +863,9 @@ * to the target application which it is attached to. Protocol clients should

},
/**
* This command might be sent from within a RecordReplayOnNetworkRequestEvent()
* call to get contents of the request data.
*/
getCurrentNetworkRequestEvent: function (parameters, sessionId, pauseId) {
return _this.genericClient.sendCommand("Target.getCurrentNetworkRequestEvent", parameters, sessionId, pauseId);
},
};

@@ -840,0 +872,0 @@ /**

@@ -12,2 +12,3 @@ export * from "./Recording";

export * from "./Analysis";
export * from "./Network";
export * from "./Target";

@@ -26,3 +27,4 @@ export * from "./Internal";

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, 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 { requests, findRequestsParameters, findRequestsResult } from "./Network";
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, getCurrentNetworkRequestEventParameters, getCurrentNetworkRequestEventResult } 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";

@@ -154,2 +156,13 @@ interface Events {

};
/**
* Describe some requests that were dispatched by the recording.
*
* NOTE: There is no guarantee that request information will be available
* before the request event info, so all temporal combinations should be
* supported when processing this data.
*/
"Network.requests": {
parameters: requests;
sessionId: true;
};
}

@@ -974,2 +987,13 @@ export declare type EventMethods = keyof Events;

/**
* Query the recording for all network data that is available, returning once
* all 'Network.requests' events have been dispatched.
*/
"Network.findRequests": {
parameters: findRequestsParameters;
result: findRequestsResult;
sessionId: true;
pauseId: false;
binary: false;
};
/**
* Get the function ID / offset to use for a source location, if there is one.

@@ -1115,2 +1139,13 @@ */

/**
* This command might be sent from within a RecordReplayOnNetworkRequestEvent()
* call to get contents of the request data.
*/
"Target.getCurrentNetworkRequestEvent": {
parameters: getCurrentNetworkRequestEventParameters;
result: getCurrentNetworkRequestEventResult;
sessionId: false;
pauseId: false;
binary: false;
};
/**
* Create a new recording.

@@ -1117,0 +1152,0 @@ */

@@ -24,2 +24,3 @@ "use strict";

__exportStar(require("./Analysis"), exports);
__exportStar(require("./Network"), exports);
__exportStar(require("./Target"), exports);

@@ -26,0 +27,0 @@ __exportStar(require("./Internal"), exports);

import { Location, SourceId, SourceLocation } from "./Debugger";
import { ObjectId, Value } from "./Pause";
import { MessageSource, MessageLevel } from "./Console";
import { RequestEvent } from "./Network";
export interface convertLocationToFunctionOffsetParameters {

@@ -105,1 +106,6 @@ location: Location;

}
export interface getCurrentNetworkRequestEventParameters {
}
export interface getCurrentNetworkRequestEventResult {
data: RequestEvent;
}

2

package.json
{
"name": "@recordreplay/protocol",
"version": "0.13.0",
"version": "0.14.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc