From 33f655c65fedb771d99f4a5c150b8e6b5129f3ce Mon Sep 17 00:00:00 2001 From: bqxbqx Date: Tue, 18 Mar 2025 23:58:29 +0800 Subject: [PATCH] chore: perf docs --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 38c365a..6b66b64 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # @antv/expr -Have you ever wanted to use some dynamic JS capabilities when using the ssr chart library but were afraid of data security? - -Now we have solved this problem for you. We have designed a simple and easy-to-understand template syntax to help you achieve dynamic rendering of charts. +Have you ever wanted to make your SSR charts more dynamic but worried about security risks? +We've got you covered! Our solution introduces an easy-to-use template syntax that safely serializes functions, allowing you to dynamically render charts without compromising security. 🚀 ## ✨ Features @@ -154,9 +153,9 @@ function evaluateWithTimeout(expr, context, timeoutMs) { () => reject(new Error(`Evaluation timed out after ${timeoutMs}ms`)), timeoutMs, ); - }); + }); - return Promise.race([evaluationPromise, timeoutPromise]); + return Promise.race([evaluationPromise, timeoutPromise]); } ```