a reactive (signals based) hypermedia web framework (wip)
stormlightlabs.github.io/volt/
hypermedia
frontend
signals
1export const BOOLEAN_ATTRS = [
2 "disabled",
3 "checked",
4 "selected",
5 "readonly",
6 "required",
7 "multiple",
8 "autofocus",
9 "autoplay",
10 "controls",
11 "loop",
12 "muted",
13];
14
15export const DANGEROUS_PROPERTIES = ["__proto__", "prototype", "constructor"];
16
17/**
18 * Dangerous globals that should be blocked from expressions
19 *
20 * NOTE: The scope proxy's has trap returns true for ALL properties to prevent the 'with' statement from falling back to outer scope, giving us complete control
21 */
22export const DANGEROUS_GLOBALS = [
23 "window",
24 "self",
25 "global",
26 "globalThis",
27 "process",
28 "require",
29 "import",
30 "module",
31 "exports",
32];
33
34export const SAFE_GLOBALS = [
35 "Array",
36 "Object",
37 "String",
38 "Number",
39 "Boolean",
40 "Date",
41 "Math",
42 "JSON",
43 "RegExp",
44 "Map",
45 "Set",
46 "Promise",
47];