esbuild 0.11.17 → 0.11.18
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 +2 -1
- package/lib/main.d.ts +2 -2
- package/lib/main.js +5 -5
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -20,7 +20,7 @@ const path = require("path");
|
|
|
20
20
|
const zlib = require("zlib");
|
|
21
21
|
const https = require("https");
|
|
22
22
|
const child_process = require("child_process");
|
|
23
|
-
const version = "0.11.
|
|
23
|
+
const version = "0.11.18";
|
|
24
24
|
const binPath = path.join(__dirname, "bin", "esbuild");
|
|
25
25
|
async function installBinaryFromPackage(name, fromPath, toPath) {
|
|
26
26
|
const cachePath = getCachePath(name);
|
|
@@ -235,6 +235,7 @@ const knownUnixlikePackages = {
|
|
|
235
235
|
"darwin x64 LE": "esbuild-darwin-64",
|
|
236
236
|
"freebsd arm64 LE": "esbuild-freebsd-arm64",
|
|
237
237
|
"freebsd x64 LE": "esbuild-freebsd-64",
|
|
238
|
+
"openbsd x64 LE": "esbuild-openbsd-64",
|
|
238
239
|
"linux arm LE": "esbuild-linux-arm",
|
|
239
240
|
"linux arm64 LE": "esbuild-linux-arm64",
|
|
240
241
|
"linux ia32 LE": "esbuild-linux-32",
|
package/lib/main.d.ts
CHANGED
|
@@ -190,9 +190,9 @@ export interface Plugin {
|
|
|
190
190
|
export interface PluginBuild {
|
|
191
191
|
initialOptions: BuildOptions;
|
|
192
192
|
onStart(callback: () =>
|
|
193
|
-
(OnStartResult | null |
|
|
193
|
+
(OnStartResult | null | void | Promise<OnStartResult | null | void>)): void;
|
|
194
194
|
onEnd(callback: (result: BuildResult) =>
|
|
195
|
-
(
|
|
195
|
+
(void | Promise<void>)): void;
|
|
196
196
|
onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
|
|
197
197
|
(OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void;
|
|
198
198
|
onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
|
package/lib/main.js
CHANGED
|
@@ -683,8 +683,8 @@ function createChannel(streamIn) {
|
|
|
683
683
|
if (isFirstPacket) {
|
|
684
684
|
isFirstPacket = false;
|
|
685
685
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
686
|
-
if (binaryVersion !== "0.11.
|
|
687
|
-
throw new Error(`Cannot start service: Host version "${"0.11.
|
|
686
|
+
if (binaryVersion !== "0.11.18") {
|
|
687
|
+
throw new Error(`Cannot start service: Host version "${"0.11.18"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
|
688
688
|
}
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
@@ -1597,7 +1597,7 @@ var fsAsync = {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
|
-
var version = "0.11.
|
|
1600
|
+
var version = "0.11.18";
|
|
1601
1601
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
1602
1602
|
var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
|
|
1603
1603
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -1685,7 +1685,7 @@ var ensureServiceIsRunning = () => {
|
|
|
1685
1685
|
if (longLivedService)
|
|
1686
1686
|
return longLivedService;
|
|
1687
1687
|
let [command, args] = esbuildCommandAndArgs();
|
|
1688
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.11.
|
|
1688
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.11.18"}`, "--ping"), {
|
|
1689
1689
|
windowsHide: true,
|
|
1690
1690
|
stdio: ["pipe", "pipe", "inherit"],
|
|
1691
1691
|
cwd: defaultWD
|
|
@@ -1783,7 +1783,7 @@ var runServiceSync = (callback) => {
|
|
|
1783
1783
|
isBrowser: false
|
|
1784
1784
|
});
|
|
1785
1785
|
callback(service);
|
|
1786
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.11.
|
|
1786
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.11.18"}`), {
|
|
1787
1787
|
cwd: defaultWD,
|
|
1788
1788
|
windowsHide: true,
|
|
1789
1789
|
input: stdin,
|