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 8.2.0-next.1 to 8.2.0-next.2

2

lib/common/cancellation.js

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

CancellationToken.is = is;
})(CancellationToken = exports.CancellationToken || (exports.CancellationToken = {}));
})(CancellationToken || (exports.CancellationToken = CancellationToken = {}));
const shortcutEvent = Object.freeze(function (callback, context) {

@@ -31,0 +31,0 @@ const handle = (0, ral_1.default)().timer.setTimeout(callback.bind(context), 0);

@@ -7,3 +7,3 @@ import { Message, RequestMessage, RequestType, RequestType0, RequestType1, RequestType2, RequestType3, RequestType4, RequestType5, RequestType6, RequestType7, RequestType8, RequestType9, ResponseMessage, ResponseError, NotificationMessage, NotificationType, NotificationType0, NotificationType1, NotificationType2, NotificationType3, NotificationType4, NotificationType5, NotificationType6, NotificationType7, NotificationType8, NotificationType9, _EM, ParameterStructures } from './messages';

import { MessageWriter } from './messageWriter';
export declare type ProgressToken = number | string;
export type ProgressToken = number | string;
export declare namespace ProgressToken {

@@ -31,3 +31,3 @@ function is(value: any): value is number | string;

}
export declare type HandlerResult<R, E> = R | ResponseError<E> | Thenable<R> | Thenable<ResponseError<E>> | Thenable<R | ResponseError<E>>;
export type HandlerResult<R, E> = R | ResponseError<E> | Thenable<R> | Thenable<ResponseError<E>> | Thenable<R | ResponseError<E>>;
export interface StarRequestHandler {

@@ -142,3 +142,3 @@ (method: string, params: any[] | object | undefined, token: CancellationToken): HandlerResult<any, any>;

}
export declare type TraceValues = 'off' | 'messages' | 'compact' | 'verbose';
export type TraceValues = 'off' | 'messages' | 'compact' | 'verbose';
export declare namespace Trace {

@@ -194,3 +194,3 @@ function fromString(value: string): Trace;

}
export declare type ConnectionStrategy = {
export type ConnectionStrategy = {
cancelUndispatched?: (message: Message, next: (message: Message) => ResponseMessage | undefined) => ResponseMessage | undefined;

@@ -201,3 +201,3 @@ };

}
export declare type CancellationId = number | string;
export type CancellationId = number | string;
export interface IdCancellationReceiverStrategy {

@@ -239,3 +239,3 @@ kind?: 'id';

*/
export declare type CancellationReceiverStrategy = IdCancellationReceiverStrategy;
export type CancellationReceiverStrategy = IdCancellationReceiverStrategy;
export declare namespace CancellationReceiverStrategy {

@@ -242,0 +242,0 @@ const Message: CancellationReceiverStrategy;

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

ProgressToken.is = is;
})(ProgressToken = exports.ProgressToken || (exports.ProgressToken = {}));
})(ProgressToken || (exports.ProgressToken = ProgressToken = {}));
var ProgressNotification;

@@ -54,3 +54,3 @@ (function (ProgressNotification) {

Trace[Trace["Verbose"] = 3] = "Verbose";
})(Trace = exports.Trace || (exports.Trace = {}));
})(Trace || (exports.Trace = Trace = {}));
var TraceValues;

@@ -74,3 +74,3 @@ (function (TraceValues) {

TraceValues.Verbose = 'verbose';
})(TraceValues = exports.TraceValues || (exports.TraceValues = {}));
})(TraceValues || (exports.TraceValues = TraceValues = {}));
(function (Trace) {

@@ -111,3 +111,3 @@ function fromString(value) {

Trace.toString = toString;
})(Trace = exports.Trace || (exports.Trace = {}));
})(Trace || (exports.Trace = Trace = {}));
var TraceFormat;

@@ -117,3 +117,3 @@ (function (TraceFormat) {

TraceFormat["JSON"] = "json";
})(TraceFormat = exports.TraceFormat || (exports.TraceFormat = {}));
})(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
(function (TraceFormat) {

@@ -133,11 +133,11 @@ function fromString(value) {

TraceFormat.fromString = fromString;
})(TraceFormat = exports.TraceFormat || (exports.TraceFormat = {}));
})(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
var SetTraceNotification;
(function (SetTraceNotification) {
SetTraceNotification.type = new messages_1.NotificationType('$/setTrace');
})(SetTraceNotification = exports.SetTraceNotification || (exports.SetTraceNotification = {}));
})(SetTraceNotification || (exports.SetTraceNotification = SetTraceNotification = {}));
var LogTraceNotification;
(function (LogTraceNotification) {
LogTraceNotification.type = new messages_1.NotificationType('$/logTrace');
})(LogTraceNotification = exports.LogTraceNotification || (exports.LogTraceNotification = {}));
})(LogTraceNotification || (exports.LogTraceNotification = LogTraceNotification = {}));
var ConnectionErrors;

