firefox-devtools-mcp 0.2.5 → 0.3.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.
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15646,6 +15646,7 @@ __export(index_exports, {
|
|
|
15646
15646
|
import { version } from "process";
|
|
15647
15647
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
15648
15648
|
import { resolve as resolve2 } from "path";
|
|
15649
|
+
import { realpathSync } from "fs";
|
|
15649
15650
|
async function getFirefox() {
|
|
15650
15651
|
if (!firefox2) {
|
|
15651
15652
|
log("Initializing Firefox DevTools connection...");
|
|
@@ -15809,7 +15810,14 @@ var init_index = __esm({
|
|
|
15809
15810
|
];
|
|
15810
15811
|
modulePath = fileURLToPath2(import.meta.url);
|
|
15811
15812
|
scriptPath = process.argv[1] ? resolve2(process.argv[1]) : "";
|
|
15812
|
-
isMainModule =
|
|
15813
|
+
isMainModule = false;
|
|
15814
|
+
try {
|
|
15815
|
+
const realModulePath = realpathSync(modulePath);
|
|
15816
|
+
const realScriptPath = scriptPath ? realpathSync(scriptPath) : "";
|
|
15817
|
+
isMainModule = realModulePath === realScriptPath;
|
|
15818
|
+
} catch (error) {
|
|
15819
|
+
isMainModule = modulePath === scriptPath;
|
|
15820
|
+
}
|
|
15813
15821
|
if (isMainModule) {
|
|
15814
15822
|
main().catch((error) => {
|
|
15815
15823
|
logError("Fatal error in main", error);
|