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

53 commits

Author SHA1 Message Date
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
mike12345567
5a7c0c1cc1 Fixing issue that was breaking linting. 2021-02-04 10:41:25 +00:00
mike12345567
1a9d6bcb60 Linting and updating helper manifest. 2021-02-04 10:25:04 +00:00
mike12345567
821fb20e8b Quick addition of a duration helper which can be used to create relative humanized date strings. 2021-02-04 10:17:10 +00:00
mike12345567
f4c7d3acd7 linting. 2021-02-03 13:56:01 +00:00
mike12345567
537c5a02ca Removing the use of helper-date which was causing some problems, instead took what we needed of it out of the package and updated to use dayjs instead of moment. 2021-02-03 13:55:33 +00:00
mike12345567
5f40ea49d8 Adding object and regex helpers as well as a complex test case for forIn. 2021-02-02 14:22:10 +00:00
mike12345567
26b716c407 Updating to use budibase helpers. 2021-01-31 11:46:45 +00:00
mike12345567
182353d555 Linting. 2021-01-26 12:43:26 +00:00
mike12345567
673ae8d031 Adding a literal helper which can make sure the output of an operation is a literal value. 2021-01-25 18:14:45 +00:00
mike12345567
a254567bec Updating string templates to have test cases for all the main helpers we want to make use of and adding a readme. 2021-01-25 17:08:21 +00:00
mike12345567
90dce862f1 Fixing some issues CI linting found. 2021-01-21 18:08:04 +00:00
mike12345567
1a87b2caaf Linting. 2021-01-21 17:30:51 +00:00
mike12345567
3481fe8cd2 Getting ready to merge with some basic functionality but updates required to client/builder/automations to remove the need for space in hbs statement handling. 2021-01-21 15:50:46 +00:00
mike12345567
38144f84a3 Handling undefined/null values in context object for string templates, replacing with empty string. 2021-01-21 13:48:23 +00:00
mike12345567
239079d973 Linting. 2021-01-21 11:32:26 +00:00