File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323// /var/containers/Bundle/Application/{DEVICE_ID}/HelloWorld.app/main.jsbundle
2424
2525var PATH_STRIP_RE = / ^ .* \/ [ ^ \. ] + ( \. a p p | C o d e P u s h ) / ;
26-
26+ var stringify = require ( 'json-stringify-safe' ) ;
2727var FATAL_ERROR_KEY = '--rn-fatal--' ;
2828var ASYNC_STORAGE_KEY = '--raven-js-global-error-payload--' ;
2929
@@ -137,7 +137,7 @@ function reactNativePlugin(Raven, options) {
137137 */
138138reactNativePlugin . _persistPayload = function ( payload ) {
139139 var AsyncStorage = require ( 'react-native' ) . AsyncStorage ;
140- return AsyncStorage . setItem ( ASYNC_STORAGE_KEY , JSON . stringify ( payload ) )
140+ return AsyncStorage . setItem ( ASYNC_STORAGE_KEY , stringify ( payload ) )
141141 [ 'catch' ] ( function ( ) { return null ; } ) ;
142142}
143143
@@ -198,7 +198,7 @@ reactNativePlugin._transport = function (options) {
198198 // Just set a phony Origin value; only matters if Sentry Project is configured
199199 // to whitelist specific origins.
200200 request . setRequestHeader ( 'Origin' , 'react-native://' ) ;
201- request . send ( JSON . stringify ( options . data ) ) ;
201+ request . send ( stringify ( options . data ) ) ;
202202} ;
203203
204204/**
You can’t perform that action at this time.
0 commit comments