@tinqerjs/tinqer 0.0.23 → 0.0.24
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxc-parser.d.ts","sourceRoot":"","sources":["../../src/parser/oxc-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"oxc-parser.d.ts","sourceRoot":"","sources":["../../src/parser/oxc-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAcrD"}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Wraps the OXC WASM parser for JavaScript/TypeScript parsing
|
|
4
4
|
*/
|
|
5
5
|
import { parseSync } from "oxc-parser";
|
|
6
|
+
const DEFAULT_PARSER_OPTIONS = {
|
|
7
|
+
sourceType: "module",
|
|
8
|
+
};
|
|
6
9
|
/**
|
|
7
10
|
* Parses JavaScript/TypeScript code using OXC parser
|
|
8
11
|
* @param code The JavaScript/TypeScript code to parse
|
|
@@ -10,9 +13,7 @@ import { parseSync } from "oxc-parser";
|
|
|
10
13
|
*/
|
|
11
14
|
export function parseJavaScript(code) {
|
|
12
15
|
try {
|
|
13
|
-
const result = parseSync("query.ts", code,
|
|
14
|
-
sourceType: "module",
|
|
15
|
-
});
|
|
16
|
+
const result = parseSync("query.ts", code, DEFAULT_PARSER_OPTIONS);
|
|
16
17
|
if (result.errors.length > 0) {
|
|
17
18
|
console.error("Parse errors:", result.errors);
|
|
18
19
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxc-parser.js","sourceRoot":"","sources":["../../src/parser/oxc-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"oxc-parser.js","sourceRoot":"","sources":["../../src/parser/oxc-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAsB,MAAM,YAAY,CAAC;AAE3D,MAAM,sBAAsB,GAAkB;IAC5C,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,CAAC;QAEnE,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinqerjs/tinqer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "LINQ to SQL for TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint:fix": "eslint src tests --ext .ts --fix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"oxc-parser": "
|
|
23
|
+
"oxc-parser": "0.108.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/chai": "5.2.2",
|