xanascript 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xanascript",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Programming language with Portuguese syntax, optimizing compiler, built-in ORM, and WebAssembly support",
5
5
  "type": "module",
6
6
  "bin": {
package/src/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import http from "http";
4
- import axios from "axios";
4
+
5
5
 
6
6
  import { lex } from "./lexer.js";
7
7
  import { parse } from "./parser.js";
@@ -37,8 +37,8 @@ export function createEnv(baseDir) {
37
37
 
38
38
  AGORA_VAI: async url => {
39
39
  try {
40
- const res = await axios.get(url, { timeout: 3000 });
41
- return res.data;
40
+ const res = await fetch(url, { signal: AbortSignal.timeout(3000) });
41
+ return await res.json();
42
42
  } catch (e) {
43
43
  throw new XSError(`Falha em AGORA_VAI("${url}"): ${e.message}`, {
44
44
  hint: "Verifique se a URL está correta e acessível",