@@ -100,7 +100,7 @@ export class TypeormInstrumentation extends InstrumentationBase<TypeormInstrumen
100100 protected init ( ) {
101101 const selectQueryBuilder = new InstrumentationNodeModuleFile (
102102 'typeorm/query-builder/SelectQueryBuilder.js' ,
103- [ '>=0.2.29 <1' ] ,
103+ [ '>=0.3.0 <1' ] ,
104104 moduleExports => {
105105 selectQueryBuilderExecuteMethods . map ( method => {
106106 if ( isWrapped ( moduleExports . SelectQueryBuilder . prototype ?. [ method ] ) ) {
@@ -125,29 +125,6 @@ export class TypeormInstrumentation extends InstrumentationBase<TypeormInstrumen
125125 }
126126 ) ;
127127
128- const connection = new InstrumentationNodeModuleFile (
129- 'typeorm/connection/Connection.js' ,
130- [ '>0.2.28 <0.3.0' ] ,
131- moduleExports => {
132- if ( isWrapped ( moduleExports . Connection . prototype ?. [ rawQueryFuncName ] ) ) {
133- this . _unwrap ( moduleExports . Connection . prototype , rawQueryFuncName ) ;
134- }
135- this . _wrap (
136- moduleExports . Connection . prototype ,
137- rawQueryFuncName ,
138- this . _patchRawQuery ( )
139- ) ;
140-
141- return moduleExports ;
142- } ,
143- moduleExports => {
144- if ( isWrapped ( moduleExports . Connection . prototype ?. [ rawQueryFuncName ] ) ) {
145- this . _unwrap ( moduleExports . Connection . prototype , rawQueryFuncName ) ;
146- }
147- return moduleExports ;
148- }
149- ) ;
150-
151128 const dataSource = new InstrumentationNodeModuleFile (
152129 'typeorm/data-source/DataSource.js' ,
153130 [ '>=0.3.0 <1' ] ,
@@ -173,7 +150,7 @@ export class TypeormInstrumentation extends InstrumentationBase<TypeormInstrumen
173150
174151 const entityManager = new InstrumentationNodeModuleFile (
175152 'typeorm/entity-manager/EntityManager.js' ,
176- [ '>=0.2.29 <1' ] ,
153+ [ '>=0.3.0 <1' ] ,
177154 moduleExports => {
178155 entityManagerMethods . map ( method => {
179156 if ( isWrapped ( moduleExports . EntityManager . prototype ?. [ method ] ) ) {
@@ -200,10 +177,10 @@ export class TypeormInstrumentation extends InstrumentationBase<TypeormInstrumen
200177
201178 const module = new InstrumentationNodeModuleDefinition (
202179 'typeorm' ,
203- [ '>=0.2.29 <1' ] ,
180+ [ '>=0.3.0 <1' ] ,
204181 undefined ,
205182 undefined ,
206- [ selectQueryBuilder , entityManager , connection , dataSource ]
183+ [ selectQueryBuilder , entityManager , dataSource ]
207184 ) ;
208185 return module ;
209186 }
0 commit comments