Skip to content

Commit

Permalink
Merge pull request #3641 from illacloud/release/4.3.2
Browse files Browse the repository at this point in the history
Release/4.3.2
  • Loading branch information
AruSeito authored Jan 22, 2024
2 parents e999daf + 0280828 commit 28c9ae9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"author": "ILLA Cloud <[email protected]>",
"license": "Apache-2.0",
"version": "4.3.1",
"version": "4.3.2",
"scripts": {
"dev": "vite --strictPort --force",
"build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud",
Expand Down
12 changes: 6 additions & 6 deletions apps/builder/src/utils/executionTreeHelper/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import { isObject } from "@/utils/typeHelper"
const IMMEDIATE_PARENT_REGEX = /^(.*)(\..*|\[.*\])$/

export const extractReferencesFromScript = (script: string): string[] => {
const references: Set<string> = new Set<string>()
const { references: identifiers } = extractIdentifierInfoFromCode(script)
const newReference = new Set<string>()
const { references } = extractIdentifierInfoFromCode(script)

identifiers.forEach((identifier: string) => {
references.add(identifier)
references.forEach((identifier: string) => {
newReference.add(identifier)
const subPaths = toPath(identifier)
let current = ""
while (subPaths.length > 1) {
current = convertPathToString(subPaths)
references.add(current)
newReference.add(current)
subPaths.pop()
}
})
return Array.from(references)
return Array.from(newReference)
}

export function getDisplayNameAndPropertyPath(fullPath: string): {
Expand Down

0 comments on commit 28c9ae9

Please sign in to comment.