Skip to content

Commit 582e986

Browse files
authored
Simplify runtime adapters and historical indexing (#721)
* t * Fix integration regressions after main merge
1 parent 4d7c71d commit 582e986

43 files changed

Lines changed: 4577 additions & 6086 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

augurScan/src/error-chain.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const errorChainIncludes = (error: unknown, names: ReadonlySet<string>): boolean => {
2+
const seen = new Set<unknown>()
3+
let current: unknown = error
4+
while (typeof current === 'object' && current !== null && !seen.has(current)) {
5+
seen.add(current)
6+
if ('name' in current && typeof current.name === 'string' && names.has(current.name)) return true
7+
current = 'cause' in current ? current.cause : undefined
8+
}
9+
return false
10+
}

augurScan/src/indexer-runtime.ts

Lines changed: 884 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)