File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
2- const blacklist = require ( 'metro-config/src/defaults/blacklist ' ) ;
2+ const blacklist = require ( 'metro-config/src/defaults/exclusionList ' ) ;
33const escape = require ( 'escape-string-regexp' ) ;
44const pak = require ( '../package.json' ) ;
55
Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import { DefaultUserFeedbackOptions } from './user-feedback';
55import type { DeviceKeyValue } from './types/device' ;
66import type { ILogEntry } from './types/log' ;
77import { StringFormatter } from './string-formatter' ;
8- import { LogLevel } from "./types/log" ;
9- import { OverrideConsoleMethods } from "./override-console-methods" ;
10- import { PrintToConsole } from "./print-to-console" ;
11- import { SDKOptions } from "./sdk-options" ;
8+ import { LogLevel } from './types/log' ;
9+ import { PrintToConsole } from './print-to-console' ;
10+ import { SDKOptions } from './sdk-options' ;
1211
1312const LINKING_ERROR =
1413 `The package '@bugfender/rn-bugfender' doesn't seem to be linked. Make sure: \n\n` +
@@ -29,7 +28,8 @@ const RnBugfender = NativeModules.RnBugfender
2928
3029class BugfenderClass {
3130 private stringFormatter = new StringFormatter ( ) ;
32- private overrideConsoleMethods = new OverrideConsoleMethods ( window ) ;
31+ private overrideConsoleMethods =
32+ new ( require ( './override-console-methods' ) . OverrideConsoleMethods ) ( window ) ;
3333 private printToConsole = new PrintToConsole ( global . console ) ;
3434 private sdkOptions : SDKOptions = new SDKOptions ( ) ;
3535 private initialized = false ;
You can’t perform that action at this time.
0 commit comments