@@ -157,3 +157,3 @@ (function (ConnectionErrors) {

ConnectionErrors[ConnectionErrors["AlreadyListening"] = 3] = "AlreadyListening";
})(ConnectionErrors = exports.ConnectionErrors || (exports.ConnectionErrors = {}));
})(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
class ConnectionError extends Error {

@@ -174,3 +174,3 @@ constructor(code, message) {

ConnectionStrategy.is = is;
})(ConnectionStrategy = exports.ConnectionStrategy || (exports.ConnectionStrategy = {}));
})(ConnectionStrategy || (exports.ConnectionStrategy = ConnectionStrategy = {}));
var IdCancellationReceiverStrategy;

@@ -183,3 +183,3 @@ (function (IdCancellationReceiverStrategy) {

IdCancellationReceiverStrategy.is = is;
})(IdCancellationReceiverStrategy = exports.IdCancellationReceiverStrategy || (exports.IdCancellationReceiverStrategy = {}));
})(IdCancellationReceiverStrategy || (exports.IdCancellationReceiverStrategy = IdCancellationReceiverStrategy = {}));
var RequestCancellationReceiverStrategy;

@@ -192,3 +192,3 @@ (function (RequestCancellationReceiverStrategy) {

RequestCancellationReceiverStrategy.is = is;
})(RequestCancellationReceiverStrategy = exports.RequestCancellationReceiverStrategy || (exports.RequestCancellationReceiverStrategy = {}));
})(RequestCancellationReceiverStrategy || (exports.RequestCancellationReceiverStrategy = RequestCancellationReceiverStrategy = {}));
var CancellationReceiverStrategy;

@@ -205,3 +205,3 @@ (function (CancellationReceiverStrategy) {

CancellationReceiverStrategy.is = is;
})(CancellationReceiverStrategy = exports.CancellationReceiverStrategy || (exports.CancellationReceiverStrategy = {}));
})(CancellationReceiverStrategy || (exports.CancellationReceiverStrategy = CancellationReceiverStrategy = {}));
var CancellationSenderStrategy;

@@ -220,3 +220,3 @@ (function (CancellationSenderStrategy) {

CancellationSenderStrategy.is = is;
})(CancellationSenderStrategy = exports.CancellationSenderStrategy || (exports.CancellationSenderStrategy = {}));
})(CancellationSenderStrategy || (exports.CancellationSenderStrategy = CancellationSenderStrategy = {}));
var CancellationStrategy;

@@ -233,3 +233,3 @@ (function (CancellationStrategy) {

CancellationStrategy.is = is;
})(CancellationStrategy = exports.CancellationStrategy || (exports.CancellationStrategy = {}));
})(CancellationStrategy || (exports.CancellationStrategy = CancellationStrategy = {}));
var MessageStrategy;

@@ -242,3 +242,3 @@ (function (MessageStrategy) {

MessageStrategy.is = is;
})(MessageStrategy = exports.MessageStrategy || (exports.MessageStrategy = {}));
})(MessageStrategy || (exports.MessageStrategy = MessageStrategy = {}));
var ConnectionOptions;

@@ -251,3 +251,3 @@ (function (ConnectionOptions) {

ConnectionOptions.is = is;
})(ConnectionOptions = exports.ConnectionOptions || (exports.ConnectionOptions = {}));
})(ConnectionOptions || (exports.ConnectionOptions = ConnectionOptions = {}));
var ConnectionState;

@@ -254,0 +254,0 @@ (function (ConnectionState) {

@@ -16,2 +16,2 @@ "use strict";

Disposable.create = create;
})(Disposable = exports.Disposable || (exports.Disposable = {}));
})(Disposable || (exports.Disposable = Disposable = {}));

