@sentry/react-native 3.2.11 → 3.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/RNSentry.podspec +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/ios/RNSentry.m +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/RNSentry.podspec
CHANGED
package/dist/js/version.d.ts
CHANGED
package/dist/js/version.js
CHANGED
package/dist/js/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["export const SDK_NAME = \"sentry.javascript.react-native\";\nexport const SDK_VERSION = \"3.2.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["export const SDK_NAME = \"sentry.javascript.react-native\";\nexport const SDK_VERSION = \"3.2.12\";\n"]}
|
package/ios/RNSentry.m
CHANGED
|
@@ -140,19 +140,23 @@ RCT_EXPORT_METHOD(fetchNativeDeviceContexts:(RCTPromiseResolveBlock)resolve
|
|
|
140
140
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
141
141
|
{
|
|
142
142
|
NSLog(@"Bridge call to: deviceContexts");
|
|
143
|
+
NSMutableDictionary<NSString *, id> *contexts = [NSMutableDictionary new];
|
|
143
144
|
// Temp work around until sorted out this API in sentry-cocoa.
|
|
144
145
|
// TODO: If the callback isnt' executed the promise wouldn't be resolved.
|
|
145
146
|
[SentrySDK configureScope:^(SentryScope * _Nonnull scope) {
|
|
146
147
|
NSDictionary<NSString *, id> *serializedScope = [scope serialize];
|
|
147
148
|
// Scope serializes as 'context' instead of 'contexts' as it does for the event.
|
|
148
|
-
NSDictionary<NSString *, id> *
|
|
149
|
+
NSDictionary<NSString *, id> *tempContexts = [serializedScope valueForKey:@"context"];
|
|
150
|
+
if (tempContexts != nil) {
|
|
151
|
+
[contexts addEntriesFromDictionary:tempContexts];
|
|
152
|
+
}
|
|
149
153
|
#if DEBUG
|
|
150
154
|
NSData *data = [NSJSONSerialization dataWithJSONObject:contexts options:0 error:nil];
|
|
151
155
|
NSString *debugContext = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
|
152
156
|
NSLog(@"Contexts: %@", debugContext);
|
|
153
157
|
#endif
|
|
154
|
-
resolve(contexts);
|
|
155
158
|
}];
|
|
159
|
+
resolve(contexts);
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
RCT_EXPORT_METHOD(fetchNativeAppStart:(RCTPromiseResolveBlock)resolve
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sentry/react-native",
|
|
3
3
|
"homepage": "https://github.com/getsentry/sentry-react-native",
|
|
4
4
|
"repository": "https://github.com/getsentry/sentry-react-native",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.12",
|
|
6
6
|
"description": "Official Sentry SDK for react-native",
|
|
7
7
|
"typings": "dist/js/index.d.ts",
|
|
8
8
|
"types": "dist/js/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@sentry/wizard": "^1.2.15",
|
|
58
58
|
"@types/jest": "^26.0.15",
|
|
59
59
|
"@types/react": "^16.9.49",
|
|
60
|
-
"@types/react-native": "^0.
|
|
60
|
+
"@types/react-native": "^0.66.11",
|
|
61
61
|
"babel-jest": "^26.1.0",
|
|
62
62
|
"eslint": "^7.6.0",
|
|
63
63
|
"eslint-plugin-react": "^7.20.6",
|