vscode-jsonrpc
Advanced tools
Comparing version 3.5.0-next.2 to 3.5.0
@@ -97,2 +97,3 @@ /// <reference path="thenable.d.ts" /> | ||
} | ||
export declare const NullLogger: Logger; | ||
export declare enum Trace { | ||
@@ -209,3 +210,3 @@ Off = 0, | ||
} | ||
export declare function createMessageConnection(reader: MessageReader, writer: MessageWriter, logger: Logger, strategy?: ConnectionStrategy): MessageConnection; | ||
export declare function createMessageConnection(inputStream: NodeJS.ReadableStream, outputStream: NodeJS.WritableStream, logger: Logger, strategy?: ConnectionStrategy): MessageConnection; | ||
export declare function createMessageConnection(reader: MessageReader, writer: MessageWriter, logger?: Logger, strategy?: ConnectionStrategy): MessageConnection; | ||
export declare function createMessageConnection(inputStream: NodeJS.ReadableStream, outputStream: NodeJS.WritableStream, logger?: Logger, strategy?: ConnectionStrategy): MessageConnection; |
@@ -71,2 +71,8 @@ /* -------------------------------------------------------------------------------------------- | ||
})(CancelNotification || (CancelNotification = {})); | ||
exports.NullLogger = Object.freeze({ | ||
error: function () { }, | ||
warn: function () { }, | ||
info: function () { }, | ||
log: function () { } | ||
}); | ||
var Trace; | ||
@@ -553,3 +559,3 @@ (function (Trace) { | ||
} | ||
tracer.log("Sending response '" + method + " - (" + message.id + ")'. Processing request took " + (Date.now() - startTime) + "ms"); | ||
tracer.log("Sending response '" + method + " - (" + message.id + ")'. Processing request took " + (Date.now() - startTime) + "ms", data); | ||
} | ||
@@ -686,3 +692,3 @@ function traceReceivedRequest(message) { | ||
jsonrpc: version, | ||
method: Is.string(type) ? type : type.method, | ||
method: method, | ||
params: messageParams | ||
@@ -862,2 +868,5 @@ }; | ||
function createMessageConnection(input, output, logger, strategy) { | ||
if (!logger) { | ||
logger = exports.NullLogger; | ||
} | ||
var reader = isMessageReader(input) ? input : new messageReader_1.StreamMessageReader(input); | ||
@@ -864,0 +873,0 @@ var writer = isMessageWriter(output) ? output : new messageWriter_1.StreamMessageWriter(output); |
@@ -111,43 +111,43 @@ /** | ||
export declare class RequestType0<R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType<P, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType1<P1, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType2<P1, P2, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType3<P1, P2, P3, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType4<P1, P2, P3, P4, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType5<P1, P2, P3, P4, P5, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType6<P1, P2, P3, P4, P5, P6, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, P8, R, E, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E, RO, _EM]; | ||
constructor(method: string); | ||
@@ -169,43 +169,43 @@ } | ||
export declare class NotificationType<P, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType0<RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType1<P1, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType2<P1, P2, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType3<P1, P2, P3, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType4<P1, P2, P3, P4, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType5<P1, P2, P3, P4, P5, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType6<P1, P2, P3, P4, P5, P6, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType7<P1, P2, P3, P4, P5, P6, P7, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, P8, RO, _EM]; | ||
constructor(method: string); | ||
} | ||
export declare class NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, RO> extends AbstractMessageType { | ||
private _?; | ||
readonly _?: [P1, P2, P3, P4, P5, P6, P7, P8, P9, RO, _EM]; | ||
constructor(method: string); | ||
@@ -212,0 +212,0 @@ } |
{ | ||
"name": "vscode-jsonrpc", | ||
"description": "A json rpc implementation over streams", | ||
"version": "3.5.0-next.2", | ||
"version": "3.5.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
129007
3037
1