@lcap/nasl 3.3.3-beta.5 → 3.3.3-beta.7
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/bak/translator.js +73 -15
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +11 -0
- package/out/common/BaseNode.js +51 -0
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/index.d.ts +1 -0
- package/out/common/index.js +1 -0
- package/out/common/index.js.map +1 -1
- package/out/common/utils.d.ts +2 -0
- package/out/common/utils.js +18 -0
- package/out/common/utils.js.map +1 -0
- package/out/concepts/Abort__.d.ts +2 -2
- package/out/concepts/Abort__.js +6 -2
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +2 -2
- package/out/concepts/Anchor__.js +11 -7
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +3 -3
- package/out/concepts/AnonymousFunction__.js +37 -23
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +137 -69
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +2 -2
- package/out/concepts/Argument__.js +18 -13
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +2 -2
- package/out/concepts/Assignee__.js +33 -22
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +2 -2
- package/out/concepts/AssignmentLine__.js +3 -2
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +2 -2
- package/out/concepts/Assignment__.js +16 -12
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js +6 -3
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +2 -2
- package/out/concepts/AuthLogicForCallInterface__.js +62 -78
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +5 -8
- package/out/concepts/BackendVariable__.js +23 -18
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +4 -7
- package/out/concepts/Backend__.js +16 -11
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +2 -2
- package/out/concepts/BatchAssignment__.js +30 -22
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +2 -2
- package/out/concepts/BinaryExpression__.js +30 -18
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +10 -4
- package/out/concepts/BindAttribute__.js +144 -43
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +2 -2
- package/out/concepts/BindDirective__.js +16 -11
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +4 -7
- package/out/concepts/BindEvent__.js +32 -24
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +2 -2
- package/out/concepts/BindStyle__.js +15 -10
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +2 -2
- package/out/concepts/BooleanLiteral__.js +2 -2
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +2 -2
- package/out/concepts/CallAuthInterface__.js +36 -31
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +2 -2
- package/out/concepts/CallConnector__.js +25 -23
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +2 -2
- package/out/concepts/CallFunction__.js +31 -22
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +2 -2
- package/out/concepts/CallInterface__.js +16 -21
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -3
- package/out/concepts/CallLogic__.js +47 -50
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +4 -4
- package/out/concepts/CallQueryComponent__.js +50 -42
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +2 -2
- package/out/concepts/Comment__.js +3 -2
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +6 -3
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +6 -3
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +4 -7
- package/out/concepts/ConfigProperty__.js +18 -13
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js +6 -3
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -7
- package/out/concepts/Connection__.js +12 -8
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/Connector__.js +30 -15
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +3 -3
- package/out/concepts/Constant__.js +18 -13
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +4 -7
- package/out/concepts/DataSource__.js +13 -9
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +3 -3
- package/out/concepts/Destination__.js +35 -29
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +2 -2
- package/out/concepts/End__.js +17 -13
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +2 -2
- package/out/concepts/EntityIndex__.js +4 -3
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +2 -2
- package/out/concepts/EntityProperty__.js +22 -15
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +4 -7
- package/out/concepts/Entity__.js +29 -21
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +2 -2
- package/out/concepts/EnumItem__.js +4 -3
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +4 -7
- package/out/concepts/Enum__.js +16 -11
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +6 -3
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +2 -2
- package/out/concepts/ExternalDestination__.js +13 -8
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +2 -2
- package/out/concepts/ForEachStatement__.js +26 -18
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js +18 -10
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +4 -7
- package/out/concepts/Frontend__.js +37 -21
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +3 -3
- package/out/concepts/Function__.js +52 -33
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +2 -2
- package/out/concepts/Identifier__.js +23 -18
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +2 -2
- package/out/concepts/IfStatement__.js +18 -13
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.js +17 -9
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +2 -2
- package/out/concepts/InterfaceParam__.js +12 -8
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +4 -7
- package/out/concepts/Interface__.js +44 -33
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +2 -2
- package/out/concepts/JSBlock__.js +3 -2
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +2 -2
- package/out/concepts/JavaLogic__.js +6 -2
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +2 -2
- package/out/concepts/LogicItem__.js +7 -3
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +8 -11
- package/out/concepts/Logic__.js +141 -136
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +35 -27
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +2 -2
- package/out/concepts/Match__.js +29 -24
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +2 -2
- package/out/concepts/MemberExpression__.js +34 -27
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +4 -7
- package/out/concepts/MetadataType__.js +23 -15
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.js +6 -3
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.js +6 -3
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.js +66 -33
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +6 -6
- package/out/concepts/NewComposite__.js +95 -82
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +5 -5
- package/out/concepts/NewList__.js +42 -32
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +4 -4
- package/out/concepts/NewMap__.js +51 -41
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +2 -2
- package/out/concepts/New__.js +3 -2
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +2 -2
- package/out/concepts/NullLiteral__.js +2 -2
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +2 -2
- package/out/concepts/NumericLiteral__.js +12 -7
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +2 -2
- package/out/concepts/OqlQueryComponent__.js +22 -17
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +8 -11
- package/out/concepts/OverriddenLogic__.js +135 -130
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.d.ts +3 -3
- package/out/concepts/Param__.js +29 -24
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +12 -6
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +2 -2
- package/out/concepts/ProcessElement__.js +92 -66
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +2 -1
- package/out/concepts/ProcessOutcome__.js +5 -4
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +2 -1
- package/out/concepts/ProcessOutcomes__.js +6 -5
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +4 -7
- package/out/concepts/Process__.js +51 -34
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +2 -2
- package/out/concepts/QueryAggregateExpression__.js +8 -5
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +2 -2
- package/out/concepts/QueryFieldExpression__.js +5 -4
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +2 -2
- package/out/concepts/QueryFromExpression__.js +14 -9
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +2 -1
- package/out/concepts/QueryGroupByExpression__.js +12 -8
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +2 -2
- package/out/concepts/QueryJoinExpression__.js +18 -13
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +2 -2
- package/out/concepts/QueryLimitExpression__.js +12 -8
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +2 -2
- package/out/concepts/QueryOrderByExpression__.js +12 -8
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +6 -3
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.d.ts +3 -3
- package/out/concepts/Return__.js +21 -16
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +4 -7
- package/out/concepts/Role__.js +7 -6
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +2 -2
- package/out/concepts/SelectMembers__.js +9 -5
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.js +6 -3
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +2 -2
- package/out/concepts/SqlQueryComponent__.js +18 -13
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +2 -2
- package/out/concepts/Start__.js +2 -2
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +2 -2
- package/out/concepts/StringInterpolation__.js +13 -8
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +2 -2
- package/out/concepts/StringLiteral__.js +4 -3
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +2 -2
- package/out/concepts/StructureProperty__.js +14 -10
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +4 -7
- package/out/concepts/Structure__.js +22 -14
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +2 -2
- package/out/concepts/SwitchCase__.js +18 -13
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +2 -2
- package/out/concepts/SwitchStatement__.js +14 -9
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +6 -3
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +4 -7
- package/out/concepts/TriggerLauncher__.js +7 -6
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +2 -2
- package/out/concepts/TypeAnnotation__.js +61 -29
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +2 -2
- package/out/concepts/TypeParam__.js +4 -3
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +2 -2
- package/out/concepts/UnaryExpression__.js +18 -10
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +2 -1
- package/out/concepts/Unparsed__.js +2 -2
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +2 -2
- package/out/concepts/ValidationRule__.js +17 -12
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +5 -8
- package/out/concepts/Variable__.js +23 -18
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +7 -6
- package/out/concepts/ViewElement__.js +139 -101
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +8 -9
- package/out/concepts/View__.js +73 -62
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +2 -2
- package/out/concepts/WhileStatement__.js +9 -7
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/manager/diagnostic.d.ts +1 -1
- package/out/manager/diagnostic.js +2 -3
- package/out/manager/diagnostic.js.map +1 -1
- package/out/natural/transformTSCode.d.ts +2 -2
- package/out/server/naslServer.d.ts +46 -55
- package/out/server/naslServer.js +302 -449
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +1 -1
- package/out/server/translator.js.map +1 -1
- package/out/templator/genCreateBlock.js +4 -4
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +6 -6
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +4 -4
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +2 -2
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +4 -4
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/translator/types.d.ts +16 -3
- package/out/translator/utils.d.ts +19 -1
- package/out/translator/utils.js +71 -2
- package/out/translator/utils.js.map +1 -1
- package/out/utils/time-slicing/constant.d.ts +35 -0
- package/out/utils/time-slicing/constant.js +40 -0
- package/out/utils/time-slicing/constant.js.map +1 -0
- package/out/utils/time-slicing/controller.d.ts +53 -0
- package/out/utils/time-slicing/controller.js +280 -0
- package/out/utils/time-slicing/controller.js.map +1 -0
- package/out/utils/time-slicing/index.d.ts +5 -0
- package/out/utils/time-slicing/index.js +26 -0
- package/out/utils/time-slicing/index.js.map +1 -0
- package/out/utils/time-slicing/page-state.d.ts +2 -0
- package/out/utils/time-slicing/page-state.js +14 -0
- package/out/utils/time-slicing/page-state.js.map +1 -0
- package/out/utils/time-slicing/performance.d.ts +11 -0
- package/out/utils/time-slicing/performance.js +51 -0
- package/out/utils/time-slicing/performance.js.map +1 -0
- package/out/utils/time-slicing/runner.d.ts +12 -0
- package/out/utils/time-slicing/runner.js +53 -0
- package/out/utils/time-slicing/runner.js.map +1 -0
- package/out/utils/time-slicing/tool.d.ts +24 -0
- package/out/utils/time-slicing/tool.js +47 -0
- package/out/utils/time-slicing/tool.js.map +1 -0
- package/out/utils/time-slicing/utils.d.ts +62 -0
- package/out/utils/time-slicing/utils.js +47 -0
- package/out/utils/time-slicing/utils.js.map +1 -0
- package/out/utils/time-slicing/wrapper.d.ts +18 -0
- package/out/utils/time-slicing/wrapper.js +55 -0
- package/out/utils/time-slicing/wrapper.js.map +1 -0
- package/out/utils/types.d.ts +7 -0
- package/package.json +1 -1
- package/src/bak/translator.js +75 -16
- package/src/common/BaseNode.ts +67 -6
- package/src/common/index.ts +1 -0
- package/src/common/utils.ts +17 -0
- package/src/concepts/Abort__.ts +12 -3
- package/src/concepts/Anchor__.ts +21 -8
- package/src/concepts/AnonymousFunction__.ts +45 -31
- package/src/concepts/App__.ts +137 -69
- package/src/concepts/Argument__.ts +31 -14
- package/src/concepts/Assignee__.ts +44 -23
- package/src/concepts/AssignmentLine__.ts +13 -3
- package/src/concepts/Assignment__.ts +26 -14
- package/src/concepts/Attribute__.ts +6 -3
- package/src/concepts/AuthLogicForCallInterface__.ts +69 -87
- package/src/concepts/BackendVariable__.ts +34 -19
- package/src/concepts/Backend__.ts +33 -12
- package/src/concepts/BatchAssignment__.ts +41 -23
- package/src/concepts/BinaryExpression__.ts +40 -20
- package/src/concepts/BindAttribute__.ts +151 -49
- package/src/concepts/BindDirective__.ts +25 -12
- package/src/concepts/BindEvent__.ts +43 -32
- package/src/concepts/BindStyle__.ts +24 -11
- package/src/concepts/BooleanLiteral__.ts +11 -3
- package/src/concepts/CallAuthInterface__.ts +45 -34
- package/src/concepts/CallConnector__.ts +34 -26
- package/src/concepts/CallFunction__.ts +34 -23
- package/src/concepts/CallInterface__.ts +25 -30
- package/src/concepts/CallLogic__.ts +60 -67
- package/src/concepts/CallQueryComponent__.ts +60 -52
- package/src/concepts/Comment__.ts +13 -3
- package/src/concepts/CompletionProperty__.ts +6 -3
- package/src/concepts/ConfigGroup__.ts +6 -3
- package/src/concepts/ConfigProperty__.ts +28 -15
- package/src/concepts/Configuration__.ts +6 -3
- package/src/concepts/Connection__.ts +28 -9
- package/src/concepts/Connector__.ts +30 -15
- package/src/concepts/Constant__.ts +28 -14
- package/src/concepts/DataSource__.ts +22 -10
- package/src/concepts/Destination__.ts +45 -36
- package/src/concepts/End__.ts +24 -15
- package/src/concepts/EntityIndex__.ts +13 -4
- package/src/concepts/EntityProperty__.ts +33 -17
- package/src/concepts/Entity__.ts +40 -25
- package/src/concepts/EnumItem__.ts +13 -4
- package/src/concepts/Enum__.ts +27 -13
- package/src/concepts/Event__.ts +6 -3
- package/src/concepts/ExternalDestination__.ts +22 -10
- package/src/concepts/ForEachStatement__.ts +36 -20
- package/src/concepts/FrontendLibrary__.ts +18 -10
- package/src/concepts/Frontend__.ts +48 -22
- package/src/concepts/Function__.ts +60 -36
- package/src/concepts/Identifier__.ts +32 -23
- package/src/concepts/IfStatement__.ts +28 -17
- package/src/concepts/Integration__.ts +17 -9
- package/src/concepts/InterfaceParam__.ts +22 -9
- package/src/concepts/Interface__.ts +55 -37
- package/src/concepts/JSBlock__.ts +12 -3
- package/src/concepts/JavaLogic__.ts +13 -3
- package/src/concepts/LogicItem__.ts +13 -4
- package/src/concepts/Logic__.ts +159 -149
- package/src/concepts/MatchCase__.ts +45 -32
- package/src/concepts/Match__.ts +39 -28
- package/src/concepts/MemberExpression__.ts +43 -28
- package/src/concepts/MetadataType__.ts +34 -16
- package/src/concepts/MsgTriggerEvent__.ts +6 -3
- package/src/concepts/MsgTriggerLauncher__.ts +6 -3
- package/src/concepts/Namespace__.ts +66 -33
- package/src/concepts/NewComposite__.ts +106 -87
- package/src/concepts/NewList__.ts +52 -38
- package/src/concepts/NewMap__.ts +61 -48
- package/src/concepts/New__.ts +13 -3
- package/src/concepts/NullLiteral__.ts +11 -3
- package/src/concepts/NumericLiteral__.ts +21 -8
- package/src/concepts/OqlQueryComponent__.ts +32 -21
- package/src/concepts/OverriddenLogic__.ts +153 -143
- package/src/concepts/Param__.ts +48 -34
- package/src/concepts/ProcessComponent__.ts +12 -6
- package/src/concepts/ProcessElement__.ts +102 -76
- package/src/concepts/ProcessOutcome__.ts +16 -8
- package/src/concepts/ProcessOutcomes__.ts +17 -9
- package/src/concepts/Process__.ts +62 -41
- package/src/concepts/QueryAggregateExpression__.ts +17 -6
- package/src/concepts/QueryFieldExpression__.ts +14 -5
- package/src/concepts/QueryFromExpression__.ts +24 -10
- package/src/concepts/QueryGroupByExpression__.ts +20 -9
- package/src/concepts/QueryJoinExpression__.ts +28 -14
- package/src/concepts/QueryLimitExpression__.ts +22 -9
- package/src/concepts/QueryOrderByExpression__.ts +23 -9
- package/src/concepts/QuerySelectExpression__.ts +6 -3
- package/src/concepts/Return__.ts +31 -17
- package/src/concepts/Role__.ts +17 -8
- package/src/concepts/SelectMembers__.ts +19 -6
- package/src/concepts/Slot__.ts +6 -3
- package/src/concepts/SqlQueryComponent__.ts +28 -14
- package/src/concepts/Start__.ts +11 -3
- package/src/concepts/StringInterpolation__.ts +16 -8
- package/src/concepts/StringLiteral__.ts +13 -4
- package/src/concepts/StructureProperty__.ts +24 -11
- package/src/concepts/Structure__.ts +33 -16
- package/src/concepts/SwitchCase__.ts +28 -17
- package/src/concepts/SwitchStatement__.ts +23 -10
- package/src/concepts/TriggerEvent__.ts +6 -3
- package/src/concepts/TriggerLauncher__.ts +17 -7
- package/src/concepts/TypeAnnotation__.ts +46 -30
- package/src/concepts/TypeParam__.ts +13 -4
- package/src/concepts/UnaryExpression__.ts +28 -12
- package/src/concepts/Unparsed__.ts +10 -3
- package/src/concepts/ValidationRule__.ts +27 -20
- package/src/concepts/Variable__.ts +34 -19
- package/src/concepts/ViewElement__.ts +165 -125
- package/src/concepts/View__.ts +108 -89
- package/src/concepts/WhileStatement__.ts +19 -10
- package/src/concepts/types__.ts +1 -1
- package/src/manager/diagnostic.ts +3 -4
- package/src/server/naslServer.ts +676 -729
- package/src/server/translator.ts +1 -1
- package/src/templator/genCreateBlock.ts +4 -4
- package/src/templator/genCurdEditMultipleKeyBlock.ts +6 -6
- package/src/templator/genCurdMultipleKeyBlock.ts +4 -4
- package/src/templator/genEditTableBlock.ts +2 -2
- package/src/templator/genUpdateBlock.ts +4 -4
- package/src/translator/types.ts +20 -5
- package/src/translator/utils.ts +78 -4
- package/src/utils/time-slicing/constant.ts +37 -0
- package/src/utils/time-slicing/controller.ts +342 -0
- package/src/utils/time-slicing/index.ts +6 -0
- package/src/utils/time-slicing/page-state.ts +12 -0
- package/src/utils/time-slicing/performance.ts +56 -0
- package/src/utils/time-slicing/runner.ts +54 -0
- package/src/utils/time-slicing/tool.ts +45 -0
- package/src/utils/time-slicing/utils.ts +90 -0
- package/src/utils/time-slicing/wrapper.ts +58 -0
- package/src/utils/types.ts +9 -0
- package/test/concepts/anonymous-function/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
- package/test/concepts/anonymous-function/__snapshots__/toJS.spec.ts.snap +3 -0
- package/test/concepts/anonymous-function/__snapshots__/toVue.spec.ts.snap +6 -0
- package/test/concepts/anonymous-function/constant.ts +5 -0
- package/test/concepts/anonymous-function/fixtures/simple.json +85 -0
- package/test/concepts/anonymous-function/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/anonymous-function/toJS.spec.ts +14 -0
- package/test/concepts/anonymous-function/toVue.spec.ts +14 -0
- package/test/concepts/assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
- package/test/concepts/assignment/__snapshots__/toJS.spec.ts.snap +9 -0
- package/test/concepts/assignment/__snapshots__/toVue.spec.ts.snap +21 -0
- package/test/concepts/assignment/constant.ts +5 -0
- package/test/concepts/assignment/fixtures/both-space.json +4 -0
- package/test/concepts/assignment/fixtures/left-space.json +14 -0
- package/test/concepts/assignment/fixtures/right-space.json +8 -0
- package/test/concepts/assignment/fixtures/simple.json +12 -0
- package/test/concepts/assignment/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/assignment/toJS.spec.ts +14 -0
- package/test/concepts/assignment/toVue.spec.ts +14 -0
- package/test/concepts/batch-assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +28 -0
- package/test/concepts/batch-assignment/__snapshots__/toJS.spec.ts.snap +13 -0
- package/test/concepts/batch-assignment/__snapshots__/toVue.spec.ts.snap +14 -0
- package/test/concepts/batch-assignment/constant.ts +5 -0
- package/test/concepts/batch-assignment/fixtures/muli-var-muli-value.json +144 -0
- package/test/concepts/batch-assignment/fixtures/simple-var-simple-value.json +36 -0
- package/test/concepts/batch-assignment/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/batch-assignment/toJS.spec.ts +14 -0
- package/test/concepts/batch-assignment/toVue.spec.ts +14 -0
- package/test/concepts/binary-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +25 -0
- package/test/concepts/binary-expression/__snapshots__/toJS.spec.ts.snap +17 -0
- package/test/concepts/binary-expression/__snapshots__/toVue.spec.ts.snap +19 -0
- package/test/concepts/binary-expression/constant.ts +5 -0
- package/test/concepts/binary-expression/fixtures/constant-nested.json +36 -0
- package/test/concepts/binary-expression/fixtures/constant-simple.json +12 -0
- package/test/concepts/binary-expression/fixtures/variable-nested.json +69 -0
- package/test/concepts/binary-expression/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/binary-expression/toJS.spec.ts +14 -0
- package/test/concepts/binary-expression/toVue.spec.ts +14 -0
- package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +4 -3
- package/test/concepts/boolean-literal/toJS.spec.ts +2 -2
- package/test/concepts/boolean-literal/toVue.spec.ts +2 -2
- package/test/concepts/call-function/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -3
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +3 -3
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +2 -1
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/data-source/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
- package/test/concepts/data-source/__snapshots__/toEmbeddedTSFile.spec.ts.snap +12 -0
- package/test/concepts/data-source/constant.ts +5 -0
- package/test/concepts/data-source/fixtures/normal.json +289 -0
- package/test/concepts/data-source/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/data-source/toEmbeddedTSFile.spec.ts +16 -0
- package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +74 -0
- package/test/concepts/entity/__snapshots__/toEmbeddedTSFile.spec.ts.snap +3 -0
- package/test/concepts/entity/constant.ts +5 -0
- package/test/concepts/entity/fixtures/normal.json +469 -0
- package/test/concepts/entity/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/entity/toEmbeddedTSFile.spec.ts +14 -0
- package/test/concepts/identifier/toEmbeddedTS.spec.ts +4 -3
- package/test/concepts/identifier/toJS.spec.ts +2 -2
- package/test/concepts/identifier/toVue.spec.ts +2 -2
- package/test/concepts/match/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/member-expression/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/member-expression/toVue.spec.ts +2 -2
- package/test/concepts/null-literal/toEmbeddedTS.spec.ts +4 -3
- package/test/concepts/null-literal/toJS.spec.ts +2 -2
- package/test/concepts/null-literal/toVue.spec.ts +2 -2
- package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +4 -3
- package/test/concepts/numeric-literal/toJS.spec.ts +2 -2
- package/test/concepts/numeric-literal/toVue.spec.ts +2 -2
- package/test/concepts/string-literal/toEmbeddedTS.spec.ts +4 -3
- package/test/concepts/string-literal/toJS.spec.ts +2 -2
- package/test/concepts/string-literal/toVue.spec.ts +2 -2
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/validation-rule/validation-rule.spec.ts +2 -1
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +0 -2
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +2 -1
- package/test/time-slicing/runner.spec.ts +28 -0
- package/test/time-slicing/time-slicing-nodejs.spec.ts +27 -0
- package/test/time-slicing/utils.ts +7 -0
- package/test/time-slicing/wrapper.spec.ts +92 -0
- package/ts-worker/lib/tsserver.js +10 -1
- package/ts-worker/package.json +1 -0
- package/ts-worker/src/index.js +13 -12
- package/ts-worker/webpack.config.js +1 -1
- package/.nyc_output/f2d14ce8-876a-4dc0-9aaf-e51d08d081ca.json +0 -1
- package/.nyc_output/processinfo/f2d14ce8-876a-4dc0-9aaf-e51d08d081ca.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -446
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/automate/engine/index.html +0 -116
- package/coverage/src/automate/engine/utils.js.html +0 -1414
- package/coverage/src/bak/index.html +0 -116
- package/coverage/src/bak/translator.js.html +0 -619
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +0 -175
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +0 -169
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +0 -1243
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +0 -145
- package/coverage/src/breakpoint/generator/index.html +0 -176
- package/coverage/src/breakpoint/generator/index.ts.html +0 -508
- package/coverage/src/breakpoint/index.html +0 -116
- package/coverage/src/breakpoint/index.ts.html +0 -94
- package/coverage/src/breakpoint/shared/constants.ts.html +0 -430
- package/coverage/src/breakpoint/shared/index.html +0 -176
- package/coverage/src/breakpoint/shared/index.ts.html +0 -94
- package/coverage/src/breakpoint/shared/operations.ts.html +0 -160
- package/coverage/src/breakpoint/shared/socket.ts.html +0 -1225
- package/coverage/src/breakpoint/shared/utils.ts.html +0 -961
- package/coverage/src/breakpoint/store/core.ts.html +0 -1600
- package/coverage/src/breakpoint/store/dock.ts.html +0 -583
- package/coverage/src/breakpoint/store/index.html +0 -146
- package/coverage/src/breakpoint/store/index.ts.html +0 -91
- package/coverage/src/common/BaseNode.ts.html +0 -3868
- package/coverage/src/common/Command.ts.html +0 -310
- package/coverage/src/common/EventEmitter.ts.html +0 -370
- package/coverage/src/common/Messager.ts.html +0 -820
- package/coverage/src/common/asyncFuncMap.ts.html +0 -127
- package/coverage/src/common/index.html +0 -191
- package/coverage/src/common/index.ts.html +0 -94
- package/coverage/src/concepts/Abort__.ts.html +0 -328
- package/coverage/src/concepts/Anchor__.ts.html +0 -604
- package/coverage/src/concepts/AnonymousFunction__.ts.html +0 -1951
- package/coverage/src/concepts/App__.ts.html +0 -13252
- package/coverage/src/concepts/Argument__.ts.html +0 -910
- package/coverage/src/concepts/Assignee__.ts.html +0 -2236
- package/coverage/src/concepts/AssignmentLine__.ts.html +0 -409
- package/coverage/src/concepts/Assignment__.ts.html +0 -1078
- package/coverage/src/concepts/Attribute__.ts.html +0 -733
- package/coverage/src/concepts/AuthInterface__.ts.html +0 -367
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +0 -1984
- package/coverage/src/concepts/AuthLogic__.ts.html +0 -781
- package/coverage/src/concepts/BackendVariable__.ts.html +0 -1483
- package/coverage/src/concepts/Backend__.ts.html +0 -1165
- package/coverage/src/concepts/BatchAssignment__.ts.html +0 -3250
- package/coverage/src/concepts/BinaryExpression__.ts.html +0 -1336
- package/coverage/src/concepts/BindAttribute__.ts.html +0 -3679
- package/coverage/src/concepts/BindDirective__.ts.html +0 -1921
- package/coverage/src/concepts/BindEvent__.ts.html +0 -3232
- package/coverage/src/concepts/BindStyle__.ts.html +0 -1612
- package/coverage/src/concepts/BooleanLiteral__.ts.html +0 -403
- package/coverage/src/concepts/CallAuthInterface__.ts.html +0 -1615
- package/coverage/src/concepts/CallConnector__.ts.html +0 -868
- package/coverage/src/concepts/CallFunction__.ts.html +0 -1966
- package/coverage/src/concepts/CallInterface__.ts.html +0 -2614
- package/coverage/src/concepts/CallLogic__.ts.html +0 -4420
- package/coverage/src/concepts/CallQueryComponent__.ts.html +0 -5308
- package/coverage/src/concepts/Comment__.ts.html +0 -376
- package/coverage/src/concepts/CompletionProperty__.ts.html +0 -925
- package/coverage/src/concepts/ConfigGroup__.ts.html +0 -1105
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +0 -424
- package/coverage/src/concepts/ConfigProperty__.ts.html +0 -1348
- package/coverage/src/concepts/Configuration__.ts.html +0 -1027
- package/coverage/src/concepts/Connection__.ts.html +0 -1360
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +0 -595
- package/coverage/src/concepts/Connector__.ts.html +0 -4255
- package/coverage/src/concepts/Constant__.ts.html +0 -913
- package/coverage/src/concepts/DataSource__.ts.html +0 -1771
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +0 -331
- package/coverage/src/concepts/Destination__.ts.html +0 -2563
- package/coverage/src/concepts/End__.ts.html +0 -433
- package/coverage/src/concepts/EntityIndex__.ts.html +0 -787
- package/coverage/src/concepts/EntityProperty__.ts.html +0 -2620
- package/coverage/src/concepts/Entity__.ts.html +0 -2872
- package/coverage/src/concepts/EnumItem__.ts.html +0 -535
- package/coverage/src/concepts/Enum__.ts.html +0 -1192
- package/coverage/src/concepts/Event__.ts.html +0 -1084
- package/coverage/src/concepts/ExternalDestination__.ts.html +0 -1033
- package/coverage/src/concepts/ForEachStatement__.ts.html +0 -1819
- package/coverage/src/concepts/FrontendLibrary__.ts.html +0 -1711
- package/coverage/src/concepts/FrontendVariable__.ts.html +0 -292
- package/coverage/src/concepts/Frontend__.ts.html +0 -3961
- package/coverage/src/concepts/Function__.ts.html +0 -3514
- package/coverage/src/concepts/Identifier__.ts.html +0 -1057
- package/coverage/src/concepts/IfStatement__.ts.html +0 -1486
- package/coverage/src/concepts/Integration__.ts.html +0 -1228
- package/coverage/src/concepts/InterfaceParam__.ts.html +0 -1087
- package/coverage/src/concepts/Interface__.ts.html +0 -3394
- package/coverage/src/concepts/JSBlock__.ts.html +0 -406
- package/coverage/src/concepts/JavaLogic__.ts.html +0 -460
- package/coverage/src/concepts/LogicItem__.ts.html +0 -1144
- package/coverage/src/concepts/Logic__.ts.html +0 -7078
- package/coverage/src/concepts/MatchCase__.ts.html +0 -2641
- package/coverage/src/concepts/Match__.ts.html +0 -2323
- package/coverage/src/concepts/MemberExpression__.ts.html +0 -1666
- package/coverage/src/concepts/MicroApp__.ts.html +0 -436
- package/coverage/src/concepts/Module__.ts.html +0 -9220
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +0 -1045
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +0 -1018
- package/coverage/src/concepts/Namespace__.ts.html +0 -7942
- package/coverage/src/concepts/NewComposite__.ts.html +0 -4684
- package/coverage/src/concepts/NewList__.ts.html +0 -1567
- package/coverage/src/concepts/NewMap__.ts.html +0 -2275
- package/coverage/src/concepts/New__.ts.html +0 -289
- package/coverage/src/concepts/NullLiteral__.ts.html +0 -349
- package/coverage/src/concepts/NumericLiteral__.ts.html +0 -661
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +0 -1123
- package/coverage/src/concepts/OverriddenLogic__.ts.html +0 -6817
- package/coverage/src/concepts/Param__.ts.html +0 -1609
- package/coverage/src/concepts/Point__.ts.html +0 -331
- package/coverage/src/concepts/ProcessComponent__.ts.html +0 -1666
- package/coverage/src/concepts/ProcessElement__.ts.html +0 -5884
- package/coverage/src/concepts/ProcessOutcome__.ts.html +0 -352
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +0 -343
- package/coverage/src/concepts/Process__.ts.html +0 -4768
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +0 -568
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +0 -583
- package/coverage/src/concepts/QueryFromExpression__.ts.html +0 -910
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +0 -559
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +0 -1567
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +0 -637
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +0 -679
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +0 -1714
- package/coverage/src/concepts/Rect__.ts.html +0 -373
- package/coverage/src/concepts/Return__.ts.html +0 -1258
- package/coverage/src/concepts/Role__.ts.html +0 -601
- package/coverage/src/concepts/SelectMembers__.ts.html +0 -1246
- package/coverage/src/concepts/Slot__.ts.html +0 -628
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +0 -964
- package/coverage/src/concepts/Start__.ts.html +0 -304
- package/coverage/src/concepts/StringInterpolation__.ts.html +0 -1078
- package/coverage/src/concepts/StringLiteral__.ts.html +0 -490
- package/coverage/src/concepts/StructureProperty__.ts.html +0 -1102
- package/coverage/src/concepts/Structure__.ts.html +0 -2053
- package/coverage/src/concepts/SwitchCase__.ts.html +0 -1063
- package/coverage/src/concepts/SwitchStatement__.ts.html +0 -826
- package/coverage/src/concepts/Theme__.ts.html +0 -358
- package/coverage/src/concepts/Transactional__.ts.html +0 -628
- package/coverage/src/concepts/TriggerEvent__.ts.html +0 -1012
- package/coverage/src/concepts/TriggerLauncher__.ts.html +0 -775
- package/coverage/src/concepts/TypeAnnotation__.ts.html +0 -3583
- package/coverage/src/concepts/TypeParam__.ts.html +0 -301
- package/coverage/src/concepts/UnaryExpression__.ts.html +0 -640
- package/coverage/src/concepts/Unparsed__.ts.html +0 -382
- package/coverage/src/concepts/UseComponent__.ts.html +0 -331
- package/coverage/src/concepts/ValidationRule__.ts.html +0 -1840
- package/coverage/src/concepts/Variable__.ts.html +0 -1435
- package/coverage/src/concepts/ViewBlock__.ts.html +0 -352
- package/coverage/src/concepts/ViewComponent__.ts.html +0 -4180
- package/coverage/src/concepts/ViewElement__.ts.html +0 -8557
- package/coverage/src/concepts/View__.ts.html +0 -8278
- package/coverage/src/concepts/WhileStatement__.ts.html +0 -991
- package/coverage/src/concepts/basics/stdlib/index.html +0 -341
- package/coverage/src/concepts/basics/stdlib/index.ts.html +0 -208
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +0 -565
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +0 -517
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +0 -226
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +0 -172
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +0 -214
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +0 -145
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +0 -589
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +0 -214
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +0 -229
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +0 -268
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +0 -1999
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +0 -3259
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +0 -6787
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +0 -1768
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +0 -163
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +0 -121
- package/coverage/src/concepts/basics/types/index.html +0 -131
- package/coverage/src/concepts/basics/types/index.ts.html +0 -160
- package/coverage/src/concepts/index.html +0 -1961
- package/coverage/src/concepts/index.ts.html +0 -103
- package/coverage/src/concepts/index__.ts.html +0 -451
- package/coverage/src/config.ts.html +0 -325
- package/coverage/src/decorators/index.html +0 -131
- package/coverage/src/decorators/index.ts.html +0 -574
- package/coverage/src/decorators/promise.ts.html +0 -169
- package/coverage/src/eventBus.ts.html +0 -100
- package/coverage/src/generator/compileComponent.ts.html +0 -142
- package/coverage/src/generator/genBundleFiles.ts.html +0 -1828
- package/coverage/src/generator/genHash.ts.html +0 -124
- package/coverage/src/generator/genMetaData.ts.html +0 -1042
- package/coverage/src/generator/genReleaseBody.ts.html +0 -1282
- package/coverage/src/generator/icestark.ts.html +0 -220
- package/coverage/src/generator/index.html +0 -266
- package/coverage/src/generator/index.ts.html +0 -106
- package/coverage/src/generator/microApp.ts.html +0 -172
- package/coverage/src/generator/permission.ts.html +0 -1036
- package/coverage/src/generator/qiankun.ts.html +0 -232
- package/coverage/src/generator/styleReplacer.ts.html +0 -199
- package/coverage/src/index.html +0 -146
- package/coverage/src/index.ts.html +0 -121
- package/coverage/src/manager/diagnostic.ts.html +0 -442
- package/coverage/src/manager/index.html +0 -131
- package/coverage/src/manager/stepRecorder.ts.html +0 -457
- package/coverage/src/sentry/index.html +0 -116
- package/coverage/src/sentry/index.ts.html +0 -676
- package/coverage/src/server/createUiTs.ts.html +0 -919
- package/coverage/src/server/entity2LogicNamespace.ts.html +0 -1294
- package/coverage/src/server/event.js.html +0 -526
- package/coverage/src/server/extendBaseNode.ts.html +0 -1762
- package/coverage/src/server/formatTsUtils.ts.html +0 -2689
- package/coverage/src/server/getConnector.ts.html +0 -316
- package/coverage/src/server/getExtensionModules.ts.html +0 -178
- package/coverage/src/server/getFunctions.ts.html +0 -133
- package/coverage/src/server/getInterfaces.ts.html +0 -229
- package/coverage/src/server/getLogging.ts.html +0 -100
- package/coverage/src/server/getLogics.ts.html +0 -1363
- package/coverage/src/server/getMemberIdentifier.ts.html +0 -1606
- package/coverage/src/server/getProcessComponents.ts.html +0 -112
- package/coverage/src/server/getProcesses.ts.html +0 -2023
- package/coverage/src/server/getValidates.ts.html +0 -115
- package/coverage/src/server/index.html +0 -401
- package/coverage/src/server/index.ts.html +0 -229
- package/coverage/src/server/naslServer.ts.html +0 -14290
- package/coverage/src/server/naslStdlibMap.ts.html +0 -241
- package/coverage/src/server/process2LogicNamespace.ts.html +0 -454
- package/coverage/src/server/translator.ts.html +0 -2566
- package/coverage/src/service/creator/add.configs.js.html +0 -379
- package/coverage/src/service/creator/errHandles.js.html +0 -322
- package/coverage/src/service/creator/index.html +0 -146
- package/coverage/src/service/creator/index.js.html +0 -352
- package/coverage/src/service/datasource/api.js.html +0 -118
- package/coverage/src/service/datasource/index.html +0 -131
- package/coverage/src/service/datasource/index.js.html +0 -103
- package/coverage/src/service/logic/api.js.html +0 -109
- package/coverage/src/service/logic/index.html +0 -131
- package/coverage/src/service/logic/index.js.html +0 -103
- package/coverage/src/service/storage/api.js.html +0 -202
- package/coverage/src/service/storage/index.html +0 -206
- package/coverage/src/service/storage/index.ts.html +0 -103
- package/coverage/src/service/storage/init.ts.html +0 -2710
- package/coverage/src/service/storage/jsoner.ts.html +0 -502
- package/coverage/src/service/storage/map.ts.html +0 -256
- package/coverage/src/service/storage/service.ts.html +0 -331
- package/coverage/src/service/storage/storagePoint.ts.html +0 -304
- package/coverage/src/templator/genCallComponentLogic.ts.html +0 -163
- package/coverage/src/templator/genCreateBlock.ts.html +0 -1093
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +0 -1609
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +0 -2254
- package/coverage/src/templator/genEditTableBlock.ts.html +0 -955
- package/coverage/src/templator/genEnumSelectBlock.ts.html +0 -178
- package/coverage/src/templator/genGetBlock.ts.html +0 -451
- package/coverage/src/templator/genGridViewBlock.ts.html +0 -1114
- package/coverage/src/templator/genListViewBlock.ts.html +0 -475
- package/coverage/src/templator/genQueryComponent.ts.html +0 -1207
- package/coverage/src/templator/genSelectBlock.ts.html +0 -1243
- package/coverage/src/templator/genTableBlock.ts.html +0 -910
- package/coverage/src/templator/genUpdateBlock.ts.html +0 -1192
- package/coverage/src/templator/index.html +0 -326
- package/coverage/src/templator/index.ts.html +0 -154
- package/coverage/src/templator/utils.ts.html +0 -1861
- package/coverage/src/translator/constant.ts.html +0 -106
- package/coverage/src/translator/index.html +0 -146
- package/coverage/src/translator/index.ts.html +0 -94
- package/coverage/src/translator/utils.ts.html +0 -397
- package/coverage/src/utils/cookie.ts.html +0 -265
- package/coverage/src/utils/env.ts.html +0 -91
- package/coverage/src/utils/index.html +0 -236
- package/coverage/src/utils/index.ts.html +0 -655
- package/coverage/src/utils/logger.ts.html +0 -145
- package/coverage/src/utils/sortTsString.ts.html +0 -187
- package/coverage/src/utils/string.ts.html +0 -400
- package/coverage/src/utils/time-slicing.ts.html +0 -412
- package/coverage/src/utils/traverse.ts.html +0 -568
- package/coverage/src/utils/window.ts.html +0 -112
- package/out/utils/time-slicing.d.ts +0 -41
- package/out/utils/time-slicing.js +0 -82
- package/out/utils/time-slicing.js.map +0 -1
- package/src/utils/time-slicing.ts +0 -111
package/src/concepts/App__.ts
CHANGED
|
@@ -2883,7 +2883,7 @@ export class App extends BaseNode {
|
|
|
2883
2883
|
const excludedSet = new Set(excludedList);
|
|
2884
2884
|
return ((this.metadataTypes as MetadataType[]) || [])
|
|
2885
2885
|
.filter((item) => !excludedSet.has(item))
|
|
2886
|
-
.map((item) => item
|
|
2886
|
+
.map((item) => item?.name);
|
|
2887
2887
|
}
|
|
2888
2888
|
getMetadataTypeUniqueName(name = 'MetadataType1') {
|
|
2889
2889
|
return utils.unique(name, this.getMetadataTypeExistingNames(), undefined, true);
|
|
@@ -3075,12 +3075,16 @@ export class App extends BaseNode {
|
|
|
3075
3075
|
// @ts-ignore
|
|
3076
3076
|
const n = dataSource.__v_raw || dataSource;
|
|
3077
3077
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3078
|
-
|
|
3078
|
+
// @ts-ignore
|
|
3079
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3079
3080
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3080
3081
|
params.index = index;
|
|
3081
|
-
} else
|
|
3082
|
-
|
|
3083
|
-
(
|
|
3082
|
+
} else {
|
|
3083
|
+
const q = (t as any)[parentKey];
|
|
3084
|
+
if ((q.__v_raw || q) === n) {
|
|
3085
|
+
params.index = 0;
|
|
3086
|
+
(this as any)[parentKey] = undefined;
|
|
3087
|
+
}
|
|
3084
3088
|
}
|
|
3085
3089
|
}
|
|
3086
3090
|
return params;
|
|
@@ -3127,12 +3131,16 @@ export class App extends BaseNode {
|
|
|
3127
3131
|
// @ts-ignore
|
|
3128
3132
|
const n = structure.__v_raw || structure;
|
|
3129
3133
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3130
|
-
|
|
3134
|
+
// @ts-ignore
|
|
3135
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3131
3136
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3132
3137
|
params.index = index;
|
|
3133
|
-
} else
|
|
3134
|
-
|
|
3135
|
-
(
|
|
3138
|
+
} else {
|
|
3139
|
+
const q = (t as any)[parentKey];
|
|
3140
|
+
if ((q.__v_raw || q) === n) {
|
|
3141
|
+
params.index = 0;
|
|
3142
|
+
(this as any)[parentKey] = undefined;
|
|
3143
|
+
}
|
|
3136
3144
|
}
|
|
3137
3145
|
}
|
|
3138
3146
|
return params;
|
|
@@ -3179,12 +3187,16 @@ export class App extends BaseNode {
|
|
|
3179
3187
|
// @ts-ignore
|
|
3180
3188
|
const n = enumeration.__v_raw || enumeration;
|
|
3181
3189
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3182
|
-
|
|
3190
|
+
// @ts-ignore
|
|
3191
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3183
3192
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3184
3193
|
params.index = index;
|
|
3185
|
-
} else
|
|
3186
|
-
|
|
3187
|
-
(
|
|
3194
|
+
} else {
|
|
3195
|
+
const q = (t as any)[parentKey];
|
|
3196
|
+
if ((q.__v_raw || q) === n) {
|
|
3197
|
+
params.index = 0;
|
|
3198
|
+
(this as any)[parentKey] = undefined;
|
|
3199
|
+
}
|
|
3188
3200
|
}
|
|
3189
3201
|
}
|
|
3190
3202
|
return params;
|
|
@@ -3256,12 +3268,16 @@ export class App extends BaseNode {
|
|
|
3256
3268
|
// @ts-ignore
|
|
3257
3269
|
const n = logic.__v_raw || logic;
|
|
3258
3270
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3259
|
-
|
|
3271
|
+
// @ts-ignore
|
|
3272
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3260
3273
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3261
3274
|
params.index = index;
|
|
3262
|
-
} else
|
|
3263
|
-
|
|
3264
|
-
(
|
|
3275
|
+
} else {
|
|
3276
|
+
const q = (t as any)[parentKey];
|
|
3277
|
+
if ((q.__v_raw || q) === n) {
|
|
3278
|
+
params.index = 0;
|
|
3279
|
+
(this as any)[parentKey] = undefined;
|
|
3280
|
+
}
|
|
3265
3281
|
}
|
|
3266
3282
|
}
|
|
3267
3283
|
return params;
|
|
@@ -3308,12 +3324,16 @@ export class App extends BaseNode {
|
|
|
3308
3324
|
// @ts-ignore
|
|
3309
3325
|
const n = overriddenLogic.__v_raw || overriddenLogic;
|
|
3310
3326
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3311
|
-
|
|
3327
|
+
// @ts-ignore
|
|
3328
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3312
3329
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3313
3330
|
params.index = index;
|
|
3314
|
-
} else
|
|
3315
|
-
|
|
3316
|
-
(
|
|
3331
|
+
} else {
|
|
3332
|
+
const q = (t as any)[parentKey];
|
|
3333
|
+
if ((q.__v_raw || q) === n) {
|
|
3334
|
+
params.index = 0;
|
|
3335
|
+
(this as any)[parentKey] = undefined;
|
|
3336
|
+
}
|
|
3317
3337
|
}
|
|
3318
3338
|
}
|
|
3319
3339
|
return params;
|
|
@@ -3385,12 +3405,16 @@ export class App extends BaseNode {
|
|
|
3385
3405
|
// @ts-ignore
|
|
3386
3406
|
const n = itface.__v_raw || itface;
|
|
3387
3407
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3388
|
-
|
|
3408
|
+
// @ts-ignore
|
|
3409
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3389
3410
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3390
3411
|
params.index = index;
|
|
3391
|
-
} else
|
|
3392
|
-
|
|
3393
|
-
(
|
|
3412
|
+
} else {
|
|
3413
|
+
const q = (t as any)[parentKey];
|
|
3414
|
+
if ((q.__v_raw || q) === n) {
|
|
3415
|
+
params.index = 0;
|
|
3416
|
+
(this as any)[parentKey] = undefined;
|
|
3417
|
+
}
|
|
3394
3418
|
}
|
|
3395
3419
|
}
|
|
3396
3420
|
return params;
|
|
@@ -3437,12 +3461,16 @@ export class App extends BaseNode {
|
|
|
3437
3461
|
// @ts-ignore
|
|
3438
3462
|
const n = frontend.__v_raw || frontend;
|
|
3439
3463
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3440
|
-
|
|
3464
|
+
// @ts-ignore
|
|
3465
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3441
3466
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3442
3467
|
params.index = index;
|
|
3443
|
-
} else
|
|
3444
|
-
|
|
3445
|
-
(
|
|
3468
|
+
} else {
|
|
3469
|
+
const q = (t as any)[parentKey];
|
|
3470
|
+
if ((q.__v_raw || q) === n) {
|
|
3471
|
+
params.index = 0;
|
|
3472
|
+
(this as any)[parentKey] = undefined;
|
|
3473
|
+
}
|
|
3446
3474
|
}
|
|
3447
3475
|
}
|
|
3448
3476
|
return params;
|
|
@@ -3489,12 +3517,16 @@ export class App extends BaseNode {
|
|
|
3489
3517
|
// @ts-ignore
|
|
3490
3518
|
const n = backend.__v_raw || backend;
|
|
3491
3519
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3492
|
-
|
|
3520
|
+
// @ts-ignore
|
|
3521
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3493
3522
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3494
3523
|
params.index = index;
|
|
3495
|
-
} else
|
|
3496
|
-
|
|
3497
|
-
(
|
|
3524
|
+
} else {
|
|
3525
|
+
const q = (t as any)[parentKey];
|
|
3526
|
+
if ((q.__v_raw || q) === n) {
|
|
3527
|
+
params.index = 0;
|
|
3528
|
+
(this as any)[parentKey] = undefined;
|
|
3529
|
+
}
|
|
3498
3530
|
}
|
|
3499
3531
|
}
|
|
3500
3532
|
return params;
|
|
@@ -3541,12 +3573,16 @@ export class App extends BaseNode {
|
|
|
3541
3573
|
// @ts-ignore
|
|
3542
3574
|
const n = process.__v_raw || process;
|
|
3543
3575
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3544
|
-
|
|
3576
|
+
// @ts-ignore
|
|
3577
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3545
3578
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3546
3579
|
params.index = index;
|
|
3547
|
-
} else
|
|
3548
|
-
|
|
3549
|
-
(
|
|
3580
|
+
} else {
|
|
3581
|
+
const q = (t as any)[parentKey];
|
|
3582
|
+
if ((q.__v_raw || q) === n) {
|
|
3583
|
+
params.index = 0;
|
|
3584
|
+
(this as any)[parentKey] = undefined;
|
|
3585
|
+
}
|
|
3550
3586
|
}
|
|
3551
3587
|
}
|
|
3552
3588
|
return params;
|
|
@@ -3593,12 +3629,16 @@ export class App extends BaseNode {
|
|
|
3593
3629
|
// @ts-ignore
|
|
3594
3630
|
const n = role.__v_raw || role;
|
|
3595
3631
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3596
|
-
|
|
3632
|
+
// @ts-ignore
|
|
3633
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3597
3634
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3598
3635
|
params.index = index;
|
|
3599
|
-
} else
|
|
3600
|
-
|
|
3601
|
-
(
|
|
3636
|
+
} else {
|
|
3637
|
+
const q = (t as any)[parentKey];
|
|
3638
|
+
if ((q.__v_raw || q) === n) {
|
|
3639
|
+
params.index = 0;
|
|
3640
|
+
(this as any)[parentKey] = undefined;
|
|
3641
|
+
}
|
|
3602
3642
|
}
|
|
3603
3643
|
}
|
|
3604
3644
|
return params;
|
|
@@ -3645,12 +3685,16 @@ export class App extends BaseNode {
|
|
|
3645
3685
|
// @ts-ignore
|
|
3646
3686
|
const n = configuration.__v_raw || configuration;
|
|
3647
3687
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3648
|
-
|
|
3688
|
+
// @ts-ignore
|
|
3689
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3649
3690
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3650
3691
|
params.index = index;
|
|
3651
|
-
} else
|
|
3652
|
-
|
|
3653
|
-
(
|
|
3692
|
+
} else {
|
|
3693
|
+
const q = (t as any)[parentKey];
|
|
3694
|
+
if ((q.__v_raw || q) === n) {
|
|
3695
|
+
params.index = 0;
|
|
3696
|
+
(this as any)[parentKey] = undefined;
|
|
3697
|
+
}
|
|
3654
3698
|
}
|
|
3655
3699
|
}
|
|
3656
3700
|
return params;
|
|
@@ -3747,12 +3791,16 @@ export class App extends BaseNode {
|
|
|
3747
3791
|
// @ts-ignore
|
|
3748
3792
|
const n = module.__v_raw || module;
|
|
3749
3793
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3750
|
-
|
|
3794
|
+
// @ts-ignore
|
|
3795
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3751
3796
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3752
3797
|
params.index = index;
|
|
3753
|
-
} else
|
|
3754
|
-
|
|
3755
|
-
(
|
|
3798
|
+
} else {
|
|
3799
|
+
const q = (t as any)[parentKey];
|
|
3800
|
+
if ((q.__v_raw || q) === n) {
|
|
3801
|
+
params.index = 0;
|
|
3802
|
+
(this as any)[parentKey] = undefined;
|
|
3803
|
+
}
|
|
3756
3804
|
}
|
|
3757
3805
|
}
|
|
3758
3806
|
return params;
|
|
@@ -3799,12 +3847,16 @@ export class App extends BaseNode {
|
|
|
3799
3847
|
// @ts-ignore
|
|
3800
3848
|
const n = integration.__v_raw || integration;
|
|
3801
3849
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3802
|
-
|
|
3850
|
+
// @ts-ignore
|
|
3851
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3803
3852
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3804
3853
|
params.index = index;
|
|
3805
|
-
} else
|
|
3806
|
-
|
|
3807
|
-
(
|
|
3854
|
+
} else {
|
|
3855
|
+
const q = (t as any)[parentKey];
|
|
3856
|
+
if ((q.__v_raw || q) === n) {
|
|
3857
|
+
params.index = 0;
|
|
3858
|
+
(this as any)[parentKey] = undefined;
|
|
3859
|
+
}
|
|
3808
3860
|
}
|
|
3809
3861
|
}
|
|
3810
3862
|
return params;
|
|
@@ -3853,12 +3905,16 @@ export class App extends BaseNode {
|
|
|
3853
3905
|
// @ts-ignore
|
|
3854
3906
|
const n = authLogic.__v_raw || authLogic;
|
|
3855
3907
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3856
|
-
|
|
3908
|
+
// @ts-ignore
|
|
3909
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3857
3910
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3858
3911
|
params.index = index;
|
|
3859
|
-
} else
|
|
3860
|
-
|
|
3861
|
-
(
|
|
3912
|
+
} else {
|
|
3913
|
+
const q = (t as any)[parentKey];
|
|
3914
|
+
if ((q.__v_raw || q) === n) {
|
|
3915
|
+
params.index = 0;
|
|
3916
|
+
(this as any)[parentKey] = undefined;
|
|
3917
|
+
}
|
|
3862
3918
|
}
|
|
3863
3919
|
}
|
|
3864
3920
|
return params;
|
|
@@ -3905,12 +3961,16 @@ export class App extends BaseNode {
|
|
|
3905
3961
|
// @ts-ignore
|
|
3906
3962
|
const n = connection.__v_raw || connection;
|
|
3907
3963
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3908
|
-
|
|
3964
|
+
// @ts-ignore
|
|
3965
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3909
3966
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3910
3967
|
params.index = index;
|
|
3911
|
-
} else
|
|
3912
|
-
|
|
3913
|
-
(
|
|
3968
|
+
} else {
|
|
3969
|
+
const q = (t as any)[parentKey];
|
|
3970
|
+
if ((q.__v_raw || q) === n) {
|
|
3971
|
+
params.index = 0;
|
|
3972
|
+
(this as any)[parentKey] = undefined;
|
|
3973
|
+
}
|
|
3914
3974
|
}
|
|
3915
3975
|
}
|
|
3916
3976
|
return params;
|
|
@@ -3957,12 +4017,16 @@ export class App extends BaseNode {
|
|
|
3957
4017
|
// @ts-ignore
|
|
3958
4018
|
const n = triggerLauncher.__v_raw || triggerLauncher;
|
|
3959
4019
|
if (Array.isArray((t as any)[parentKey])) {
|
|
3960
|
-
|
|
4020
|
+
// @ts-ignore
|
|
4021
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
3961
4022
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
3962
4023
|
params.index = index;
|
|
3963
|
-
} else
|
|
3964
|
-
|
|
3965
|
-
(
|
|
4024
|
+
} else {
|
|
4025
|
+
const q = (t as any)[parentKey];
|
|
4026
|
+
if ((q.__v_raw || q) === n) {
|
|
4027
|
+
params.index = 0;
|
|
4028
|
+
(this as any)[parentKey] = undefined;
|
|
4029
|
+
}
|
|
3966
4030
|
}
|
|
3967
4031
|
}
|
|
3968
4032
|
return params;
|
|
@@ -4009,12 +4073,16 @@ export class App extends BaseNode {
|
|
|
4009
4073
|
// @ts-ignore
|
|
4010
4074
|
const n = metadataType.__v_raw || metadataType;
|
|
4011
4075
|
if (Array.isArray((t as any)[parentKey])) {
|
|
4012
|
-
|
|
4076
|
+
// @ts-ignore
|
|
4077
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
4013
4078
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
4014
4079
|
params.index = index;
|
|
4015
|
-
} else
|
|
4016
|
-
|
|
4017
|
-
(
|
|
4080
|
+
} else {
|
|
4081
|
+
const q = (t as any)[parentKey];
|
|
4082
|
+
if ((q.__v_raw || q) === n) {
|
|
4083
|
+
params.index = 0;
|
|
4084
|
+
(this as any)[parentKey] = undefined;
|
|
4085
|
+
}
|
|
4018
4086
|
}
|
|
4019
4087
|
}
|
|
4020
4088
|
return params;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { runGeneratorSync as runSync } from '../utils/time-slicing';
|
|
2
|
+
import {
|
|
3
|
+
TranslatorState,
|
|
4
|
+
shiftState,
|
|
5
|
+
withSourceMap,
|
|
6
|
+
createCompilerState,
|
|
7
|
+
withSourceMapGenerator,
|
|
8
|
+
withGenerator,
|
|
9
|
+
TranslatorGenerator,
|
|
10
|
+
} from '../translator';
|
|
2
11
|
import { ElementToVueOptions } from './ViewElement__';
|
|
3
12
|
import StringLiteral from './StringLiteral__';
|
|
4
13
|
import TypeAnnotation from './TypeAnnotation__';
|
|
@@ -128,9 +137,12 @@ export class Argument extends LogicItem {
|
|
|
128
137
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
129
138
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
130
139
|
params.index = index;
|
|
131
|
-
} else
|
|
132
|
-
|
|
133
|
-
(
|
|
140
|
+
} else {
|
|
141
|
+
const q = (t as any)[parentKey];
|
|
142
|
+
if ((q.__v_raw || q) === n) {
|
|
143
|
+
params.index = 0;
|
|
144
|
+
(this as any)[parentKey] = undefined;
|
|
145
|
+
}
|
|
134
146
|
}
|
|
135
147
|
}
|
|
136
148
|
return params;
|
|
@@ -206,7 +218,7 @@ export class Argument extends LogicItem {
|
|
|
206
218
|
let resultCode = this.expression.toJS(shiftState(state, code));
|
|
207
219
|
let { typeName, typeNamespace } = (this.expression as any)?.__nodeType || {};
|
|
208
220
|
if (['Long', 'Decimal'].includes(typeName) && typeNamespace === 'nasl.core') {
|
|
209
|
-
resultCode = `(${resultCode} === undefined || ${resultCode} === null) ? ${resultCode} :String(${resultCode})`;
|
|
221
|
+
resultCode = `(${resultCode} === undefined || ${resultCode} === null || this.$global.isEqual(${resultCode}, undefined)) ? ${resultCode} :String(${resultCode})`;
|
|
210
222
|
}
|
|
211
223
|
code += resultCode;
|
|
212
224
|
} else if (this.paramTypeAnnotation && this.paramDefaultValue) {
|
|
@@ -246,17 +258,22 @@ export class Argument extends LogicItem {
|
|
|
246
258
|
return '';
|
|
247
259
|
}
|
|
248
260
|
|
|
249
|
-
@
|
|
250
|
-
toEmbeddedTS(
|
|
251
|
-
|
|
261
|
+
@withSourceMapGenerator
|
|
262
|
+
*toEmbeddedTS(
|
|
263
|
+
state = createCompilerState(),
|
|
264
|
+
isRequired: boolean = true,
|
|
265
|
+
isHaveKeyWord?: boolean,
|
|
266
|
+
): TranslatorGenerator {
|
|
267
|
+
const self = this;
|
|
268
|
+
let code = self.spread ? '...' : '';
|
|
252
269
|
if (isHaveKeyWord) {
|
|
253
|
-
code += `${
|
|
270
|
+
code += `${self.tsKeyword}:`;
|
|
254
271
|
}
|
|
255
|
-
if (
|
|
256
|
-
if ((
|
|
257
|
-
code += (
|
|
272
|
+
if (self.expression) {
|
|
273
|
+
if ((self.expression as StringLiteral).name === 'ListDistinctByTargetDefaultExpression') {
|
|
274
|
+
code += yield* (self.expression as NewList).toEmbeddedIgnoreTS(shiftState(state, code));
|
|
258
275
|
} else {
|
|
259
|
-
code += (
|
|
276
|
+
code += yield* (self.expression as StringLiteral).toEmbeddedTS(shiftState(state, code), isRequired);
|
|
260
277
|
}
|
|
261
278
|
} else {
|
|
262
279
|
code += isRequired ? '__IDENTIFIER__' : 'undefined';
|
|
@@ -272,7 +289,7 @@ export class Argument extends LogicItem {
|
|
|
272
289
|
}
|
|
273
290
|
if (this.expression) {
|
|
274
291
|
if ((this.expression as StringLiteral).name === 'ListDistinctByTargetDefaultExpression') {
|
|
275
|
-
code += (this.expression as NewList).toEmbeddedIgnoreTS(shiftState(state, code));
|
|
292
|
+
code += runSync((this.expression as NewList).toEmbeddedIgnoreTS(shiftState(state, code)));
|
|
276
293
|
} else {
|
|
277
294
|
code += (this.expression as StringLiteral).toNaturalTS(shiftState(state, code), isRequired);
|
|
278
295
|
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { wrapForEachToGenerator as wrapForEach } from '../utils/time-slicing';
|
|
2
|
+
import {
|
|
3
|
+
TranslatorState,
|
|
4
|
+
shiftState,
|
|
5
|
+
withSourceMap,
|
|
6
|
+
indent,
|
|
7
|
+
createCompilerState,
|
|
8
|
+
withSourceMapGenerator,
|
|
9
|
+
withGenerator,
|
|
10
|
+
TranslatorGenerator,
|
|
11
|
+
} from '../translator';
|
|
2
12
|
import { ProcessElement, Process } from '..';
|
|
3
13
|
import Namespace from './Namespace__';
|
|
4
14
|
//================================================================================
|
|
@@ -76,7 +86,9 @@ export class Assignee extends LogicItem {
|
|
|
76
86
|
|
|
77
87
|
getLogicItemExistingNames(excludedList: Array<LogicItem> = []) {
|
|
78
88
|
const excludedSet = new Set(excludedList);
|
|
79
|
-
return ((this.dynamicUsers as LogicItem[]) || [])
|
|
89
|
+
return ((this.dynamicUsers as LogicItem[]) || [])
|
|
90
|
+
.filter((item) => !excludedSet.has(item))
|
|
91
|
+
.map((item) => item?.name);
|
|
80
92
|
}
|
|
81
93
|
getLogicItemUniqueName(name = 'logicItem1') {
|
|
82
94
|
return utils.unique(name, this.getLogicItemExistingNames(), undefined, false);
|
|
@@ -374,7 +386,7 @@ export class Assignee extends LogicItem {
|
|
|
374
386
|
|
|
375
387
|
getLogicExistingNames(excludedList: Array<Logic> = []) {
|
|
376
388
|
const excludedSet = new Set(excludedList);
|
|
377
|
-
return ((this.logicUsers as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
389
|
+
return ((this.logicUsers as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
378
390
|
}
|
|
379
391
|
getLogicUniqueName(name = 'logic1') {
|
|
380
392
|
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
@@ -591,12 +603,16 @@ export class Assignee extends LogicItem {
|
|
|
591
603
|
// @ts-ignore
|
|
592
604
|
const n = logicItem.__v_raw || logicItem;
|
|
593
605
|
if (Array.isArray((t as any)[parentKey])) {
|
|
594
|
-
|
|
606
|
+
// @ts-ignore
|
|
607
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
595
608
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
596
609
|
params.index = index;
|
|
597
|
-
} else
|
|
598
|
-
|
|
599
|
-
(
|
|
610
|
+
} else {
|
|
611
|
+
const q = (t as any)[parentKey];
|
|
612
|
+
if ((q.__v_raw || q) === n) {
|
|
613
|
+
params.index = 0;
|
|
614
|
+
(this as any)[parentKey] = undefined;
|
|
615
|
+
}
|
|
600
616
|
}
|
|
601
617
|
}
|
|
602
618
|
return params;
|
|
@@ -643,12 +659,16 @@ export class Assignee extends LogicItem {
|
|
|
643
659
|
// @ts-ignore
|
|
644
660
|
const n = logic.__v_raw || logic;
|
|
645
661
|
if (Array.isArray((t as any)[parentKey])) {
|
|
646
|
-
|
|
662
|
+
// @ts-ignore
|
|
663
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
647
664
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
648
665
|
params.index = index;
|
|
649
|
-
} else
|
|
650
|
-
|
|
651
|
-
(
|
|
666
|
+
} else {
|
|
667
|
+
const q = (t as any)[parentKey];
|
|
668
|
+
if ((q.__v_raw || q) === n) {
|
|
669
|
+
params.index = 0;
|
|
670
|
+
(this as any)[parentKey] = undefined;
|
|
671
|
+
}
|
|
652
672
|
}
|
|
653
673
|
}
|
|
654
674
|
return params;
|
|
@@ -685,18 +705,19 @@ export class Assignee extends LogicItem {
|
|
|
685
705
|
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
686
706
|
}
|
|
687
707
|
|
|
688
|
-
@
|
|
689
|
-
toEmbeddedTSInProcess(state
|
|
708
|
+
@withSourceMapGenerator
|
|
709
|
+
*toEmbeddedTSInProcess(state = createCompilerState(), prevCode: string): TranslatorGenerator {
|
|
710
|
+
const self = this;
|
|
690
711
|
const tab = indent(state?.tabSize || 0);
|
|
691
|
-
|
|
692
|
-
//
|
|
693
|
-
|
|
712
|
+
|
|
713
|
+
// 任务完成人拿不到自己任务下的输出参数,所以不需要__ProcessIdentification__标注
|
|
714
|
+
prevCode = prevCode.replace('__ProcessIdentification__', '');
|
|
694
715
|
let code = prevCode;
|
|
695
|
-
if (!
|
|
716
|
+
if (!self.users.length && !self.dynamicUsers.length && !self.logicUsers.length && !self.roles.length)
|
|
696
717
|
code += `${tab}__UsersEmpty__;\n`;
|
|
697
|
-
if (Array.isArray(
|
|
698
|
-
|
|
699
|
-
code += `${logic.toEmbeddedTSInProcess(
|
|
718
|
+
if (Array.isArray(self.logicUsers)) {
|
|
719
|
+
yield* wrapForEach(self.logicUsers, function* warpForEachGenerator(logic) {
|
|
720
|
+
code += `${yield* logic.toEmbeddedTSInProcess(
|
|
700
721
|
shiftState(state, code, { tabSize: state?.tabSize || 0 }),
|
|
701
722
|
prevCode,
|
|
702
723
|
false,
|
|
@@ -705,9 +726,9 @@ export class Assignee extends LogicItem {
|
|
|
705
726
|
});
|
|
706
727
|
}
|
|
707
728
|
code += `${tab}nasl.util.concatString(`;
|
|
708
|
-
|
|
709
|
-
code += u.toEmbeddedTS(shiftState(state, code));
|
|
710
|
-
if (index + 1 <
|
|
729
|
+
yield* wrapForEach(self.dynamicUsers, function* warpForEachGenerator(u, index) {
|
|
730
|
+
code += yield* u.toEmbeddedTS(shiftState(state, code));
|
|
731
|
+
if (index + 1 < self.dynamicUsers.length) code += ', ';
|
|
711
732
|
});
|
|
712
733
|
code += ')\n';
|
|
713
734
|
// code += `${this.dynamicUsers.map(u => u.toEmbeddedTS(shiftState(state, code))).join(',\n')})\n`;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { wrapForEachToGenerator as wrapForEach } from '../utils/time-slicing';
|
|
2
|
+
import {
|
|
3
|
+
TranslatorState,
|
|
4
|
+
shiftState,
|
|
5
|
+
withSourceMap,
|
|
6
|
+
createCompilerState,
|
|
7
|
+
withSourceMapGenerator,
|
|
8
|
+
withGenerator,
|
|
9
|
+
TranslatorGenerator,
|
|
10
|
+
} from '../translator';
|
|
2
11
|
//================================================================================
|
|
3
12
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
4
13
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
@@ -91,8 +100,9 @@ export class AssignmentLine extends BaseNode {
|
|
|
91
100
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
92
101
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
93
102
|
//================================================================================
|
|
94
|
-
@
|
|
95
|
-
toEmbeddedTS(state = createCompilerState()):
|
|
103
|
+
@withSourceMapGenerator
|
|
104
|
+
*toEmbeddedTS(state = createCompilerState()): TranslatorGenerator {
|
|
105
|
+
const self = this;
|
|
96
106
|
const code = '';
|
|
97
107
|
return code;
|
|
98
108
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { wrapForEachToGenerator as wrapForEach } from '../utils/time-slicing';
|
|
2
|
+
import {
|
|
3
|
+
TranslatorState,
|
|
4
|
+
shiftState,
|
|
5
|
+
withSourceMap,
|
|
6
|
+
createCompilerState,
|
|
7
|
+
withSourceMapGenerator,
|
|
8
|
+
withGenerator,
|
|
9
|
+
TranslatorGenerator,
|
|
10
|
+
} from '../translator';
|
|
2
11
|
import Identifier from './Identifier__';
|
|
3
12
|
import { ElementToVueOptions } from './ViewElement__';
|
|
4
13
|
import BatchAssignment from './BatchAssignment__';
|
|
@@ -168,9 +177,12 @@ export class Assignment extends LogicItem {
|
|
|
168
177
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
169
178
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
170
179
|
params.index = index;
|
|
171
|
-
} else
|
|
172
|
-
|
|
173
|
-
(
|
|
180
|
+
} else {
|
|
181
|
+
const q = (t as any)[parentKey];
|
|
182
|
+
if ((q.__v_raw || q) === n) {
|
|
183
|
+
params.index = 0;
|
|
184
|
+
(this as any)[parentKey] = undefined;
|
|
185
|
+
}
|
|
174
186
|
}
|
|
175
187
|
}
|
|
176
188
|
return params;
|
|
@@ -319,24 +331,24 @@ export class Assignment extends LogicItem {
|
|
|
319
331
|
return code;
|
|
320
332
|
}
|
|
321
333
|
|
|
322
|
-
@
|
|
323
|
-
toEmbeddedTS(state = createCompilerState()):
|
|
334
|
+
@withSourceMapGenerator
|
|
335
|
+
*toEmbeddedTS(state = createCompilerState()): TranslatorGenerator {
|
|
336
|
+
const self = this;
|
|
324
337
|
let code = 'nasl.core.assign(';
|
|
325
|
-
|
|
326
|
-
code += this.left ? this.left.toEmbeddedTS(shiftState(state, code, { inline: true })) : '__LEFT__';
|
|
338
|
+
code += self.left ? yield* self.left.toEmbeddedTS(shiftState(state, code, { inline: true })) : '__LEFT__';
|
|
327
339
|
code += ',';
|
|
328
340
|
// 因为右侧枚举要赋值就得new 一下;
|
|
329
341
|
if (
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
342
|
+
self.right &&
|
|
343
|
+
self.right instanceof Identifier &&
|
|
344
|
+
self.right.namespace &&
|
|
345
|
+
self.right.namespace.endsWith('enums')
|
|
334
346
|
) {
|
|
335
347
|
code += 'new ';
|
|
336
348
|
}
|
|
337
349
|
code +=
|
|
338
|
-
|
|
339
|
-
?
|
|
350
|
+
self.right && self.right.toEmbeddedTS
|
|
351
|
+
? yield* self.right.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
340
352
|
: '__RIGHT__';
|
|
341
353
|
code += ');';
|
|
342
354
|
return code;
|