esbuild 0.12.23 → 0.12.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/install.js CHANGED
@@ -23,7 +23,7 @@ const path = require("path");
23
23
  const zlib = require("zlib");
24
24
  const https = require("https");
25
25
  const child_process = require("child_process");
26
- const version = "0.12.23";
26
+ const version = "0.12.24";
27
27
  const binPath = path.join(__dirname, "bin", "esbuild");
28
28
  async function installBinaryFromPackage(name, fromPath, toPath) {
29
29
  const cachePath = getCachePath(name);
package/lib/main.js CHANGED
@@ -689,8 +689,8 @@ function createChannel(streamIn) {
689
689
  if (isFirstPacket) {
690
690
  isFirstPacket = false;
691
691
  let binaryVersion = String.fromCharCode(...bytes);
692
- if (binaryVersion !== "0.12.23") {
693
- throw new Error(`Cannot start service: Host version "${"0.12.23"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
692
+ if (binaryVersion !== "0.12.24") {
693
+ throw new Error(`Cannot start service: Host version "${"0.12.24"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
694
694
  }
695
695
  return;
696
696
  }
@@ -1558,7 +1558,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1558
1558
  }
1559
1559
  }
1560
1560
  var _a;
1561
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.23";
1561
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.24";
1562
1562
  var esbuildCommandAndArgs = () => {
1563
1563
  if (process.env.ESBUILD_BINARY_PATH) {
1564
1564
  return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
@@ -1627,7 +1627,7 @@ var fsAsync = {
1627
1627
  }
1628
1628
  }
1629
1629
  };
1630
- var version = "0.12.23";
1630
+ var version = "0.12.24";
1631
1631
  var build = (options) => ensureServiceIsRunning().build(options);
1632
1632
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1633
1633
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1715,7 +1715,7 @@ var ensureServiceIsRunning = () => {
1715
1715
  if (longLivedService)
1716
1716
  return longLivedService;
1717
1717
  let [command, args] = esbuildCommandAndArgs();
1718
- let child = child_process.spawn(command, args.concat(`--service=${"0.12.23"}`, "--ping"), {
1718
+ let child = child_process.spawn(command, args.concat(`--service=${"0.12.24"}`, "--ping"), {
1719
1719
  windowsHide: true,
1720
1720
  stdio: ["pipe", "pipe", "inherit"],
1721
1721
  cwd: defaultWD
@@ -1813,7 +1813,7 @@ var runServiceSync = (callback) => {
1813
1813
  isBrowser: false
1814
1814
  });
1815
1815
  callback(service);
1816
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.23"}`), {
1816
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.24"}`), {
1817
1817
  cwd: defaultWD,
1818
1818
  windowsHide: true,
1819
1819
  input: stdin,
@@ -1829,7 +1829,7 @@ var workerThreadService = null;
1829
1829
  var startWorkerThreadService = (worker_threads2) => {
1830
1830
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1831
1831
  let worker = new worker_threads2.Worker(__filename, {
1832
- workerData: { workerPort, defaultWD, esbuildVersion: "0.12.23" },
1832
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.12.24" },
1833
1833
  transferList: [workerPort],
1834
1834
  execArgv: []
1835
1835
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.12.23",
3
+ "version": "0.12.24",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {