From e32b23ce063b0eb8081730d6ea645c5f41504bf1 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Fri, 10 Nov 2023 15:57:43 +0100 Subject: [PATCH 1/2] bump biscuit-wasm-support to 0.4.1 --- package-lock.json | 8 ++++---- package.json | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index e206a2b..545002d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.5.0", "license": "Apache-2.0", "dependencies": { - "@biscuit-auth/biscuit-wasm-support": "0.4.0", + "@biscuit-auth/biscuit-wasm-support": "^0.4.1", "@codemirror/basic-setup": "^0.19.0", "@codemirror/gutter": "^0.19.5", "@codemirror/highlight": "^0.19.6", @@ -105,9 +105,9 @@ } }, "node_modules/@biscuit-auth/biscuit-wasm-support": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@biscuit-auth/biscuit-wasm-support/-/biscuit-wasm-support-0.4.0.tgz", - "integrity": "sha512-9WxJweHQTZzrEXpi7HKzIrdwEz4xcBAsFTDa48yg8vG4N/qKmXXKi6pM5H7zeraVq3M43cBzHfMc8AjvsSpx/w==" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@biscuit-auth/biscuit-wasm-support/-/biscuit-wasm-support-0.4.1.tgz", + "integrity": "sha512-Y2EI1A+i54qHYsJFN8vBbYVjJ+vDl6i20uArqqSvgK0riF/ME3k1oC+55QAw0YFzQeBPYwGCFHtheEHyReZBdw==" }, "node_modules/@codemirror/autocomplete": { "version": "0.19.15", diff --git a/package.json b/package.json index 5f2698c..a2269f6 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,11 @@ "build": "tsc", "prepublishOnly": "npm run build-lint && tsc && tsc -p tsconfig-cjs.json && cp tree-sitter.js dist/esm && cp tree-sitter.d.ts dist/esm && cp -r assets dist/", "build-lint": "tsc && eslint src --ext .ts && prettier -c src", - "format": "prettier -w src" + "format": "prettier -w src", + "lint-fix": "eslint src --ext .ts --fix" }, "dependencies": { - "@biscuit-auth/biscuit-wasm-support": "0.4.0", + "@biscuit-auth/biscuit-wasm-support": "^0.4.1", "@codemirror/basic-setup": "^0.19.0", "@codemirror/gutter": "^0.19.5", "@codemirror/highlight": "^0.19.6", From 4093a8ff9c374716de475baeb75e908e7cc9a747 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Mon, 30 Oct 2023 15:42:14 +0100 Subject: [PATCH 2/2] 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