metro-runtime 0.81.0 → 0.81.2

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,8 +1,18 @@
1
1
  {
2
2
  "name": "metro-runtime",
3
- "version": "0.81.0",
3
+ "version": "0.81.2",
4
4
  "description": "🚇 Module required for evaluating Metro bundles.",
5
- "main": "src",
5
+ "exports": {
6
+ "./package.json": "./package.json",
7
+ "./modules/asyncRequire": "./src/modules/asyncRequire.js",
8
+ "./modules/empty-module": "./src/modules/empty-module.js",
9
+ "./modules/HMRClient": "./src/modules/HMRClient.js",
10
+ "./modules/null-module": "./src/modules/null-module.js",
11
+ "./polyfills/require": "./src/polyfills/require.js",
12
+ "./private/*": "./src/*.js",
13
+ "./src/*.js": "./src/*.js",
14
+ "./src/*": "./src/*.js"
15
+ },
6
16
  "repository": {
7
17
  "type": "git",
8
18
  "url": "git@github.com:facebook/metro.git"
@@ -18,9 +28,9 @@
18
28
  },
19
29
  "devDependencies": {
20
30
  "@babel/core": "^7.25.2",
21
- "react": "19.0.0-rc-fb9a90fa48-20240614",
31
+ "react": "19.0.0",
22
32
  "react-refresh": "^0.14.0",
23
- "react-test-renderer": "19.0.0-rc-fb9a90fa48-20240614"
33
+ "react-test-renderer": "19.0.0"
24
34
  },
25
35
  "engines": {
26
36
  "node": ">=18.18"
@@ -888,6 +888,7 @@ if (__DEV__) {
888
888
  if (
889
889
  typeof window !== 'undefined' &&
890
890
  window.location != null &&
891
+ // $FlowFixMe[method-unbinding]
891
892
  typeof window.location.reload === 'function'
892
893
  ) {
893
894
  window.location.reload();