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.6.3 to 0.6.4

codegen/index.ts

42

dist/protocol/v8.d.ts
/**
* Debugging Protocol 1.3 Domains
* Generated on Fri May 25 2018 13:23:35 GMT-0700 (PDT)
* Generated on Wed Aug 01 2018 17:01:09 GMT-0700 (PDT)
*/

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

export declare class Runtime {
private _bindingCalled;
private _consoleAPICalled;

@@ -843,6 +844,23 @@ private _exceptionRevoked;

runScript(params: Runtime.RunScriptParameters): Promise<Runtime.RunScriptReturn>;
/** Enables or disables async call stacks tracking. */
setAsyncCallStackDepth(params: Runtime.SetAsyncCallStackDepthParameters): Promise<void>;
setCustomObjectFormatterEnabled(params: Runtime.SetCustomObjectFormatterEnabledParameters): Promise<void>;
setMaxCallStackSizeToCapture(params: Runtime.SetMaxCallStackSizeToCaptureParameters): Promise<void>;
/** Terminate current or next JavaScript execution.
Will cancel the termination when the outer-most script execution ends. */
terminateExecution(): Promise<void>;
/** If executionContextId is empty, adds binding with the given name on the
global objects of all inspected contexts, including those created later,
bindings survive reloads.
If executionContextId is specified, adds binding only on global object of
given execution context.
Binding function takes exactly one argument, this argument should be string,
in case of any other input, function throws an exception.
Each binding function call produces Runtime.bindingCalled notification. */
addBinding(params: Runtime.AddBindingParameters): Promise<void>;
/** This method does not remove binding function from global object but
unsubscribes current runtime agent from Runtime.bindingCalled notifications. */
removeBinding(params: Runtime.RemoveBindingParameters): Promise<void>;
/** Notification is issued every time when binding is called. */
bindingCalled: Runtime.BindingCalledHandler | null;
/** Issued when console API was called. */

@@ -1050,2 +1068,9 @@ consoleAPICalled: Runtime.ConsoleAPICalledHandler | null;

}
type BindingCalledParameters = {
name: string;
payload: string;
/** Identifier of the context where the call was made. */
executionContextId: ExecutionContextId;
};
type BindingCalledHandler = (params: BindingCalledParameters) => void;
type ConsoleAPICalledParameters = {

@@ -1277,5 +1302,20 @@ /** Type of the call. */

};
type SetAsyncCallStackDepthParameters = {
/** Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
call stacks (default). */
maxDepth: number;
};
type SetCustomObjectFormatterEnabledParameters = {
enabled: boolean;
};
type SetMaxCallStackSizeToCaptureParameters = {
size: number;
};
type AddBindingParameters = {
name: string;
executionContextId?: ExecutionContextId;
};
type RemoveBindingParameters = {
name: string;
};
}

@@ -1282,0 +1322,0 @@ /** This domain is deprecated. */

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

constructor(client) {
this._bindingCalled = null;
this._consoleAPICalled = null;

@@ -528,5 +529,12 @@ this._exceptionRevoked = null;

}
/** Enables or disables async call stacks tracking. */
setAsyncCallStackDepth(params) {
return this._client.send("Runtime.setAsyncCallStackDepth", params);
}
setCustomObjectFormatterEnabled(params) {
return this._client.send("Runtime.setCustomObjectFormatterEnabled", params);
}
setMaxCallStackSizeToCapture(params) {
return this._client.send("Runtime.setMaxCallStackSizeToCapture", params);
}
/** Terminate current or next JavaScript execution.

@@ -537,2 +545,31 @@ Will cancel the termination when the outer-most script execution ends. */

}
/** If executionContextId is empty, adds binding with the given name on the
global objects of all inspected contexts, including those created later,
bindings survive reloads.
If executionContextId is specified, adds binding only on global object of
given execution context.
Binding function takes exactly one argument, this argument should be string,
in case of any other input, function throws an exception.
Each binding function call produces Runtime.bindingCalled notification. */
addBinding(params) {
return this._client.send("Runtime.addBinding", params);
}
/** This method does not remove binding function from global object but
unsubscribes current runtime agent from Runtime.bindingCalled notifications. */
removeBinding(params) {
return this._client.send("Runtime.removeBinding", params);
}
/** Notification is issued every time when binding is called. */
get bindingCalled() {
return this._bindingCalled;
}
set bindingCalled(handler) {
if (this._bindingCalled) {
this._client.removeListener("Runtime.bindingCalled", this._bindingCalled);
}
this._bindingCalled = handler;
if (handler) {
this._client.on("Runtime.bindingCalled", handler);
}
}
/** Issued when console API was called. */

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

65

package.json
{
"name": "chrome-debugging-client",
"version": "0.6.3",
"version": "0.6.4",
"description": "An async/await friendly Chrome debugging client with TypeScript support",

@@ -12,37 +12,38 @@ "keywords": [

],
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/devtrace/chrome-debugging-client.git"
},
"license": "BSD-2-Clause",
"author": "Kris Selden <kris.selden@gmail.com>",
"files": [
"dist/index.d.ts",
"dist/index.js",
"dist/index.js.map",
"dist/lib",
"dist/protocol",
"dist/codegen"
"dist/**/*.js",
"dist/**/*.d.ts",
"dist/**/*.js.map",
"!dist/test",
"index.ts",
"lib/*.ts",
"protocol/*.ts",
"codegen/*.ts"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"codegen": "dist/codegen",
"dist": "dist",
"protocol": "dist/protocol",
"codegen": "dist/codegen"
"protocol": "dist/protocol"
},
"types": "dist/index.d.ts",
"scripts": {
"compile": "tsc --watch",
"compile-protocol-gen": "tsc -p scripts/tsconfig.json",
"lint": "tslint -p tsconfig.json",
"prepare": "npm run rebuild",
"compile-protocol-gen": "tsc -p scripts/tsconfig.json",
"protocol-gen": "npm run compile-protocol-gen && node dist/scripts/generate-protocol.js",
"rebuild": "rm -rf dist && tsc",
"compile": "tsc --watch",
"lint": "tslint -p tsconfig.json",
"test": "tsc && node dist/test/index.js | faucet"
},
"author": "Kris Selden <kris.selden@gmail.com>",
"license": "BSD-2-Clause",
"repository": {
"type": "git",
"url": "https://github.com/devtrace/chrome-debugging-client.git"
},
"dependencies": {
"@types/node": "^8.9.5",
"@types/rimraf": "^2.0.2",
"@types/tape": "^4.2.29",
"@types/ws": "^4.0.1",
"@types/node": "*",
"@types/rimraf": "*",
"@types/ws": "*",
"chrome-launcher": "^0.10.2",

@@ -52,16 +53,18 @@ "execa": "^0.10.0",

"rimraf": "^2.5.1",
"ws": "^4.1.0"
"ws": "^6.0.0"
},
"devDependencies": {
"@types/execa": "^0.9.0",
"@types/got": "^7.1.8",
"@types/got": "^8.3.3",
"@types/tape": "^4.2.32",
"faucet": "0.0.1",
"got": "^8.3.0",
"tape": "^4.9.0",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.13.0",
"got": "^8.3.2",
"prettier": "^1.14.0",
"tape": "^4.9.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.7.2"
"typescript": "^3.0.1"
},
"engine": "node >= 4.0.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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 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 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