diff options
author | 2021-10-07 21:29:16 -0700 | |
---|---|---|
committer | 2021-10-07 21:29:16 -0700 | |
commit | 5a03dfb9a4f00adb811988a4522221ee065ea180 (patch) | |
tree | b7c9bab6094ca6afe15e1d3378415e427679a274 /src/api/schema.zig | |
parent | fa1aa301e8827a453e07b671c03e870c564679a1 (diff) | |
download | bun-5a03dfb9a4f00adb811988a4522221ee065ea180.tar.gz bun-5a03dfb9a4f00adb811988a4522221ee065ea180.tar.zst bun-5a03dfb9a4f00adb811988a4522221ee065ea180.zip |
Schema
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r-- | src/api/schema.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig index 8c4f608d8..e34131dd2 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -1757,6 +1757,9 @@ no_summary: ?bool = null, /// disable_hmr disable_hmr: ?bool = null, +/// port +port: ?u16 = null, + pub fn decode(reader: anytype) anyerror!TransformOptions { var this = std.mem.zeroes(TransformOptions); @@ -1837,6 +1840,9 @@ pub fn decode(reader: anytype) anyerror!TransformOptions { 24 => { this.disable_hmr = try reader.readValue(bool); }, + 25 => { + this.port = try reader.readValue(u16); +}, else => { return error.InvalidMessage; }, @@ -1942,6 +1948,10 @@ if (this.disable_hmr) |disable_hmr| { try writer.writeFieldID(24); try writer.writeInt(@intCast(u8, @boolToInt(disable_hmr))); } +if (this.port) |port| { + try writer.writeFieldID(25); + try writer.writeInt(port); +} try writer.endMessage(); } |