Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/formidable

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/formidable - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

4

formidable/index.d.ts

@@ -176,3 +176,3 @@ // Type definitions for formidable 2.0

*/
fileWriteStreamHandler?: (() => Writable) | undefined;
fileWriteStreamHandler?: ((file?: VolatileFile) => Writable) | undefined;

@@ -217,3 +217,3 @@ /**

*/
interface FileJSON extends Pick<File, "size" | "filepath" | "originalFilename" | "mimetype" | "hash"> {
interface FileJSON extends Pick<File, "size" | "filepath" | "originalFilename" | "mimetype" | "hash" | "newFilename"> {
length: number;

@@ -220,0 +220,0 @@ mimetype: string | null;

{
"name": "@types/formidable",
"version": "2.0.5",
"version": "2.0.6",
"description": "TypeScript definitions for formidable",

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

},
"typesPublisherContentHash": "1c16a50024730c3aa195a3732e682f00caac6ab41f1f3684f2d91242556ec3f7",
"typeScriptVersion": "3.9"
"typesPublisherContentHash": "af11822000b90c60585e66b2e8891aad2f839c463065451f43daf828b3498442",
"typeScriptVersion": "4.3"
}

@@ -11,4 +11,4 @@ # Installation

### Additional Details
* Last updated: Mon, 02 May 2022 15:31:38 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Last updated: Tue, 09 May 2023 18:32:51 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/node:events](https://npmjs.com/package/@types/node:events)
* Global values: none

@@ -15,0 +15,0 @@

@@ -1,5 +0,14 @@

import PersistentFile = require("./PersistentFile");
import { EventEmitter } from 'node:events';
import type { File, FileJSON } from "./index";
declare const VolatileFile: typeof PersistentFile;
declare class VolatileFile extends EventEmitter {
constructor(properties: File);
open(): void;
toJSON(): FileJSON;
toString(): string;
write(buffer: string, cb: () => void): void;
end(cb: () => void): void;
destroy(): void;
}
export = VolatileFile;
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