Replace Rollbar UMD with regular import
This commit is contained in:
		@@ -58,6 +58,7 @@
 | 
				
			|||||||
        "react-typist": "^2.0.4",
 | 
					        "react-typist": "^2.0.4",
 | 
				
			||||||
        "redux": "^3.6.0",
 | 
					        "redux": "^3.6.0",
 | 
				
			||||||
        "redux-devtools-extension": "^2.13.2",
 | 
					        "redux-devtools-extension": "^2.13.2",
 | 
				
			||||||
 | 
					        "rollbar": "^2.4.7",
 | 
				
			||||||
        "semver-sort": "0.0.4",
 | 
					        "semver-sort": "0.0.4",
 | 
				
			||||||
        "styled-components": "^3.3.0",
 | 
					        "styled-components": "^3.3.0",
 | 
				
			||||||
        "thenby": "^1.2.3",
 | 
					        "thenby": "^1.2.3",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
import { logUtils } from '@0xproject/utils';
 | 
					import { logUtils } from '@0xproject/utils';
 | 
				
			||||||
 | 
					import Rollbar = require('rollbar');
 | 
				
			||||||
import { configs } from 'ts/utils/configs';
 | 
					import { configs } from 'ts/utils/configs';
 | 
				
			||||||
import { constants } from 'ts/utils/constants';
 | 
					import { constants } from 'ts/utils/constants';
 | 
				
			||||||
import { utils } from 'ts/utils/utils';
 | 
					import { utils } from 'ts/utils/utils';
 | 
				
			||||||
