File esbuild_version.patch of Package signal-desktop
Do not expect a specific esbuild version.
--- a/node_modules/esbuild/install.js
+++ b/node_modules/esbuild/install.js
@@ -101,7 +101,7 @@
}
throw err;
}
- if (stdout !== versionFromPackageJSON) {
+ if (0) {
throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);
}
}
--- vendor/node_modules/esbuild/lib/main.js.orig 2024-12-04 22:55:00.301497722 +0100
+++ vendor/node_modules/esbuild/lib/main.js 2024-12-04 23:39:16.695775992 +0100
@@ -662,7 +662,7 @@ function createChannel(streamIn) {
if (isFirstPacket) {
isFirstPacket = false;
let binaryVersion = String.fromCharCode(...bytes);
- if (binaryVersion !== "0.24.0") {
+ if (0) {
throw new Error(`Cannot start service: Host version "${"0.24.0"}" does not match binary version ${quote(binaryVersion)}`);
}
return;
--- a/sticker-creator/node_modules/esbuild/install.js
+++ b/sticker-creator/node_modules/esbuild/install.js
@@ -101,7 +101,7 @@
}
throw err;
}
- if (stdout !== versionFromPackageJSON) {
+ if (0) {
throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);
}
}
--- a/sticker-creator/node_modules/esbuild/lib/main.js
+++ b/sticker-creator/node_modules/esbuild/lib/main.js
@@ -735,7 +735,7 @@
if (isFirstPacket) {
isFirstPacket = false;
let binaryVersion = String.fromCharCode(...bytes);
- if (binaryVersion !== "0.18.20") {
+ if (0) {
throw new Error(`Cannot start service: Host version "${"0.18.20"}" does not match binary version ${quote(binaryVersion)}`);
}
return;