Skip to content

Commit a94d9c2

Browse files
committed
chore: update version of puya-ts and algo-ts dependencies
1 parent 03d686b commit a94d9c2

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

package-lock.json

Lines changed: 10 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"tslib": "^2.6.2"
7272
},
7373
"dependencies": {
74-
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.15",
75-
"@algorandfoundation/puya-ts": "^1.0.0-beta.17",
74+
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.16",
75+
"@algorandfoundation/puya-ts": "^1.0.0-beta.18",
7676
"elliptic": "^6.5.7",
7777
"js-sha256": "^0.11.0",
7878
"js-sha3": "^0.9.3",

src/test-transformer/visitors.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ptypes, SourceLocation, TypeResolver } from '@algorandfoundation/puya-ts'
1+
import { LoggingContext, ptypes, SourceLocation, TypeResolver } from '@algorandfoundation/puya-ts'
22
import path from 'path'
33
import ts from 'typescript'
44
import type { TypeInfo } from '../encoders'
@@ -32,25 +32,27 @@ type VisitorHelper = {
3232

3333
export class SourceFileVisitor {
3434
private helper: VisitorHelper
35+
3536
constructor(
3637
private context: ts.TransformationContext,
3738
private sourceFile: ts.SourceFile,
3839
program: ts.Program,
3940
private config: TransformerConfig,
4041
) {
4142
const typeChecker = program.getTypeChecker()
43+
const loggingContext = LoggingContext.create()
4244
const typeResolver = new TypeResolver(typeChecker, program.getCurrentDirectory())
4345
this.helper = {
4446
additionalStatements: [],
4547
resolveType(node: ts.Node): ptypes.PType {
4648
try {
47-
return typeResolver.resolve(node, this.sourceLocation(node))
49+
return loggingContext.run(() => typeResolver.resolve(node, this.sourceLocation(node)))
4850
} catch {
4951
return ptypes.anyPType
5052
}
5153
},
5254
resolveTypeParameters(node: ts.CallExpression) {
53-
return typeResolver.resolveTypeParameters(node, this.sourceLocation(node))
55+
return loggingContext.run(() => typeResolver.resolveTypeParameters(node, this.sourceLocation(node)))
5456
},
5557
tryGetSymbol(node: ts.Node): ts.Symbol | undefined {
5658
const s = typeChecker.getSymbolAtLocation(node)

0 commit comments

Comments
 (0)