File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import regexpEscape from './packages/node_modules/escape-string-regexp/index.js'
1+ import regexpEscapeModule from './packages/node_modules/escape-string-regexp/index.js'
22import * as iitm from 'import-in-the-middle/hook.mjs'
33import hooks from './packages/datadog-instrumentations/src/helpers/hooks.js'
44import configHelper from './packages/dd-trace/src/config-helper.js'
55
6+ const regexpEscape = regexpEscapeModule . default
7+
68// For some reason `getEnvironmentVariable` is not otherwise available to ESM.
79const env = configHelper . getEnvironmentVariable
810
@@ -33,7 +35,7 @@ function addSecurityControls (data) {
3335 . map ( sc => sc . trim ( ) )
3436
3537 for ( const subpath of securityControls ) {
36- data . include . push ( new RegExp ( regexpEscape . default ( subpath ) ) )
38+ data . include . push ( new RegExp ( regexpEscape ( subpath ) ) )
3739 }
3840}
3941
You can’t perform that action at this time.
0 commit comments