esbuild 0.13.1 → 0.13.2

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.
Files changed (3) hide show
  1. package/install.js +2 -2
  2. package/lib/main.js +7 -7
  3. package/package.json +17 -17
package/install.js CHANGED
@@ -62,8 +62,8 @@ var toPath = path2.join(__dirname, "bin", "esbuild");
62
62
  function validateBinaryVersion(...command) {
63
63
  command.push("--version");
64
64
  const stdout = child_process.execFileSync(command.shift(), command).toString().trim();
65
- if (stdout !== "0.13.1") {
66
- throw new Error(`Expected ${JSON.stringify("0.13.1")} but got ${JSON.stringify(stdout)}`);
65
+ if (stdout !== "0.13.2") {
66
+ throw new Error(`Expected ${JSON.stringify("0.13.2")} but got ${JSON.stringify(stdout)}`);
67
67
  }
68
68
  }
69
69
  function isYarn2OrAbove() {
package/lib/main.js CHANGED
@@ -709,8 +709,8 @@ function createChannel(streamIn) {
709
709
  if (isFirstPacket) {
710
710
  isFirstPacket = false;
711
711
  let binaryVersion = String.fromCharCode(...bytes);
712
- if (binaryVersion !== "0.13.1") {
713
- throw new Error(`Cannot start service: Host version "${"0.13.1"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
712
+ if (binaryVersion !== "0.13.2") {
713
+ throw new Error(`Cannot start service: Host version "${"0.13.2"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
714
714
  }
715
715
  return;
716
716
  }
@@ -1677,7 +1677,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1677
1677
  }
1678
1678
  }
1679
1679
  var _a;
1680
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.13.1";
1680
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.13.2";
1681
1681
  var esbuildCommandAndArgs = () => {
1682
1682
  if (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib") {
1683
1683
  throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
@@ -1736,7 +1736,7 @@ var fsAsync = {
1736
1736
  }
1737
1737
  }
1738
1738
  };
1739
- var version = "0.13.1";
1739
+ var version = "0.13.2";
1740
1740
  var build = (options) => ensureServiceIsRunning().build(options);
1741
1741
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1742
1742
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1845,7 +1845,7 @@ var ensureServiceIsRunning = () => {
1845
1845
  if (longLivedService)
1846
1846
  return longLivedService;
1847
1847
  let [command, args] = esbuildCommandAndArgs();
1848
- let child = child_process.spawn(command, args.concat(`--service=${"0.13.1"}`, "--ping"), {
1848
+ let child = child_process.spawn(command, args.concat(`--service=${"0.13.2"}`, "--ping"), {
1849
1849
  windowsHide: true,
1850
1850
  stdio: ["pipe", "pipe", "inherit"],
1851
1851
  cwd: defaultWD
@@ -1952,7 +1952,7 @@ var runServiceSync = (callback) => {
1952
1952
  isBrowser: false
1953
1953
  });
1954
1954
  callback(service);
1955
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.13.1"}`), {
1955
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.13.2"}`), {
1956
1956
  cwd: defaultWD,
1957
1957
  windowsHide: true,
1958
1958
  input: stdin,
@@ -1968,7 +1968,7 @@ var workerThreadService = null;
1968
1968
  var startWorkerThreadService = (worker_threads2) => {
1969
1969
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
1970
1970
  let worker = new worker_threads2.Worker(__filename, {
1971
- workerData: { workerPort, defaultWD, esbuildVersion: "0.13.1" },
1971
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.13.2" },
1972
1972
  transferList: [workerPort],
1973
1973
  execArgv: []
1974
1974
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "An extremely fast JavaScript bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -12,22 +12,22 @@
12
12
  "esbuild": "bin/esbuild"
13
13
  },
14
14
  "optionalDependencies": {
15
- "esbuild-android-arm64": "0.13.1",
16
- "esbuild-darwin-64": "0.13.1",
17
- "esbuild-darwin-arm64": "0.13.1",
18
- "esbuild-freebsd-64": "0.13.1",
19
- "esbuild-freebsd-arm64": "0.13.1",
20
- "esbuild-linux-32": "0.13.1",
21
- "esbuild-linux-64": "0.13.1",
22
- "esbuild-linux-arm": "0.13.1",
23
- "esbuild-linux-arm64": "0.13.1",
24
- "esbuild-linux-mips64le": "0.13.1",
25
- "esbuild-linux-ppc64le": "0.13.1",
26
- "esbuild-openbsd-64": "0.13.1",
27
- "esbuild-sunos-64": "0.13.1",
28
- "esbuild-windows-32": "0.13.1",
29
- "esbuild-windows-64": "0.13.1",
30
- "esbuild-windows-arm64": "0.13.1"
15
+ "esbuild-android-arm64": "0.13.2",
16
+ "esbuild-darwin-64": "0.13.2",
17
+ "esbuild-darwin-arm64": "0.13.2",
18
+ "esbuild-freebsd-64": "0.13.2",
19
+ "esbuild-freebsd-arm64": "0.13.2",
20
+ "esbuild-linux-32": "0.13.2",
21
+ "esbuild-linux-64": "0.13.2",
22
+ "esbuild-linux-arm": "0.13.2",
23
+ "esbuild-linux-arm64": "0.13.2",
24
+ "esbuild-linux-mips64le": "0.13.2",
25
+ "esbuild-linux-ppc64le": "0.13.2",
26
+ "esbuild-openbsd-64": "0.13.2",
27
+ "esbuild-sunos-64": "0.13.2",
28
+ "esbuild-windows-32": "0.13.2",
29
+ "esbuild-windows-64": "0.13.2",
30
+ "esbuild-windows-arm64": "0.13.2"
31
31
  },
32
32
  "license": "MIT"
33
33
  }