mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
const { UIPlugin } = require('../../packages/@uppy/core')
|
|
|
|
module.exports = class InvalidPluginWithoutName extends UIPlugin {
|
|
constructor (uppy, opts) {
|
|
super(uppy, opts)
|
|
this.type = 'acquirer'
|
|
this.name = this.constructor.name
|
|
}
|
|
|
|
run (results) {
|
|
this.uppy.log({
|
|
class: this.constructor.name,
|
|
method: 'run',
|
|
results,
|
|
})
|
|
|
|
return Promise.resolve('success')
|
|
}
|
|
}
|