@amityco/ts-sdk-react-native 6.7.1-8bea649.0 → 6.7.1-cafe37a.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.
@@ -1 +1 @@
1
- {"version":3,"file":"onOnline.d.ts","sourceRoot":"","sources":["../../../src/client/utils/onOnline.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,aAAc,MAAM,IAAI,eA8B5C,CAAC"}
1
+ {"version":3,"file":"onOnline.d.ts","sourceRoot":"","sources":["../../../src/client/utils/onOnline.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,aAAc,MAAM,IAAI,eA+B5C,CAAC"}
package/dist/index.cjs.js CHANGED
@@ -21030,13 +21030,12 @@ const onOnline = (callback) => {
21030
21030
  }
21031
21031
  // @TODO: Please update code below to follow our coding conventions and our TS rules
21032
21032
  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
21033
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
21033
21034
  let unsubscribeFn = () => { };
21034
21035
  Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@react-native-community/netinfo')); }).then(NetInfo => {
21035
21036
  unsubscribeFn = NetInfo.addEventListener(state => {
21036
- if (!state.isConnected) {
21037
- alert('offline');
21037
+ if (!state.isConnected)
21038
21038
  return;
21039
- }
21040
21039
  callback();
21041
21040
  });
21042
21041
  });
package/dist/index.esm.js CHANGED
@@ -20998,13 +20998,12 @@ const onOnline = (callback) => {
20998
20998
  }
20999
20999
  // @TODO: Please update code below to follow our coding conventions and our TS rules
21000
21000
  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
21001
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
21001
21002
  let unsubscribeFn = () => { };
21002
21003
  import('@react-native-community/netinfo').then(NetInfo => {
21003
21004
  unsubscribeFn = NetInfo.addEventListener(state => {
21004
- if (!state.isConnected) {
21005
- alert('offline');
21005
+ if (!state.isConnected)
21006
21006
  return;
21007
- }
21008
21007
  callback();
21009
21008
  });
21010
21009
  });