chore(workflows): Fix merge conflicts with master

This commit is contained in:
olivermrbl
2022-12-07 20:28:32 +01:00
890 changed files with 101176 additions and 38064 deletions

View File

@@ -0,0 +1,41 @@
"use strict";
exports.__esModule = true;
exports.WritableAsPromise = void 0;
var _stream = require("stream");
class WritableAsPromise extends _stream.Writable {
constructor() {
super();
this._output = ``;
this._deferred = {
promise: null,
resolve: null,
reject: null
};
this._deferred.promise = new Promise((resolve, reject) => {
this._deferred.resolve = resolve;
this._deferred.reject = reject;
});
}
_write(chunk, enc, cb) {
this._output += chunk.toString();
cb();
}
end() {
this._deferred.resolve(this._output);
this.destroy();
} // disguise us as a promise
then(resolve, reject) {
return this._deferred.promise.then(resolve, reject);
}
}
exports.WritableAsPromise = WritableAsPromise;