@lcap/nasl 0.3.9 → 0.3.10-beta

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.
Files changed (154) hide show
  1. package/out/service/create/errHandles.js +7 -2
  2. package/out/service/create/errHandles.js.map +1 -1
  3. package/out/service/debugger/debugger.d.ts +3 -0
  4. package/out/service/debugger/debugger.js +95 -0
  5. package/out/service/debugger/debugger.js.map +1 -0
  6. package/out/service/logic/logic.d.ts +27 -0
  7. package/out/service/logic/logic.js +20 -0
  8. package/out/service/logic/logic.js.map +1 -1
  9. package/out/service/page/element.d.ts +9 -0
  10. package/out/service/page/element.js +6 -0
  11. package/out/service/page/element.js.map +1 -1
  12. package/out/service/permission/api.d.ts +57 -0
  13. package/out/service/permission/api.js +41 -0
  14. package/out/service/permission/api.js.map +1 -0
  15. package/out/service/permission/index.d.ts +2 -0
  16. package/out/service/permission/index.js +17 -0
  17. package/out/service/permission/index.js.map +1 -0
  18. package/out/service/webFile/index.js +5 -0
  19. package/out/service/webFile/index.js.map +1 -1
  20. package/out/types/app/App.d.ts +4 -1
  21. package/out/types/app/App.js +24 -0
  22. package/out/types/app/App.js.map +1 -1
  23. package/out/types/app/Service.d.ts +2 -2
  24. package/out/types/app/Service.js +28 -3
  25. package/out/types/app/Service.js.map +1 -1
  26. package/out/types/cache.d.ts +6 -0
  27. package/out/types/cache.js +54 -0
  28. package/out/types/cache.js.map +1 -0
  29. package/out/types/common/Vertex.d.ts +25 -0
  30. package/out/types/common/Vertex.js +40 -0
  31. package/out/types/common/Vertex.js.map +1 -1
  32. package/out/types/data/Entity.js +1 -0
  33. package/out/types/data/Entity.js.map +1 -1
  34. package/out/types/data/Enum.d.ts +5 -0
  35. package/out/types/data/Enum.js +5 -0
  36. package/out/types/data/Enum.js.map +1 -1
  37. package/out/types/data/Interface.js +5 -3
  38. package/out/types/data/Interface.js.map +1 -1
  39. package/out/types/data/genBlock/genCreateBlock.js +5 -5
  40. package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
  41. package/out/types/data/genBlock/genCurdBlock.js +3 -3
  42. package/out/types/data/genBlock/genCurdBlock.js.map +1 -1
  43. package/out/types/data/genBlock/genEnumSelectBlock.d.ts +1 -1
  44. package/out/types/data/genBlock/genEnumSelectBlock.js +2 -2
  45. package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -1
  46. package/out/types/data/genBlock/genGridViewBlock.js +12 -1
  47. package/out/types/data/genBlock/genGridViewBlock.js.map +1 -1
  48. package/out/types/data/genBlock/genListViewBlock.js +2 -2
  49. package/out/types/data/genBlock/genSelectBlock.js +2 -2
  50. package/out/types/data/genBlock/genTableBlock.js +14 -3
  51. package/out/types/data/genBlock/genTableBlock.js.map +1 -1
  52. package/out/types/data/genBlock/genUpdateBlock.js +5 -5
  53. package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
  54. package/out/types/data/systemTypes.js +47 -0
  55. package/out/types/data/systemTypes.js.map +1 -1
  56. package/out/types/enum.d.ts +6 -0
  57. package/out/types/enum.js +11 -0
  58. package/out/types/enum.js.map +1 -0
  59. package/out/types/generator/hotReload.d.ts +2 -0
  60. package/out/types/generator/hotReload.js +12 -1
  61. package/out/types/generator/hotReload.js.map +1 -1
  62. package/out/types/index.d.ts +7 -1
  63. package/out/types/index.js +11 -2
  64. package/out/types/index.js.map +1 -1
  65. package/out/types/logic/BreakPoint.d.ts +42 -0
  66. package/out/types/logic/BreakPoint.js +155 -0
  67. package/out/types/logic/BreakPoint.js.map +1 -0
  68. package/out/types/logic/Debugger.d.ts +156 -0
  69. package/out/types/logic/Debugger.js +912 -0
  70. package/out/types/logic/Debugger.js.map +1 -0
  71. package/out/types/logic/Logic.d.ts +40 -0
  72. package/out/types/logic/Logic.js +130 -31
  73. package/out/types/logic/Logic.js.map +1 -1
  74. package/out/types/logic/LogicItem.d.ts +21 -1
  75. package/out/types/logic/LogicItem.js +227 -24
  76. package/out/types/logic/LogicItem.js.map +1 -1
  77. package/out/types/logic/Param.d.ts +1 -0
  78. package/out/types/logic/Param.js +38 -20
  79. package/out/types/logic/Param.js.map +1 -1
  80. package/out/types/logic/Return.js +14 -19
  81. package/out/types/logic/Return.js.map +1 -1
  82. package/out/types/logic/Variable.js +14 -19
  83. package/out/types/logic/Variable.js.map +1 -1
  84. package/out/types/logic/translator.js +0 -2
  85. package/out/types/logic/translator.js.map +1 -1
  86. package/out/types/nuims/Nuims.d.ts +1 -1
  87. package/out/types/nuims/Nuims.js +11 -4
  88. package/out/types/nuims/Nuims.js.map +1 -1
  89. package/out/types/page/Element.d.ts +5 -0
  90. package/out/types/page/Element.js +114 -130
  91. package/out/types/page/Element.js.map +1 -1
  92. package/out/types/page/Event.js.map +1 -1
  93. package/out/types/page/Page.d.ts +1 -0
  94. package/out/types/page/Page.js +59 -27
  95. package/out/types/page/Page.js.map +1 -1
  96. package/out/types/page/View.d.ts +17 -3
  97. package/out/types/page/View.js +53 -37
  98. package/out/types/page/View.js.map +1 -1
  99. package/out/types/page/ViewParam.d.ts +1 -0
  100. package/out/types/page/ViewParam.js +23 -4
  101. package/out/types/page/ViewParam.js.map +1 -1
  102. package/out/types/page/ViewVariable.js +13 -18
  103. package/out/types/page/ViewVariable.js.map +1 -1
  104. package/out/types/permission/Permission.d.ts +41 -0
  105. package/out/types/permission/Permission.js +122 -0
  106. package/out/types/permission/Permission.js.map +1 -0
  107. package/package.json +2 -2
  108. package/src/service/create/errHandles.js +6 -2
  109. package/src/service/debugger/debugger.js +90 -0
  110. package/src/service/developPermission/api.js +37 -0
  111. package/src/service/developPermission/index.js +13 -0
  112. package/src/service/logic/logic.js +20 -0
  113. package/src/service/page/element.js +6 -0
  114. package/src/service/permission/api.js +38 -0
  115. package/src/service/permission/index.js +13 -0
  116. package/src/service/webFile/index.js +6 -1
  117. package/src/types/app/App.ts +27 -1
  118. package/src/types/app/Service.ts +32 -3
  119. package/src/types/cache.ts +50 -0
  120. package/src/types/common/Vertex.ts +30 -0
  121. package/src/types/data/Entity.ts +1 -0
  122. package/src/types/data/Enum.ts +5 -0
  123. package/src/types/data/Interface.ts +4 -3
  124. package/src/types/data/genBlock/genCreateBlock.ts +5 -5
  125. package/src/types/data/genBlock/genCurdBlock.ts +3 -3
  126. package/src/types/data/genBlock/genEnumSelectBlock.ts +2 -2
  127. package/src/types/data/genBlock/genGridViewBlock.ts +12 -1
  128. package/src/types/data/genBlock/genListViewBlock.ts +2 -2
  129. package/src/types/data/genBlock/genSelectBlock.ts +2 -2
  130. package/src/types/data/genBlock/genTableBlock.ts +14 -3
  131. package/src/types/data/genBlock/genUpdateBlock.ts +5 -5
  132. package/src/types/data/systemTypes.ts +47 -0
  133. package/src/types/enum.ts +6 -0
  134. package/src/types/generator/hotReload.ts +10 -0
  135. package/src/types/index.ts +7 -1
  136. package/src/types/logic/BreakPoint.ts +200 -0
  137. package/src/types/logic/Debugger.ts +1140 -0
  138. package/src/types/logic/Logic.ts +133 -28
  139. package/src/types/logic/LogicItem.ts +250 -28
  140. package/src/types/logic/Param.ts +26 -8
  141. package/src/types/logic/Return.ts +4 -9
  142. package/src/types/logic/Variable.ts +4 -8
  143. package/src/types/logic/translator.d.ts +16 -0
  144. package/src/types/logic/translator.js +144 -88
  145. package/src/types/logic/translator_backup.js +5 -16
  146. package/src/types/nuims/Nuims.ts +11 -5
  147. package/src/types/page/Element.ts +63 -75
  148. package/src/types/page/Event.ts +0 -3
  149. package/src/types/page/Page.ts +73 -40
  150. package/src/types/page/View.ts +45 -18
  151. package/src/types/page/ViewParam.ts +22 -3
  152. package/src/types/page/ViewVariable.ts +4 -8
  153. package/src/types/permission/Permission.ts +112 -0
  154. package/tsconfig.json +1 -1
