File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
// /var/containers/Bundle/Application/{DEVICE_ID}/HelloWorld.app/main.jsbundle
24
24
25
25
var PATH_STRIP_RE = / ^ .* \/ [ ^ \. ] + ( \. a p p | C o d e P u s h ) / ;
26
-
26
+ var stringify = require ( 'json-stringify-safe' ) ;
27
27
var FATAL_ERROR_KEY = '--rn-fatal--' ;
28
28
var ASYNC_STORAGE_KEY = '--raven-js-global-error-payload--' ;
29
29
@@ -137,7 +137,7 @@ function reactNativePlugin(Raven, options) {
137
137
*/
138
138
reactNativePlugin . _persistPayload = function ( payload ) {
139
139
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 ) )
141
141
[ 'catch' ] ( function ( ) { return null ; } ) ;
142
142
}
143
143
@@ -198,7 +198,7 @@ reactNativePlugin._transport = function (options) {
198
198
// Just set a phony Origin value; only matters if Sentry Project is configured
199
199
// to whitelist specific origins.
200
200
request . setRequestHeader ( 'Origin' , 'react-native://' ) ;
201
- request . send ( JSON . stringify ( options . data ) ) ;
201
+ request . send ( stringify ( options . data ) ) ;
202
202
} ;
203
203
204
204
/**
You can’t perform that action at this time.
0 commit comments