Socket
Socket
Sign inDemoInstall

formdata-node

Package Overview
Dependencies
5
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0 to 3.3.1

2

@type/File.d.ts

@@ -17,3 +17,3 @@ /// <reference types="node" />

lastModified: number;
stream(): Readable | ReadableStream | AsyncIterableIterator<any>;
stream(): Readable | AsyncIterableIterator<any>;
}

@@ -20,0 +20,0 @@ export interface FileOptions {

@@ -38,9 +38,5 @@ /// <reference types="node" />

*/
readonly headers: {
get headers(): {
"Content-Type": string;
};
constructor(entries?: FormDataConstructorEntries);
private _getHeader;
private _getField;
private _setField;
/**

@@ -52,2 +48,6 @@ * Returns internal readable stream, allowing to read the FormData content

get stream(): Readable;
constructor(entries?: FormDataConstructorEntries);
private _getHeader;
private _getField;
private _setField;
/**

@@ -54,0 +54,0 @@ * Returns computed length of the FormData content.

@@ -47,2 +47,3 @@ "use strict";

constructor(entries) {
// TODO: Remove this along with FormData#stream getter in 4.x
_stream.set(this, void 0);

@@ -54,8 +55,2 @@ /**

/**
* Returns headers for multipart/form-data
*/
this.headers = {
"Content-Type": `multipart/form-data; boundary=${this.boundary}`
};
/**
* Stores internal data for every field

@@ -77,2 +72,18 @@ */

}
/**
* Returns headers for multipart/form-data
*/
get headers() {
return {
"Content-Type": `multipart/form-data; boundary=${this.boundary}`
};
}
/**
* Returns internal readable stream, allowing to read the FormData content
*
* @deprecated Use `Readable.from(formData)` to create a stream from `FormData` instance.
*/
get stream() {
return __classPrivateFieldGet(this, _stream);
}
_getHeader(name, value) {

@@ -176,10 +187,2 @@ let header = "";

/**
* Returns internal readable stream, allowing to read the FormData content
*
* @deprecated Use `Readable.from(formData)` to create a stream from `FormData` instance.
*/
get stream() {
return __classPrivateFieldGet(this, _stream);
}
/**
* Returns computed length of the FormData content.

@@ -186,0 +189,0 @@ */

@@ -41,2 +41,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

constructor(entries) {
// TODO: Remove this along with FormData#stream getter in 4.x
_stream.set(this, void 0);

@@ -48,8 +49,2 @@ /**

/**
* Returns headers for multipart/form-data
*/
this.headers = {
"Content-Type": `multipart/form-data; boundary=${this.boundary}`
};
/**
* Stores internal data for every field

@@ -71,2 +66,18 @@ */

}
/**
* Returns headers for multipart/form-data
*/
get headers() {
return {
"Content-Type": `multipart/form-data; boundary=${this.boundary}`
};
}
/**
* Returns internal readable stream, allowing to read the FormData content
*
* @deprecated Use `Readable.from(formData)` to create a stream from `FormData` instance.
*/
get stream() {
return __classPrivateFieldGet(this, _stream);
}
_getHeader(name, value) {

@@ -170,10 +181,2 @@ let header = "";

/**
* Returns internal readable stream, allowing to read the FormData content
*
* @deprecated Use `Readable.from(formData)` to create a stream from `FormData` instance.
*/
get stream() {
return __classPrivateFieldGet(this, _stream);
}
/**
* Returns computed length of the FormData content.

@@ -180,0 +183,0 @@ */

{
"name": "formdata-node",
"version": "3.3.0",
"version": "3.3.1",
"description": "FormData implementation for Node.js. Built over Readable stream and async generators.",

@@ -5,0 +5,0 @@ "repository": "octet-stream/form-data",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc