The way that I work around this scenario is to use pipedream.com to do the processing (which has more powerful “action”/serverless processing). Since it also has node capabilities it is very easy to translate the code. Then I just use it to pass the results back to Bubble.
It works very well, is very reliable and also affordable.