Skip to content

Commit d218e29

Browse files
authored
chore: perf docs (#25)
1 parent f6d229e commit d218e29

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# @antv/expr
22

3-
Have you ever wanted to use some dynamic JS capabilities when using the ssr chart library but were afraid of data security?
4-
5-
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.
3+
Have you ever wanted to make your SSR charts more dynamic but worried about security risks?
64

5+
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. 🚀
76

87
## ✨ Features
98

@@ -154,9 +153,9 @@ function evaluateWithTimeout(expr, context, timeoutMs) {
154153
() => reject(new Error(`Evaluation timed out after ${timeoutMs}ms`)),
155154
timeoutMs,
156155
);
157-
});
156+
});
158157

159-
return Promise.race([evaluationPromise, timeoutPromise]);
158+
return Promise.race([evaluationPromise, timeoutPromise]);
160159
}
161160
```
162161

0 commit comments

Comments
 (0)