esbuild 0.12.14 → 0.12.15

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.14";
26
+ const version = "0.12.15";
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.14") {
693
- throw new Error(`Cannot start service: Host version "${"0.12.14"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
692
+ if (binaryVersion !== "0.12.15") {
693
+ throw new Error(`Cannot start service: Host version "${"0.12.15"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
694
694
  }
695
695
  return;
696
696
  }
@@ -1552,7 +1552,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1552
1552
  }
1553
1553
  }
1554
1554
  var _a;
1555
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.14";
1555
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.15";
1556
1556
  var esbuildCommandAndArgs = () => {
1557
1557
  if (process.env.ESBUILD_BINARY_PATH) {
1558
1558
  return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
@@ -1621,7 +1621,7 @@ var fsAsync = {
1621
1621
  }
1622
1622
  }
1623
1623
  };
1624
- var version = "0.12.14";
1624
+ var version = "0.12.15";
1625
1625
  var build = (options) => ensureServiceIsRunning().build(options);
1626
1626
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1627
1627
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1709,7 +1709,7 @@ var ensureServiceIsRunning = () => {
1709
1709
  if (longLivedService)
1710
1710
  return longLivedService;
1711
1711
  let [command, args] = esbuildCommandAndArgs();
1712
- let child = child_process.spawn(command, args.concat(`--service=${"0.12.14"}`, "--ping"), {
1712
+ let child = child_process.spawn(command, args.concat(`--service=${"0.12.15"}`, "--ping"), {
1713
1713
  windowsHide: true,
1714
1714
  stdio: ["pipe", "pipe", "inherit"],
1715
1715
  cwd: defaultWD
@@ -1807,7 +1807,7 @@ var runServiceSync = (callback) => {
1807
1807
  isBrowser: false
1808
1808
  });
1809
1809
  callback(service);
1810
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.14"}`), {
1810
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.15"}`), {
1811
1811
  cwd: defaultWD,
1812
1812
  windowsHide: true,
1813
1813
  input: stdin,
@@ -1823,7 +1823,7 @@ var workerThreadService = null;
1823
1823
  var startWorkerThreadService = (worker_threads2) => {
1824
1824
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1825
1825
  let worker = new worker_threads2.Worker(__filename, {
1826
- workerData: { workerPort, defaultWD, esbuildVersion: "0.12.14" },
1826
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.12.15" },
1827
1827
  transferList: [workerPort],
1828
1828
  execArgv: []
1829
1829
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.12.14",
3
+ "version": "0.12.15",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {