New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/ssh2

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ssh2 - npm Package Compare versions

Comparing version 0.5.39 to 0.5.40

70

ssh2/index.d.ts

@@ -252,3 +252,3 @@ // Type definitions for ssh2 v0.5.x

*/
exec(command: string, options: ExecOptions, callback: (err: Error, channel: ClientChannel) => void): boolean;
exec(command: string, options: ExecOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -263,3 +263,3 @@ /**

*/
exec(command: string, callback: (err: Error, channel: ClientChannel) => void): boolean;
exec(command: string, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -275,3 +275,3 @@ /**

*/
shell(window: PseudoTtyOptions | false, options: ShellOptions, callback: (err: Error, channel: ClientChannel) => void): boolean;
shell(window: PseudoTtyOptions | false, options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -286,3 +286,3 @@ /**

*/
shell(window: PseudoTtyOptions | false, callback: (err: Error, channel: ClientChannel) => void): boolean;
shell(window: PseudoTtyOptions | false, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -297,3 +297,3 @@ /**

*/
shell(options: ShellOptions, callback: (err: Error, channel: ClientChannel) => void): boolean;
shell(options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -307,3 +307,3 @@ /**

*/
shell(callback: (err: Error, channel: ClientChannel) => void): boolean;
shell(callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -329,3 +329,3 @@ /**

*/
forwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error, bindPort: number) => void): boolean;
forwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error | undefined, bindPort: number) => void): boolean;

@@ -342,3 +342,3 @@ /**

*/
unforwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error) => void): boolean;
unforwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error | undefined) => void): boolean;

@@ -357,3 +357,3 @@ /**

*/
forwardOut(srcIP: string, srcPort: number, dstIP: string, dstPort: number, callback: (err: Error, channel: ClientChannel) => void): boolean;
forwardOut(srcIP: string, srcPort: number, dstIP: string, dstPort: number, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -367,3 +367,3 @@ /**

*/
sftp(callback: (err: Error, sftp: SFTPWrapper) => void): boolean;
sftp(callback: (err: Error | undefined, sftp: SFTPWrapper) => void): boolean;

@@ -378,3 +378,3 @@ /**

*/
subsys(subsystem: string, callback: (err: Error, channel: ClientChannel) => void): boolean;
subsys(subsystem: string, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean;

@@ -397,3 +397,3 @@ /**

*/
openssh_noMoreSessions(callback?: (err: Error) => void): boolean;
openssh_noMoreSessions(callback?: (err: Error | undefined) => void): boolean;

@@ -406,3 +406,3 @@ /**

*/
openssh_forwardInStreamLocal(socketPath: string, callback?: (err: Error) => void): boolean;
openssh_forwardInStreamLocal(socketPath: string, callback?: (err: Error | undefined) => void): boolean;

@@ -415,3 +415,3 @@ /**

*/
openssh_unforwardInStreamLocal(socketPath: string, callback?: (err: Error) => void): boolean;
openssh_unforwardInStreamLocal(socketPath: string, callback?: (err: Error | undefined) => void): boolean;

@@ -424,3 +424,3 @@ /**

*/
openssh_forwardOutStreamLocal(socketPath: string, callback?: (err: Error, channel: ClientChannel) => void): boolean;
openssh_forwardOutStreamLocal(socketPath: string, callback?: (err: Error | undefined, channel: ClientChannel) => void): boolean;
}

@@ -715,3 +715,3 @@

*/
getConnections(callback: (err: Error, count: number) => void): void;
getConnections(callback: (err: Error | undefined, count: number) => void): void;

@@ -727,3 +727,3 @@ /**

*/
close(callback?: (err: Error) => void): this;
close(callback?: (err: Error | undefined) => void): this;

@@ -811,3 +811,3 @@ /**

*/
on(event: "request", listener: (accept: (chosenPort?: number) => void, reject: () => void, name: "tcpip-forward" | "cancel-tcpip-forward", info: TcpipBindInfo) => void): this;
on(event: "request", listener: (accept: ((chosenPort?: number) => void) | undefined, reject: (() => void) | undefined, name: "tcpip-forward" | "cancel-tcpip-forward", info: TcpipBindInfo) => void): this;

@@ -817,3 +817,3 @@ /**

*/
on(event: "request", listener: (accept: () => void, reject: () => void, name: "streamlocal-forward@openssh.com" | "cancel-streamlocal-forward@openssh.com", info: SocketBindInfo) => void): this;
on(event: "request", listener: (accept: (() => void) | undefined, reject: () => void, name: "streamlocal-forward@openssh.com" | "cancel-streamlocal-forward@openssh.com", info: SocketBindInfo) => void): this;

@@ -824,3 +824,3 @@ /**

*/
on(event: "request", listener: (accept: (chosenPort?: number) => void, reject: () => void, name: string, info: TcpipBindInfo | SocketBindInfo) => void): this;
on(event: "request", listener: (accept: ((chosenPort?: number) => void) | undefined, reject: (() => void) | undefined, name: string, info: TcpipBindInfo | SocketBindInfo) => void): this;

@@ -871,3 +871,3 @@ /**

*/
x11(originAddr: string, originPort: number, callback: (err: Error, channel: ServerChannel) => void): boolean;
x11(originAddr: string, originPort: number, callback: (err: Error | undefined, channel: ServerChannel) => void): boolean;

@@ -880,3 +880,3 @@ /**

*/
forwardOut(boundAddr: string, boundPort: number, remoteAddr: string, remotePort: number, callback: (err: Error, channel: ServerChannel) => void): boolean;
forwardOut(boundAddr: string, boundPort: number, remoteAddr: string, remotePort: number, callback: (err: Error | undefined, channel: ServerChannel) => void): boolean;

@@ -890,3 +890,3 @@ /**

*/
rekey(callback?: (err: Error) => void): boolean;
rekey(callback?: (err: Error | undefined) => void): boolean;

@@ -932,3 +932,3 @@ /**

*/
on(event: "abort", listener: (err: Error) => void): this;
on(event: "abort", listener: () => void): this;

@@ -1049,2 +1049,4 @@ on(event: string | symbol, listener: Function): this;

type SessionAcceptReject = (() => boolean) | undefined
export interface Session extends events.EventEmitter {

@@ -1056,3 +1058,3 @@ // Session events

*/
on(event: "pty", listener: (accept: () => boolean, reject: () => boolean, info: PseudoTtyInfo) => void): this;
on(event: "pty", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: PseudoTtyInfo) => void): this;

@@ -1062,3 +1064,3 @@ /**

*/
on(event: "window-change", listener: (accept: () => boolean, reject: () => boolean, info: WindowChangeInfo) => void): this;
on(event: "window-change", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: WindowChangeInfo) => void): this;

