Skip to content

Commit

Permalink
Forced p-limit 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 11, 2024
1 parent bf6d650 commit 1929def
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { State } from './state.js';
import { sqlite3 } from './database.js';
import {trackEvent} from './tracking.js';

const DEBUG = true;
const DEBUG = false;

// Function to join Buffers and not use Buffer.concat() which leads to detached ArrayBuffers
function joinBuffers(buffer1, buffer2) {
Expand Down Expand Up @@ -3650,7 +3650,7 @@ async function convertAndOrganiseFiles(threadLimit) {
// Does the file we want to convert exist?
if (!fs.existsSync(inputFilePath)) {
UI.postMessage({
event: 'generate-alert', type: 'Warning',
event: 'generate-alert', type: 'warning',
message: `Cannot access: ${inputFilePath}<br>Skipping conversion.`
});
continue;
Expand All @@ -3677,7 +3677,7 @@ async function convertAndOrganiseFiles(threadLimit) {
// Add the file conversion to the pool
fileProgressMap[inputFilePath] = 0;
conversions.push(limit(() => convertFile(inputFilePath, fullFilePath, row, db, dbArchiveName, fileProgressMap)));
console.log(conversions)

}

Promise.allSettled(conversions).then((results) => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
"uuid": "^8.3.2",
"utimes": "5.2.1",
"wavefile-reader": "^1.1.1",
"wavesurfer.js": "6.6.4"
"wavesurfer.js": "6.6.4",
"p-limit": "3.1.0"
}
}

0 comments on commit 1929def

Please sign in to comment.