@lcap/nasl-language-server-core 3.10.0-rc.1 → 3.10.1-rc.2
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const traverseMap: Partial<Record<"
|
|
1
|
+
export declare const traverseMap: Partial<Record<"AnnotationProperty" | "ApplyAnnotation" | "App" | "Module" | "Connector" | "Namespace" | "FrontendType" | "Frontend" | "Backend" | "Integration" | "MicroApp" | "TypeAnnotation" | "DatabaseTypeAnnotation" | "TypeParam" | "Structure" | "StructureProperty" | "Enum" | "EnumItem" | "DataSource" | "Entity" | "EntityProperty" | "EntityIndex" | "MetadataType" | "View" | "ViewElement" | "BindAttribute" | "BindDirective" | "BindEvent" | "BindStyle" | "ThemeVariable" | "InputSetter" | "SwitchSetter" | "SetterOption" | "EnumSelectSetter" | "CapsulesSetter" | "NumberInputSetter" | "IconSetter" | "ImageSetter" | "PropertySelectSetter" | "PropertyTransformSetter" | "ViewComponentDeclaration" | "BusinessComponent" | "Attribute" | "Event" | "PropDeclaration" | "EventDeclaration" | "SlotDeclaration" | "LogicDeclaration" | "Theme" | "Slot" | "ViewComponent" | "Logic" | "AuthLogic" | "AuthLogicForCallInterface" | "BusinessLogic" | "ConnectorLogic" | "OverriddenLogic" | "Param" | "ParamWithGroup" | "Return" | "Variable" | "FrontendVariable" | "BackendVariable" | "Constant" | "SubLogic" | "Function" | "AnonymousFunction" | "Interface" | "MicroserviceInterface" | "AuthInterface" | "ConnectionInfo" | "InterfaceParam" | "Transactional" | "DefaultValue" | "Abort" | "Start" | "End" | "IfStatement" | "SwitchStatement" | "SwitchCase" | "ForEachStatement" | "WhileStatement" | "Assignment" | "BatchAssignment" | "Comment" | "CallLogic" | "CallConnector" | "CallEvent" | "CallFunction" | "CallInterface" | "CallMicroserviceInterface" | "CallAuthInterface" | "Destination" | "ExternalDestination" | "ValidationRule" | "Argument" | "Anchor" | "JSBlock" | "JavaLogic" | "Block" | "Identifier" | "NullLiteral" | "BooleanLiteral" | "StringLiteral" | "StringInterpolation" | "StaticString" | "NumericLiteral" | "BinaryExpression" | "MatchCase" | "Match" | "UnaryExpression" | "MemberExpression" | "Unparsed" | "New" | "NewComposite" | "NewStructure" | "NewList" | "NewMap" | "Paginate" | "CallQueryComponent" | "QuerySelectExpression" | "QueryFromExpression" | "QueryJoinExpression" | "QueryFieldExpression" | "QueryAggregateExpression" | "QueryOrderByExpression" | "QueryGroupByExpression" | "QueryLimitExpression" | "SqlQueryComponent" | "OqlQueryComponent" | "Process" | "ProcessElement" | "ProcessComponent" | "SequentialPolicy" | "CountersignPolicy" | "ProcessOutcome" | "Assignee" | "ProcessOutcomes" | "Role" | "Configuration" | "ConfigGroup" | "ConfigProperty" | "ConfigPropertyValue" | "I18nInfo" | "CompletionProperty" | "UseComponent" | "Point" | "Rect" | "SelectMembers" | "AssignmentLine" | "FrontendLibrary" | "ViewBlock" | "ViewBlockWithImage" | "MsgTriggerEvent" | "InterfaceTriggerEvent" | "ConnectorTrigger" | "TriggerLauncher" | "ConnectorTriggerLauncher" | "MsgTriggerLauncher" | "Dependency" | "Connection" | "ProcessV2" | "ProcessDefinitionV2" | "HistoryProcessV2" | "ProcessBindV2" | "FieldPermissionV2" | "ProcessElementV2" | "OperatePermissionV2" | "AssigneeV2" | "DepartmentV2" | "DirectManagerV2" | "DepartmentManagerV2" | "FlowConditionV2" | "SequentialPolicyV2" | "CountersignPolicyV2" | "OrSignPolicyV2" | "Annotation", import("../types").Traverse<import("@lcap/nasl-concepts").SyntaxNode>>>;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -32,7 +32,7 @@ const traverseCallLogic = (node, context) => {
|
|
|
32
32
|
// ProcessV2 方法
|
|
33
33
|
else if (token.startsWith('nasl.processV2')) {
|
|
34
34
|
const { calleeName } = node;
|
|
35
|
-
const processNameExpression = node.arguments[1]
|
|
35
|
+
const processNameExpression = node.arguments?.[1]?.expression;
|
|
36
36
|
if (nasl_concepts_1.asserts.isStringLiteral(processNameExpression)) {
|
|
37
37
|
const processName = processNameExpression.value;
|
|
38
38
|
const wholeProcessNamespace = `app.processV2s.${processName}.logics.${calleeName}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-logic.js","sourceRoot":"","sources":["../../../../../../src/symbol/traverse/concepts/logic/expression/call-logic.ts"],"names":[],"mappings":";;;AAAA,uDAA8D;AAE9D,uCAA2C;AAC3C,yCAA8C;AAE9C,MAAM,eAAe,GAAG,aAAa,CAAC;AAEtC;;GAEG;AACI,MAAM,iBAAiB,GAAwB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE9B,SAAS;IACT,IAAI,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAClC,IAAA,oBAAY,EAAC,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACD,gBAAgB;SACX,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QACzC,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;QAC5D,MAAM,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,EAAE;YAChE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;QAEH,aAAa;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,IAAA,oBAAY,EAAC,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;aACI,CAAC;YACJ,IAAA,oBAAY,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IACD,eAAe;SACV,IAAI,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;QAC5B,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"call-logic.js","sourceRoot":"","sources":["../../../../../../src/symbol/traverse/concepts/logic/expression/call-logic.ts"],"names":[],"mappings":";;;AAAA,uDAA8D;AAE9D,uCAA2C;AAC3C,yCAA8C;AAE9C,MAAM,eAAe,GAAG,aAAa,CAAC;AAEtC;;GAEG;AACI,MAAM,iBAAiB,GAAwB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE9B,SAAS;IACT,IAAI,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAClC,IAAA,oBAAY,EAAC,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACD,gBAAgB;SACX,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QACzC,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;QAC5D,MAAM,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,EAAE;YAChE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;QAEH,aAAa;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,IAAA,oBAAY,EAAC,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;aACI,CAAC;YACJ,IAAA,oBAAY,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IACD,eAAe;SACV,IAAI,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;QAC5B,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;QAE9D,IAAI,uBAAO,CAAC,eAAe,CAAC,qBAAqB,CAAC,EAAE,CAAC;YACnD,MAAM,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC;YAChD,MAAM,qBAAqB,GAAG,kBAAkB,WAAW,WAAW,UAAU,EAAE,CAAC;YACnF,IAAA,oBAAY,EAAC,qBAAqB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO;SACF,CAAC;QACJ,IAAA,oBAAY,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO;IACP,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,IAAA,2BAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,sBAAsB;AACxB,CAAC,CAAC;AA7CW,QAAA,iBAAiB,qBA6C5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lcap/nasl-language-server-core",
|
|
3
3
|
"description": "NetEase Application Specific Language",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.1-rc.2",
|
|
5
5
|
"main": "./out",
|
|
6
6
|
"types": "./out",
|
|
7
7
|
"source": "./src",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
|
-
"@lcap/nasl-concepts": "3.10.
|
|
17
|
-
"@lcap/nasl-types": "3.10.
|
|
18
|
-
"@lcap/nasl-utils": "3.10.
|
|
16
|
+
"@lcap/nasl-concepts": "3.10.1-rc.2",
|
|
17
|
+
"@lcap/nasl-types": "3.10.1-rc.2",
|
|
18
|
+
"@lcap/nasl-utils": "3.10.1-rc.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/lodash": "4.17.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"tslib": "2.6.2",
|
|
26
26
|
"typescript": "5.4.4",
|
|
27
27
|
"@lcap/nasl-test-toolkit": "1.0.0",
|
|
28
|
-
"@lcap/nasl-
|
|
29
|
-
"@lcap/nasl-
|
|
28
|
+
"@lcap/nasl-translator": "3.10.1-rc.2",
|
|
29
|
+
"@lcap/nasl-tsconfig": "1.0.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"clear": "rimraf ./out",
|