Here: Calculation Field | Tape Developers is stated that βThe script is executed inside a Node.js version 18 environment, so you can use ES6 (indeed up to ES2021) syntax with all its cool features β and here: Node.js β Node.js 18 is now available! is stated that fetch() is available since Node.js 18.
Please make fetch() available.
To add to that:
There is a way to do http requests directly from a script, with e.g.
const resp = await http.get(url, options);
The API of the http
library is not documented and is also not listed on here: Available Libraries (Automations) | Tape Developers . (It looks like it resembles the Axios-HTTP-API).
It would be a lot better to be able to make HTTP requests the modern way with fetch().
3 Likes