vscode-jsonrpc
Advanced tools
Comparing version 8.1.0-next.4 to 8.1.0-next.5
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
207562
4950
1