@@ -11,3 +11,3 @@ import type RAL from './ral';

}
export declare type ContentEncoder = FunctionContentEncoder | (FunctionContentEncoder & StreamContentEncoder);
export type ContentEncoder = FunctionContentEncoder | (FunctionContentEncoder & StreamContentEncoder);
export interface FunctionContentDecoder {

@@ -21,3 +21,3 @@ name: string;

}
export declare type ContentDecoder = FunctionContentDecoder | (FunctionContentDecoder & StreamContentDecoder);
export type ContentDecoder = FunctionContentDecoder | (FunctionContentDecoder & StreamContentDecoder);
export interface ContentTypeEncoderOptions {

@@ -34,3 +34,3 @@ charset: RAL.MessageBufferEncoding;

}
export declare type ContentTypeEncoder = FunctionContentTypeEncoder | (FunctionContentTypeEncoder & StreamContentTypeEncoder);
export type ContentTypeEncoder = FunctionContentTypeEncoder | (FunctionContentTypeEncoder & StreamContentTypeEncoder);
export interface ContentTypeDecoderOptions {

@@ -47,3 +47,3 @@ charset: RAL.MessageBufferEncoding;

}
export declare type ContentTypeDecoder = FunctionContentTypeDecoder | (FunctionContentTypeDecoder & StreamContentTypeDecoder);
export type ContentTypeDecoder = FunctionContentTypeDecoder | (FunctionContentTypeDecoder & StreamContentTypeDecoder);
interface Named {

@@ -50,0 +50,0 @@ name: string;

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

const parsed = parseFloat(value.substr(index));
if (parsed !== NaN) {
if (!Number.isNaN(parsed)) {
q = parsed;

@@ -71,2 +71,2 @@ }

}
})(Encodings = exports.Encodings || (exports.Encodings = {}));
})(Encodings || (exports.Encodings = Encodings = {}));

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

Event.None = function () { return _disposable; };
})(Event = exports.Event || (exports.Event = {}));
})(Event || (exports.Event = Event = {}));
class CallbackList {

@@ -16,0 +16,0 @@ add(callback, context = null, bucket) {

@@ -8,3 +8,3 @@ export declare namespace Touch {

}
export declare type Touch = 0 | 1 | 2;
export type Touch = 0 | 1 | 2;
export declare class LinkedMap<K, V> implements Map<K, V> {

@@ -11,0 +11,0 @@ readonly [Symbol.toStringTag] = "LinkedMap";

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

Touch.AsNew = Touch.Last;
})(Touch = exports.Touch || (exports.Touch = {}));
})(Touch || (exports.Touch = Touch = {}));
class LinkedMap {

@@ -19,0 +19,0 @@ constructor() {

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

MessageReader.is = is;
})(MessageReader = exports.MessageReader || (exports.MessageReader = {}));
})(MessageReader || (exports.MessageReader = MessageReader = {}));
class AbstractMessageReader {

@@ -23,0 +23,0 @@ constructor() {

@@ -78,4 +78,4 @@ /**

}
declare type integer = number;
export declare type ErrorCodes = integer;
type integer = number;
export type ErrorCodes = integer;
export interface ResponseErrorLiteral<D = void> {

@@ -127,3 +127,3 @@ /**

*/
export declare type LSPMessageType = 'send-request' | 'receive-request' | 'send-response' | 'receive-response' | 'send-notification' | 'receive-notification';
export type LSPMessageType = 'send-request' | 'receive-request' | 'send-response' | 'receive-response' | 'send-notification' | 'receive-notification';
export interface LSPLogMessage {

@@ -130,0 +130,0 @@ type: LSPMessageType;

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

ErrorCodes.serverErrorEnd = -32000;
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));
})(ErrorCodes || (exports.ErrorCodes = ErrorCodes = {}));
/**

@@ -307,2 +307,2 @@ * An error object return in a response in case a request

Message.isResponse = isResponse;
})(Message = exports.Message || (exports.Message = {}));
})(Message || (exports.Message = Message = {}));

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

MessageWriter.is = is;
})(MessageWriter = exports.MessageWriter || (exports.MessageWriter = {}));
})(MessageWriter || (exports.MessageWriter = MessageWriter = {}));
class AbstractMessageWriter {

@@ -25,0 +25,0 @@ constructor() {

@@ -28,3 +28,3 @@ import type { Disposable } from './disposable';

}
declare type _MessageBufferEncoding = 'ascii' | 'utf-8';
type _MessageBufferEncoding = 'ascii' | 'utf-8';
interface _ReadableStream {

@@ -31,0 +31,0 @@ onData(listener: (data: Uint8Array) => void): Disposable;

{
"name": "vscode-jsonrpc",
"description": "A json rpc implementation over streams",
"version": "8.2.0-next.1",
"version": "8.2.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/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist",
"clean": "node ../node_modules/.bin/rimraf lib && node ../node_modules/.bin/rimraf 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