From 4093a8ff9c374716de475baeb75e908e7cc9a747 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Mon, 30 Oct 2023 15:42:14 +0100 Subject: [PATCH] snapshot printer Features: - printing snapshot contents and execution time - running autorization - adding extra authorization code - querying snapshot Not implemented yet: - inline reporting of failed checks & policies - reporting of syntax errors for extra authorizer code - reporting of syntax errors for queries --- demo/index.html | 1 + demo/snapshot-printer.html | 19 +++ src/bc-snapshot-printer.ts | 305 +++++++++++++++++++++++++++++++++++++ src/index.ts | 1 + src/lib/adapters.ts | 12 ++ 5 files changed, 338 insertions(+) create mode 100644 demo/snapshot-printer.html create mode 100644 src/bc-snapshot-printer.ts diff --git a/demo/index.html b/demo/index.html index 90baf14..1359e2a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -14,6 +14,7 @@

demo biscuit

ready-to-use components