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

bugger-v8-client

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugger-v8-client - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

1

lib/debug-client.js

@@ -64,3 +64,2 @@ 'use strict';

DebugClient.prototype._sendRequest = function(command, params, cb) {
debug('_sendRequest %j', command);
return this._rpc.execCommand(command, params).nodeify(cb);

@@ -67,0 +66,0 @@ };

13

lib/streams/rpc.js

@@ -25,4 +25,5 @@ 'use strict';

RPCStream.prototype.execCommand = function(command, args) {
var seq = ++this._lastSequence;
var obj = {
seq: ++this._lastSequence,
seq: seq,
type: 'request',

@@ -32,4 +33,6 @@ command: command,

};
debug('[%s] request %j', seq, command);
var resolver = this._pending[obj.seq] = Promise.defer();
var resolver = this._pending[seq] = Promise.defer();
resolver.requestArguments = args;

@@ -52,5 +55,5 @@ this.push(obj);

/*jshint camelcase:false */
debug('response for %s', raw.command);
var seq = raw.request_seq;
debug('[%s] response %j', seq, raw.command);
var resolver = this._pending[seq];

@@ -60,3 +63,5 @@ delete this._pending[seq];

if (!raw.success) {
resolver.reject(new Error(raw.message));
var err = new Error(raw.message);
err.args = resolver.requestArguments;
resolver.reject(err);
} else {

@@ -63,0 +68,0 @@ resolver.resolve(raw);

@@ -93,7 +93,7 @@ 'use strict';

reviver(raw.evalFromScript),
new Position(
raw.evalFromLocation && new Position(
raw.evalFromLocation.line,
raw.evalFromLocation.column
),
raw.evalFromFunctionName.value_
raw.evalFromFunctionName && raw.evalFromFunctionName.value_
);

@@ -100,0 +100,0 @@ }

{
"name": "bugger-v8-client",
"version": "3.0.1",
"version": "3.0.2",
"description": "Client for v8 debug protocol",

@@ -5,0 +5,0 @@ "main": "lib/bugger-v8-client.js",

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