invalidPluginWithoutId.js 438 B

1234567891011121314151617181920212223
  1. "use strict";
  2. const UIPlugin = require("../UIPlugin.js");
  3. class InvalidPluginWithoutName extends UIPlugin {
  4. constructor(uppy, opts) {
  5. super(uppy, opts);
  6. this.type = 'acquirer';
  7. this.name = this.constructor.name;
  8. }
  9. run(results) {
  10. this.uppy.log({
  11. class: this.constructor.name,
  12. method: 'run',
  13. results
  14. });
  15. return Promise.resolve('success');
  16. }
  17. }
  18. module.exports = InvalidPluginWithoutName;