panopticon-cli 0.6.4 → 0.6.5
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/dashboard/server.js
CHANGED
|
@@ -22168,21 +22168,15 @@ init_config_yaml();
|
|
|
22168
22168
|
init_config();
|
|
22169
22169
|
const execAsync$2 = promisify(exec);
|
|
22170
22170
|
function readPackageVersion() {
|
|
22171
|
-
|
|
22172
|
-
for (
|
|
22173
|
-
"
|
|
22174
|
-
"..",
|
|
22175
|
-
".."
|
|
22176
|
-
], [
|
|
22177
|
-
"..",
|
|
22178
|
-
"..",
|
|
22179
|
-
"..",
|
|
22180
|
-
".."
|
|
22181
|
-
]]) {
|
|
22182
|
-
const candidate = join$1(base, ...levels, "package.json");
|
|
22171
|
+
let dir = dirname$1(fileURLToPath(import.meta.url));
|
|
22172
|
+
for (let i = 0; i < 8; i++) {
|
|
22173
|
+
const candidate = join$1(dir, "package.json");
|
|
22183
22174
|
try {
|
|
22184
22175
|
return JSON.parse(readFileSync$1(candidate, "utf-8")).version;
|
|
22185
22176
|
} catch {}
|
|
22177
|
+
const parent = dirname$1(dir);
|
|
22178
|
+
if (parent === dir) break;
|
|
22179
|
+
dir = parent;
|
|
22186
22180
|
}
|
|
22187
22181
|
return "0.0.0";
|
|
22188
22182
|
}
|