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

@types/ftpd

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ftpd - npm Package Compare versions

Comparing version 0.2.35 to 0.2.36

95

ftpd/index.d.ts

@@ -8,4 +8,2 @@ // Type definitions for ftpd 0.2.11

import events = require("events");

@@ -21,3 +19,3 @@ import fs = require("fs");

DEBUG = 3,
TRACE = 4
TRACE = 4,
}

@@ -102,3 +100,2 @@

logLevel?: LogLevel | undefined;
}

@@ -130,3 +127,2 @@

/**

@@ -138,8 +134,20 @@ * Optional mock fs implementation to set in the command:pass event of FtpConnection

readdir: (path: string, callback?: (err?: NodeJS.ErrnoException, files?: string[]) => void) => void;
mkdir: ((path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void)
| ((path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void) => void)
| ((path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void) => void);
open: ((path: string, flags: string, callback?: (err?: NodeJS.ErrnoException, fd?: number) => any) => void)
| ((path: string, flags: string, mode: number, callback?: (err?: NodeJS.ErrnoException, fd?: number) => any) => void)
| ((path: string, flags: string, mode: string, callback?: (err?: NodeJS.ErrnoException, fd?: number) => any) => void);
mkdir:
| ((path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void)
| ((path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void) => void)
| ((path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void) => void);
open:
| ((path: string, flags: string, callback?: (err?: NodeJS.ErrnoException, fd?: number) => any) => void)
| ((
path: string,
flags: string,
mode: number,
callback?: (err?: NodeJS.ErrnoException, fd?: number) => any,
) => void)
| ((
path: string,
flags: string,
mode: string,
callback?: (err?: NodeJS.ErrnoException, fd?: number) => any,
) => void);
close: (fd: number, callback?: (err?: NodeJS.ErrnoException) => void) => void;

@@ -155,17 +163,21 @@ rmdir: (path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void;

*/
createReadStream?: ((path: string, options?: {
flags?: string | undefined;
encoding?: string | undefined;
fd?: string | undefined;
mode?: string | undefined;
bufferSize?: number | undefined;
}) => fs.ReadStream) | undefined;
createReadStream?:
| ((path: string, options?: {
flags?: string | undefined;
encoding?: string | undefined;
fd?: string | undefined;
mode?: string | undefined;
bufferSize?: number | undefined;
}) => fs.ReadStream)
| undefined;
/**
* if useWriteFile option is not set or is false
*/
createWriteStream?: ((path: string, options?: {
flags?: string | undefined;
encoding?: string | undefined;
string?: string | undefined;
}) => fs.WriteStream) | undefined;
createWriteStream?:
| ((path: string, options?: {
flags?: string | undefined;
encoding?: string | undefined;
string?: string | undefined;
}) => fs.WriteStream)
| undefined;
/**

@@ -175,6 +187,15 @@ * if useReadFile option is set to 'true'

readFile?:
((filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void) => void)
| ((filename: string, options: { encoding: string; flag?: string | undefined; }, callback: (err: NodeJS.ErrnoException, data: string) => void) => void)
| ((filename: string, options: { flag?: string | undefined; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void) => void)
| ((filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void) => void) | undefined;
| ((filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void) => void)
| ((
filename: string,
options: { encoding: string; flag?: string | undefined },
callback: (err: NodeJS.ErrnoException, data: string) => void,
) => void)
| ((
filename: string,
options: { flag?: string | undefined },
callback: (err: NodeJS.ErrnoException, data: Buffer) => void,
) => void)
| ((filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void) => void)
| undefined;
/**

@@ -184,7 +205,16 @@ * if useWriteFile option is set to 'true'

writeFile?:
((filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void) => void)
| ((filename: string, data: any, options: { encoding?: string | undefined; mode?: number | undefined; flag?: string | undefined; }, callback?: (err: NodeJS.ErrnoException) => void) => void)
| ((filename: string, data: any, options: { encoding?: string | undefined; mode?: string | undefined; flag?: string | undefined; }, callback?: (err: NodeJS.ErrnoException) => void) => void)
| undefined;
| ((filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void) => void)
| ((
filename: string,
data: any,
options: { encoding?: string | undefined; mode?: number | undefined; flag?: string | undefined },
callback?: (err: NodeJS.ErrnoException) => void,
) => void)
| ((
filename: string,
data: any,
options: { encoding?: string | undefined; mode?: string | undefined; flag?: string | undefined },
callback?: (err: NodeJS.ErrnoException) => void,
) => void)
| undefined;
}

@@ -201,3 +231,2 @@

export declare class FtpServer extends events.EventEmitter {
/**

@@ -204,0 +233,0 @@ * @param host host is a string representation of the IP address clients use to connect to the FTP server.

{
"name": "@types/ftpd",
"version": "0.2.35",
"version": "0.2.36",
"description": "TypeScript definitions for ftpd",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ftpd",

},
"typesPublisherContentHash": "800916bae4855bdba4f666e9b5a3f2e44cb73d547034de06c22f0d70dcec83c2",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "dd1f0d9f145a1ac47b395fa04f064814ba4dba0979dc49a35287910601a3bd4c",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 08 Jul 2021 12:01:52 GMT
* Last updated: Thu, 14 Sep 2023 15:26:41 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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