expo-apple-authentication 4.2.0 → 4.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
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 4.2.1 — 2022-05-05
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Android: Warnings about `new NativeEventEmitter()` no longer appear when using React Native v0.65+. ([#17343](https://github.com/expo/expo/pull/17343) by [@chrisbobbe](https://github.com/chrisbobbe))
18
+
13
19
  ## 4.2.0 — 2022-04-18
14
20
 
15
21
  ### 💡 Others
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoAppleAuthentication.d.ts","sourceRoot":"","sources":["../src/ExpoAppleAuthentication.ts"],"names":[],"mappings":";AAEA,wBAKY"}
1
+ {"version":3,"file":"ExpoAppleAuthentication.d.ts","sourceRoot":"","sources":["../src/ExpoAppleAuthentication.ts"],"names":[],"mappings":";AAGA,wBAsBqB"}
@@ -1,8 +1,23 @@
1
1
  import { NativeModulesProxy } from 'expo-modules-core';
2
2
  export default NativeModulesProxy.ExpoAppleAuthentication ||
3
+ // If the real native module doesn't exist, make a pretend one, instead of
4
+ // `null`, so we can offer an `isAvailableAsync` (that will always give
5
+ // `false`, because we're on an unsupported platform).
3
6
  {
4
7
  isAvailableAsync() {
5
8
  return Promise.resolve(false);
6
9
  },
10
+ // RN v0.65 gives a console warning if this method is missing; see
11
+ // https://github.com/facebook/react-native/commit/114be1d21
12
+ addListener() {
13
+ // Nothing to do; unsupported platform.
14
+ return Promise.resolve();
15
+ },
16
+ // RN v0.65 gives a console warning if this method is missing; see
17
+ // https://github.com/facebook/react-native/commit/114be1d21
18
+ removeListeners() {
19
+ // Nothing to do; unsupported platform.
20
+ return Promise.resolve();
21
+ },
7
22
  };
8
23
  //# sourceMappingURL=ExpoAppleAuthentication.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoAppleAuthentication.js","sourceRoot":"","sources":["../src/ExpoAppleAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,eAAe,kBAAkB,CAAC,uBAAuB;IACtD;QACC,gBAAgB;YACd,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;KACM,CAAC","sourcesContent":["import { NativeModulesProxy } from 'expo-modules-core';\n\nexport default NativeModulesProxy.ExpoAppleAuthentication ||\n ({\n isAvailableAsync(): Promise<boolean> {\n return Promise.resolve(false);\n },\n } as any);\n"]}
1
+ {"version":3,"file":"ExpoAppleAuthentication.js","sourceRoot":"","sources":["../src/ExpoAppleAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAe,kBAAkB,CAAC,uBAAuB;IACvD,0EAA0E;IAC1E,uEAAuE;IACvE,sDAAsD;IACrD;QACC,gBAAgB;YACd,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,kEAAkE;QAClE,8DAA8D;QAC9D,WAAW;YACT,uCAAuC;YACvC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QAED,kEAAkE;QAClE,8DAA8D;QAC9D,eAAe;YACb,uCAAuC;YACvC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;KACe,CAAC","sourcesContent":["import { NativeModulesProxy } from 'expo-modules-core';\nimport { NativeModule } from 'react-native';\n\nexport default NativeModulesProxy.ExpoAppleAuthentication ||\n // If the real native module doesn't exist, make a pretend one, instead of\n // `null`, so we can offer an `isAvailableAsync` (that will always give\n // `false`, because we're on an unsupported platform).\n ({\n isAvailableAsync(): Promise<boolean> {\n return Promise.resolve(false);\n },\n\n // RN v0.65 gives a console warning if this method is missing; see\n // https://github.com/facebook/react-native/commit/114be1d21\n addListener() {\n // Nothing to do; unsupported platform.\n return Promise.resolve();\n },\n\n // RN v0.65 gives a console warning if this method is missing; see\n // https://github.com/facebook/react-native/commit/114be1d21\n removeListeners() {\n // Nothing to do; unsupported platform.\n return Promise.resolve();\n },\n } as NativeModule);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-apple-authentication",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "A unimodule that provides SignIn With Apple",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "peerDependencies": {
41
41
  "expo": "*"
42
42
  },
43
- "gitHead": "89a27c0ca0ca8becd7546697298e874a15e94faf"
43
+ "gitHead": "b9d655c1bed682ad8919e071dd923968773f05b5"
44
44
  }
@@ -1,8 +1,26 @@
1
1
  import { NativeModulesProxy } from 'expo-modules-core';
2
+ import { NativeModule } from 'react-native';
2
3
 
3
4
  export default NativeModulesProxy.ExpoAppleAuthentication ||
5
+ // If the real native module doesn't exist, make a pretend one, instead of
6
+ // `null`, so we can offer an `isAvailableAsync` (that will always give
7
+ // `false`, because we're on an unsupported platform).
4
8
  ({
5
9
  isAvailableAsync(): Promise<boolean> {
6
10
  return Promise.resolve(false);
7
11
  },
8
- } as any);
12
+
13
+ // RN v0.65 gives a console warning if this method is missing; see
14
+ // https://github.com/facebook/react-native/commit/114be1d21
15
+ addListener() {
16
+ // Nothing to do; unsupported platform.
17
+ return Promise.resolve();
18
+ },
19
+
20
+ // RN v0.65 gives a console warning if this method is missing; see
21
+ // https://github.com/facebook/react-native/commit/114be1d21
22
+ removeListeners() {
23
+ // Nothing to do; unsupported platform.
24
+ return Promise.resolve();
25
+ },
26
+ } as NativeModule);