esbuild 0.12.21 → 0.12.22

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.21";
26
+ const version = "0.12.22";
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.21") {
693
- throw new Error(`Cannot start service: Host version "${"0.12.21"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
692
+ if (binaryVersion !== "0.12.22") {
693
+ throw new Error(`Cannot start service: Host version "${"0.12.22"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
694
694
  }
695
695
  return;
696
696
  }
@@ -1556,7 +1556,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1556
1556
  }
1557
1557
  }
1558
1558
  var _a;
1559
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.21";
1559
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.22";
1560
1560
  var esbuildCommandAndArgs = () => {
1561
1561
  if (process.env.ESBUILD_BINARY_PATH) {
1562
1562
  return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
@@ -1625,7 +1625,7 @@ var fsAsync = {
1625
1625
  }
1626
1626
  }
1627
1627
  };
1628
- var version = "0.12.21";
1628
+ var version = "0.12.22";
1629
1629
  var build = (options) => ensureServiceIsRunning().build(options);
1630
1630
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1631
1631
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1713,7 +1713,7 @@ var ensureServiceIsRunning = () => {
1713
1713
  if (longLivedService)
1714
1714
  return longLivedService;
1715
1715
  let [command, args] = esbuildCommandAndArgs();
1716
- let child = child_process.spawn(command, args.concat(`--service=${"0.12.21"}`, "--ping"), {
1716
+ let child = child_process.spawn(command, args.concat(`--service=${"0.12.22"}`, "--ping"), {
1717
1717
  windowsHide: true,
1718
1718
  stdio: ["pipe", "pipe", "inherit"],
1719
1719
  cwd: defaultWD
@@ -1811,7 +1811,7 @@ var runServiceSync = (callback) => {
1811
1811
  isBrowser: false
1812
1812
  });
1813
1813
  callback(service);
1814
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.21"}`), {
1814
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.22"}`), {
1815
1815
  cwd: defaultWD,
1816
1816
  windowsHide: true,
1817
1817
  input: stdin,
@@ -1827,7 +1827,7 @@ var workerThreadService = null;
1827
1827
  var startWorkerThreadService = (worker_threads2) => {
1828
1828
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1829
1829
  let worker = new worker_threads2.Worker(__filename, {
1830
- workerData: { workerPort, defaultWD, esbuildVersion: "0.12.21" },
1830
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.12.22" },
1831
1831
  transferList: [workerPort],
1832
1832
  execArgv: []
1833
1833
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.12.21",
3
+ "version": "0.12.22",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {