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

object-to-formdata

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-to-formdata - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

2

package.json
{
"name": "object-to-formdata",
"version": "4.5.0",
"version": "4.5.1",
"keywords": [

@@ -5,0 +5,0 @@ "form",

@@ -332,2 +332,18 @@ const { serialize } = require('.');

test('Array with allowEmptyArrays and noAttributesWithArrayNotation options', () => {
const formData = serialize(
{
foo: [],
},
{
allowEmptyArrays: true,
noAttributesWithArrayNotation: true,
},
);
expect(formData.append).toHaveBeenCalledTimes(1);
expect(formData.append).toHaveBeenNthCalledWith(1, 'foo', '');
expect(formData.get('foo')).toBe('');
});
test('Date', () => {

@@ -334,0 +350,0 @@ const foo = new Date(2000, 0, 1, 1, 1, 1);

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