esbuild 0.12.7 → 0.12.8
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 +1 -1
- package/lib/main.d.ts +1 -0
- package/lib/main.js +8 -5
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -23,7 +23,7 @@ const path = require("path");
|
|
|
23
23
|
const zlib = require("zlib");
|
|
24
24
|
const https = require("https");
|
|
25
25
|
const child_process = require("child_process");
|
|
26
|
-
const version = "0.12.
|
|
26
|
+
const version = "0.12.8";
|
|
27
27
|
const binPath = path.join(__dirname, "bin", "esbuild");
|
|
28
28
|
async function installBinaryFromPackage(name, fromPath, toPath) {
|
|
29
29
|
const cachePath = getCachePath(name);
|
package/lib/main.d.ts
CHANGED
package/lib/main.js
CHANGED
|
@@ -689,8 +689,8 @@ function createChannel(streamIn) {
|
|
|
689
689
|
if (isFirstPacket) {
|
|
690
690
|
isFirstPacket = false;
|
|
691
691
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
692
|
-
if (binaryVersion !== "0.12.
|
|
693
|
-
throw new Error(`Cannot start service: Host version "${"0.12.
|
|
692
|
+
if (binaryVersion !== "0.12.8") {
|
|
693
|
+
throw new Error(`Cannot start service: Host version "${"0.12.8"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
|
694
694
|
}
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
@@ -825,6 +825,7 @@ function createChannel(streamIn) {
|
|
|
825
825
|
let path2 = getFlag(result, keys, "path", mustBeString);
|
|
826
826
|
let namespace = getFlag(result, keys, "namespace", mustBeString);
|
|
827
827
|
let external = getFlag(result, keys, "external", mustBeBoolean);
|
|
828
|
+
let sideEffects = getFlag(result, keys, "sideEffects", mustBeBoolean);
|
|
828
829
|
let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
|
|
829
830
|
let errors = getFlag(result, keys, "errors", mustBeArray);
|
|
830
831
|
let warnings = getFlag(result, keys, "warnings", mustBeArray);
|
|
@@ -840,6 +841,8 @@ function createChannel(streamIn) {
|
|
|
840
841
|
response.namespace = namespace;
|
|
841
842
|
if (external != null)
|
|
842
843
|
response.external = external;
|
|
844
|
+
if (sideEffects != null)
|
|
845
|
+
response.sideEffects = sideEffects;
|
|
843
846
|
if (pluginData != null)
|
|
844
847
|
response.pluginData = stash.store(pluginData);
|
|
845
848
|
if (errors != null)
|
|
@@ -1616,7 +1619,7 @@ var fsAsync = {
|
|
|
1616
1619
|
}
|
|
1617
1620
|
}
|
|
1618
1621
|
};
|
|
1619
|
-
var version = "0.12.
|
|
1622
|
+
var version = "0.12.8";
|
|
1620
1623
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
1621
1624
|
var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
|
|
1622
1625
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -1704,7 +1707,7 @@ var ensureServiceIsRunning = () => {
|
|
|
1704
1707
|
if (longLivedService)
|
|
1705
1708
|
return longLivedService;
|
|
1706
1709
|
let [command, args] = esbuildCommandAndArgs();
|
|
1707
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.12.
|
|
1710
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.12.8"}`, "--ping"), {
|
|
1708
1711
|
windowsHide: true,
|
|
1709
1712
|
stdio: ["pipe", "pipe", "inherit"],
|
|
1710
1713
|
cwd: defaultWD
|
|
@@ -1802,7 +1805,7 @@ var runServiceSync = (callback) => {
|
|
|
1802
1805
|
isBrowser: false
|
|
1803
1806
|
});
|
|
1804
1807
|
callback(service);
|
|
1805
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.
|
|
1808
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.12.8"}`), {
|
|
1806
1809
|
cwd: defaultWD,
|
|
1807
1810
|
windowsHide: true,
|
|
1808
1811
|
input: stdin,
|