Skip to content

Commit

Permalink
services detection for js
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Aug 21, 2023
1 parent 4dc5f8f commit 1d5f83d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/main/scala/io/appthreat/atom/slicing/UsageSlicing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,7 @@ object UsageSlicing {
.getOrElse("ANY")
}
// If resolvedMethod is null then use the code property to construct the method name
if (
resolvedMethod.isEmpty && baseCall.code.nonEmpty && baseCall.code.contains(
"("
) && language.get == Languages.JSSRC
) {
if (baseCall.code.nonEmpty && baseCall.code.contains("(") && language.get == Languages.JSSRC) {
var baseCallCode = baseCall.code.takeWhile(_ != '(')
if (baseCallCode.contains(" ")) {
baseCallCode = baseCallCode.split(" ").last
Expand Down
4 changes: 2 additions & 2 deletions wrapper/nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wrapper/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appthreat/atom",
"version": "1.1.3",
"version": "1.1.4",
"description": "Create atom (⚛) representation for your application, packages and libraries",
"exports": "./index.js",
"type": "module",
Expand Down

0 comments on commit 1d5f83d

Please sign in to comment.