This commit is contained in:
parent
7a9bf3199a
commit
c294e2e9ae
5702 changed files with 465039 additions and 34 deletions
19
node_modules/formidable/src/parsers/Dummy.js
generated
vendored
Normal file
19
node_modules/formidable/src/parsers/Dummy.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* eslint-disable no-underscore-dangle */
|
||||
|
||||
import { Transform } from 'node:stream';
|
||||
|
||||
class DummyParser extends Transform {
|
||||
constructor(incomingForm, options = {}) {
|
||||
super();
|
||||
this.globalOptions = { ...options };
|
||||
this.incomingForm = incomingForm;
|
||||
}
|
||||
|
||||
_flush(callback) {
|
||||
this.incomingForm.ended = true;
|
||||
this.incomingForm._maybeEnd();
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
export default DummyParser;
|
||||
Loading…
Add table
Add a link
Reference in a new issue