mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-28 16:27:55 -05:00
feat(tools): added clerk tools and block (#3032)
* feat(tools): added clerk tools and block * updated docs gen script * use clerk api types
This commit is contained in:
@@ -1122,6 +1122,15 @@ function parsePropertiesContent(propertiesContent: string): Record<string, any>
|
||||
continue
|
||||
}
|
||||
|
||||
// Check if this match is at depth 0 (not inside nested braces)
|
||||
// Only process top-level properties, skip nested ones
|
||||
const beforeMatch = propertiesContent.substring(0, match.index)
|
||||
const openBraces = (beforeMatch.match(/{/g) || []).length
|
||||
const closeBraces = (beforeMatch.match(/}/g) || []).length
|
||||
if (openBraces !== closeBraces) {
|
||||
continue // Skip - this is a nested property
|
||||
}
|
||||
|
||||
const startPos = match.index + match[0].length - 1
|
||||
|
||||
let braceCount = 1
|
||||
|
||||
Reference in New Issue
Block a user