From e6d97f2581959d77a5b486faefbfdf094abedf9b Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Thu, 5 Oct 2023 16:39:12 -0700 Subject: add `install.github.api` option --- src/api/schema.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/api/schema.js') diff --git a/src/api/schema.js b/src/api/schema.js index 6fb4b1d8d..38f30156b 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -3038,6 +3038,10 @@ function decodeBunInstall(bb) { result["exact"] = !!bb.readByte(); break; + case 21: + result["use_github_api"] = !!bb.readByte(); + break; + default: throw new Error("Attempted to parse invalid message"); } @@ -3170,6 +3174,12 @@ function encodeBunInstall(message, bb) { bb.writeByte(20); bb.writeByte(value); } + + var value = message["use_github_api"]; + if (value != null) { + bb.writeByte(21); + bb.writeByte(value); + } bb.writeByte(0); } -- cgit v1.2.3