@modern-js/devtools-client 2.42.2 → 2.44.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.
Files changed (34) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +6 -3
  4. package/dist/public/sw-proxy.js +1 -1
  5. package/dist/routes-manifest.json +17 -17
  6. package/dist/static/js/{160.49fb441e.js → 160.2f2ff36d.js} +2 -2
  7. package/dist/static/js/807.62f63a5a.js +2 -0
  8. package/dist/static/js/{807.8296b939.js.LICENSE.txt → 807.62f63a5a.js.LICENSE.txt} +316 -316
  9. package/dist/static/js/async/{769.2565b3fe.js → 769.080b83be.js} +2 -2
  10. package/dist/static/js/async/client_headers/editor/{page.56b49e43.js → page.b9ab7c3b.js} +2 -2
  11. package/dist/static/js/async/client_headers/{page.2ff39188.js → page.62fff212.js} +2 -2
  12. package/dist/static/js/async/client_overview/page.9fd93497.js +2 -0
  13. package/dist/static/js/async/client_overview/{page.cba414eb.js.LICENSE.txt → page.9fd93497.js.LICENSE.txt} +11 -11
  14. package/dist/static/js/async/client_pages/{page.57913cf7.js → page.881fd6f7.js} +2 -2
  15. package/dist/static/js/builder-runtime.785a3fe1.js +1 -0
  16. package/dist/static/js/{client.50280c59.js → client.7a548df6.js} +2 -2
  17. package/dist/static/js/{lib-polyfill.70305f73.js → lib-polyfill.fa8cc18b.js} +2 -2
  18. package/dist/static/js/{lib-polyfill.70305f73.js.LICENSE.txt → lib-polyfill.fa8cc18b.js.LICENSE.txt} +44 -44
  19. package/dist/static/js/{lib-router.a38cb579.js → lib-router.52a9901f.js} +2 -2
  20. package/dist/static/js/mount.6c2069cb.js +2 -0
  21. package/dist/static/js/{mount.1d6ae329.js.LICENSE.txt → mount.6c2069cb.js.LICENSE.txt} +265 -261
  22. package/exports/mount.mjs +1 -24
  23. package/package.json +13 -13
  24. package/dist/static/js/807.8296b939.js +0 -2
  25. package/dist/static/js/async/client_overview/page.cba414eb.js +0 -2
  26. package/dist/static/js/builder-runtime.b6b1e353.js +0 -1
  27. package/dist/static/js/mount.1d6ae329.js +0 -2
  28. /package/dist/static/js/{160.49fb441e.js.LICENSE.txt → 160.2f2ff36d.js.LICENSE.txt} +0 -0
  29. /package/dist/static/js/async/{769.2565b3fe.js.LICENSE.txt → 769.080b83be.js.LICENSE.txt} +0 -0
  30. /package/dist/static/js/async/client_headers/editor/{page.56b49e43.js.LICENSE.txt → page.b9ab7c3b.js.LICENSE.txt} +0 -0
  31. /package/dist/static/js/async/client_headers/{page.2ff39188.js.LICENSE.txt → page.62fff212.js.LICENSE.txt} +0 -0
  32. /package/dist/static/js/async/client_pages/{page.57913cf7.js.LICENSE.txt → page.881fd6f7.js.LICENSE.txt} +0 -0
  33. /package/dist/static/js/{client.50280c59.js.LICENSE.txt → client.7a548df6.js.LICENSE.txt} +0 -0
  34. /package/dist/static/js/{lib-router.a38cb579.js.LICENSE.txt → lib-router.52a9901f.js.LICENSE.txt} +0 -0
package/exports/mount.mjs CHANGED
@@ -1,29 +1,5 @@
1
- import { initialize } from 'react-devtools-inline/backend';
2
1
  import routesManifest from '../dist/routes-manifest.json';
3
2
 
4
- if (!window.opener) {
5
- try {
6
- // Delete existing devtools hooks registered by react devtools extension.
7
- try {
8
- delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
9
- } catch {}
10
- // Call this before importing React (or any other packages that might import React).
11
- initialize(window);
12
- // Deny react devtools extension to activate.
13
- const originSubHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;
14
- window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub = (e, handler) => {
15
- if (e === 'devtools-backend-installed') {
16
- return undefined;
17
- }
18
- return originSubHook(e, handler);
19
- };
20
- } catch (err) {
21
- const e = new Error('Failed to inject React DevTools backend.');
22
- e.cause = err;
23
- console.error(e);
24
- }
25
- }
26
-
27
3
  try {
28
4
  const container = document.createElement('div');
29
5
  container.className = '_modern_js_devtools_container';
@@ -60,4 +36,5 @@ try {
60
36
  const e = new Error('Failed to execute mount point of DevTools.');
61
37
  e.cause = err;
62
38
  console.error(e);
39
+ console.error(err);
63
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.42.2",
3
+ "version": "2.44.0",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -22,7 +22,7 @@
22
22
  "@radix-ui/react-popover": "^1.0.7",
23
23
  "@radix-ui/react-tabs": "^1.0.4",
24
24
  "@radix-ui/themes": "^2.0.0",
25
- "@rsbuild/core": "0.2.3",
25
+ "@rsbuild/core": "0.2.11",
26
26
  "@types/jest": "^29",
27
27
  "@types/lodash": "^4.14.202",
28
28
  "@types/node": "~16.11.7",
@@ -53,17 +53,17 @@
53
53
  "typescript": "~5.0.4",
54
54
  "ufo": "^1.3.0",
55
55
  "valtio": "^1.11.1",
56
- "@modern-js-app/eslint-config": "2.42.2",
57
- "@modern-js/app-tools": "2.42.2",
58
- "@modern-js/builder-shared": "2.42.2",
59
- "@modern-js/devtools-kit": "2.42.2",
60
- "@modern-js/plugin-proxy": "2.42.2",
61
- "@modern-js/builder-rspack-provider": "2.42.2",
62
- "@modern-js/eslint-config": "2.42.2",
63
- "@modern-js/runtime": "2.42.2",
64
- "@modern-js/tsconfig": "2.42.2",
65
- "@modern-js/types": "2.42.2",
66
- "@modern-js/utils": "2.42.2"
56
+ "@modern-js-app/eslint-config": "2.44.0",
57
+ "@modern-js/builder-shared": "2.44.0",
58
+ "@modern-js/builder-rspack-provider": "2.44.0",
59
+ "@modern-js/devtools-kit": "2.44.0",
60
+ "@modern-js/app-tools": "2.44.0",
61
+ "@modern-js/eslint-config": "2.44.0",
62
+ "@modern-js/plugin-proxy": "2.44.0",
63
+ "@modern-js/runtime": "2.44.0",
64
+ "@modern-js/types": "2.44.0",
65
+ "@modern-js/utils": "2.44.0",
66
+ "@modern-js/tsconfig": "2.44.0"
67
67
  },
68
68
  "scripts": {
69
69
  "reset": "npx rimraf ./**/node_modules",