@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.
- package/out/service/create/errHandles.js +7 -2
- package/out/service/create/errHandles.js.map +1 -1
- package/out/service/debugger/debugger.d.ts +3 -0
- package/out/service/debugger/debugger.js +95 -0
- package/out/service/debugger/debugger.js.map +1 -0
- package/out/service/logic/logic.d.ts +27 -0
- package/out/service/logic/logic.js +20 -0
- package/out/service/logic/logic.js.map +1 -1
- package/out/service/page/element.d.ts +9 -0
- package/out/service/page/element.js +6 -0
- package/out/service/page/element.js.map +1 -1
- package/out/service/permission/api.d.ts +57 -0
- package/out/service/permission/api.js +41 -0
- package/out/service/permission/api.js.map +1 -0
- package/out/service/permission/index.d.ts +2 -0
- package/out/service/permission/index.js +17 -0
- package/out/service/permission/index.js.map +1 -0
- package/out/service/webFile/index.js +5 -0
- package/out/service/webFile/index.js.map +1 -1
- package/out/types/app/App.d.ts +4 -1
- package/out/types/app/App.js +24 -0
- package/out/types/app/App.js.map +1 -1
- package/out/types/app/Service.d.ts +2 -2
- package/out/types/app/Service.js +28 -3
- package/out/types/app/Service.js.map +1 -1
- package/out/types/cache.d.ts +6 -0
- package/out/types/cache.js +54 -0
- package/out/types/cache.js.map +1 -0
- package/out/types/common/Vertex.d.ts +25 -0
- package/out/types/common/Vertex.js +40 -0
- package/out/types/common/Vertex.js.map +1 -1
- package/out/types/data/Entity.js +1 -0
- package/out/types/data/Entity.js.map +1 -1
- package/out/types/data/Enum.d.ts +5 -0
- package/out/types/data/Enum.js +5 -0
- package/out/types/data/Enum.js.map +1 -1
- package/out/types/data/Interface.js +5 -3
- package/out/types/data/Interface.js.map +1 -1
- package/out/types/data/genBlock/genCreateBlock.js +5 -5
- package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
- package/out/types/data/genBlock/genCurdBlock.js +3 -3
- package/out/types/data/genBlock/genCurdBlock.js.map +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.d.ts +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.js +2 -2
- package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -1
- package/out/types/data/genBlock/genGridViewBlock.js +12 -1
- package/out/types/data/genBlock/genGridViewBlock.js.map +1 -1
- package/out/types/data/genBlock/genListViewBlock.js +2 -2
- package/out/types/data/genBlock/genSelectBlock.js +2 -2
- package/out/types/data/genBlock/genTableBlock.js +14 -3
- package/out/types/data/genBlock/genTableBlock.js.map +1 -1
- package/out/types/data/genBlock/genUpdateBlock.js +5 -5
- package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
- package/out/types/data/systemTypes.js +47 -0
- package/out/types/data/systemTypes.js.map +1 -1
- package/out/types/enum.d.ts +6 -0
- package/out/types/enum.js +11 -0
- package/out/types/enum.js.map +1 -0
- package/out/types/generator/hotReload.d.ts +2 -0
- package/out/types/generator/hotReload.js +12 -1
- package/out/types/generator/hotReload.js.map +1 -1
- package/out/types/index.d.ts +7 -1
- package/out/types/index.js +11 -2
- package/out/types/index.js.map +1 -1
- package/out/types/logic/BreakPoint.d.ts +42 -0
- package/out/types/logic/BreakPoint.js +155 -0
- package/out/types/logic/BreakPoint.js.map +1 -0
- package/out/types/logic/Debugger.d.ts +156 -0
- package/out/types/logic/Debugger.js +912 -0
- package/out/types/logic/Debugger.js.map +1 -0
- package/out/types/logic/Logic.d.ts +40 -0
- package/out/types/logic/Logic.js +130 -31
- package/out/types/logic/Logic.js.map +1 -1
- package/out/types/logic/LogicItem.d.ts +21 -1
- package/out/types/logic/LogicItem.js +227 -24
- package/out/types/logic/LogicItem.js.map +1 -1
- package/out/types/logic/Param.d.ts +1 -0
- package/out/types/logic/Param.js +38 -20
- package/out/types/logic/Param.js.map +1 -1
- package/out/types/logic/Return.js +14 -19
- package/out/types/logic/Return.js.map +1 -1
- package/out/types/logic/Variable.js +14 -19
- package/out/types/logic/Variable.js.map +1 -1
- package/out/types/logic/translator.js +0 -2
- package/out/types/logic/translator.js.map +1 -1
- package/out/types/nuims/Nuims.d.ts +1 -1
- package/out/types/nuims/Nuims.js +11 -4
- package/out/types/nuims/Nuims.js.map +1 -1
- package/out/types/page/Element.d.ts +5 -0
- package/out/types/page/Element.js +114 -130
- package/out/types/page/Element.js.map +1 -1
- package/out/types/page/Event.js.map +1 -1
- package/out/types/page/Page.d.ts +1 -0
- package/out/types/page/Page.js +59 -27
- package/out/types/page/Page.js.map +1 -1
- package/out/types/page/View.d.ts +17 -3
- package/out/types/page/View.js +53 -37
- package/out/types/page/View.js.map +1 -1
- package/out/types/page/ViewParam.d.ts +1 -0
- package/out/types/page/ViewParam.js +23 -4
- package/out/types/page/ViewParam.js.map +1 -1
- package/out/types/page/ViewVariable.js +13 -18
- package/out/types/page/ViewVariable.js.map +1 -1
- package/out/types/permission/Permission.d.ts +41 -0
- package/out/types/permission/Permission.js +122 -0
- package/out/types/permission/Permission.js.map +1 -0
- package/package.json +2 -2
- package/src/service/create/errHandles.js +6 -2
- package/src/service/debugger/debugger.js +90 -0
- package/src/service/developPermission/api.js +37 -0
- package/src/service/developPermission/index.js +13 -0
- package/src/service/logic/logic.js +20 -0
- package/src/service/page/element.js +6 -0
- package/src/service/permission/api.js +38 -0
- package/src/service/permission/index.js +13 -0
- package/src/service/webFile/index.js +6 -1
- package/src/types/app/App.ts +27 -1
- package/src/types/app/Service.ts +32 -3
- package/src/types/cache.ts +50 -0
- package/src/types/common/Vertex.ts +30 -0
- package/src/types/data/Entity.ts +1 -0
- package/src/types/data/Enum.ts +5 -0
- package/src/types/data/Interface.ts +4 -3
- package/src/types/data/genBlock/genCreateBlock.ts +5 -5
- package/src/types/data/genBlock/genCurdBlock.ts +3 -3
- package/src/types/data/genBlock/genEnumSelectBlock.ts +2 -2
- package/src/types/data/genBlock/genGridViewBlock.ts +12 -1
- package/src/types/data/genBlock/genListViewBlock.ts +2 -2
- package/src/types/data/genBlock/genSelectBlock.ts +2 -2
- package/src/types/data/genBlock/genTableBlock.ts +14 -3
- package/src/types/data/genBlock/genUpdateBlock.ts +5 -5
- package/src/types/data/systemTypes.ts +47 -0
- package/src/types/enum.ts +6 -0
- package/src/types/generator/hotReload.ts +10 -0
- package/src/types/index.ts +7 -1
- package/src/types/logic/BreakPoint.ts +200 -0
- package/src/types/logic/Debugger.ts +1140 -0
- package/src/types/logic/Logic.ts +133 -28
- package/src/types/logic/LogicItem.ts +250 -28
- package/src/types/logic/Param.ts +26 -8
- package/src/types/logic/Return.ts +4 -9
- package/src/types/logic/Variable.ts +4 -8
- package/src/types/logic/translator.d.ts +16 -0
- package/src/types/logic/translator.js +144 -88
- package/src/types/logic/translator_backup.js +5 -16
- package/src/types/nuims/Nuims.ts +11 -5
- package/src/types/page/Element.ts +63 -75
- package/src/types/page/Event.ts +0 -3
- package/src/types/page/Page.ts +73 -40
- package/src/types/page/View.ts +45 -18
- package/src/types/page/ViewParam.ts +22 -3
- package/src/types/page/ViewVariable.ts +4 -8
- package/src/types/permission/Permission.ts +112 -0
- 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 {};
|