aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-07-11 19:14:34 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-11 19:14:34 -0700
commitcbb88672f217a90db1aa1eb29cd92d5d9035b22b (patch)
tree43a00501f3cde495967e116f0b660777051551f8 /src/api/schema.js
parent1f900cff453700b19bca2acadfe26da4468c1282 (diff)
parent34b0e7a2bbd8bf8097341cdb0075d0908283e834 (diff)
downloadbun-jarred/esm-conditions.tar.gz
bun-jarred/esm-conditions.tar.zst
bun-jarred/esm-conditions.zip
Merge branch 'main' into jarred/esm-conditionsjarred/esm-conditions
Diffstat (limited to '')
-rw-r--r--src/api/schema.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js
index c4f2400ed..f1e68031e 100644
--- a/src/api/schema.js
+++ b/src/api/schema.js
@@ -3044,6 +3044,14 @@ function decodeBunInstall(bb) {
result["global_bin_dir"] = bb.readString();
break;
+ case 19:
+ result["frozen_lockfile"] = !!bb.readByte();
+ break;
+
+ case 20:
+ result["exact"] = !!bb.readByte();
+ break;
+
default:
throw new Error("Attempted to parse invalid message");
}
@@ -3164,6 +3172,18 @@ function encodeBunInstall(message, bb) {
bb.writeByte(18);
bb.writeString(value);
}
+
+ var value = message["frozen_lockfile"];
+ if (value != null) {
+ bb.writeByte(19);
+ bb.writeByte(value);
+ }
+
+ var value = message["exact"];
+ if (value != null) {
+ bb.writeByte(20);
+ bb.writeByte(value);
+ }
bb.writeByte(0);
}