Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Kingston c8121ed0e3 Transform the output of JS expressions to be actual types rather than strings 2022-01-18 13:20:06 +00:00
Andrew Kingston 28557a3f96 Remove the pre-execution validation in string templates to double performance and prevent JS binding issues when mutating context 2021-12-06 17:58:43 +00:00
Andrew Kingston 29d58f08c1 Block certain browser API's when executing JS in the browser 2021-10-14 12:02:34 +01:00
Andrew Kingston 01dfef735f Use vm2 for JS execution in node, and a vm polyfill for the browser. Use 2 standalone entrypoints for string-templates depending on env 2021-10-14 11:51:05 +01:00
Andrew Kingston aa150989bd Prevent executing JS bindings when running in a Node env 2021-10-13 14:37:14 +01:00
Andrew Kingston 4d6d453676 Add one second timeout to execution of JS bindings 2021-10-13 13:44:43 +01:00
Andrew Kingston 4245430561 Fix issue deeply extract falsey values from context while executing JS bindings 2021-10-12 16:13:07 +01:00
Andrew Kingston 39e98800d3 Correctly handle JS nullish values by removing forced fallback value of HBS helper 2021-10-12 15:40:01 +01:00
Andrew Kingston 5691be6fc0 Ensure null or empty values don't cause raw JS to appear when executing JS HBS helper 2021-10-12 15:32:43 +01:00
Andrew Kingston 43d546b2db Fix inserting bindings manually when using JS 2021-10-11 16:18:20 +01:00
Andrew Kingston 67a74ee327 Fix bug determining if a binding is JS or not 2021-10-11 15:51:47 +01:00
Andrew Kingston e96453ce6c Add JS helper to string templates 2021-10-11 14:53:55 +01:00