diff options
author | 2021-05-21 17:55:42 -0700 | |
---|---|---|
committer | 2021-05-21 17:55:42 -0700 | |
commit | c3d3d70ced281a1d7863b2f08f036b3bc83537b9 (patch) | |
tree | 706f2387e81b255a393962daeeebad4e675d8e3b /src/api/schema.js | |
parent | 8b75f56577abc3ad2479b87fc59b7243add6a29a (diff) | |
download | bun-c3d3d70ced281a1d7863b2f08f036b3bc83537b9.tar.gz bun-c3d3d70ced281a1d7863b2f08f036b3bc83537b9.tar.zst bun-c3d3d70ced281a1d7863b2f08f036b3bc83537b9.zip |
wip
Former-commit-id: 63e622f2f366a30d4432835b1e190191fd04f6df
Diffstat (limited to 'src/api/schema.js')
-rw-r--r-- | src/api/schema.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index 43670dff0..0d7d942b3 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -228,7 +228,7 @@ function decodeTransformOptions(bb) { break; case 18: - result["watch"] = !!bb.readByte(); + result["serve"] = !!bb.readByte(); break; case 19: @@ -237,6 +237,10 @@ function decodeTransformOptions(bb) { for (var i = 0; i < length; i++) values[i] = bb.readString(); break; + case 20: + result["public_dir"] = bb.readString(); + break; + default: throw new Error("Attempted to parse invalid message"); } @@ -393,7 +397,7 @@ if (encoded === void 0) throw new Error("Invalid value " + JSON.stringify(value) bb.writeByte(encoded); } - var value = message["watch"]; + var value = message["serve"]; if (value != null) { bb.writeByte(18); bb.writeByte(value); @@ -409,6 +413,12 @@ bb.writeByte(encoded); bb.writeString(value); } } + + var value = message["public_dir"]; + if (value != null) { + bb.writeByte(20); + bb.writeString(value); + } bb.writeByte(0); } |