Some image fixes, updated packages
This commit is contained in:
parent
17819881f6
commit
6aa1bf7ff6
6 changed files with 151 additions and 443 deletions
|
@ -6,7 +6,7 @@ const nodeRequire = createRequire(import.meta.url);
|
|||
|
||||
const magick = nodeRequire(`../build/${process.env.DEBUG && process.env.DEBUG === "true" ? "Debug" : "Release"}/image.node`);
|
||||
|
||||
function run(object) {
|
||||
export default function run(object) {
|
||||
return new Promise((resolve, reject) => {
|
||||
// If the image has a path, it must also have a type
|
||||
let promise = Promise.resolve();
|
||||
|
|
|
@ -125,6 +125,7 @@ class ImageWorker extends BaseServiceWorker {
|
|||
if (i < 2 && e === "Request ended prematurely due to a closed connection") {
|
||||
continue;
|
||||
} else {
|
||||
if (e === "No available servers" && i >= 2) e = "Request ended prematurely due to a closed connection";
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue