metro-runtime 0.72.3 → 0.73.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro-runtime",
3
- "version": "0.72.3",
3
+ "version": "0.73.0",
4
4
  "description": "🚇 Module required for evaluating Metro bundles.",
5
5
  "main": "src",
6
6
  "repository": {
@@ -6,6 +6,7 @@
6
6
  *
7
7
  *
8
8
  * @format
9
+ * @oncall react_native
9
10
  */
10
11
  "use strict";
11
12
 
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @flow strict-local
8
8
  * @format
9
+ * @oncall react_native
9
10
  */
10
11
 
11
12
  'use strict';
@@ -6,5 +6,6 @@
6
6
  *
7
7
  *
8
8
  * @format
9
+ * @oncall react_native
9
10
  */
10
11
  "use strict";
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @flow strict-local
8
8
  * @format
9
+ * @oncall react_native
9
10
  */
10
11
 
11
12
  'use strict';
@@ -4,9 +4,10 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @polyfill
8
7
  *
9
8
  * @format
9
+ * @oncall react_native
10
+ * @polyfill
10
11
  */
11
12
  "use strict";
12
13
  /* eslint-disable no-bitwise */
@@ -436,10 +437,11 @@ function moduleThrewError(id, error) {
436
437
  }
437
438
 
438
439
  if (__DEV__) {
440
+ // $FlowFixMe[prop-missing]
439
441
  metroRequire.Systrace = {
440
442
  beginEvent: () => {},
441
443
  endEvent: () => {},
442
- };
444
+ }; // $FlowFixMe[prop-missing]
443
445
 
444
446
  metroRequire.getModules = () => {
445
447
  return modules;
@@ -968,12 +970,14 @@ if (__DEV__) {
968
970
  // having to make them publicly available.
969
971
  var requireSystrace = function requireSystrace() {
970
972
  return (
973
+ // $FlowFixMe[prop-missing]
971
974
  global[__METRO_GLOBAL_PREFIX__ + "__SYSTRACE"] || metroRequire.Systrace
972
975
  );
973
976
  };
974
977
 
975
978
  var requireRefresh = function requireRefresh() {
976
979
  return (
980
+ // $FlowFixMe[prop-missing]
977
981
  global[__METRO_GLOBAL_PREFIX__ + "__ReactRefresh"] || metroRequire.Refresh
978
982
  );
979
983
  };
@@ -4,9 +4,10 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @polyfill
8
7
  * @flow
9
8
  * @format
9
+ * @oncall react_native
10
+ * @polyfill
10
11
  */
11
12
 
12
13
  'use strict';
@@ -504,10 +505,12 @@ function moduleThrewError(id: ModuleID, error: any): Error {
504
505
  }
505
506
 
506
507
  if (__DEV__) {
508
+ // $FlowFixMe[prop-missing]
507
509
  metroRequire.Systrace = {
508
510
  beginEvent: (): void => {},
509
511
  endEvent: (): void => {},
510
512
  };
513
+ // $FlowFixMe[prop-missing]
511
514
  metroRequire.getModules = (): ModuleList => {
512
515
  return modules;
513
516
  };
@@ -992,12 +995,14 @@ if (__DEV__) {
992
995
 
993
996
  var requireSystrace = function requireSystrace() {
994
997
  return (
998
+ // $FlowFixMe[prop-missing]
995
999
  global[__METRO_GLOBAL_PREFIX__ + '__SYSTRACE'] || metroRequire.Systrace
996
1000
  );
997
1001
  };
998
1002
 
999
1003
  var requireRefresh = function requireRefresh() {
1000
1004
  return (
1005
+ // $FlowFixMe[prop-missing]
1001
1006
  global[__METRO_GLOBAL_PREFIX__ + '__ReactRefresh'] || metroRequire.Refresh
1002
1007
  );
1003
1008
  };