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

@uppy/form

Package Overview
Dependencies
Maintainers
6
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/form - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0

7

CHANGELOG.md
# @uppy/form
## 3.1.0
Released: 2024-02-19
Included in: Uppy v3.22.0
- @uppy/form: use requestsubmit (merlijn vos / #4852)
## 3.0.1

@@ -4,0 +11,0 @@

9

lib/index.js

@@ -6,3 +6,3 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js';

const packageJson = {
"version": "3.0.3"
"version": "3.1.0"
};

@@ -13,4 +13,8 @@ /**

export default class Form extends BasePlugin {
// TODO: make this private (or at least, mark it as readonly)
constructor(uppy, opts) {
super(uppy, opts);
/** @type {HTMLFormElement} */
this.form = void 0;
this.type = 'acquirer';

@@ -51,3 +55,3 @@ this.id = this.opts.id || 'Form';

if (this.opts.submitOnSuccess) {
this.form.submit();
this.form.requestSubmit();
}

@@ -75,3 +79,2 @@ }

});
return Promise.reject(err);

@@ -78,0 +81,0 @@ }).catch(err => {

{
"name": "@uppy/form",
"description": "Connect Uppy to an existing HTML <form>.",
"version": "3.0.3",
"version": "3.1.0",
"license": "MIT",

@@ -24,8 +24,8 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/utils": "^5.5.2",
"@uppy/utils": "^5.7.1",
"get-form-data": "^3.0.0"
},
"peerDependencies": {
"@uppy/core": "^3.6.0"
"@uppy/core": "^3.9.0"
}
}

@@ -15,2 +15,5 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js'

/** @type {HTMLFormElement} */
form // TODO: make this private (or at least, mark it as readonly)
constructor (uppy, opts) {

@@ -54,3 +57,3 @@ super(uppy, opts)

if (this.opts.submitOnSuccess) {
this.form.submit()
this.form.requestSubmit()
}

@@ -57,0 +60,0 @@ }

Sorry, the diff of this file is not supported yet

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