@@ -0,0 +1,156 @@
1
+ import { App, Logic, BreakPoint, EventEmitter, LogicItem } from '..';
2
+ interface ScopeValue {
3
+ name: string;
4
+ result: {
5
+ type: string;
6
+ value: unknown;
7
+ };
8
+ }
9
+ interface cf {
10
+ componentId: string;
11
+ callFrameId: number;
12
+ line: number;
13
+ invokeLocation: {
14
+ line: number;
15
+ componentId: string;
16
+ };
17
+ }
18
+ interface sourceMapFrontObj {
19
+ isLogic: boolean;
20
+ node: LogicItem;
21
+ from: number;
22
+ to: number;
23
+ }
24
+ interface CallFrame {
25
+ target: {
26
+ node: LogicItem | Logic | sourceMapFrontObj;
27
+ };
28
+ invokeItem: LogicItem;
29
+ callFrameId: number;
30
+ className: string;
31
+ lineNumber: number;
32
+ }
33
+ declare class SocketEvent extends EventEmitter {
34
+ app: App;
35
+ debuggerClient: any;
36
+ emitSocket(payload: any): void;
37
+ }
38
+ interface FrontEndResponsePayload {
39
+ code: number;
40
+ data: {
41
+ result: {
42
+ value: unknown;
43
+ };
44
+ sourceCodeId: string;
45
+ id: string;
46
+ breakpointId: string;
47
+ requestId: string;
48
+ callFramesResolved: Array<cf>;
49
+ location: {
50
+ componentId: string;
51
+ line: number;
52
+ };
53
+ };
54
+ }
55
+ interface BackendResponseData {
56
+ status: string;
57
+ name: string;
58
+ threadId: string;
59
+ requestId: string;
60
+ className: string;
61
+ lineNumber: number;
62
+ stackFrames: {
63
+ className: string;
64
+ lineNumber: number;
65
+ }[];
66
+ variables: {
67
+ [key: string]: unknown;
68
+ };
69
+ }
70
+ interface Thread {
71
+ id: string;
72
+ requestId: string;
73
+ frontendStack: Array<Partial<cf>>;
74
+ callFrameId: number;
75
+ breakPoint: BreakPoint;
76
+ evaluateValue: {
77
+ [id: string]: unknown;
78
+ };
79
+ callFrames: Array<Partial<CallFrame>>;
80
+ callFrameScope: Array<{
81
+ variables: Array<ScopeValue>;
82
+ params: Array<ScopeValue>;
83
+ returns: Array<ScopeValue>;
84
+ }>;
85
+ evaluateExpression: string;
86
+ }
87
+ export declare class Debugger extends EventEmitter {
88
+ app: App;
89
+ debuggerClient: any;
90
+ currentThread: Partial<Thread>;
91
+ threads: Array<Partial<Thread>>;
92
+ currentFrontEndThread: Thread;
93
+ socketEventEmitter: SocketEvent;
94
+ frontendConnection: boolean;
95
+ backendConnection: boolean;
96
+ ideConnection: boolean;
97
+ breakPoints: Array<BreakPoint>;
98
+ temporaryBreakPoint: BreakPoint;
99
+ private temporaryBreakPointTriggered;
100
+ logicIdClassMap: {
101
+ [id: string]: string;
102
+ };
103
+ classLogicIdMap: {
104
+ [id: string]: string;
105
+ };
106
+ booting: boolean;
107
+ temporaryLogicCallStack: {
108
+ callFramesResolved: Array<Partial<cf>>;
109
+ };
110
+ get isConnected(): boolean;
111
+ get isBreak(): BreakPoint;
112
+ get isInFrontendThread(): boolean;
113
+ constructor();
114
+ closeConnect(): Promise<void>;
115
+ boot(): Promise<void>;
116
+ resetState(): void;
117
+ onFetchBreakPoint(data: Partial<FrontEndResponsePayload>): Promise<void>;
118
+ onBreakPointSettle(data: Partial<FrontEndResponsePayload>): void;
119
+ onRemoveBreakpointsettle(data: FrontEndResponsePayload): void;
120
+ onConnection(data: Partial<FrontEndResponsePayload> | Partial<BackendResponseData>, source: string): Promise<void>;
121
+ onFrontEndConnection(data: Partial<FrontEndResponsePayload>): void;
122
+ onBackEndConnection(data: Partial<BackendResponseData>): Promise<void>;
123
+ loadBackEndSourceMap(): Promise<void>;
124
+ onConnectionEnd(): void;
125
+ onLogicTrace(data: Partial<FrontEndResponsePayload>): void;
126
+ onLogicTraceEnd(): void;
127
+ onPaused(data: Partial<FrontEndResponsePayload> | Partial<BackendResponseData>, source: string): void;
128
+ onFrontEndPaused({ code, data }: Partial<FrontEndResponsePayload>): void;
129
+ resolveBackEndTarget(className: string, lineNumber: number): Promise<{
130
+ node: LogicItem;
131
+ classIdentify?: string;
132
+ from?: number;
133
+ lineFrom?: number;
134
+ end?: number;
135
+ vertexId?: string;
136
+ logicId?: string;
137
+ }>;
138
+ onBackEndPaused(data: Partial<BackendResponseData>): Promise<void>;
139
+ onBackEndException(data: BackendResponseData): void;
140
+ onEvaluateResult({ code, data }: FrontEndResponsePayload): void;
141
+ evaluateExpression(expression: string): void;
142
+ setRemoteBreakPoint(bp: BreakPoint): Promise<void>;
143
+ removeAllBreakPoint(): Promise<void>;
144
+ enableAllBreakPoint(): Promise<void>;
145
+ disableAllBreakPoint(): Promise<void>;
146
+ removeRemoteBreakPoint(bp: BreakPoint): Promise<void>;
147
+ removeRemoteBreakPointRoundTrip(bp: BreakPoint): Promise<void>;
148
+ setRemoteBreakPointRoundTrip(bp: BreakPoint): Promise<BreakPoint>;
149
+ step(): Promise<void>;
150
+ stepInto(): Promise<void>;
151
+ stepOut(): Promise<void>;
152
+ resetTemporaryBreakPoint(): void;
153
+ resumeUserAction(): void;
154
+ resume(): void;
155
+ }
156
+ export {};