metro-runtime 0.71.2 → 0.71.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro-runtime",
3
- "version": "0.71.2",
3
+ "version": "0.71.3",
4
4
  "description": "🚇 Module required for evaluating Metro bundles.",
5
5
  "main": "src",
6
6
  "repository": {
@@ -205,7 +205,7 @@ function shouldPrintRequireCycle(modules: $ReadOnlyArray<?string>): boolean {
205
205
  return true;
206
206
  }
207
207
 
208
- const isIgnored = module =>
208
+ const isIgnored = (module: ?string) =>
209
209
  module != null && regExps.some(regExp => regExp.test(module));
210
210
 
211
211
  // Print the cycle unless any part of it is ignored
@@ -867,7 +867,10 @@ if (__DEV__) {
867
867
  };
868
868
 
869
869
  // Modules that only export components become React Refresh boundaries.
870
- var isReactRefreshBoundary = function (Refresh, moduleExports): boolean {
870
+ var isReactRefreshBoundary = function (
871
+ Refresh: any,
872
+ moduleExports: Exports,
873
+ ): boolean {
871
874
  if (Refresh.isLikelyComponentType(moduleExports)) {
872
875
  return true;
873
876
  }
@@ -896,9 +899,9 @@ if (__DEV__) {
896
899
  };
897
900
 
898
901
  var shouldInvalidateReactRefreshBoundary = (
899
- Refresh,
900
- prevExports,
901
- nextExports,
902
+ Refresh: any,
903
+ prevExports: Exports,
904
+ nextExports: Exports,
902
905
  ) => {
903
906
  const prevSignature = getRefreshBoundarySignature(Refresh, prevExports);
904
907
  const nextSignature = getRefreshBoundarySignature(Refresh, nextExports);
@@ -914,7 +917,10 @@ if (__DEV__) {
914
917
  };
915
918
 
916
919
  // When this signature changes, it's unsafe to stop at this refresh boundary.
917
- var getRefreshBoundarySignature = (Refresh, moduleExports): Array<mixed> => {
920
+ var getRefreshBoundarySignature = (
921
+ Refresh: any,
922
+ moduleExports: Exports,
923
+ ): Array<mixed> => {
918
924
  const signature = [];
919
925
  signature.push(Refresh.getFamilyByType(moduleExports));
920
926
  if (moduleExports == null || typeof moduleExports !== 'object') {
@@ -937,7 +943,11 @@ if (__DEV__) {
937
943
  return signature;
938
944
  };
939
945
 
940
- var registerExportsForReactRefresh = (Refresh, moduleExports, moduleID) => {
946
+ var registerExportsForReactRefresh = (
947
+ Refresh: any,
948
+ moduleExports: Exports,
949
+ moduleID: ModuleID,
950
+ ) => {
941
951
  Refresh.register(moduleExports, moduleID + ' %exports%');
942
952
  if (moduleExports == null || typeof moduleExports !== 'object') {
943
953
  // Exit if we can't iterate over exports.