aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-10 01:07:42 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-10 01:07:42 -0700
commita2d8026810d024b8d229d810e81d8170c842c267 (patch)
tree5d07707e05891aa7002f169a68105fbb9da3e41c /src/api/schema.zig
parent0e2fb5d13235c111bfe6f65bc9c32836e48f947a (diff)
downloadbun-a2d8026810d024b8d229d810e81d8170c842c267.tar.gz
bun-a2d8026810d024b8d229d810e81d8170c842c267.tar.zst
bun-a2d8026810d024b8d229d810e81d8170c842c267.zip
cool!
Former-commit-id: 5ffd8e40b34c5b11e5632c5939d16dba6b7167f2
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r--src/api/schema.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig
index 4a2e44f9b..319bc9b6f 100644
--- a/src/api/schema.zig
+++ b/src/api/schema.zig
@@ -454,6 +454,9 @@ code: StringPointer,
/// package_id
package_id: u32 = 0,
+/// id
+id: u32 = 0,
+
/// path_extname_length
path_extname_length: u8 = 0,
@@ -464,6 +467,7 @@ pub fn decode(reader: anytype) anyerror!JavascriptBundledModule {
this.path = try reader.readValue(StringPointer);
this.code = try reader.readValue(StringPointer);
this.package_id = try reader.readValue(u32);
+ this.id = try reader.readValue(u32);
this.path_extname_length = try reader.readValue(u8);
return this;
}
@@ -472,6 +476,7 @@ pub fn encode(this: *const @This(), writer: anytype) anyerror!void {
try writer.writeValue(this.path);
try writer.writeValue(this.code);
try writer.writeInt(this.package_id);
+ try writer.writeInt(this.id);
try writer.writeInt(this.path_extname_length);
}