react-native-onyx 2.0.33 → 2.0.34

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.
Files changed (2) hide show
  1. package/dist/DevTools.js +2 -2
  2. package/package.json +1 -1
package/dist/DevTools.js CHANGED
@@ -11,8 +11,8 @@ class DevTools {
11
11
  try {
12
12
  // We don't want to augment the window type in a library code, so we use type assertion instead
13
13
  // eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
14
- const reduxDevtools = window.__REDUX_DEVTOOLS_EXTENSION__;
15
- if ((options && options.remote) || typeof window === 'undefined' || !reduxDevtools) {
14
+ const reduxDevtools = typeof window === 'undefined' ? undefined : window.__REDUX_DEVTOOLS_EXTENSION__;
15
+ if ((options === null || options === void 0 ? void 0 : options.remote) || !reduxDevtools) {
16
16
  return;
17
17
  }
18
18
  return reduxDevtools.connect(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.33",
3
+ "version": "2.0.34",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",