relay-runtime 0.0.0-main-436a084d → 0.0.0-main-0f842787

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.
@@ -57,8 +57,15 @@ type PendingUpdater = {|
57
57
  +updater: StoreUpdater,
58
58
  |};
59
59
 
60
+ const _global: typeof global | $FlowFixMe =
61
+ typeof global !== 'undefined'
62
+ ? global
63
+ : typeof window !== 'undefined'
64
+ ? window
65
+ : undefined;
66
+
60
67
  const applyWithGuard =
61
- global?.ErrorUtils?.applyWithGuard ??
68
+ _global?.ErrorUtils?.applyWithGuard ??
62
69
  ((callback, context, args, onError, name) => callback.apply(context, args));
63
70
 
64
71
  /**