@react-native-firebase/app-check 14.0.0 → 14.2.1

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
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [14.2.1](https://github.com/invertase/react-native-firebase/compare/v14.2.0...v14.2.1) (2021-12-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **app-check:** getToken returns `{token: string}` not `string` matching firebase-js-sdk ([#5979](https://github.com/invertase/react-native-firebase/issues/5979)) ([6a089f3](https://github.com/invertase/react-native-firebase/commit/6a089f310b0ce6170b1d02fe57a4feb3c114e8c6))
11
+
12
+ # [14.2.0](https://github.com/invertase/react-native-firebase/compare/v14.1.0...v14.2.0) (2021-12-31)
13
+
14
+ **Note:** Version bump only for package @react-native-firebase/app-check
15
+
16
+ # [14.1.0](https://github.com/invertase/react-native-firebase/compare/v14.0.1...v14.1.0) (2021-12-18)
17
+
18
+ **Note:** Version bump only for package @react-native-firebase/app-check
19
+
20
+ ## [14.0.1](https://github.com/invertase/react-native-firebase/compare/v14.0.0...v14.0.1) (2021-12-15)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/app-check
23
+
6
24
  # [14.0.0](https://github.com/invertase/react-native-firebase/compare/v13.1.1...v14.0.0) (2021-12-14)
7
25
 
8
26
  **Note:** Version bump only for package @react-native-firebase/app-check
@@ -82,7 +82,9 @@ public class ReactNativeFirebaseAppCheckModule extends ReactNativeFirebaseModule
82
82
  getExecutor(),
83
83
  (task) -> {
84
84
  if (task.isSuccessful()) {
85
- promise.resolve(task.getResult().getToken());
85
+ WritableMap tokenResultMap = Arguments.createMap();
86
+ tokenResultMap.putString("token", task.getResult().getToken());
87
+ promise.resolve(tokenResultMap);
86
88
  } else {
87
89
  Log.e(
88
90
  TAG,
@@ -98,7 +98,9 @@ RCT_EXPORT_METHOD(getToken
98
98
  return;
99
99
  }
100
100
 
101
- resolve(token.token);
101
+ NSMutableDictionary *tokenResultDictionary = [NSMutableDictionary new];
102
+ tokenResultDictionary[@"token"] = token.token;
103
+ resolve(tokenResultDictionary);
102
104
  }];
103
105
  }
104
106
 
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '14.0.0';
2
+ module.exports = '14.2.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app-check",
3
- "version": "14.0.0",
3
+ "version": "14.2.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - App Check",
6
6
  "main": "lib/index.js",
@@ -23,10 +23,10 @@
23
23
  "appCheck"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@react-native-firebase/app": "14.0.0"
26
+ "@react-native-firebase/app": "14.2.1"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "fcf375a763004967f94da70940d9f1aad591ef7a"
31
+ "gitHead": "432a7bd058cd99befa4b2f8632e84b9fe4c3fd44"
32
32
  }