{"_id":"formdata-submitter-polyfill","_rev":"7-d1fa2bb39fee9845e2ffe30412264f1e","name":"formdata-submitter-polyfill","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.1":{"name":"formdata-submitter-polyfill","version":"0.0.1","author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@0.0.1","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"952c0eb8774e9aa60d55a78fa42d357d00a0c56c","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-0.0.1.tgz","fileCount":11,"integrity":"sha512-I5A/KbL7F22NPZyLGXWzcc0MxQIqHFb17AkfvWN+6oq0vlbwy6XvbJ63qrRai93lBC5BepPxSaRbv+ueQEPMgA==","signatures":[{"sig":"MEUCICnoTe69yBVSCvpzPIYjbQkCA39bgQTRcF+id4H9cmaMAiEA+gtiOCjxqh4JH9HIbpvkC2W4iAIT8ito764m5RcM7Ks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1JuaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/JxAAhauySgL9DG3HfGiamuUj4HDcBYmQ3pmT7ulo5wk570HmbgIP\r\nFeC44u3N5B2fRpBCK/S8f4iyfPBsgxQ4FHsfBEcom9DsodFvrPkfyUJXOWZ3\r\nP13O7F19SL/iy9UFcuQlo4jOJw2BJ+vS7GOR8Z/CaAOoI2hxNd9uzLLelT8U\r\nybOQuuLbHiYuUAn9udUpumXwuuSHxKYxRzg7BHSzMcR78Y3tUyefQDE87zr+\r\nFjz1UYP3JHjFo1Ijf0wsnrn8DLl9x8aiWrbrDHBiVwOlQ7BZwSiI+aJsfKsU\r\nElurzqekAneX2e9xXDo3A3gTQhTUwovR7avn9V/+16S6jKyF2SyuFE32plmW\r\nHiLKgw4Jy1OPaHolJEIZq1c2B191ivzo3Z6R3DW8Rfzy+9Hc2suyp7MX8NrN\r\n7zzVPw9jQq87YXMbfTdhPjsZtNfEMrauv8x586AA+sa6mptS0NLTyh0gJOtB\r\nkmKbTbzP7q6h6PhH6xtPdsKG9ICgpYCCOTPBqE3f88Zg2ZB6uOgP5PwyA+RZ\r\nBD2Wyr54wRXJFvyhVeM6sfTxl6y7K8BV24XffSPFoQW7jd4Mvuu5cMU2FcRg\r\n2q4I9GvHuY4aIg6R3Ygj4INHDOZIfMWVBDHJTFyZ/eVmtnjwPKta01VzPpwR\r\nSoSspj/KqAs/spbxm+yWDYTgeetFWhdwLrA=\r\n=120x\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/polyfills/full.js"},"./lite":{"types":"./dist/types.d.ts","import":"./dist/polyfills/lite.js"}},"gitHead":"8893e3e60cfbcb81a7506fcc1310b43e32e507d6","scripts":{"build":"tsc","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.4","http-server":"^14.1.1"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_0.0.1_1674877850705_0.55315201180965","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"formdata-submitter-polyfill","version":"0.0.2","author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@0.0.2","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"787c59afc54029c8402b210733032d9779b6f226","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-0.0.2.tgz","fileCount":11,"integrity":"sha512-miELptEtMig4zZhtLFIXp+Cm7l9FPNNZ1Rzf9o/B/S9xDkRe22IHvL2+VFYUNNbGXF3wWWXHuyi4Yqm6kB0/hQ==","signatures":[{"sig":"MEYCIQDRwRSwDDRacfujtXEF3v90ruGhC+dK5MbKXrVMeg12yQIhANrNi3587bIQ+xyY3yqZDsQVNxbXgwXFy9mB0nna3aco","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1KVTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPSQ/+JV+Mh/5G/YXVtwmrsyyiqr+47Zx/QBysRbCBxvJcfb0whmAa\r\nnkYSnT4joS8w+OWQrmzdrac2f9HGuCKZh2PSd3tbQ88mPFMQV/1vT+4mx7Mg\r\nWHf4rwud0O2sYjTJbnX46G73lbgHnWOZMTRdFQfR7YreInWeM4ut0g5EXsz5\r\nDctG6+IwChMN/GZzxTgZf94qgk5iOPXL9MTAHRMRl7JkSUJZXBIlWdzynGwu\r\nTeC4mrOWGAg0xuZRUgnmY9j3rSprd62AGJ8iN7Cfbf++Kp1meP7wchv33Tzo\r\nID9MQN/2mCMNWJ6eEw7fZgxAgES3ApJsuf/H3zvsEJ0p6Mbasr3Wg0rqCnm7\r\n1v1buRaPbCACXHIZcdljOf4mzYHgUztmBe1PNBX2qMNjo9KUjiikrd2oN1Cg\r\n7GHGuC2gZwztjj18fbCvTDwk4MWia/6JHqIDxNARhz6qBE9gzii9OgkCzMQY\r\nIGH02Vq7MUKUoxti+jsGS3l6umkh0v7848kv5nhbaF8XSB0XJsDjRF8ljsNK\r\n50Y5ew2/t97JxB6VDJr0gr25+UeJJSLb2PX/tmpQdah8RVs+qii8a9vpWGEU\r\nipgzecMVUEDPw0mtrRzJ2hg7ZiIkozWIIu2GopvWmNWRhCwyJxSd8/Plj17R\r\nzlvG0T80m+tMVYrf/lZ0ENarAhOtK9XpS34=\r\n=ukbw\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/polyfills/full.js"},"./lite":{"types":"./dist/types.d.ts","import":"./dist/polyfills/lite.js"}},"gitHead":"983506976e658c5236070471dce2c2c336426d21","scripts":{"build":"tsc","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.4","http-server":"^14.1.1"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_0.0.2_1674880339340_0.07014674019590728","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"formdata-submitter-polyfill","version":"1.0.0","author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@1.0.0","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"435494415f64295c0f87e9c15a94b811eaef45dd","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-1.0.0.tgz","fileCount":6,"integrity":"sha512-O7O/aFL5Ar1M4GBOFFG64jF8gob4GOEDPphsyRMgYSTIrdRjCPMTvlNtvyEtlR9rE0YPtalcG380QfHmRujHmA==","signatures":[{"sig":"MEYCIQCqQsORIYctJKyoGp59pzxME64vm5/5RzJSHGzZh4+khQIhAM7lZqNBCXhcl99U6VkCKD//QhC1Gvyrd9enPaPxtygF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4tdHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4gw/9G0ILscigvm80laTIPJF+RQw56k6m2KS+xDEkYwtsuoZ17vzR\r\n5GC0fx9yRPLX0IX4iy6tqbqQdcLSPPucRDOmL5p8NldYIYZZ4CMJTS/tT6KB\r\nVDdu3oAVAofgmVWfAalgrJYCA0VxQ6abLZTjh5M7XH0bhr5rdiNbJWxnhv73\r\nYUM0TXIAuAUSkL4rxs+t/QOcqX1OYUBnVkNeVYWL/yL+M9NxvqffD8TQIYjL\r\naX+NdKp5WRXN6h1CCAsTTFuD+p+E6TxpanIDVKeYpK6amgAMhI8LlF9jNBp1\r\n6gyPXu1om06GHFyTB9Z28ogWkuRtBXG7ghD2YO08cA0ubXsG0Z5gJRXCwuQo\r\nZo2VtnakhNNpgRTekpOBT9cfif0ohBnhQsknzFbAJ1VDS9yQTVpDvOjsXA8P\r\nqZsM7uIG94ioJYaNIAPj1mlXFUouEXCmmtO548j3bSUveaMzI56xuVeOPwA4\r\n5+Bo/Jg5g5u2XU0mUe76y1EypcXCZONkBmdidFUu2iIjYA0ZKfvMtkFX+TBN\r\n12xDaAB3zltxQZs57D+pvIav8ixb27G7wBpr7lH5cfL7oG3AnURCfM90xtcU\r\nhKETe2o3TRyweNzvHflo7orW3j/Ql7Q6PxfkL9HH+f8q8Iw9b+zqmBjLP6FW\r\nqRYIfke95vBNaTTEarvLdjUjXhP5lf9S35A=\r\n=iGvD\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./dist/types.d.ts","exports":{".":{"import":"./dist/polyfills/full.js"},"./lite":{"import":"./dist/polyfills/lite.js"}},"gitHead":"1c4df056cf6be5f4c9baa95e9437e6242f5dec03","scripts":{"build":"tsc","clean":"rm -rf dist","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.4","http-server":"^14.1.1","@typescript/lib-dom":"npm:@types/web@^0.0.91"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_1.0.0_1675810631148_0.4273117179063419","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"formdata-submitter-polyfill","version":"1.0.1","keywords":["FormData","constructor","submitter","submit","polyfill","form","button","entry","typescript"],"author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@1.0.1","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"6679e214b4295df4beda7ca3c2f1e64b32996135","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-1.0.1.tgz","fileCount":6,"integrity":"sha512-BDJymraQuajkpqRem97ruF8x0ROGzyr7Da5ga+6Vn1Yz+5uxf4MLSQZQ0iStkBEEJDTf45hO2IZO3DLonTkRQw==","signatures":[{"sig":"MEUCIB/cTLmu3F8z4lRQbjq6oQOa7wN9DMV7Vzm6GGzVg1ZKAiEAseXgu0G06JxvaYgW8gAvaJvNsR9DMt3KQ8FhUO6/qAs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4ttwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1/w/8DeGHHpJJNI6HdGclF3KSxUMqK/fvpL8cTYPeagAf8jHeZJhp\r\nWge7x1054cyoGLWUckyrYV+Tn7z4lj80hSZKpD+FvLE56twvqm6blqgZifTx\r\nl9OeN5uQ5xArDZVZ7jBu10atGaYnkW8G74O15pWg/IJi2/VtazBxNaaLeryE\r\nJBxk8K/4dM6J93jNehifTKvIas+sIRzmUE2o9+T1SuFoK8uFikrMRotxlZZz\r\np453LpnF8kHQ7oWHG1KNUsMc/UNgjnASFRkGSSHjAGCCjMmO81ke22TnyQAA\r\nE6W61sosVPcKoAwHjF/cn75tEPWBR9ySJ3JBYuXGGxkffksUu1EOO1rcv/U8\r\nMqVPsBHeNdgTNUKX278CF/5Ud3AWHC3gzEcBJQxnvVe+3AuumSDEIPPPSttq\r\ntuY9BadLArMkTLSD+UC+2enxygsL8RANvpRT5sigJC6f50f0vyrORdUY/wcl\r\nx5lC+kRpvlG6lljXmiwozZ+G6KJ/7XSxFRNOCkFtziuNxfk6cwbeFa01ttAe\r\nfVdQSoHJrwBnRiKVGZwnEVjzbsSSUpn9aTXN00ZGt02uDBfsPeYz3O38H4wy\r\nqLbzuO6vDhL3PUlBguyP7JUfQpEq6E+jh0M6JVBrMdIwtkOOke6CmTjQ/n9L\r\nj1DhFaTlt53ANJGSLmQgtpSe1a2/CpeGWM4=\r\n=4pKR\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./dist/types.d.ts","exports":{".":{"import":"./dist/polyfills/full.js"},"./lite":{"import":"./dist/polyfills/lite.js"}},"gitHead":"690d3810e6dc85a29f327c640c0550b29e136578","scripts":{"build":"tsc","clean":"rm -rf dist","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.4","http-server":"^14.1.1","@typescript/lib-dom":"npm:@types/web@^0.0.91"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_1.0.1_1675811696181_0.2432219716391566","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"formdata-submitter-polyfill","version":"1.0.2","keywords":["FormData","constructor","submitter","submit","polyfill","form","button","entry","typescript"],"author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@1.0.2","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"5c048e999c6b537b3adb50916fabd06729e138c1","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-1.0.2.tgz","fileCount":14,"integrity":"sha512-4F/1pOB/3VofhaUpBd/R8fNLWjBRHvIb5rotTAXeRC4zaf6GKX7FhqchK4EcyQzc3ugNSP+HXckRF7cGUb37eQ==","signatures":[{"sig":"MEYCIQDmh1ui+BjRo7w4plZ03nY2KQpov4G8dIcFQBWH2lBzRgIhANifxdRoUapjG7hT2biQIIARhTZQluPxrxEGHTinsBCf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10903},"exports":{".":{"import":"./dist/full.mjs","require":"./dist/full.js"},"./impl":{"types":"./dist/impl.d.ts","import":"./dist/impl.mjs","require":"./dist/impl.js"},"./lite":{"import":"./dist/lite.mjs","require":"./dist/lite.js"}},"gitHead":"e3631eb3e5c7e750b2d1137306acd9981921c00e","scripts":{"build":"tsup src/*.ts --dts --minify --format esm,cjs --splitting","clean":"rm -rf dist","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","typescript":"^4.9.4","http-server":"^14.1.1","@typescript/lib-dom":"npm:@types/web@^0.0.91"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_1.0.2_1683354761066_0.8439714858864202","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"formdata-submitter-polyfill","version":"1.0.3","keywords":["FormData","constructor","submitter","submit","polyfill","form","button","entry","typescript"],"author":{"name":"Jon Jensen"},"license":"ISC","_id":"formdata-submitter-polyfill@1.0.3","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","dist":{"shasum":"d3a92cf30e5bfbbff1b749753f06591a260bae69","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-1.0.3.tgz","fileCount":16,"integrity":"sha512-n1/AbCqdwWv0S9TsoH2v6TYUFfNRCpLMauFSC0snIY58Mrzmhm9Spce6q0MPWKJInddBcDPRWSJqevgooXFBOg==","signatures":[{"sig":"MEQCIDrSW10HdHQrYrZFVWUGlhv0VZ0tLa9DI8toN8xpbEasAiAd/Rk9XNaqkA9aAnH9Boevd9cTixNToUoJfouQhHqjBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14715},"exports":{".":{"import":"./dist/full.mjs","require":"./dist/full.js"},"./impl":{"types":"./dist/impl.d.ts","import":"./dist/impl.mjs","require":"./dist/impl.js"},"./lite":{"import":"./dist/lite.mjs","require":"./dist/lite.js"}},"gitHead":"8c540046ba0e49cdea38b9418c7569a8a646aece","scripts":{"build":"tsup src/*.ts --dts --minify --format esm,cjs --splitting","clean":"rm -rf dist","test-server":"npm run build && http-server"},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"_npmVersion":"8.1.0","description":"Support the submitter parameter to the FormData constructor in older browsers.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","typescript":"^4.9.4","http-server":"^14.1.1","@typescript/lib-dom":"npm:@types/web@^0.0.91"},"_npmOperationalInternal":{"tmp":"tmp/formdata-submitter-polyfill_1.0.3_1687369600282_0.9737481372129444","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"formdata-submitter-polyfill","description":"Support the submitter parameter to the FormData constructor in older browsers.","keywords":["FormData","constructor","submitter","submit","polyfill","form","button","entry","typescript"],"version":"1.0.4","author":{"name":"Jon Jensen"},"homepage":"https://github.com/jenseng/formdata-submitter-polyfill","scripts":{"build":"tsup src/*.ts --dts --minify --format esm,cjs --splitting","clean":"rm -rf dist","test-server":"npm run build && http-server"},"exports":{".":{"import":"./dist/full.mjs","require":"./dist/full.js"},"./lite":{"import":"./dist/lite.mjs","require":"./dist/lite.js"},"./impl":{"types":"./dist/impl.d.ts","import":"./dist/impl.mjs","require":"./dist/impl.js"}},"directories":{},"devDependencies":{"@typescript/lib-dom":"npm:@types/web@^0.0.91","http-server":"^14.1.1","tsup":"^6.7.0","typescript":"^4.9.4"},"license":"ISC","gitHead":"36e7b96c33d7361503c3c3f2b41a3c4cbdaebbe8","_id":"formdata-submitter-polyfill@1.0.4","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-w7fxComhxZB7q6l/Hh6CLWrW7x2Mbhatv7RbycLokN6mc+xVyuXEOsBk063LhM2cuTtU161K1GHZ52kpgfjq9Q==","shasum":"546c4a69d7302e06a943b168fab8948fc4c3e371","tarball":"https://registry.npmjs.org/formdata-submitter-polyfill/-/formdata-submitter-polyfill-1.0.4.tgz","fileCount":14,"unpackedSize":11025,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCnbdRkKdFhTBTyAoQd+6TotPLjoi8hJTRu2eJRhIxFWAIhALlDQh8ATyeXNFGoonpT3FPgeOaZKA9NLiX2xTYJSC7W"}]},"_npmUser":{"name":"jenseng","email":"jenseng@gmail.com"},"maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/formdata-submitter-polyfill_1.0.4_1761863159596_0.8894773759536347"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-28T03:50:50.704Z","modified":"2025-10-30T22:26:00.008Z","0.0.1":"2023-01-28T03:50:50.858Z","0.0.2":"2023-01-28T04:32:19.544Z","1.0.0":"2023-02-07T22:57:11.344Z","1.0.1":"2023-02-07T23:14:56.396Z","1.0.2":"2023-05-06T06:32:41.286Z","1.0.3":"2023-06-21T17:46:40.460Z","1.0.4":"2025-10-30T22:25:59.792Z"},"author":{"name":"Jon Jensen"},"license":"ISC","homepage":"https://github.com/jenseng/formdata-submitter-polyfill","keywords":["FormData","constructor","submitter","submit","polyfill","form","button","entry","typescript"],"description":"Support the submitter parameter to the FormData constructor in older browsers.","maintainers":[{"name":"jenseng","email":"jenseng@gmail.com"}],"readme":"# FormData submitter polyfill\n\nSupport the `submitter` parameter to the [FormData constructor](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData) in older browsers.\n\n## Usage\n\n```bash\nnpm install --save formdata-submitter-polyfill\n```\n\nThen import it early in your client entrypoint .js file, e.g.\n\n```javascript\nimport \"formdata-submitter-polyfill\";\n```\n\nNow you can reliably create `FormData` objects populated from both a form and a `submitter`. A common scenario for this is in form submission handlers, e.g.\n\n```javascript\nvar myform = document.createElement(\"form\");\nmyform.innerHTML = `\n  <input name=foo value=FOO>\n  <button name=go value=GO>go!</button>\n  <input type=image>\n  <input name=bar value=BAR>\n`;\nmyform.addEventListener(\"submit\", (event) => {\n  event.preventDefault();\n  const formData = new FormData(event.target, event.submitter);\n  // If the button is the submitter:\n  // ▸ FormData(3) { foo → \"FOO\", go → \"GO\", bar → \"BAR\" }\n  // If the image button is the submitter:\n  // ▸ FormData(4) { foo → \"FOO\", x → \"0\", y → \"0\", bar → \"BAR\" }\n\n  // ... do something with formData ...\n});\n```\n\nThese `FormData` objects are equivalent to the form data sets constructed by equivalent native form submissions.\n\nIf you also need to polyfill the `submitter` property of the `SubmitEvent`, consider using the [`event-submitter-polyfill`](https://www.npmjs.com/package/event-submitter-polyfill) package alongside this one.\n\n### TypeScript\n\nThe latest [TypeScript DOM types](https://www.npmjs.com/package/@types/web) support the `submitter` parameter. If you are using older DOM types (e.g. the ones that shipped with your version of TypeScript), you can get the latest by running:\n\n```bash\nnpm install @typescript/lib-dom@npm:@types/web --save-dev\n```\n\nIf for some reason you can't upgrade yet, in the meantime you can add a `// @ts-expect-error` comment to make TypeScript happy 🙈.\n\n### Additional Exports\n\nIf you want more control over how/when the polyfill is activated, you can use the exports provided by `formdata-submitter-polyfill/impl`. For example:\n\n```typescript\nimport {\n  FormData,\n  polyfillFormDataIfNecessary,\n} from \"formdata-submitter-polyfill/impl\";\n\n// this will replace window.FormData with the polyfill if necessary\npolyfillFormDataIfNecessary(FormData);\n```\n\n### Lightweight mode\n\nBy default, the polyfill fully supports the [form entry list construction algorithm](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-the-form-data-set), i.e. ensuring that image button and named button submitters are encoded in tree order. It accomplishes this by temporarily tweaking the form during submission to get the right entries.\n\nWhile this performs well, you can get faster (but less compliant) behavior by doing:\n\n```javascript\nimport \"formdata-submitter-polyfill/lite\";\n```\n\nThis will instead create a `submitter`-less `FormData` object and then append `submitter` entries (as appropriate) to the end of the list, e.g.\n\n```javascript\nconst formData = new FormData(event.target, event.submitter);\n// If the button is the submitter:\n// ▸ FormData(3) { foo → \"FOO\", bar → \"BAR\", go → \"GO\" }\n// If the image button is the submitter:\n// ▸ FormData(4) { foo → \"FOO\", bar → \"BAR\", x → \"0\", y → \"0\" }\n```\n\n#### Gotchas\n\n1. If the entry order matters for consumers, this may lead to bugs (i.e. the order will differ from one created from a vanilla form submission).\n\n2. Older versions of Safari will include `submitter` entries twice, due to [this bug](https://bugs.webkit.org/show_bug.cgi?id=239070).\n\nThe default polyfill mode does not have these issues.\n","readmeFilename":"README.md"}