Socket
Socket
Sign inDemoInstall

formdata-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formdata-polyfill - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

FormData.js

@@ -104,3 +104,3 @@ const map = new WeakMap

this.append(name, elm.value)
else if (type === 'checkbox') {
else if (type === 'checkbox' || type === 'radio') {
if (checked) this.append(name, value)

@@ -107,0 +107,0 @@ } else

@@ -7,3 +7,3 @@ var f,h="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){a!=Array.prototype&&a!=Object.prototype&&(a[b]=d.value)},l="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function n(){n=function(){};l.Symbol||(l.Symbol=p)}var q=0;function p(a){return"jscomp_symbol_"+(a||"")+q++}

function D(a,b,d){if(2>arguments.length)throw new TypeError("2 arguments required, but only "+arguments.length+" present.");return b instanceof Blob?[a+"",b,void 0!==d?d+"":"File"===Object.prototype.toString.call(b).slice(8,-1)?b.name:"Blob"]:[a+"",b+""]}
function E(a){z.set(this,Object.create(null));if(!a)return this;a=w(Array.from(a.elements));for(var b=a.next();!b.done;b=a.next()){var d=b.value,b=d.name,c=d.type,e=d.value,g=d.files,k=d.checked,d=d.selectedOptions;if(b)if("file"===c)for(c=w(g),e=c.next();!e.done;e=c.next())this.append(b,e.value);else if("select-multiple"===c||"select-one"===c)for(c=w(Array.from(d)),e=c.next();!e.done;e=c.next())this.append(b,e.value.value);else"checkbox"===c?k&&this.append(b,e):this.append(b,e)}}f=E.prototype;
function E(a){z.set(this,Object.create(null));if(!a)return this;a=w(Array.from(a.elements));for(var b=a.next();!b.done;b=a.next()){var d=b.value,b=d.name,c=d.type,e=d.value,g=d.files,k=d.checked,d=d.selectedOptions;if(b)if("file"===c)for(c=w(g),e=c.next();!e.done;e=c.next())this.append(b,e.value);else if("select-multiple"===c||"select-one"===c)for(c=w(Array.from(d)),e=c.next();!e.done;e=c.next())this.append(b,e.value.value);else"checkbox"===c||'radio'===c?k&&this.append(b,e):this.append(b,e)}}f=E.prototype;
f.append=function(a,b,d){var c=z.get(this);c[a]||(c[a]=[]);c[a].push([b,d])};f["delete"]=function(a){delete z.get(this)[a]};

@@ -10,0 +10,0 @@ f.entries=function(){function a(a){for(;;)switch(b){case 0:x=z.get(K);m=[];k=x;for(g in k)m.push(g);r=0;case 1:if(!(r<m.length)){b=3;break}g=m[r];if(g in k){b=4;break}b=2;break;case 4:e=w(x[g]),c=e.next();case 5:if(c.done){b=7;break}d=c.value;b=8;return{value:[g,A(d)],done:!1};case 8:if(void 0===a){b=9;break}b=-1;throw a;case 9:case 6:c=e.next();b=5;break;case 7:case 2:r++;b=1;break;case 3:b=-1;default:return{value:void 0,done:!0}}}var b=0,d,c,e,g,k,r,m,x,K=this,B={next:function(){return a(void 0)},

{
"name": "formdata-polyfill",
"version": "2.0.3",
"version": "2.0.4",
"description": "HTML5 `FormData` polyfill for Browsers.",

@@ -5,0 +5,0 @@ "main": "formdata.min.js",

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