From 8e3f979bc6dd85af50a1dd9cc9cdd419472e39e1 Mon Sep 17 00:00:00 2001 From: GravityHaxx <58637292+GravityHaxx@users.noreply.github.com> Date: Fri, 24 Jul 2026 11:47:01 +0400 Subject: [PATCH] Wire the docs playground to the real 1.2.0 bundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The live playground was importing flare-redact@0.7.0 from esm.sh — a pre-1.0 API (fpe mode, no transformSecret requirement) loaded from a third-party CDN. Now it imports a local esbuild bundle of the same dist that ships to npm, so the page runs fully offline and always matches the released API. - docs/playground/flare-redact.min.js: bundled ESM (69 kB), rebuilt via the new npm run build:playground script. - Modes updated to mask/label/hash/pseudonym with a demo transformSecret; fpe removed. - Opt-in toggle now also enables phone; sample text exercises the anthropic_key and national phone detectors. - Status line shows the bundled version and that nothing leaves the page. --- docs/index.html | 18 ++++++++++-------- docs/playground/flare-redact.min.js | 1 + package.json | 3 ++- 3 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 docs/playground/flare-redact.min.js diff --git a/docs/index.html b/docs/index.html index 42c251e..d777c76 100644 --- a/docs/index.html +++ b/docs/index.html @@ -133,9 +133,9 @@