@lcap/nasl 3.1.0-beta.4 → 3.1.0-beta.5
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/automate/engine/utils.js +4 -0
- package/out/automate/engine/utils.js.map +1 -1
- package/out/automate/upgrader/2.12.js +1 -5
- package/out/automate/upgrader/2.12.js.map +1 -1
- package/out/automate/upgrader/2.14.js +1 -5
- package/out/automate/upgrader/2.14.js.map +1 -1
- package/out/automate/upgrader/2.16.js +1 -5
- package/out/automate/upgrader/2.16.js.map +1 -1
- package/out/automate/upgrader/2.17.js +1 -5
- package/out/automate/upgrader/2.17.js.map +1 -1
- package/out/automate/upgrader/2.18.js +1 -5
- package/out/automate/upgrader/2.18.js.map +1 -1
- package/out/automate/upgrader/2.20.js +1 -5
- package/out/automate/upgrader/2.20.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.js +14 -4
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/index.js +1 -5
- package/out/breakpoint/index.js.map +1 -1
- package/out/breakpoint/shared/index.js +1 -5
- package/out/breakpoint/shared/index.js.map +1 -1
- package/out/breakpoint/shared/utils.js +1 -1
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/breakpoint/store/core.js +1 -5
- package/out/breakpoint/store/core.js.map +1 -1
- package/out/breakpoint/store/dock.js +1 -5
- package/out/breakpoint/store/dock.js.map +1 -1
- package/out/breakpoint/store/index.js +1 -5
- package/out/breakpoint/store/index.js.map +1 -1
- package/out/common/BaseNode.d.ts +1 -1
- package/out/common/BaseNode.js +17 -11
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/index.js +1 -5
- package/out/common/index.js.map +1 -1
- package/out/concepts/Anchor__.js +1 -5
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +9 -8
- package/out/concepts/AnonymousFunction__.js +14 -18
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +1 -5
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +2 -11
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.js +1 -5
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/Assignment__.js +1 -1
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +1 -5
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/Backend__.js +1 -5
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +3 -8
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +2 -15
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +1 -5
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js +1 -5
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -5
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +1 -5
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallFunction__.js +2 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +50 -62
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +4 -1
- package/out/concepts/CallLogic__.js +86 -123
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +1 -1
- package/out/concepts/CallQueryComponent__.js +1 -5
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +8 -1
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +1 -5
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +1 -5
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js +1 -5
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connector__.js +1 -5
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/DataSource__.js +1 -5
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.js +1 -5
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +1 -5
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +1 -5
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +1 -5
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +1 -5
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +1 -5
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +29 -29
- package/out/concepts/FrontendLibrary__.js +3 -7
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.js +1 -5
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +2 -6
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Interface__.js +1 -5
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +6 -6
- package/out/concepts/LogicItem__.js +6 -6
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +5 -24
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +1 -5
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Module__.js +1 -5
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.js +1 -5
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.js +1 -5
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +29 -29
- package/out/concepts/Namespace__.js +3 -7
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +0 -1
- package/out/concepts/NewComposite__.js +4 -72
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +0 -1
- package/out/concepts/NewList__.js +2 -22
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +1 -5
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +1 -5
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +1 -5
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +1 -5
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Process__.js +1 -5
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +1 -5
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +1 -5
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +1 -5
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +1 -5
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/Structure__.js +1 -5
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +1 -5
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +5 -5
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +10 -4
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +33 -33
- package/out/concepts/ViewComponent__.js +8 -12
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.js +53 -74
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +5 -9
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.http.js +2 -2
- package/out/concepts/basics/stdlib/nasl.util.js +9 -17
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/types/index.js +1 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/index.js +1 -5
- package/out/concepts/index.js.map +1 -1
- package/out/concepts/index__.js +1 -5
- package/out/concepts/index__.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -5
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genHash.js +1 -5
- package/out/generator/genHash.js.map +1 -1
- package/out/generator/genMetaData.js +1 -13
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/index.js +1 -5
- package/out/generator/index.js.map +1 -1
- package/out/generator/permission.js +48 -24
- package/out/generator/permission.js.map +1 -1
- package/out/generator/styleReplacer.js +1 -5
- package/out/generator/styleReplacer.js.map +1 -1
- package/out/index.js +1 -5
- package/out/index.js.map +1 -1
- package/out/sentry/index.js +1 -8
- package/out/sentry/index.js.map +1 -1
- package/out/server/formatTsUtils.js +28 -29
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getMemberIdentifier.js +1 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.js +17 -20
- package/out/server/naslServer.js.map +1 -1
- package/out/service/creator/errHandles.d.ts +1 -1
- package/out/service/storage/init.js +5 -8
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +1 -5
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +2 -6
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +3 -7
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.d.ts +1 -1
- package/out/templator/genEditTableBlock.js +3 -11
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +1 -5
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.d.ts +2 -2
- package/out/templator/genGridViewBlock.js +9 -19
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.d.ts +2 -2
- package/out/templator/genListViewBlock.js +6 -14
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.js +1 -5
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genSelectBlock.d.ts +2 -2
- package/out/templator/genSelectBlock.js +10 -20
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.d.ts +1 -1
- package/out/templator/genTableBlock.js +4 -12
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +1 -5
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/index.js +1 -5
- package/out/templator/index.js.map +1 -1
- package/out/utils/index.js +1 -5
- package/out/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/src/breakpoint/generator/BreakpointNode.ts +19 -4
- package/src/breakpoint/shared/utils.ts +1 -1
- package/src/common/BaseNode.ts +15 -3
- package/src/concepts/CallLogic__.ts +45 -15
- package/src/concepts/ValidationRule__.ts +15 -5
- package/src/concepts/ViewElement__.ts +9 -6
- package/src/generator/permission.ts +28 -8
- package/src/server/formatTsUtils.ts +26 -28
- package/src/server/getMemberIdentifier.ts +1 -1
- package/src/server/naslServer.ts +0 -1
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +106 -0
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +45 -0
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +102 -0
- package/test/concepts/call-logic/fixtures/nested-call-logic.json +934 -0
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +23 -0
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
- package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +5 -0
- package/test/concepts/validation-rule/fixtures/argument-without-keyout.json +34 -0
- package/test/concepts/validation-rule/validation-rule.spec.ts +15 -0
|
@@ -101,6 +101,108 @@ exports[`call-logic:toJS global-logic-argument-some-expression 1`] = `
|
|
|
101
101
|
"
|
|
102
102
|
`;
|
|
103
103
|
|
|
104
|
+
exports[`call-logic:toJS nested-call-logic 1`] = `
|
|
105
|
+
"await(
|
|
106
|
+
this.$logics[\\"extensions.httpclient.logics.exchange\\"]({
|
|
107
|
+
config: {
|
|
108
|
+
download: false,
|
|
109
|
+
},
|
|
110
|
+
query: {},
|
|
111
|
+
headers: {
|
|
112
|
+
\\"lcap-calllogic-uuid\\": \\"2aa4ac49eeae443bb3cd155528c8b1dc\\",
|
|
113
|
+
},
|
|
114
|
+
path: {},
|
|
115
|
+
body: {
|
|
116
|
+
url:
|
|
117
|
+
this.$utils[\\"ToString\\"](
|
|
118
|
+
\`https://dysmsapi.aliyuncs.com/?AccessKeyId=LTAI5tPhPfe7NDP1qzrQjkuV&Action=SendSms&Format=JSON&Signature=\`,
|
|
119
|
+
\\"nasl.core.String\\"
|
|
120
|
+
) +
|
|
121
|
+
this.$utils[\\"ToString\\"](
|
|
122
|
+
await(
|
|
123
|
+
this.$logics[\\"extensions.encrypt_tool.logics.encryptWithUrlEncode\\"](
|
|
124
|
+
{
|
|
125
|
+
config: {
|
|
126
|
+
download: false,
|
|
127
|
+
},
|
|
128
|
+
query: {},
|
|
129
|
+
headers: {
|
|
130
|
+
\\"lcap-calllogic-uuid\\": \\"c363848a-dff4-43ed-9eb7-d8e5a8b84573\\",
|
|
131
|
+
},
|
|
132
|
+
path: {},
|
|
133
|
+
body: {
|
|
134
|
+
source: sign,
|
|
135
|
+
},
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
),
|
|
139
|
+
\\"nasl.core.String\\"
|
|
140
|
+
) +
|
|
141
|
+
this.$utils[\\"ToString\\"](
|
|
142
|
+
\`&SignatureMethod=HMAC-SHA1&SignatureVersion=1.0&Timestamp=\`,
|
|
143
|
+
\\"nasl.core.String\\"
|
|
144
|
+
) +
|
|
145
|
+
this.$utils[\\"ToString\\"](
|
|
146
|
+
await(
|
|
147
|
+
this.$logics[\\"extensions.encrypt_tool.logics.encryptWithUrlEncode\\"](
|
|
148
|
+
{
|
|
149
|
+
config: {
|
|
150
|
+
download: false,
|
|
151
|
+
},
|
|
152
|
+
query: {},
|
|
153
|
+
headers: {
|
|
154
|
+
\\"lcap-calllogic-uuid\\": \\"16404a8b-1b51-41a7-b6fa-af016df2c264\\",
|
|
155
|
+
},
|
|
156
|
+
path: {},
|
|
157
|
+
body: {
|
|
158
|
+
source: currDate,
|
|
159
|
+
},
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
),
|
|
163
|
+
\\"nasl.core.String\\"
|
|
164
|
+
) +
|
|
165
|
+
this.$utils[\\"ToString\\"](
|
|
166
|
+
\`&Version=2017-05-25&SignatureNonce=\`,
|
|
167
|
+
\\"nasl.core.String\\"
|
|
168
|
+
) +
|
|
169
|
+
this.$utils[\\"ToString\\"](SignatureNonce, \\"nasl.core.String\\") +
|
|
170
|
+
this.$utils[\\"ToString\\"](\`&PhoneNumbers=\`, \\"nasl.core.String\\") +
|
|
171
|
+
this.$utils[\\"ToString\\"](receiver, \\"nasl.core.String\\") +
|
|
172
|
+
this.$utils[\\"ToString\\"](\`&SignName=\`, \\"nasl.core.String\\") +
|
|
173
|
+
this.$utils[\\"ToString\\"](signName, \\"nasl.core.String\\") +
|
|
174
|
+
this.$utils[\\"ToString\\"](\`&TemplateCode=\`, \\"nasl.core.String\\") +
|
|
175
|
+
this.$utils[\\"ToString\\"](templateCode, \\"nasl.core.String\\") +
|
|
176
|
+
this.$utils[\\"ToString\\"](\`&TemolateParam=\`, \\"nasl.core.String\\") +
|
|
177
|
+
this.$utils[\\"ToString\\"](
|
|
178
|
+
await(
|
|
179
|
+
this.$logics[\\"extensions.encrypt_tool.logics.encryptWithUrlEncode\\"](
|
|
180
|
+
{
|
|
181
|
+
config: {
|
|
182
|
+
download: false,
|
|
183
|
+
},
|
|
184
|
+
query: {},
|
|
185
|
+
headers: {
|
|
186
|
+
\\"lcap-calllogic-uuid\\": \\"db11a00aeb884c2cb8a3404db9879973\\",
|
|
187
|
+
},
|
|
188
|
+
path: {},
|
|
189
|
+
body: {
|
|
190
|
+
source: templateParam,
|
|
191
|
+
},
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
),
|
|
195
|
+
\\"nasl.core.String\\"
|
|
196
|
+
),
|
|
197
|
+
httpMethod: \`Get\`,
|
|
198
|
+
header: header,
|
|
199
|
+
body: body,
|
|
200
|
+
},
|
|
201
|
+
})
|
|
202
|
+
);
|
|
203
|
+
"
|
|
204
|
+
`;
|
|
205
|
+
|
|
104
206
|
exports[`call-logic:toJS only-call-logic 1`] = `
|
|
105
207
|
"await(this.$global.logout({}));
|
|
106
208
|
"
|