@react-native/debugger-shell 0.81.0-nightly-20250702-b41b924b2 → 0.81.0-nightly-20250705-dcd430721
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/electron/MainInstanceEntryPoint.js +3 -1
- package/dist/electron/resources/icon.icns +0 -0
- package/dist/electron/resources/icon.ico +0 -0
- package/dist/electron/resources/icon.png +0 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +7 -0
- package/dist/index.js.flow +9 -0
- package/package.json +2 -2
- package/src/electron/MainInstanceEntryPoint.js +4 -1
- package/src/electron/resources/icon.icns +0 -0
- package/src/electron/resources/icon.ico +0 -0
- package/src/electron/resources/icon.png +0 -0
- package/src/index.js +26 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { BrowserWindow, app, shell, ipcMain } = require("electron");
|
|
4
|
+
const path = require("path");
|
|
4
5
|
const util = require("util");
|
|
5
6
|
const windowMetadata = new WeakMap();
|
|
6
7
|
function handleLaunchArgs(argv) {
|
|
@@ -46,6 +47,7 @@ function handleLaunchArgs(argv) {
|
|
|
46
47
|
partition: "persist:react-native-devtools",
|
|
47
48
|
preload: require.resolve("./preload.js"),
|
|
48
49
|
},
|
|
50
|
+
icon: path.join(__dirname, "resources", "icon.png"),
|
|
49
51
|
});
|
|
50
52
|
frontendWindow.webContents.setWindowOpenHandler(({ url }) => {
|
|
51
53
|
shell.openExternal(url);
|
|
@@ -64,7 +66,7 @@ function handleLaunchArgs(argv) {
|
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
app.whenReady().then(() => {
|
|
67
|
-
handleLaunchArgs(process.argv.slice(2));
|
|
69
|
+
handleLaunchArgs(process.argv.slice(app.isPackaged ? 1 : 2));
|
|
68
70
|
app.on(
|
|
69
71
|
"second-instance",
|
|
70
72
|
(event, electronArgv, workingDirectory, additionalData) => {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/debugger-shell",
|
|
3
|
-
"version": "0.81.0-nightly-
|
|
3
|
+
"version": "0.81.0-nightly-20250705-dcd430721",
|
|
4
4
|
"description": "Experimental debugger shell for React Native for use with @react-native/debugger-frontend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/debugger-shell#readme",
|
|
10
10
|
"bugs": "https://github.com/facebook/react-native/issues",
|
|
11
|
-
"main": "./dist/
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"node": "./dist/node/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
// $FlowFixMe[unclear-type] We have no Flow types for the Electron API.
|
|
12
12
|
const {BrowserWindow, app, shell, ipcMain} = require('electron') as any;
|
|
13
|
+
const path = require('path');
|
|
13
14
|
const util = require('util');
|
|
14
15
|
|
|
15
16
|
const windowMetadata = new WeakMap<
|
|
@@ -68,6 +69,8 @@ function handleLaunchArgs(argv: string[]) {
|
|
|
68
69
|
partition: 'persist:react-native-devtools',
|
|
69
70
|
preload: require.resolve('./preload.js'),
|
|
70
71
|
},
|
|
72
|
+
// Icon for Linux
|
|
73
|
+
icon: path.join(__dirname, 'resources', 'icon.png'),
|
|
71
74
|
});
|
|
72
75
|
|
|
73
76
|
// Open links in the default browser instead of in new Electron windows.
|
|
@@ -90,7 +93,7 @@ function handleLaunchArgs(argv: string[]) {
|
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
app.whenReady().then(() => {
|
|
93
|
-
handleLaunchArgs(process.argv.slice(2));
|
|
96
|
+
handleLaunchArgs(process.argv.slice(app.isPackaged ? 1 : 2));
|
|
94
97
|
|
|
95
98
|
app.on(
|
|
96
99
|
'second-instance',
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// As far as Flow is concerned, this package is Node-only.
|
|
12
|
+
/*::
|
|
13
|
+
export type * from './node';
|
|
14
|
+
const Node = require('./node');
|
|
15
|
+
declare module.exports: typeof Node;
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
// Because Electron doesn't support package.json `exports`, we need to
|
|
19
|
+
// switch at runtime.
|
|
20
|
+
if ('electron' in process.versions) {
|
|
21
|
+
// $FlowIgnore[invalid-export]
|
|
22
|
+
module.exports = require('./electron');
|
|
23
|
+
} else {
|
|
24
|
+
// $FlowIgnore[invalid-export]
|
|
25
|
+
module.exports = require('./node');
|
|
26
|
+
}
|