Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.processingQueue = processingQueue;
const io_synchronizer_1 = require("./io-manager/io-synchronizer");
function processingQueue({ onOutput, logLevel, label, onError, controller, }) {
const ioSynchronizer = (0, io_synchronizer_1.makeIoSynchronizer)({
logLevel,
label,
controller,
});
let queue = Promise.resolve();
let stopped = false;
const input = (item) => {
if (stopped) {
return;
}
if (controller._internals._mediaParserController._internals.signal.aborted) {
stopped = true;
return;
}
const { timestamp } = item; // Saving in variable, because timestamp might become nulled
ioSynchronizer.inputItem(timestamp);
queue = queue
.then(() => {
if (stopped) {
return;
}
if (controller._internals._mediaParserController._internals.signal.aborted) {
stopped = true;
return;
}
return onOutput(item);
})
.then(() => {
ioSynchronizer.onOutput(timestamp);
return Promise.resolve();
})
.catch((err) => {
stopped = true;
onError(err);
});
};
return {
input,
ioSynchronizer,
};
}