@react-native/debugger-shell 0.84.0-nightly-20251208-8347cc4b5 → 0.84.0-nightly-20251211-80e384a80
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/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +13 -5
- package/dist/node/index.js.flow +5 -5
- package/package.json +1 -1
package/dist/node/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function unstable_spawnDebuggerShellWithArgs(
|
|
|
14
14
|
$$PARAM_1$$?: Readonly<{
|
|
15
15
|
mode?: "syncThenExit" | "detached";
|
|
16
16
|
flavor?: DebuggerShellFlavor;
|
|
17
|
-
prebuiltBinaryPath?: string;
|
|
17
|
+
prebuiltBinaryPath?: null | undefined | string;
|
|
18
18
|
}>,
|
|
19
19
|
): Promise<void>;
|
|
20
20
|
export type DebuggerShellPreparationResult = Readonly<{
|
|
@@ -39,8 +39,8 @@ export type DebuggerShellPreparationResult = Readonly<{
|
|
|
39
39
|
* instantly when the user tries to open it (and conversely, the user is
|
|
40
40
|
* informed ASAP if it is not ready to use).
|
|
41
41
|
*/
|
|
42
|
-
declare function unstable_prepareDebuggerShell(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
): Promise<DebuggerShellPreparationResult>;
|
|
42
|
+
declare function unstable_prepareDebuggerShell($$PARAM_0$$?: {
|
|
43
|
+
prebuiltBinaryPath?: null | undefined | string;
|
|
44
|
+
flavor?: DebuggerShellFlavor;
|
|
45
|
+
}): Promise<DebuggerShellPreparationResult>;
|
|
46
46
|
export { unstable_spawnDebuggerShellWithArgs, unstable_prepareDebuggerShell };
|
package/dist/node/index.js
CHANGED
|
@@ -15,7 +15,11 @@ const DEVTOOLS_BINARY_DOTSLASH_FILE = path.join(
|
|
|
15
15
|
);
|
|
16
16
|
async function unstable_spawnDebuggerShellWithArgs(
|
|
17
17
|
args,
|
|
18
|
-
{
|
|
18
|
+
{
|
|
19
|
+
mode = "detached",
|
|
20
|
+
flavor = process.env.RNDT_DEV === "1" ? "dev" : "prebuilt",
|
|
21
|
+
prebuiltBinaryPath,
|
|
22
|
+
} = {},
|
|
19
23
|
) {
|
|
20
24
|
const [binaryPath, baseArgs] = getShellBinaryAndArgs(
|
|
21
25
|
flavor,
|
|
@@ -26,6 +30,10 @@ async function unstable_spawnDebuggerShellWithArgs(
|
|
|
26
30
|
stdio: "inherit",
|
|
27
31
|
windowsHide: true,
|
|
28
32
|
detached: mode === "detached",
|
|
33
|
+
env: {
|
|
34
|
+
...process.env,
|
|
35
|
+
ELECTRON_RUN_AS_NODE: "",
|
|
36
|
+
},
|
|
29
37
|
});
|
|
30
38
|
if (mode === "detached") {
|
|
31
39
|
child.on("spawn", () => {
|
|
@@ -61,10 +69,10 @@ async function unstable_spawnDebuggerShellWithArgs(
|
|
|
61
69
|
}
|
|
62
70
|
});
|
|
63
71
|
}
|
|
64
|
-
async function unstable_prepareDebuggerShell(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
) {
|
|
72
|
+
async function unstable_prepareDebuggerShell({
|
|
73
|
+
prebuiltBinaryPath,
|
|
74
|
+
flavor = process.env.RNDT_DEV === "1" ? "dev" : "prebuilt",
|
|
75
|
+
} = {}) {
|
|
68
76
|
try {
|
|
69
77
|
switch (flavor) {
|
|
70
78
|
case "prebuilt":
|
package/dist/node/index.js.flow
CHANGED
|
@@ -21,7 +21,7 @@ declare function unstable_spawnDebuggerShellWithArgs(
|
|
|
21
21
|
// continue to run normally.
|
|
22
22
|
mode?: "syncThenExit" | "detached",
|
|
23
23
|
flavor?: DebuggerShellFlavor,
|
|
24
|
-
prebuiltBinaryPath?: string,
|
|
24
|
+
prebuiltBinaryPath?: ?string,
|
|
25
25
|
}>,
|
|
26
26
|
): Promise<void>;
|
|
27
27
|
|
|
@@ -48,9 +48,9 @@ export type DebuggerShellPreparationResult = $ReadOnly<{
|
|
|
48
48
|
* instantly when the user tries to open it (and conversely, the user is
|
|
49
49
|
* informed ASAP if it is not ready to use).
|
|
50
50
|
*/
|
|
51
|
-
declare function unstable_prepareDebuggerShell(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
): Promise<DebuggerShellPreparationResult>;
|
|
51
|
+
declare function unstable_prepareDebuggerShell($$PARAM_0$$?: {
|
|
52
|
+
prebuiltBinaryPath?: ?string,
|
|
53
|
+
flavor?: DebuggerShellFlavor,
|
|
54
|
+
}): Promise<DebuggerShellPreparationResult>;
|
|
55
55
|
|
|
56
56
|
export { unstable_spawnDebuggerShellWithArgs, unstable_prepareDebuggerShell };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/debugger-shell",
|
|
3
3
|
"productName": "React Native DevTools",
|
|
4
|
-
"version": "0.84.0-nightly-
|
|
4
|
+
"version": "0.84.0-nightly-20251211-80e384a80",
|
|
5
5
|
"description": "Experimental debugger shell for React Native for use with @react-native/debugger-frontend",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react-native",
|