@@ -1068,3 +1070,3 @@ /**

*/
on(event: "x11", listener: (accept: () => boolean, reject: () => boolean, info: X11Info) => void): this;
on(event: "x11", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: X11Info) => void): this;

@@ -1074,3 +1076,3 @@ /**

*/
on(event: "env", listener: (accept: () => boolean, reject: () => boolean, info: SetEnvInfo) => void): this;
on(event: "env", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: SetEnvInfo) => void): this;

@@ -1080,3 +1082,3 @@ /**

*/
on(event: "signal", listener: (accept: () => boolean, reject: () => boolean, info: SignalInfo) => void): this;
on(event: "signal", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: SignalInfo) => void): this;

@@ -1086,3 +1088,3 @@ /**

*/
on(event: "auth-agent", listener: (accept: () => boolean, reject: () => boolean) => void): this;
on(event: "auth-agent", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject) => void): this;

@@ -1092,3 +1094,3 @@ /**

*/
on(event: "shell", listener: (accept: () => ServerChannel, reject: () => boolean) => void): this;
on(event: "shell", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject) => void): this;

@@ -1098,3 +1100,3 @@ /**

*/
on(event: "exec", listener: (accept: () => ServerChannel, reject: () => boolean, info: ExecInfo) => void): this;
on(event: "exec", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: ExecInfo) => void): this;

@@ -1104,3 +1106,3 @@ /**

*/
on(event: "sftp", listener: (accept: () => SFTPStream, reject: () => boolean) => void): this;
on(event: "sftp", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject) => void): this;

@@ -1110,3 +1112,3 @@ /**

*/
on(event: "subsystem", listener: (accept: () => ServerChannel, reject: () => boolean, info: SubsystemInfo) => void): this;
on(event: "subsystem", listener: (accept: SessionAcceptReject, reject: SessionAcceptReject, info: SubsystemInfo) => void): this;

@@ -1113,0 +1115,0 @@ /**

{
"name": "@types/ssh2",
"version": "0.5.39",
"version": "0.5.40",
"description": "TypeScript definitions for ssh2",

@@ -29,3 +29,3 @@ "license": "MIT",

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -41,4 +41,4 @@ "type": "git",

},
"typesPublisherContentHash": "3d9f93562ee80f2b65a28ec1166104155209f46598aa5a0ea756339399a4d956",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "c7e44da71ea7d154f55d2d3d464cba1056304c5bd462dc4df27420f1b2a7fd3b",
"typeScriptVersion": "2.8"
}

@@ -8,10 +8,10 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ssh2
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ssh2.
Additional Details
* Last updated: Tue, 03 Sep 2019 18:04:31 GMT
* Dependencies: @types/ssh2-streams, @types/node
### Additional Details
* Last updated: Mon, 10 Feb 2020 21:08:44 GMT
* Dependencies: [@types/ssh2-streams](https://npmjs.com/package/@types/ssh2-streams), [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Qubo <https://github.com/tkQubo>, Ron Buckton <https://github.com/rbuckton>, Will Boyce <https://github.com/wrboyce>, and Lucas Motta <https://github.com/lucasmotta>.
These definitions were written by Qubo (https://github.com/tkQubo), Ron Buckton (https://github.com/rbuckton), Will Boyce (https://github.com/wrboyce), and Lucas Motta (https://github.com/lucasmotta).
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