UNPKG

570 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Upload = void 0;
4class Upload {
5 constructor() {
6 this.promise = new Promise((resolve, reject) => {
7 this.resolve = (file) => {
8 this.file = file;
9 resolve(file);
10 };
11 this.reject = reject;
12 });
13 // Prevent errors crashing Node.js, see:
14 // https://github.com/nodejs/node/issues/20392
15 this.promise.catch(() => { });
16 }
17}
18exports.Upload = Upload;
19//# sourceMappingURL=Upload.js.map
\No newline at end of file