esbuild 0.15.13 → 0.15.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/bin/esbuild +21 -19
- package/install.js +4 -4
- package/lib/main.js +28 -26
- package/package.json +23 -23
package/bin/esbuild
CHANGED
|
@@ -177,26 +177,28 @@ for your current platform.`);
|
|
|
177
177
|
throw e;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
fs.
|
|
196
|
-
|
|
197
|
-
|
|
180
|
+
if (/\.zip\//.test(binPath2)) {
|
|
181
|
+
let pnpapi;
|
|
182
|
+
try {
|
|
183
|
+
pnpapi = require("pnpapi");
|
|
184
|
+
} catch (e) {
|
|
185
|
+
}
|
|
186
|
+
if (pnpapi) {
|
|
187
|
+
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
188
|
+
const binTargetPath = path.join(
|
|
189
|
+
root,
|
|
190
|
+
"node_modules",
|
|
191
|
+
".cache",
|
|
192
|
+
"esbuild",
|
|
193
|
+
`pnpapi-${pkg}-${"0.15.15"}-${path.basename(subpath)}`
|
|
194
|
+
);
|
|
195
|
+
if (!fs.existsSync(binTargetPath)) {
|
|
196
|
+
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
197
|
+
fs.copyFileSync(binPath2, binTargetPath);
|
|
198
|
+
fs.chmodSync(binTargetPath, 493);
|
|
199
|
+
}
|
|
200
|
+
return { binPath: binTargetPath, isWASM: isWASM2 };
|
|
198
201
|
}
|
|
199
|
-
return { binPath: binTargetPath, isWASM: isWASM2 };
|
|
200
202
|
}
|
|
201
203
|
return { binPath: binPath2, isWASM: isWASM2 };
|
|
202
204
|
}
|
package/install.js
CHANGED
|
@@ -90,8 +90,8 @@ function validateBinaryVersion(...command) {
|
|
|
90
90
|
const stdout = child_process.execFileSync(command.shift(), command, {
|
|
91
91
|
stdio: "pipe"
|
|
92
92
|
}).toString().trim();
|
|
93
|
-
if (stdout !== "0.15.
|
|
94
|
-
throw new Error(`Expected ${JSON.stringify("0.15.
|
|
93
|
+
if (stdout !== "0.15.15") {
|
|
94
|
+
throw new Error(`Expected ${JSON.stringify("0.15.15")} but got ${JSON.stringify(stdout)}`);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function isYarn() {
|
|
@@ -143,7 +143,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
143
143
|
try {
|
|
144
144
|
fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
|
|
145
145
|
child_process.execSync(
|
|
146
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.15.
|
|
146
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.15.15"}`,
|
|
147
147
|
{ cwd: installDir, stdio: "pipe", env }
|
|
148
148
|
);
|
|
149
149
|
const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
|
|
@@ -194,7 +194,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
197
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.15.
|
|
197
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.15.15"}.tgz`;
|
|
198
198
|
console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
|
|
199
199
|
try {
|
|
200
200
|
fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
|
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.15.
|
|
713
|
-
throw new Error(`Cannot start service: Host version "${"0.15.
|
|
712
|
+
if (binaryVersion !== "0.15.15") {
|
|
713
|
+
throw new Error(`Cannot start service: Host version "${"0.15.15"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
|
714
714
|
}
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
@@ -1817,26 +1817,28 @@ for your current platform.`);
|
|
|
1817
1817
|
throw e;
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
fs.
|
|
1836
|
-
|
|
1837
|
-
|
|
1820
|
+
if (/\.zip\//.test(binPath)) {
|
|
1821
|
+
let pnpapi;
|
|
1822
|
+
try {
|
|
1823
|
+
pnpapi = require("pnpapi");
|
|
1824
|
+
} catch (e) {
|
|
1825
|
+
}
|
|
1826
|
+
if (pnpapi) {
|
|
1827
|
+
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
1828
|
+
const binTargetPath = path.join(
|
|
1829
|
+
root,
|
|
1830
|
+
"node_modules",
|
|
1831
|
+
".cache",
|
|
1832
|
+
"esbuild",
|
|
1833
|
+
`pnpapi-${pkg}-${"0.15.15"}-${path.basename(subpath)}`
|
|
1834
|
+
);
|
|
1835
|
+
if (!fs.existsSync(binTargetPath)) {
|
|
1836
|
+
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
1837
|
+
fs.copyFileSync(binPath, binTargetPath);
|
|
1838
|
+
fs.chmodSync(binTargetPath, 493);
|
|
1839
|
+
}
|
|
1840
|
+
return { binPath: binTargetPath, isWASM };
|
|
1838
1841
|
}
|
|
1839
|
-
return { binPath: binTargetPath, isWASM };
|
|
1840
1842
|
}
|
|
1841
1843
|
return { binPath, isWASM };
|
|
1842
1844
|
}
|
|
@@ -1860,7 +1862,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
|
1860
1862
|
}
|
|
1861
1863
|
}
|
|
1862
1864
|
var _a;
|
|
1863
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.15.
|
|
1865
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.15.15";
|
|
1864
1866
|
var esbuildCommandAndArgs = () => {
|
|
1865
1867
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
1866
1868
|
throw new Error(
|
|
@@ -1927,7 +1929,7 @@ var fsAsync = {
|
|
|
1927
1929
|
}
|
|
1928
1930
|
}
|
|
1929
1931
|
};
|
|
1930
|
-
var version = "0.15.
|
|
1932
|
+
var version = "0.15.15";
|
|
1931
1933
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
1932
1934
|
var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
|
|
1933
1935
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -2038,7 +2040,7 @@ var ensureServiceIsRunning = () => {
|
|
|
2038
2040
|
if (longLivedService)
|
|
2039
2041
|
return longLivedService;
|
|
2040
2042
|
let [command, args] = esbuildCommandAndArgs();
|
|
2041
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.15.
|
|
2043
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.15.15"}`, "--ping"), {
|
|
2042
2044
|
windowsHide: true,
|
|
2043
2045
|
stdio: ["pipe", "pipe", "inherit"],
|
|
2044
2046
|
cwd: defaultWD
|
|
@@ -2152,7 +2154,7 @@ var runServiceSync = (callback) => {
|
|
|
2152
2154
|
esbuild: node_exports
|
|
2153
2155
|
});
|
|
2154
2156
|
callback(service);
|
|
2155
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.15.
|
|
2157
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.15.15"}`), {
|
|
2156
2158
|
cwd: defaultWD,
|
|
2157
2159
|
windowsHide: true,
|
|
2158
2160
|
input: stdin,
|
|
@@ -2168,7 +2170,7 @@ var workerThreadService = null;
|
|
|
2168
2170
|
var startWorkerThreadService = (worker_threads2) => {
|
|
2169
2171
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
2170
2172
|
let worker = new worker_threads2.Worker(__filename, {
|
|
2171
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.15.
|
|
2173
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.15.15" },
|
|
2172
2174
|
transferList: [workerPort],
|
|
2173
2175
|
execArgv: []
|
|
2174
2176
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esbuild",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.15",
|
|
4
4
|
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
|
|
5
5
|
"repository": "https://github.com/evanw/esbuild",
|
|
6
6
|
"scripts": {
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"esbuild": "bin/esbuild"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@esbuild/android-arm": "0.15.
|
|
19
|
-
"@esbuild/linux-loong64": "0.15.
|
|
20
|
-
"esbuild-android-64": "0.15.
|
|
21
|
-
"esbuild-android-arm64": "0.15.
|
|
22
|
-
"esbuild-darwin-64": "0.15.
|
|
23
|
-
"esbuild-darwin-arm64": "0.15.
|
|
24
|
-
"esbuild-freebsd-64": "0.15.
|
|
25
|
-
"esbuild-freebsd-arm64": "0.15.
|
|
26
|
-
"esbuild-linux-32": "0.15.
|
|
27
|
-
"esbuild-linux-64": "0.15.
|
|
28
|
-
"esbuild-linux-arm": "0.15.
|
|
29
|
-
"esbuild-linux-arm64": "0.15.
|
|
30
|
-
"esbuild-linux-mips64le": "0.15.
|
|
31
|
-
"esbuild-linux-ppc64le": "0.15.
|
|
32
|
-
"esbuild-linux-riscv64": "0.15.
|
|
33
|
-
"esbuild-linux-s390x": "0.15.
|
|
34
|
-
"esbuild-netbsd-64": "0.15.
|
|
35
|
-
"esbuild-openbsd-64": "0.15.
|
|
36
|
-
"esbuild-sunos-64": "0.15.
|
|
37
|
-
"esbuild-windows-32": "0.15.
|
|
38
|
-
"esbuild-windows-64": "0.15.
|
|
39
|
-
"esbuild-windows-arm64": "0.15.
|
|
18
|
+
"@esbuild/android-arm": "0.15.15",
|
|
19
|
+
"@esbuild/linux-loong64": "0.15.15",
|
|
20
|
+
"esbuild-android-64": "0.15.15",
|
|
21
|
+
"esbuild-android-arm64": "0.15.15",
|
|
22
|
+
"esbuild-darwin-64": "0.15.15",
|
|
23
|
+
"esbuild-darwin-arm64": "0.15.15",
|
|
24
|
+
"esbuild-freebsd-64": "0.15.15",
|
|
25
|
+
"esbuild-freebsd-arm64": "0.15.15",
|
|
26
|
+
"esbuild-linux-32": "0.15.15",
|
|
27
|
+
"esbuild-linux-64": "0.15.15",
|
|
28
|
+
"esbuild-linux-arm": "0.15.15",
|
|
29
|
+
"esbuild-linux-arm64": "0.15.15",
|
|
30
|
+
"esbuild-linux-mips64le": "0.15.15",
|
|
31
|
+
"esbuild-linux-ppc64le": "0.15.15",
|
|
32
|
+
"esbuild-linux-riscv64": "0.15.15",
|
|
33
|
+
"esbuild-linux-s390x": "0.15.15",
|
|
34
|
+
"esbuild-netbsd-64": "0.15.15",
|
|
35
|
+
"esbuild-openbsd-64": "0.15.15",
|
|
36
|
+
"esbuild-sunos-64": "0.15.15",
|
|
37
|
+
"esbuild-windows-32": "0.15.15",
|
|
38
|
+
"esbuild-windows-64": "0.15.15",
|
|
39
|
+
"esbuild-windows-arm64": "0.15.15"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT"
|
|
42
42
|
}
|