lcclaude 1.0.2 → 1.0.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.
@@ -0,0 +1,5 @@
1
+ import { connectToDevTools } from "react-devtools-core";
2
+ connectToDevTools({
3
+ host: "127.0.0.1",
4
+ port: 8097
5
+ });
@@ -21,10 +21,9 @@ import { getFocusManager, getRootNode } from "./focus.js";
21
21
  import { LayoutDisplay } from "./layout/node.js";
22
22
  import applyStyles from "./styles.js";
23
23
  if (true) {
24
- try {
25
- import("./devtools.js");
26
- } catch (error) {
27
- if (error.code === "ERR_MODULE_NOT_FOUND") {
24
+ import("./devtools.js").catch((error) => {
25
+ const moduleError = error;
26
+ if (moduleError.code === "ERR_MODULE_NOT_FOUND") {
28
27
  console.warn(`
29
28
  The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
30
29
  but this failed as it was not installed. Debugging with React Devtools requires it.
@@ -34,10 +33,10 @@ To install use this command:
34
33
  $ npm install --save-dev react-devtools-core
35
34
  `.trim() + `
36
35
  `);
37
- } else {
38
- throw error;
36
+ return;
39
37
  }
40
- }
38
+ throw error;
39
+ });
41
40
  }
42
41
  const diff = (before, after) => {
43
42
  if (before === after) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lcclaude",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "imports": {
@@ -47,12 +47,12 @@
47
47
  "axios": "^1.14.0",
48
48
  "bidi-js": "^1.0.3",
49
49
  "chalk": "^5.6.2",
50
- "chokidar": "^5.0.0",
50
+ "chokidar": "^4.0.3",
51
51
  "cli-boxes": "^4.0.1",
52
52
  "code-excerpt": "^4.0.0",
53
53
  "diff": "^8.0.4",
54
54
  "emoji-regex": "^10.6.0",
55
- "env-paths": "^4.0.0",
55
+ "env-paths": "^3.0.0",
56
56
  "execa": "^9.6.1",
57
57
  "figures": "^6.1.0",
58
58
  "fuse.js": "^7.1.0",