esbuild 0.14.30 → 0.14.31

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 +4 -4
  2. package/lib/main.js +7 -7
  3. package/package.json +21 -21
package/install.js CHANGED
@@ -101,8 +101,8 @@ function validateBinaryVersion(...command) {
101
101
  const stdout = child_process.execFileSync(command.shift(), command, {
102
102
  stdio: "pipe"
103
103
  }).toString().trim();
104
- if (stdout !== "0.14.30") {
105
- throw new Error(`Expected ${JSON.stringify("0.14.30")} but got ${JSON.stringify(stdout)}`);
104
+ if (stdout !== "0.14.31") {
105
+ throw new Error(`Expected ${JSON.stringify("0.14.31")} but got ${JSON.stringify(stdout)}`);
106
106
  }
107
107
  }
108
108
  function isYarn() {
@@ -153,7 +153,7 @@ function installUsingNPM(pkg, subpath, binPath) {
153
153
  fs2.mkdirSync(installDir);
154
154
  try {
155
155
  fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
156
- child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.30"}`, { cwd: installDir, stdio: "pipe", env });
156
+ child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.31"}`, { cwd: installDir, stdio: "pipe", env });
157
157
  const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
158
158
  fs2.renameSync(installedBinPath, binPath);
159
159
  } finally {
@@ -202,7 +202,7 @@ function maybeOptimizePackage(binPath) {
202
202
  }
203
203
  }
204
204
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
205
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.30"}.tgz`;
205
+ const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.31"}.tgz`;
206
206
  console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
207
207
  try {
208
208
  fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
package/lib/main.js CHANGED
@@ -743,8 +743,8 @@ function createChannel(streamIn) {
743
743
  if (isFirstPacket) {
744
744
  isFirstPacket = false;
745
745
  let binaryVersion = String.fromCharCode(...bytes);
746
- if (binaryVersion !== "0.14.30") {
747
- throw new Error(`Cannot start service: Host version "${"0.14.30"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
746
+ if (binaryVersion !== "0.14.31") {
747
+ throw new Error(`Cannot start service: Host version "${"0.14.31"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
748
748
  }
749
749
  return;
750
750
  }
@@ -1856,7 +1856,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1856
1856
  }
1857
1857
  }
1858
1858
  var _a;
1859
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.30";
1859
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.31";
1860
1860
  var esbuildCommandAndArgs = () => {
1861
1861
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1862
1862
  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.
@@ -1920,7 +1920,7 @@ var fsAsync = {
1920
1920
  }
1921
1921
  }
1922
1922
  };
1923
- var version = "0.14.30";
1923
+ var version = "0.14.31";
1924
1924
  var build = (options) => ensureServiceIsRunning().build(options);
1925
1925
  var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
1926
1926
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2029,7 +2029,7 @@ var ensureServiceIsRunning = () => {
2029
2029
  if (longLivedService)
2030
2030
  return longLivedService;
2031
2031
  let [command, args] = esbuildCommandAndArgs();
2032
- let child = child_process.spawn(command, args.concat(`--service=${"0.14.30"}`, "--ping"), {
2032
+ let child = child_process.spawn(command, args.concat(`--service=${"0.14.31"}`, "--ping"), {
2033
2033
  windowsHide: true,
2034
2034
  stdio: ["pipe", "pipe", "inherit"],
2035
2035
  cwd: defaultWD
@@ -2143,7 +2143,7 @@ var runServiceSync = (callback) => {
2143
2143
  esbuild: node_exports
2144
2144
  });
2145
2145
  callback(service);
2146
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.30"}`), {
2146
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.31"}`), {
2147
2147
  cwd: defaultWD,
2148
2148
  windowsHide: true,
2149
2149
  input: stdin,
@@ -2159,7 +2159,7 @@ var workerThreadService = null;
2159
2159
  var startWorkerThreadService = (worker_threads2) => {
2160
2160
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2161
2161
  let worker = new worker_threads2.Worker(__filename, {
2162
- workerData: { workerPort, defaultWD, esbuildVersion: "0.14.30" },
2162
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.14.31" },
2163
2163
  transferList: [workerPort],
2164
2164
  execArgv: []
2165
2165
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.14.30",
3
+ "version": "0.14.31",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": "https://github.com/evanw/esbuild",
6
6
  "scripts": {
@@ -15,26 +15,26 @@
15
15
  "esbuild": "bin/esbuild"
16
16
  },
17
17
  "optionalDependencies": {
18
- "esbuild-android-64": "0.14.30",
19
- "esbuild-android-arm64": "0.14.30",
20
- "esbuild-darwin-64": "0.14.30",
21
- "esbuild-darwin-arm64": "0.14.30",
22
- "esbuild-freebsd-64": "0.14.30",
23
- "esbuild-freebsd-arm64": "0.14.30",
24
- "esbuild-linux-32": "0.14.30",
25
- "esbuild-linux-64": "0.14.30",
26
- "esbuild-linux-arm": "0.14.30",
27
- "esbuild-linux-arm64": "0.14.30",
28
- "esbuild-linux-mips64le": "0.14.30",
29
- "esbuild-linux-ppc64le": "0.14.30",
30
- "esbuild-linux-riscv64": "0.14.30",
31
- "esbuild-linux-s390x": "0.14.30",
32
- "esbuild-netbsd-64": "0.14.30",
33
- "esbuild-openbsd-64": "0.14.30",
34
- "esbuild-sunos-64": "0.14.30",
35
- "esbuild-windows-32": "0.14.30",
36
- "esbuild-windows-64": "0.14.30",
37
- "esbuild-windows-arm64": "0.14.30"
18
+ "esbuild-android-64": "0.14.31",
19
+ "esbuild-android-arm64": "0.14.31",
20
+ "esbuild-darwin-64": "0.14.31",
21
+ "esbuild-darwin-arm64": "0.14.31",
22
+ "esbuild-freebsd-64": "0.14.31",
23
+ "esbuild-freebsd-arm64": "0.14.31",
24
+ "esbuild-linux-32": "0.14.31",
25
+ "esbuild-linux-64": "0.14.31",
26
+ "esbuild-linux-arm": "0.14.31",
27
+ "esbuild-linux-arm64": "0.14.31",
28
+ "esbuild-linux-mips64le": "0.14.31",
29
+ "esbuild-linux-ppc64le": "0.14.31",
30
+ "esbuild-linux-riscv64": "0.14.31",
31
+ "esbuild-linux-s390x": "0.14.31",
32
+ "esbuild-netbsd-64": "0.14.31",
33
+ "esbuild-openbsd-64": "0.14.31",
34
+ "esbuild-sunos-64": "0.14.31",
35
+ "esbuild-windows-32": "0.14.31",
36
+ "esbuild-windows-64": "0.14.31",
37
+ "esbuild-windows-arm64": "0.14.31"
38
38
  },
39
39
  "license": "MIT"
40
40
  }