lc-test3 1.1.1 → 1.1.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/p.js ADDED
@@ -0,0 +1,53 @@
1
+ Unhandled Rejection (Error): We don't know what to do with this node type. We were previously a Statement but we can't fit in here?
2
+ NodePath.insertBefore
3
+ .../loview-react-lowcode/node_modules/.pnpm/@babel+traverse@7.27.4_supports-color@5.5.0/node_modules/@babel/traverse/lib/path/modification.js:58
4
+ JSXElement
5
+ .../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:672
6
+ 669 | removeSiblingCommentsLable(path); // ��֮ǰ����ע�ͣ���ɾ��
7
+ 670 | const commentNode = t.jSXExpressionContainer(t.jSXEmptyExpression());
8
+ 671 | t.addComment(commentNode.expression, 'inner', commentContent);
9
+ > 672 | path.insertBefore(commentNode);
10
+ | ^ 673 | }
11
+ 674 | }
12
+ 675 | } else if (getJSXElementName(path.node) === 'ProTable') {
13
+ View compiled
14
+ ? 43 stack frames were collapsed.
15
+ AddCommentsFromPage
16
+ .../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:642
17
+ 639 | * @returns
18
+ 640 | */
19
+ 641 | export function AddCommentsFromPage(ast: t.File) {
20
+ > 642 | traverse(ast, {
21
+ 643 | JSXElement(path) {
22
+ 644 | if (getJSXElementName(path.node) === 'Page' || getJSXElementName(path.node) === 'Button' || getJSXElementName(path.node) === 'FSubmit') {
23
+ 645 | // Page��Button(����FSubmit)
24
+ View compiled
25
+ LowCodeLightModule.addAccessAndPageComment
26
+ .../loview-react-lowcode/packages/core/src/models/light-module.ts:208
27
+ 205 | * @returns
28
+ 206 | */
29
+ 207 | addAccessAndPageComment() {
30
+ > 208 | const ast = AddCommentsFromPage(this.ast);
31
+ | ^ 209 | // this.code = ast2code(ast);
32
+ 210 | // this.cleanCode = ast2code(ast);
33
+ 211 | const newCode = ast2code(ast);
34
+ View compiled
35
+ (anonymous function)
36
+ .../loview-react-lowcode/packages/core/src/models/workspace.ts:3230
37
+ 3227 |
38
+ 3228 | jsFilePaths.forEach(jsFilePath => {
39
+ 3229 | const targetFile = this.files.get(jsFilePath) as LowCodeLightModule;
40
+ > 3230 | targetFile.addAccessAndPageComment();
41
+ | ^ 3231 | });
42
+ 3232 | });
43
+ 3233 | }
44
+ View compiled
45
+ (anonymous function)
46
+ .../loview-react-lowcode/packages/core/src/models/workspace.ts:3228
47
+ 3225 | const jsFilePaths = pageToFileMap.get(viewData.name);
48
+ 3226 | if (!jsFilePaths) return;
49
+ 3227 |
50
+ > 3228 | jsFilePaths.forEach(jsFilePath => {
51
+ | ^ 3229 | const targetFile = this.files.get(jsFilePath) as LowCodeLightModule;
52
+ 3230 | targetFile.addAccessAndPageComment();
53
+ 3231 | });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lc-test3",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {