esbuild 0.12.28 → 0.12.29

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
@@ -17,16 +17,13 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __require = typeof require !== "undefined" ? require : (x) => {
21
- throw new Error('Dynamic require of "' + x + '" is not supported');
22
- };
23
20
  const fs = require("fs");
24
21
  const os = require("os");
25
22
  const path = require("path");
26
23
  const zlib = require("zlib");
27
24
  const https = require("https");
28
25
  const child_process = require("child_process");
29
- const version = "0.12.28";
26
+ const version = "0.12.29";
30
27
  const binPath = path.join(__dirname, "bin", "esbuild");
31
28
  async function installBinaryFromPackage(name, fromPath, toPath) {
32
29
  const cachePath = getCachePath(name);
package/lib/main.js CHANGED
@@ -18,9 +18,6 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
21
- var __require = typeof require !== "undefined" ? require : (x) => {
22
- throw new Error('Dynamic require of "' + x + '" is not supported');
23
- };
24
21
  var __export = (target, all) => {
25
22
  __markAsModule(target);
26
23
  for (var name in all)
@@ -694,8 +691,8 @@ function createChannel(streamIn) {
694
691
  if (isFirstPacket) {
695
692
  isFirstPacket = false;
696
693
  let binaryVersion = String.fromCharCode(...bytes);
697
- if (binaryVersion !== "0.12.28") {
698
- throw new Error(`Cannot start service: Host version "${"0.12.28"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
694
+ if (binaryVersion !== "0.12.29") {
695
+ throw new Error(`Cannot start service: Host version "${"0.12.29"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
699
696
  }
700
697
  return;
701
698
  }
@@ -1585,7 +1582,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1585
1582
  }
1586
1583
  }
1587
1584
  var _a;
1588
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.28";
1585
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.12.29";
1589
1586
  var esbuildCommandAndArgs = () => {
1590
1587
  if (process.env.ESBUILD_BINARY_PATH) {
1591
1588
  return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
@@ -1654,7 +1651,7 @@ var fsAsync = {
1654
1651
  }
1655
1652
  }
1656
1653
  };
1657
- var version = "0.12.28";
1654
+ var version = "0.12.29";
1658
1655
  var build = (options) => ensureServiceIsRunning().build(options);
1659
1656
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1660
1657
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1763,7 +1760,7 @@ var ensureServiceIsRunning = () => {
1763
1760
  if (longLivedService)
1764
1761
  return longLivedService;
1765
1762
  let [command, args] = esbuildCommandAndArgs();
1766
- let child = child_process.spawn(command, args.concat(`--service=${"0.12.28"}`, "--ping"), {
1763
+ let child = child_process.spawn(command, args.concat(`--service=${"0.12.29"}`, "--ping"), {
1767
1764
  windowsHide: true,
1768
1765
  stdio: ["pipe", "pipe", "inherit"],
1769
1766
  cwd: defaultWD
@@ -1870,7 +1867,7 @@ var runServiceSync = (callback) => {
1870
1867
  isBrowser: false
1871
1868
  });
1872
1869
  callback(service);
1873
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.28"}`), {
1870
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.29"}`), {
1874
1871
  cwd: defaultWD,
1875
1872
  windowsHide: true,
1876
1873
  input: stdin,
@@ -1886,7 +1883,7 @@ var workerThreadService = null;
1886
1883
  var startWorkerThreadService = (worker_threads2) => {
1887
1884
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1888
1885
  let worker = new worker_threads2.Worker(__filename, {
1889
- workerData: { workerPort, defaultWD, esbuildVersion: "0.12.28" },
1886
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.12.29" },
1890
1887
  transferList: [workerPort],
1891
1888
  execArgv: []
1892
1889
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.12.28",
3
+ "version": "0.12.29",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {