File tree 3 files changed +196
-153
lines changed 3 files changed +196
-153
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ module.exports = class AsyncWriter {
28
28
' (not supported while snapshotting)' :
29
29
'' ) ;
30
30
}
31
- const { async_rewrite } = await importPromise ;
32
- return async_rewrite ( code , false ) ;
31
+ const { async_rewrite, DebugLevel } = await importPromise ;
32
+ return async_rewrite ( code , DebugLevel [ process . env . MONGOSH_ASYNC_REWRITER3_DEBUG_LEVEL ] ?? DebugLevel . TypesOnly ) ;
33
33
}
34
34
processSync ( code ) {
35
35
if ( ! syncImport ) {
@@ -38,8 +38,8 @@ module.exports = class AsyncWriter {
38
38
' (not supported while snapshotting)' :
39
39
'' ) ;
40
40
}
41
- const { async_rewrite } = syncImport ;
42
- return async_rewrite ( code , ! ! process . env . MONGOSH_ASYNC_REWRITER3_DEBUG_TAGS ) ;
41
+ const { async_rewrite, DebugLevel } = syncImport ;
42
+ return async_rewrite ( code , DebugLevel [ process . env . MONGOSH_ASYNC_REWRITER3_DEBUG_LEVEL ] ?? DebugLevel . TypesOnly ) ;
43
43
}
44
44
runtimeSupportCode ( ) {
45
45
return '' ;
You can’t perform that action at this time.
0 commit comments