vscode-ws-jsonrpc
Advanced tools
Comparing version 1.0.2 to 1.1.0-next.0
import { MessageConnection, Logger } from 'vscode-jsonrpc'; | ||
import { IWebSocket } from './socket'; | ||
import { IWebSocket } from './socket/socket.js'; | ||
export declare function listen(options: { | ||
@@ -4,0 +4,0 @@ webSocket: WebSocket; |
@@ -5,8 +5,4 @@ /* -------------------------------------------------------------------------------------------- | ||
* ------------------------------------------------------------------------------------------ */ | ||
import { createWebSocketConnection } from './socket'; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
import { ConsoleLogger } from './logger'; | ||
import { createWebSocketConnection } from './socket/connection.js'; | ||
import { ConsoleLogger } from './logger.js'; | ||
export function listen(options) { | ||
@@ -13,0 +9,0 @@ const { webSocket, onConnection } = options; |
export * from 'vscode-jsonrpc'; | ||
export * from 'vscode-jsonrpc/lib/common/messages'; | ||
export * from './disposable'; | ||
export * from './socket'; | ||
export * from './logger'; | ||
export * from './connection'; | ||
export * from 'vscode-jsonrpc/lib/common/messages.js'; | ||
export * from './disposable.js'; | ||
export * from './socket/socket.js'; | ||
export * from './socket/reader.js'; | ||
export * from './socket/writer.js'; | ||
export * from './socket/connection.js'; | ||
export * from './logger.js'; | ||
export * from './connection.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,7 +6,10 @@ /* -------------------------------------------------------------------------------------------- | ||
export * from 'vscode-jsonrpc'; | ||
export * from 'vscode-jsonrpc/lib/common/messages'; | ||
export * from './disposable'; | ||
export * from './socket'; | ||
export * from './logger'; | ||
export * from './connection'; | ||
export * from 'vscode-jsonrpc/lib/common/messages.js'; | ||
export * from './disposable.js'; | ||
export * from './socket/socket.js'; | ||
export * from './socket/reader.js'; | ||
export * from './socket/writer.js'; | ||
export * from './socket/connection.js'; | ||
export * from './logger.js'; | ||
export * from './connection.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ /* -------------------------------------------------------------------------------------------- | ||
import { Disposable } from 'vscode-jsonrpc'; | ||
import { DisposableCollection } from '../disposable'; | ||
import { DisposableCollection } from '../disposable.js'; | ||
export function forward(clientConnection, serverConnection, map) { | ||
@@ -9,0 +9,0 @@ clientConnection.forward(serverConnection, map); |
@@ -1,3 +0,3 @@ | ||
export * from './connection'; | ||
export * from './launch'; | ||
export * from './connection.js'; | ||
export * from './launch.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,4 +5,4 @@ /* -------------------------------------------------------------------------------------------- | ||
* ------------------------------------------------------------------------------------------ */ | ||
export * from './connection'; | ||
export * from './launch'; | ||
export * from './connection.js'; | ||
export * from './launch.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,9 +0,9 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import * as net from 'net'; | ||
import * as stream from 'stream'; | ||
import * as cp from 'child_process'; | ||
import { IConnection } from './connection'; | ||
import { IWebSocket, IWebSocketConnection } from '../socket'; | ||
import { IConnection } from './connection.js'; | ||
import { IWebSocket, IWebSocketConnection } from '../socket/socket.js'; | ||
export declare function createServerProcess(serverName: string, command: string, args?: string[], options?: cp.SpawnOptions): IConnection | undefined; | ||
@@ -10,0 +10,0 @@ export declare function createWebSocketConnection(socket: IWebSocket): IWebSocketConnection; |
@@ -6,5 +6,6 @@ /* -------------------------------------------------------------------------------------------- | ||
import * as cp from 'child_process'; | ||
import { StreamMessageReader, StreamMessageWriter, SocketMessageReader, SocketMessageWriter } from 'vscode-jsonrpc/node'; | ||
import { createConnection } from './connection'; | ||
import { WebSocketMessageReader, WebSocketMessageWriter } from '../socket'; | ||
import { StreamMessageReader, StreamMessageWriter, SocketMessageReader, SocketMessageWriter } from 'vscode-jsonrpc/node.js'; | ||
import { createConnection } from './connection.js'; | ||
import { WebSocketMessageReader } from '../socket/reader.js'; | ||
import { WebSocketMessageWriter } from '../socket/writer.js'; | ||
export function createServerProcess(serverName, command, args, options) { | ||
@@ -11,0 +12,0 @@ const serverProcess = cp.spawn(command, args || [], options || {}); |
import { MessageConnection, Logger } from 'vscode-jsonrpc'; | ||
import { IWebSocket } from './socket'; | ||
import { IWebSocket } from './socket.js'; | ||
export declare function createWebSocketConnection(socket: IWebSocket, logger: Logger): MessageConnection; | ||
//# sourceMappingURL=connection.d.ts.map |
@@ -6,4 +6,4 @@ /* -------------------------------------------------------------------------------------------- | ||
import { createMessageConnection } from 'vscode-jsonrpc'; | ||
import { WebSocketMessageReader } from './reader'; | ||
import { WebSocketMessageWriter } from './writer'; | ||
import { WebSocketMessageReader } from './reader.js'; | ||
import { WebSocketMessageWriter } from './writer.js'; | ||
export function createWebSocketConnection(socket, logger) { | ||
@@ -10,0 +10,0 @@ const messageReader = new WebSocketMessageReader(socket); |
@@ -1,5 +0,5 @@ | ||
export * from './socket'; | ||
export * from './reader'; | ||
export * from './writer'; | ||
export * from './connection'; | ||
export * from './socket.js'; | ||
export * from './reader.js'; | ||
export * from './writer.js'; | ||
export * from './connection.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,6 +5,6 @@ /* -------------------------------------------------------------------------------------------- | ||
* ------------------------------------------------------------------------------------------ */ | ||
export * from './socket'; | ||
export * from './reader'; | ||
export * from './writer'; | ||
export * from './connection'; | ||
export * from './socket.js'; | ||
export * from './reader.js'; | ||
export * from './writer.js'; | ||
export * from './connection.js'; | ||
//# sourceMappingURL=index.js.map |
import { Disposable } from 'vscode-jsonrpc'; | ||
import { DataCallback, AbstractMessageReader, MessageReader } from 'vscode-jsonrpc/lib/common/messageReader'; | ||
import { IWebSocket } from './socket'; | ||
import { DataCallback, AbstractMessageReader, MessageReader } from 'vscode-jsonrpc/lib/common/messageReader.js'; | ||
import { IWebSocket } from './socket.js'; | ||
export declare class WebSocketMessageReader extends AbstractMessageReader implements MessageReader { | ||
@@ -5,0 +5,0 @@ protected readonly socket: IWebSocket; |
@@ -5,3 +5,3 @@ /* -------------------------------------------------------------------------------------------- | ||
* ------------------------------------------------------------------------------------------ */ | ||
import { AbstractMessageReader } from 'vscode-jsonrpc/lib/common/messageReader'; | ||
import { AbstractMessageReader } from 'vscode-jsonrpc/lib/common/messageReader.js'; | ||
export class WebSocketMessageReader extends AbstractMessageReader { | ||
@@ -8,0 +8,0 @@ constructor(socket) { |
@@ -1,3 +0,3 @@ | ||
import { Disposable } from '../disposable'; | ||
import { IConnection } from '../server/connection'; | ||
import { Disposable } from '../disposable.js'; | ||
import { IConnection } from '../server/connection.js'; | ||
export interface IWebSocket extends Disposable { | ||
@@ -4,0 +4,0 @@ send(content: string): void; |
@@ -1,4 +0,4 @@ | ||
import { Message } from 'vscode-jsonrpc/lib/common/messages'; | ||
import { AbstractMessageWriter, MessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter'; | ||
import { IWebSocket } from './socket'; | ||
import { Message } from 'vscode-jsonrpc/lib/common/messages.js'; | ||
import { AbstractMessageWriter, MessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter.js'; | ||
import { IWebSocket } from './socket.js'; | ||
export declare class WebSocketMessageWriter extends AbstractMessageWriter implements MessageWriter { | ||
@@ -5,0 +5,0 @@ protected readonly socket: IWebSocket; |
@@ -5,3 +5,3 @@ /* -------------------------------------------------------------------------------------------- | ||
* ------------------------------------------------------------------------------------------ */ | ||
import { AbstractMessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter'; | ||
import { AbstractMessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter.js'; | ||
export class WebSocketMessageWriter extends AbstractMessageWriter { | ||
@@ -8,0 +8,0 @@ constructor(socket) { |
{ | ||
"name": "vscode-ws-jsonrpc", | ||
"version": "1.0.2", | ||
"version": "1.1.0-next.0", | ||
"description": "VSCode JSON RPC over WebSocket", | ||
@@ -19,2 +19,3 @@ "author": { | ||
}, | ||
"type": "module", | ||
"main": "./lib/index.js", | ||
@@ -35,14 +36,2 @@ "module": "./lib/index.js", | ||
"default": "./lib/socket/index.js" | ||
}, | ||
"./cjs": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"default": "./dist/cjs/index.js" | ||
}, | ||
"./cjs/server": { | ||
"types": "./dist/cjs/server/index.d.ts", | ||
"default": "./dist/cjs/server/index.js" | ||
}, | ||
"./cjs/socket": { | ||
"types": "./dist/cjs/socket/index.d.ts", | ||
"default": "./dist/cjs/socket/index.js" | ||
} | ||
@@ -57,11 +46,2 @@ }, | ||
"lib/server" | ||
], | ||
"cjs": [ | ||
"dist/cjs/index" | ||
], | ||
"cjs/server": [ | ||
"dist/cjs/server/index" | ||
], | ||
"cjs/socket": [ | ||
"dist/cjs/server/index" | ||
] | ||
@@ -71,3 +51,2 @@ } | ||
"files": [ | ||
"dist/cjs", | ||
"lib", | ||
@@ -86,10 +65,8 @@ "src", | ||
"scripts": { | ||
"clean": "npx shx rm -fr lib tsconfig.tsbuildinfo", | ||
"clean:cjs": "npx shx rm -fr dist", | ||
"clean": "npx shx rm -fr lib dist tsconfig.tsbuildinfo", | ||
"lint": "eslint src --ext .ts", | ||
"compile": "tsc", | ||
"watch": "tsc -w", | ||
"build:cjs": "npm run clean:cjs && tsc -p ./tsconfig.cjs.json", | ||
"build": "npm run clean && npm run compile && npm run build:cjs" | ||
"build": "npm run clean && npm run compile" | ||
} | ||
} |
@@ -7,10 +7,6 @@ /* -------------------------------------------------------------------------------------------- | ||
import { MessageConnection, Logger } from 'vscode-jsonrpc'; | ||
import { createWebSocketConnection, IWebSocket } from './socket'; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
import { createWebSocketConnection } from './socket/connection.js'; | ||
import { IWebSocket } from './socket/socket.js'; | ||
import { ConsoleLogger } from './logger.js'; | ||
import { ConsoleLogger } from './logger'; | ||
export function listen (options: { | ||
@@ -17,0 +13,0 @@ webSocket: WebSocket; |
@@ -7,6 +7,9 @@ /* -------------------------------------------------------------------------------------------- | ||
export * from 'vscode-jsonrpc'; | ||
export * from 'vscode-jsonrpc/lib/common/messages'; | ||
export * from './disposable'; | ||
export * from './socket'; | ||
export * from './logger'; | ||
export * from './connection'; | ||
export * from 'vscode-jsonrpc/lib/common/messages.js'; | ||
export * from './disposable.js'; | ||
export * from './socket/socket.js'; | ||
export * from './socket/reader.js'; | ||
export * from './socket/writer.js'; | ||
export * from './socket/connection.js'; | ||
export * from './logger.js'; | ||
export * from './connection.js'; |
@@ -7,3 +7,3 @@ /* -------------------------------------------------------------------------------------------- | ||
import { MessageReader, MessageWriter, Disposable, Message } from 'vscode-jsonrpc'; | ||
import { DisposableCollection } from '../disposable'; | ||
import { DisposableCollection } from '../disposable.js'; | ||
@@ -10,0 +10,0 @@ export interface IConnection extends Disposable { |
@@ -6,3 +6,3 @@ /* -------------------------------------------------------------------------------------------- | ||
export * from './connection'; | ||
export * from './launch'; | ||
export * from './connection.js'; | ||
export * from './launch.js'; |
@@ -9,5 +9,7 @@ /* -------------------------------------------------------------------------------------------- | ||
import * as cp from 'child_process'; | ||
import { StreamMessageReader, StreamMessageWriter, SocketMessageReader, SocketMessageWriter } from 'vscode-jsonrpc/node'; | ||
import { IConnection, createConnection } from './connection'; | ||
import { IWebSocket, WebSocketMessageReader, WebSocketMessageWriter, IWebSocketConnection } from '../socket'; | ||
import { StreamMessageReader, StreamMessageWriter, SocketMessageReader, SocketMessageWriter } from 'vscode-jsonrpc/node.js'; | ||
import { IConnection, createConnection } from './connection.js'; | ||
import { IWebSocket, IWebSocketConnection } from '../socket/socket.js'; | ||
import { WebSocketMessageReader } from '../socket/reader.js'; | ||
import { WebSocketMessageWriter } from '../socket/writer.js'; | ||
@@ -14,0 +16,0 @@ export function createServerProcess (serverName: string, command: string, args?: string[], options?: cp.SpawnOptions): IConnection | undefined { |
@@ -7,5 +7,5 @@ /* -------------------------------------------------------------------------------------------- | ||
import { MessageConnection, createMessageConnection, Logger } from 'vscode-jsonrpc'; | ||
import { IWebSocket } from './socket'; | ||
import { WebSocketMessageReader } from './reader'; | ||
import { WebSocketMessageWriter } from './writer'; | ||
import { IWebSocket } from './socket.js'; | ||
import { WebSocketMessageReader } from './reader.js'; | ||
import { WebSocketMessageWriter } from './writer.js'; | ||
@@ -12,0 +12,0 @@ export function createWebSocketConnection (socket: IWebSocket, logger: Logger): MessageConnection { |
@@ -6,5 +6,5 @@ /* -------------------------------------------------------------------------------------------- | ||
export * from './socket'; | ||
export * from './reader'; | ||
export * from './writer'; | ||
export * from './connection'; | ||
export * from './socket.js'; | ||
export * from './reader.js'; | ||
export * from './writer.js'; | ||
export * from './connection.js'; |
@@ -7,4 +7,4 @@ /* -------------------------------------------------------------------------------------------- | ||
import { Disposable } from 'vscode-jsonrpc'; | ||
import { DataCallback, AbstractMessageReader, MessageReader } from 'vscode-jsonrpc/lib/common/messageReader'; | ||
import { IWebSocket } from './socket'; | ||
import { DataCallback, AbstractMessageReader, MessageReader } from 'vscode-jsonrpc/lib/common/messageReader.js'; | ||
import { IWebSocket } from './socket.js'; | ||
@@ -11,0 +11,0 @@ export class WebSocketMessageReader extends AbstractMessageReader implements MessageReader { |
@@ -6,4 +6,4 @@ /* -------------------------------------------------------------------------------------------- | ||
import { Disposable } from '../disposable'; | ||
import { IConnection } from '../server/connection'; | ||
import { Disposable } from '../disposable.js'; | ||
import { IConnection } from '../server/connection.js'; | ||
@@ -10,0 +10,0 @@ export interface IWebSocket extends Disposable { |
@@ -6,5 +6,5 @@ /* -------------------------------------------------------------------------------------------- | ||
import { Message } from 'vscode-jsonrpc/lib/common/messages'; | ||
import { AbstractMessageWriter, MessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter'; | ||
import { IWebSocket } from './socket'; | ||
import { Message } from 'vscode-jsonrpc/lib/common/messages.js'; | ||
import { AbstractMessageWriter, MessageWriter } from 'vscode-jsonrpc/lib/common/messageWriter.js'; | ||
import { IWebSocket } from './socket.js'; | ||
@@ -11,0 +11,0 @@ export class WebSocketMessageWriter extends AbstractMessageWriter implements MessageWriter { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
1
Yes
56223
64
736
1