@@ -36,8 +37,8 @@ const rollbarConfig = {
 | 
				
			|||||||
        'SecurityError (DOM Exception 18)',
 | 
					        'SecurityError (DOM Exception 18)',
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
import Rollbar = require('../../public/js/rollbar.umd.min.js');
 | 
					
 | 
				
			||||||
const rollbar = Rollbar.init(rollbarConfig);
 | 
					const rollbar = new Rollbar(rollbarConfig);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const errorReporter = {
 | 
					export const errorReporter = {
 | 
				
			||||||
    report(err: Error): void {
 | 
					    report(err: Error): void {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										41
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								yarn.lock
									
									
									
									
									
								
							@@ -4110,6 +4110,10 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0:
 | 
				
			|||||||
  version "1.1.0"
 | 
					  version "1.1.0"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
 | 
					  resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					console-polyfill@0.3.0:
 | 
				
			||||||
 | 
					  version "0.3.0"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/console-polyfill/-/console-polyfill-0.3.0.tgz#84900902a18c47a5eba932be75fa44d23e8af861"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
constant-case@^2.0.0:
 | 
					constant-case@^2.0.0:
 | 
				
			||||||
  version "2.0.0"
 | 
					  version "2.0.0"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-2.0.0.tgz#4175764d389d3fa9c8ecd29186ed6005243b6a46"
 | 
					  resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-2.0.0.tgz#4175764d389d3fa9c8ecd29186ed6005243b6a46"
 | 
				
			||||||
@@ -5337,6 +5341,12 @@ error-ex@^1.2.0, error-ex@^1.3.1:
 | 
				
			|||||||
  dependencies:
 | 
					  dependencies:
 | 
				
			||||||
    is-arrayish "^0.2.1"
 | 
					    is-arrayish "^0.2.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					error-stack-parser@1.3.3:
 | 
				
			||||||
 | 
					  version "1.3.3"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-1.3.3.tgz#fada6e3a9cd2b0e080e6d6fc751418649734f35c"
 | 
				
			||||||
 | 
					  dependencies:
 | 
				
			||||||
 | 
					    stackframe "^0.3.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
error@^7.0.2:
 | 
					error@^7.0.2:
 | 
				
			||||||
  version "7.0.2"
 | 
					  version "7.0.2"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/error/-/error-7.0.2.tgz#a5f75fff4d9926126ddac0ea5dc38e689153cb02"
 | 
					  resolved "https://registry.yarnpkg.com/error/-/error-7.0.2.tgz#a5f75fff4d9926126ddac0ea5dc38e689153cb02"
 | 
				
			||||||
@@ -8274,6 +8284,10 @@ is-wsl@^1.1.0:
 | 
				
			|||||||
  version "1.1.0"
 | 
					  version "1.1.0"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
 | 
					  resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					is_js@^0.9.0:
 | 
				
			||||||
 | 
					  version "0.9.0"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/is_js/-/is_js-0.9.0.tgz#0ab94540502ba7afa24c856aa985561669e9c52d"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
isarray@0.0.1:
 | 
					isarray@0.0.1:
 | 
				
			||||||
  version "0.0.1"
 | 
					  version "0.0.1"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
 | 
					  resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
 | 
				
			||||||
@@ -13179,6 +13193,12 @@ request-ip@~1.2.3:
 | 
				
			|||||||
  version "1.2.3"
 | 
					  version "1.2.3"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/request-ip/-/request-ip-1.2.3.tgz#66988f0e22406ec4af630d19b573fe4b447c3b49"
 | 
					  resolved "https://registry.yarnpkg.com/request-ip/-/request-ip-1.2.3.tgz#66988f0e22406ec4af630d19b573fe4b447c3b49"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					request-ip@~2.0.1:
 | 
				
			||||||
 | 
					  version "2.0.2"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/request-ip/-/request-ip-2.0.2.tgz#deeae6d4af21768497db8cd05fa37143f8f1257e"
 | 
				
			||||||
 | 
					  dependencies:
 | 
				
			||||||
 | 
					    is_js "^0.9.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
request-promise-core@1.1.1:
 | 
					request-promise-core@1.1.1:
 | 
				
			||||||
  version "1.1.1"
 | 
					  version "1.1.1"
 | 
				
			||||||
  resolved "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6"
 | 
					  resolved "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6"
 | 
				
			||||||
@@ -13481,6 +13501,21 @@ rollbar@^0.6.5:
 | 
				
			|||||||
  optionalDependencies:
 | 
					  optionalDependencies:
 | 
				
			||||||
    decache "^3.0.5"
 | 
					    decache "^3.0.5"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rollbar@^2.4.7:
 | 
				
			||||||
 | 
					  version "2.4.7"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/rollbar/-/rollbar-2.4.7.tgz#9b1de1a0fab6b6e63fcfcd322c26081a1d8242e8"
 | 
				
			||||||
 | 
					  dependencies:
 | 
				
			||||||
 | 
					    async "~1.2.1"
 | 
				
			||||||
 | 
					    console-polyfill "0.3.0"
 | 
				
			||||||
 | 
					    debug "2.6.9"
 | 
				
			||||||
 | 
					    error-stack-parser "1.3.3"
 | 
				
			||||||
 | 
					    json-stringify-safe "~5.0.0"
 | 
				
			||||||
 | 
					    lru-cache "~2.2.1"
 | 
				
			||||||
 | 
					    request-ip "~2.0.1"
 | 
				
			||||||
 | 
					    uuid "3.0.x"
 | 
				
			||||||
 | 
					  optionalDependencies:
 | 
				
			||||||
 | 
					    decache "^3.0.5"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rst-selector-parser@^2.2.3:
 | 
					rst-selector-parser@^2.2.3:
 | 
				
			||||||
  version "2.2.3"
 | 
					  version "2.2.3"
 | 
				
			||||||
  resolved "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz#81b230ea2fcc6066c89e3472de794285d9b03d91"
 | 
					  resolved "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz#81b230ea2fcc6066c89e3472de794285d9b03d91"
 | 
				
			||||||
@@ -14335,6 +14370,10 @@ stack-utils@^1.0.1:
 | 
				
			|||||||
  version "1.0.1"
 | 
					  version "1.0.1"
 | 
				
			||||||
  resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"
 | 
					  resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					stackframe@^0.3.1:
 | 
				
			||||||
 | 
					  version "0.3.1"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-0.3.1.tgz#33aa84f1177a5548c8935533cbfeb3420975f5a4"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
state-toggle@^1.0.0:
 | 
					state-toggle@^1.0.0:
 | 
				
			||||||
  version "1.0.0"
 | 
					  version "1.0.0"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.0.tgz#d20f9a616bb4f0c3b98b91922d25b640aa2bc425"
 | 
					  resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.0.tgz#d20f9a616bb4f0c3b98b91922d25b640aa2bc425"
 | 
				
			||||||
@@ -15784,7 +15823,7 @@ uuid@2.0.1:
 | 
				
			|||||||
  version "2.0.1"
 | 
					  version "2.0.1"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.1.tgz#c2a30dedb3e535d72ccf82e343941a50ba8533ac"
 | 
					  resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.1.tgz#c2a30dedb3e535d72ccf82e343941a50ba8533ac"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uuid@3.0.1, uuid@~3.0.0:
 | 
					uuid@3.0.1, uuid@3.0.x, uuid@~3.0.0:
 | 
				
			||||||
  version "3.0.1"
 | 
					  version "3.0.1"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1"
 | 
					  resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user