poe-code 3.0.199 → 3.0.201
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.
|
@@ -18358,6 +18358,9 @@ async function resolveBaseChain({
|
|
|
18358
18358
|
throw error2;
|
|
18359
18359
|
}
|
|
18360
18360
|
if (visited.has(discoveredBase.filePath)) {
|
|
18361
|
+
if (optional) {
|
|
18362
|
+
return void 0;
|
|
18363
|
+
}
|
|
18361
18364
|
throw new Error(
|
|
18362
18365
|
`Circular extends detected.
|
|
18363
18366
|
Visited files:
|
|
@@ -19517,7 +19520,7 @@ async function writeScope(fs4, filePath, scope, values) {
|
|
|
19517
19520
|
}
|
|
19518
19521
|
async function readMergedDocument(fs4, globalPath, projectPath) {
|
|
19519
19522
|
const globalDocument = await readStoredDocument(fs4, globalPath);
|
|
19520
|
-
if (!projectPath) {
|
|
19523
|
+
if (!projectPath || projectPath === globalPath) {
|
|
19521
19524
|
return globalDocument.data;
|
|
19522
19525
|
}
|
|
19523
19526
|
const projectDocument = await readStoredDocument(fs4, projectPath);
|