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

chrome-debugging-client

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-debugging-client - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

4

dist/lib/create-debugging-protocol-client.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
;
function createDebuggingProtocolClient() {

@@ -66,3 +67,4 @@ return new DebuggingProtocol();

constructor(err) {
super(err.message);
const msg = err.data ? `${err.message}:${err.data}` : err.message;
super(msg);
this.code = err.code;

@@ -69,0 +71,0 @@ }

/**
* Debugging Protocol 1.3 Domains
* Generated on Sat Mar 17 2018 16:21:03 GMT-0700 (PDT)
* Generated on Wed May 16 2018 09:39:55 GMT-0700 (PDT)
*/

@@ -103,2 +103,6 @@ import { IDebuggingProtocolClient } from "../lib/types";

setBreakpointByUrl(params: Debugger.SetBreakpointByUrlParameters): Promise<Debugger.SetBreakpointByUrlReturn>;
/** Sets JavaScript breakpoint before each call to the given function.
If another function was created from the same source as a given one,
calling it will also trigger the breakpoint. */
setBreakpointOnFunctionCall(params: Debugger.SetBreakpointOnFunctionCallParameters): Promise<Debugger.SetBreakpointOnFunctionCallReturn>;
/** Activates / deactivates all breakpoints on the page. */

@@ -323,2 +327,4 @@ setBreakpointsActive(params: Debugger.SetBreakpointsActiveParameters): Promise<void>;

throwOnSideEffect?: boolean;
/** Terminate execution after timing out (number of milliseconds). */
timeout?: Runtime.TimeDelta;
};

@@ -440,2 +446,13 @@ type EvaluateOnCallFrameReturn = {

};
type SetBreakpointOnFunctionCallParameters = {
/** Function object id. */
objectId: Runtime.RemoteObjectId;
/** Expression to use as a breakpoint condition. When specified, debugger will
stop on the breakpoint if this expression evaluates to true. */
condition?: string;
};
type SetBreakpointOnFunctionCallReturn = {
/** Id of the created breakpoint for further reference. */
breakpointId: BreakpointId;
};
type SetBreakpointsActiveParameters = {

@@ -809,2 +826,7 @@ /** New value for breakpoints active state. */

evaluate(params: Runtime.EvaluateParameters): Promise<Runtime.EvaluateReturn>;
/** Returns the isolate id. */
getIsolateId(): Promise<Runtime.GetIsolateIdReturn>;
/** Returns the JavaScript heap usage.
It is the total usage of the corresponding isolate not scoped to a particular Runtime. */
getHeapUsage(): Promise<Runtime.GetHeapUsageReturn>;
/** Returns properties of a given object. Object group of the result is inherited from the target

@@ -825,2 +847,5 @@ object. */

setCustomObjectFormatterEnabled(params: Runtime.SetCustomObjectFormatterEnabledParameters): Promise<void>;
/** Terminate current or next JavaScript execution.
Will cancel the termination when the outer-most script execution ends. */
terminateExecution(): Promise<void>;
/** Issued when console API was called. */

@@ -993,2 +1018,4 @@ consoleAPICalled: Runtime.ConsoleAPICalledHandler | null;

type Timestamp = number;
/** Number of milliseconds. */
type TimeDelta = number;
/** Stack entry for runtime errors and assertions. */

@@ -1162,2 +1189,4 @@ interface CallFrame {

throwOnSideEffect?: boolean;
/** Terminate execution after timing out (number of milliseconds). */
timeout?: TimeDelta;
};

@@ -1170,2 +1199,12 @@ type EvaluateReturn = {

};
type GetIsolateIdReturn = {
/** The isolate id. */
id: string;
};
type GetHeapUsageReturn = {
/** Used heap size in bytes. */
usedSize: number;
/** Allocated heap size in bytes. */
totalSize: number;
};
type GetPropertiesParameters = {

@@ -1172,0 +1211,0 @@ /** Identifier of the object to return properties for. */

@@ -136,2 +136,8 @@ "use strict";

}
/** Sets JavaScript breakpoint before each call to the given function.
If another function was created from the same source as a given one,
calling it will also trigger the breakpoint. */
setBreakpointOnFunctionCall(params) {
return this._client.send("Debugger.setBreakpointOnFunctionCall", params);
}
/** Activates / deactivates all breakpoints on the page. */

@@ -485,2 +491,11 @@ setBreakpointsActive(params) {

}
/** Returns the isolate id. */
getIsolateId() {
return this._client.send("Runtime.getIsolateId");
}
/** Returns the JavaScript heap usage.
It is the total usage of the corresponding isolate not scoped to a particular Runtime. */
getHeapUsage() {
return this._client.send("Runtime.getHeapUsage");
}
/** Returns properties of a given object. Object group of the result is inherited from the target

@@ -517,2 +532,7 @@ object. */

}
/** Terminate current or next JavaScript execution.
Will cancel the termination when the outer-most script execution ends. */
terminateExecution() {
return this._client.send("Runtime.terminateExecution");
}
/** Issued when console API was called. */

@@ -519,0 +539,0 @@ get consoleAPICalled() {

{
"name": "chrome-debugging-client",
"version": "0.4.6",
"version": "0.4.7",
"description": "An async/await friendly Chrome debugging client with TypeScript support",

@@ -38,3 +38,3 @@ "keywords": [

"type": "git",
"url": "https://github.com/krisselden/chrome-debugging-client.git"
"url": "https://github.com/devtrace/chrome-debugging-client.git"
},

@@ -41,0 +41,0 @@ "license": "Apache-2.0",

chrome-debugging-client
=======================
[![Build Status](https://travis-ci.org/krisselden/chrome-debugging-client.svg?branch=master)](https://travis-ci.org/krisselden/chrome-debugging-client)
[![Build Status](https://travis-ci.org/devtrace/chrome-debugging-client.svg?branch=master)](https://travis-ci.org/devtrace/chrome-debugging-client)

@@ -5,0 +5,0 @@ An async/await friendly Chrome debugging client with TypeScript support,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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