xanascript 2.0.1 → 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/README.md CHANGED
@@ -45,7 +45,6 @@ dist/xs run app.xs
45
45
  - [Documentacao completa](docs/pt-br/comecando.md) - Portugues
46
46
  - [Documentacion completa](docs/es/introduccion.md) - Espanol
47
47
  - [Examples](https://github.com/xanascr/xs-examples)
48
- - [Installer](https://github.com/xanascr/xs-installer)
49
48
  - [VS Code Extension](https://github.com/xanascr/xs-vscode)
50
49
  - [LLM Reference](llms.txt) - Complete reference for AI assistants
51
50
 
@@ -129,4 +128,4 @@ xs/
129
128
  | [xanascript/xs-site](https://github.com/xanascr/xs-site) | Website and documentation |
130
129
  | [xanascript/xs-vscode](https://github.com/xanascr/xs-vscode) | VS Code extension |
131
130
  | [xanascript/xs-examples](https://github.com/xanascr/xs-examples) | Code examples |
132
- | [xanascript/xs-installer](https://github.com/xanascr/xs-installer) | Windows installer |
131
+
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.3
package/bin/xs.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import("./src/cli.js").catch(e => { console.error(e); process.exit(1); });
2
+ import("../src/cli.js").catch(e => { console.error(e); process.exit(1); });
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "xanascript",
3
- "version": "2.0.1",
4
- "description": "Programming language with Portuguese syntax, optimizing compiler, built-in ORM, and WebAssembly support",
5
- "type": "module",
6
- "bin": {
7
- "xs": "bin/xs.js"
8
- },
9
- "scripts": {
10
- "build": "node scripts/build-all.js",
11
- "test": "node test/lexer.test.js && node test/parser.test.js && node test/interpreter.test.js"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/xanascr/xs.git"
16
- },
17
- "keywords": ["xanascript", "language", "portuguese", "programming", "compiler", "wasm"],
18
- "author": "XanaScript",
19
- "license": "MIT",
20
- "bugs": {
21
- "url": "https://github.com/xanascr/xs/issues"
22
- },
23
- "homepage": "https://xanascript.xyz",
24
- "engines": {
25
- "node": ">=18.0.0"
26
- },
27
- "files": [
28
- "src",
29
- "bin",
30
- "std",
31
- "llms.txt",
32
- "VERSION"
33
- ]
34
- }
1
+ {
2
+ "name": "xanascript",
3
+ "version": "2.0.3",
4
+ "description": "Programming language with Portuguese syntax, optimizing compiler, built-in ORM, and WebAssembly support",
5
+ "type": "module",
6
+ "bin": {
7
+ "xs": "bin/xs.js"
8
+ },
9
+ "scripts": {
10
+ "build": "node scripts/build-all.js",
11
+ "test": "node test/lexer.test.js && node test/parser.test.js && node test/interpreter.test.js"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/xanascr/xs.git"
16
+ },
17
+ "keywords": ["xanascript", "language", "portuguese", "programming", "compiler", "wasm"],
18
+ "author": "XanaScript",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/xanascr/xs/issues"
22
+ },
23
+ "homepage": "https://xanascript.xyz",
24
+ "engines": {
25
+ "node": ">=18.0.0"
26
+ },
27
+ "files": [
28
+ "src",
29
+ "bin",
30
+ "std",
31
+ "llms.txt",
32
+ "VERSION"
33
+ ]
34
+ }
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",