chore(llm): update backend script to be aware of the changes

This commit is contained in:
Elian Doran
2026-04-10 10:24:44 +03:00
parent d009582252
commit a239eba6ce

View File

@@ -43,10 +43,19 @@ Backend scripts run in Node.js on the server. They have direct access to notes i
- `api.getAppInfo()` - get application info
### Libraries
- `api.axios` - HTTP client
- `api.dayjs` - date manipulation
- `api.xml2js` - XML parser
- `api.cheerio` - HTML/XML parser
- `api.htmlParser` - HTML parser (node-html-parser), use `api.htmlParser.parse(html)` to parse
- `api.cheerio` - **DEPRECATED**, use `api.htmlParser` instead
### HTTP Requests
Use the native `fetch()` API for HTTP requests:
```javascript
const response = await fetch('https://api.example.com/data');
const data = await response.json();
```
Note: `api.axios` was removed in 2026 due to a supply chain security incident. Use `fetch()` instead.
### Advanced
- `api.transactional(func)` - wrap code in a database transaction