@react-native-firebase/auth 13.0.1 → 13.1.0

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,12 @@
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
+ # [13.1.0](https://github.com/invertase/react-native-firebase/compare/v13.0.1...v13.1.0) (2021-12-02)
7
+
8
+ ### Features
9
+
10
+ - **android, emulator:** add firebase.json config element to bypass localhost remap ([#5852](https://github.com/invertase/react-native-firebase/issues/5852)) ([ddf3f5f](https://github.com/invertase/react-native-firebase/commit/ddf3f5f43d2c8547879934c3169d3e01c0db44c0))
11
+
6
12
  ## [13.0.1](https://github.com/invertase/react-native-firebase/compare/v13.0.0...v13.0.1) (2021-11-05)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/auth
package/lib/index.js CHANGED
@@ -360,19 +360,22 @@ class FirebaseAuthModule extends FirebaseModule {
360
360
  }
361
361
 
362
362
  let _url = url;
363
- if (isAndroid && _url) {
363
+ const androidBypassEmulatorUrlRemap =
364
+ typeof this.firebaseJson.android_bypass_emulator_url_remap === 'boolean' &&
365
+ this.firebaseJson.android_bypass_emulator_url_remap;
366
+ if (!androidBypassEmulatorUrlRemap && isAndroid && _url) {
364
367
  if (_url.startsWith('http://localhost')) {
365
368
  _url = _url.replace('http://localhost', 'http://10.0.2.2');
366
369
  // eslint-disable-next-line no-console
367
370
  console.log(
368
- 'Mapping auth host "localhost" to "10.0.2.2" for android emulators. Use real IP on real devices.',
371
+ 'Mapping auth host "localhost" to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
369
372
  );
370
373
  }
371
374
  if (_url.startsWith('http://127.0.0.1')) {
372
375
  _url = _url.replace('http://127.0.0.1', 'http://10.0.2.2');
373
376
  // eslint-disable-next-line no-console
374
377
  console.log(
375
- 'Mapping auth host "127.0.0.1" to "10.0.2.2" for android emulators. Use real IP on real devices.',
378
+ 'Mapping auth host "127.0.0.1" to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
376
379
  );
377
380
  }
378
381
  }
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '13.0.1';
2
+ module.exports = '13.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "13.0.1",
3
+ "version": "13.1.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "auth"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "13.0.1"
25
+ "@react-native-firebase/app": "13.1.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "3d5d00d6b1ed7cf9e1afbe62f16b1c77e2bf7693"
30
+ "gitHead": "0a9621b1ad2d6592de9906157d121c8ba5460a75"
31
31
  }