@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.2.12
4
+
5
+ - fix: fetchNativeDeviceContexts returns an empty Array if no Device Context available #2002
6
+ - Bump: Sentry Cocoa 7.9.0 #2011
7
+
3
8
  ## 3.2.11
4
9
 
5
10
  - fix: Polyfill the promise library to permanently fix unhandled rejections #1984
package/RNSentry.podspec CHANGED
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.preserve_paths = '*.js'
18
18
 
19
19
  s.dependency 'React-Core'
20
- s.dependency 'Sentry', '7.7.0'
20
+ s.dependency 'Sentry', '7.9.0'
21
21
 
22
22
  s.source_files = 'ios/RNSentry.{h,m}'
23
23
  s.public_header_files = 'ios/RNSentry.h'
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME = "sentry.javascript.react-native";
2
- export declare const SDK_VERSION = "3.2.11";
2
+ export declare const SDK_VERSION = "3.2.12";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export const SDK_NAME = "sentry.javascript.react-native";
2
- export const SDK_VERSION = "3.2.11";
2
+ export const SDK_VERSION = "3.2.12";
3
3
  //# sourceMappingURL=version.js.map
@@ -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.11\";\n"]}
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> *contexts = [serializedScope valueForKey:@"context"];
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.11",
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.65.3",
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",