1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00
Commit graph

68 commits

Author SHA1 Message Date
Adria Navarro
b27ca57e1a Allow loging js execution errors 2024-02-12 14:00:32 +01:00
Adria Navarro
ec7adfb1b1 Remove index.cjs entry point 2024-02-09 10:27:22 +01:00
Adria Navarro
8dfcc3aeb1
Revert "Revert "Migrate from vm to isolated-vm"" 2024-02-02 12:02:09 +01:00
Sam Rose
332a201ae7
Revert "Migrate from vm to isolated-vm" 2024-02-02 09:51:46 +00:00
Adria Navarro
45ea6a6fd6
Revert "Revert "Migrate from vm to isolated-vm"" 2024-02-01 16:47:41 +01:00
Adria Navarro
16749ec3dd
Revert "Migrate from vm to isolated-vm" 2024-02-01 16:30:34 +01:00
Adria Navarro
a5ccb9f0e8 Dry 2024-01-31 17:47:07 +01:00
Adria Navarro
507aa8af93 Simplify and remove magic strings 2024-01-31 17:05:20 +01:00
Adria Navarro
cd4fccbd6e Allow excluding js helpers 2024-01-31 10:34:49 +01:00
Adria Navarro
e5d5dea5e6 Renames 2024-01-31 10:00:41 +01:00
Adria Navarro
43e536e7a6 Test only js helpers 2024-01-30 16:52:25 +01:00
Adria Navarro
db14f9afab Inject {} at the end of the helper calls 2024-01-30 09:48:15 +01:00
Adria Navarro
a14ff42b14 Fix duration as js 2024-01-30 09:48:15 +01:00
Adria Navarro
5a1d73ff2f Fix avg helper 2024-01-30 09:48:15 +01:00
Adria Navarro
52b97336ee lodash.clonedeep 2024-01-10 14:56:29 +01:00
Sam Rose
f61346a0c5
Cache the helpers list for executing JS. 2023-12-19 17:46:15 +00:00
Sam Rose
1c34147357
Add tests for per-request execution timeout. 2023-12-18 17:01:56 +00:00
Michael Drury
dceb623732
Merge branch 'master' into feature/uuid-helper 2023-12-18 11:06:48 +00:00
Sam Rose
b963e7081e
Fix test. 2023-12-15 16:50:36 +00:00
Sam Rose
92a230667f
Tell a user if their JS failed due to a timeout. 2023-12-15 16:27:20 +00:00
mike12345567
6173497afa Adding a UUID helper to simplify things, question comes up fairly regularly. 2023-12-13 17:56:16 +00:00
mike12345567
d667276fa1 Adding a onlyFound option to our handlebars system so that we can enrich only the parts we have and leave other components for further enrichment. 2023-01-27 15:15:07 +00:00
Mel O'Hagan
a3ee16a26a Extend date formatting 2022-11-18 09:15:15 +00:00
mike12345567
feda4e61c1 Fixing issue with string templates importing vm2 which requires other prebuilts for JS in the CLI - no need for these to add to build size when JS is unused. 2022-09-05 19:04:45 +01:00
mike12345567
3d13030aa1 Initial attempt at transpiling HBS to JS. 2022-07-28 20:20:53 +01:00
mike12345567
aac6bc48a7 Fix for issue discovered by test case. 2022-05-04 17:36:30 +01:00
mike12345567
159cc9d277 Fixes for #4736 - I believe the issue was that the dynamic variables were not being saved, removing the need for the user to be aware of this, also making it possible to pass the entire data structure from one call to another if desired. 2022-05-04 15:26:19 +01:00
mike12345567
a35a8cb81c Addomg a fix for #4370 - allow queries to contain newlines, they will always be escaped. 2022-02-07 17:56:01 +00:00
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
a721619a06 Update literal helper to return an empty string rather than the string 'undefined' when the value is undefined 2021-11-15 12:25:30 +00:00
mike12345567
da38734a62 Fixing bug #3195 with zero/falsy values not being passed out of bindings. 2021-11-02 16:55:16 +00:00
Andrew Kingston
b1f174debe Remove optional chaining from string-templates 2021-10-14 13:04:57 +01: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
mike12345567
47acb7e69b Fixes for #2634 - make sure string templates library handles conversion of raw JSON objects to stringified correctly. 2021-09-17 17:18:52 +01:00
mike12345567
a7ce3ada3f Fixing issues discovered with hbs escaping. 2021-06-24 11:37:26 +01:00
mike12345567
b741194b7d Updating date helper to allow timezone capabilites. 2021-06-09 11:44:24 +01:00
mike12345567
3d01ac17e9 Updating date helper to use UTC. 2021-05-27 15:21:00 +01:00
Andrew Kingston
797e8a8b67 Add explicit prettier options 2021-05-04 11:32:22 +01:00
Keviin Åberg Kultalahti
0afbf1649e lint:fix 2021-05-03 09:31:09 +02:00
Andrew Kingston
5276cd7117 Fix edge case bug where the literal handlebars helper would not work with objects including a dash character 2021-03-16 18:16:56 +00:00