@vtj/parser 0.12.60 → 0.12.62

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/parser",
3
3
  "private": false,
4
- "version": "0.12.60",
4
+ "version": "0.12.62",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -21,7 +21,6 @@
21
21
  "author": "chenhuachun",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@babel/core": "~7.28.0",
25
24
  "@babel/generator": "~7.28.0",
26
25
  "@babel/parser": "~7.28.0",
27
26
  "@babel/traverse": "~7.28.0",
@@ -32,8 +31,8 @@
32
31
  "postcss": "~8.5.0",
33
32
  "sass": "~1.89.0",
34
33
  "@vtj/base": "~0.12.2",
35
- "@vtj/core": "~0.12.60",
36
- "@vtj/coder": "~0.12.60"
34
+ "@vtj/coder": "~0.12.62",
35
+ "@vtj/core": "~0.12.62"
37
36
  },
38
37
  "devDependencies": {
39
38
  "@vtj/cli": "~0.12.8"
@@ -1,6 +1,5 @@
1
- import { Visitor } from '@babel/core';
2
1
  import { Node, File } from '@babel/types';
3
- import { TraverseOptions } from '@babel/traverse';
2
+ import { TraverseOptions, Visitor } from '@babel/traverse';
4
3
  import { JSExpression, JSFunction, NodeSchema } from '@vtj/core';
5
4
  import { ParseResult } from '@babel/parser';
6
5
  export declare function parseSFC(source: string): {
@@ -15,4 +14,4 @@ export declare function isJSExpression(data: any): data is JSExpression;
15
14
  export declare function isJSFunction(x: any): x is JSFunction;
16
15
  export declare function isJSCode(data: unknown): data is JSExpression | JSFunction;
17
16
  export declare function isNodeSchema(node: NodeSchema | JSExpression | string | null): node is NodeSchema;
18
- export declare function transformScript(script: string, visitor: Visitor): string;
17
+ export declare function transformScript(script: string, visitor: Visitor): any;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/parser
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.59
5
+ * @version 0.12.61
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.59";
8
+ export declare const version = "0.12.61";