@orgajs/orgx 2.0.1 → 2.1.0
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/dist/lib/core.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type BaseProcessorOptions = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Whether to compile to a whole program or a function body..
|
|
31
31
|
*/
|
|
32
|
-
outputFormat?:
|
|
32
|
+
outputFormat?: "function-body" | "program" | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* List of recma (esast, JavaScript) plugins.
|
|
35
35
|
*/
|
|
@@ -40,10 +40,10 @@ export type MoreOptions = {
|
|
|
40
40
|
/**
|
|
41
41
|
* - Whether to skip imports
|
|
42
42
|
*/
|
|
43
|
-
skipImport?: boolean;
|
|
43
|
+
skipImport?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* - Specify which hast properties to parse as JSX.
|
|
46
46
|
*/
|
|
47
|
-
parseJSX?: string[];
|
|
47
|
+
parseJSX?: string[] | undefined;
|
|
48
48
|
};
|
|
49
49
|
export type Options = HastToEstreeOptions & MoreOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orgajs/orgx",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "orga compiler with jsx support",
|
|
5
5
|
"author": "Xiaoxing Hu <hi@xiaoxing.dev>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/estree": "^1.0.1",
|
|
26
26
|
"@types/estree-jsx": "^1.0.0",
|
|
27
|
-
"@types/hast": "^2.3.
|
|
28
|
-
"@types/node": "^20.
|
|
29
|
-
"@types/react": "^18.2.
|
|
27
|
+
"@types/hast": "^2.3.5",
|
|
28
|
+
"@types/node": "^20.5.7",
|
|
29
|
+
"@types/react": "^18.2.21",
|
|
30
30
|
"react": "^18.2.0",
|
|
31
31
|
"react-dom": "^18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"acorn": "^8.
|
|
34
|
+
"acorn": "^8.10.0",
|
|
35
35
|
"acorn-jsx": "^5.3.2",
|
|
36
|
-
"astring": "^1.
|
|
36
|
+
"astring": "^1.8.6",
|
|
37
37
|
"estree-util-build-jsx": "2.2.2",
|
|
38
38
|
"estree-util-is-identifier-name": "2.1.0",
|
|
39
39
|
"estree-util-to-js": "^1.2.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"unist-util-position-from-estree": "^1.1.2",
|
|
46
46
|
"unist-util-stringify-position": "^3.0.3",
|
|
47
47
|
"vfile": "^5.3.7",
|
|
48
|
-
"@orgajs/reorg-parse": "^4.
|
|
49
|
-
"@orgajs/reorg-rehype": "^4.
|
|
48
|
+
"@orgajs/reorg-parse": "^4.1.0",
|
|
49
|
+
"@orgajs/reorg-rehype": "^4.1.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"clean": "tsc --build --clean",
|