Socket
Socket
Sign inDemoInstall

vscode-jsonrpc

Package Overview
Dependencies
Maintainers
7
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-jsonrpc - npm Package Compare versions

Comparing version 8.1.0-next.4 to 8.1.0-next.5

6

lib/common/messageReader.js

@@ -139,7 +139,9 @@ "use strict";

if (!contentLength) {
throw new Error('Header must provide a Content-Length property.');
this.fireError(new Error('Header must provide a Content-Length property.'));
return;
}
const length = parseInt(contentLength);
if (isNaN(length)) {
throw new Error('Content-Length value must be a number.');
this.fireError(new Error('Content-Length value must be a number.'));
return;
}

@@ -146,0 +148,0 @@ this.nextMessageLength = length;

@@ -170,3 +170,3 @@ "use strict";

const limit = safeIpcPathLengths.get(process.platform);
if (limit !== undefined && result.length >= limit) {
if (limit !== undefined && result.length > limit) {
(0, ril_1.default)().console.warn(`WARNING: IPC handle "${result}" is longer than ${limit} characters.`);

@@ -173,0 +173,0 @@ }

{
"name": "vscode-jsonrpc",
"description": "A json rpc implementation over streams",
"version": "8.1.0-next.4",
"version": "8.1.0-next.5",
"author": "Microsoft Corporation",

@@ -6,0 +6,0 @@ "license": "MIT",

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