aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.peechy
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-27 23:20:10 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-27 23:20:10 -0800
commit50560e169ca39c0b4ec163cb32897baf7620aa69 (patch)
tree83eb721bfd4a0318874c1f69d254a4fd9446512b /src/api/schema.peechy
parent36c249e9c1fc6e0000d23ae0055eed54a5437c74 (diff)
downloadbun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.gz
bun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.zst
bun-50560e169ca39c0b4ec163cb32897baf7620aa69.zip
WASM
Diffstat (limited to 'src/api/schema.peechy')
-rw-r--r--src/api/schema.peechy28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/api/schema.peechy b/src/api/schema.peechy
index 59cb1edf5..cf954cc4c 100644
--- a/src/api/schema.peechy
+++ b/src/api/schema.peechy
@@ -362,6 +362,34 @@ message Transform {
TransformOptions options = 5;
}
+message Scan {
+ string path = 1;
+ byte[] contents = 2;
+ Loader loader = 3;
+}
+
+struct ScanResult {
+ string[] exports;
+ ScannedImport[] imports;
+}
+
+struct ScannedImport {
+ string path;
+ ImportKind kind;
+}
+
+smol ImportKind {
+ entry_point = 1;
+ stmt = 2;
+ require = 3;
+ dynamic = 4;
+ require_resolve = 5;
+ at = 6;
+ url = 7;
+ internal = 8;
+}
+
+
enum TransformResponseStatus {
success = 1;
fail = 2;