Socket
Socket
Sign inDemoInstall

vscode-jsonrpc

Package Overview
Dependencies
0
Maintainers
7
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.0-next.1 to 9.0.0-next.2

14

lib/common/connection.js

@@ -329,3 +329,12 @@ "use strict";

else if (messages_1.Message.isResponse(message)) {
queue.set(createResponseQueueKey(message.id), message);
// If we have unlimited parallelism we queue the response to keep
// the previous semantics.
if (maxParallelism === -1) {
queue.set(createResponseQueueKey(message.id), message);
}
else {
// If we have limited parallelism we resolve responses to avoid
// dead locks.
handleResponse(message);
}
}

@@ -534,3 +543,3 @@ else {

// See handle request.
return Promise.resolve();
return;
}

@@ -573,3 +582,2 @@ if (responseMessage.id === null) {

}
return Promise.resolve();
}

@@ -576,0 +584,0 @@ async function handleNotification(message) {

@@ -22,2 +22,4 @@ export declare namespace Touch {

get last(): V | undefined;
before(key: K): V | undefined;
after(key: K): V | undefined;
has(key: K): boolean;

@@ -24,0 +26,0 @@ get(key: K, touch?: Touch): V | undefined;

@@ -45,2 +45,10 @@ "use strict";

}
before(key) {
const item = this._map.get(key);
return item ? item.previous?.value : undefined;
}
after(key) {
const item = this._map.get(key);
return item ? item.next?.value : undefined;
}
has(key) {

@@ -47,0 +55,0 @@ return this._map.has(key);

{
"name": "vscode-jsonrpc",
"description": "A json rpc implementation over streams",
"version": "9.0.0-next.1",
"version": "9.0.0-next.2",
"author": "Microsoft Corporation",

@@ -33,3 +33,3 @@ "license": "MIT",

"watch": "node ../build/bin/tsc -b ./tsconfig.watch.json -w",
"clean": "node ../node_modules/.bin/rimraf lib && node ../node_modules/.bin/rimraf dist",
"clean": "node ../node_modules/rimraf/dist/esm/bin.mjs lib && node ../node_modules/rimraf/dist/esm/bin.mjs dist",
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",

@@ -36,0 +36,0 @@ "test": "npm run test:node && npm run test:browser",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc