@modern-js/plugin-devtools 0.0.0-next-20240702030948 → 0.0.0-next-20240702064201

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.
@@ -35,7 +35,6 @@ var import_path = __toESM(require("path"));
35
35
  var import_node = require("@modern-js/devtools-kit/node");
36
36
  var import_utils = require("@modern-js/utils");
37
37
  var import_p_defer = __toESM(require("p-defer"));
38
- var import_package = __toESM(require("../../package.json"));
39
38
  const pluginManifest = {
40
39
  name: "manifest",
41
40
  async setup(api) {
@@ -50,7 +49,7 @@ const pluginManifest = {
50
49
  const manifest = {
51
50
  ...api.vars.state,
52
51
  routeAssets: routesManifest.routeAssets,
53
- version: import_package.default.version
52
+ version: require("../../package.json").version
54
53
  };
55
54
  const port = (_api_vars_http = api.vars.http) === null || _api_vars_http === void 0 ? void 0 : _api_vars_http.port;
56
55
  if (port) {
package/dist/runtime.js CHANGED
@@ -48,7 +48,7 @@ const setup = () => {
48
48
  var _document_cookie_match;
49
49
  const injectedManifestUrl = process.env.__USE_MODERNJS_DEVTOOLS__;
50
50
  const cookieManifestUrl = (_document_cookie_match = document.cookie.match(/use_modernjs_devtools=([^;]+)/)) === null || _document_cookie_match === void 0 ? void 0 : _document_cookie_match[1];
51
- const devtoolsUrl = cookieManifestUrl || injectedManifestUrl;
51
+ const devtoolsUrl = injectedManifestUrl || cookieManifestUrl;
52
52
  if (!devtoolsUrl)
53
53
  return;
54
54
  const manifest = fetchSync(devtoolsUrl).json();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240702030948",
18
+ "version": "0.0.0-next-20240702064201",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -55,9 +55,9 @@
55
55
  "valtio": "^1.11.1",
56
56
  "ws": "^8.13.0",
57
57
  "hookable": "^5.5.3",
58
- "@modern-js/devtools-client": "0.0.0-next-20240702030948",
59
- "@modern-js/devtools-kit": "0.0.0-next-20240702030948",
60
- "@modern-js/utils": "0.0.0-next-20240702030948"
58
+ "@modern-js/devtools-kit": "0.0.0-next-20240702064201",
59
+ "@modern-js/devtools-client": "0.0.0-next-20240702064201",
60
+ "@modern-js/utils": "0.0.0-next-20240702064201"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@swc/helpers": "0.5.3",
@@ -66,17 +66,17 @@
66
66
  "type-fest": "^4.1.0",
67
67
  "typescript": "^5",
68
68
  "@rsbuild/core": "0.7.10",
69
- "@modern-js/app-tools": "0.0.0-next-20240702030948",
70
- "@modern-js/core": "0.0.0-next-20240702030948",
71
- "@modern-js/module-tools": "0.0.0-next-20240702030948",
72
- "@modern-js/server-core": "0.0.0-next-20240702030948",
73
- "@modern-js/runtime": "0.0.0-next-20240702030948",
74
- "@modern-js/types": "0.0.0-next-20240702030948",
75
- "@scripts/build": "0.0.0-next-20240702030948",
76
- "@modern-js/uni-builder": "0.0.0-next-20240702030948"
69
+ "@modern-js/app-tools": "0.0.0-next-20240702064201",
70
+ "@modern-js/core": "0.0.0-next-20240702064201",
71
+ "@modern-js/module-tools": "0.0.0-next-20240702064201",
72
+ "@modern-js/server-core": "0.0.0-next-20240702064201",
73
+ "@modern-js/runtime": "0.0.0-next-20240702064201",
74
+ "@modern-js/uni-builder": "0.0.0-next-20240702064201",
75
+ "@modern-js/types": "0.0.0-next-20240702064201",
76
+ "@scripts/build": "0.0.0-next-20240702064201"
77
77
  },
78
78
  "peerDependencies": {
79
- "@modern-js/runtime": "0.0.0-next-20240702030948"
79
+ "@modern-js/runtime": "0.0.0-next-20240702064201"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "@modern-js/runtime": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes