@elyx-code/project-logic-tree 0.0.594 → 0.0.595
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 +10 -6
- package/dist/index.umd.cjs +12 -12
- package/dist/tree/state/store.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40078,10 +40078,11 @@ function x9(n) {
|
|
|
40078
40078
|
}
|
|
40079
40079
|
const nr = {}, ea = {};
|
|
40080
40080
|
async function $9(n, e = {}) {
|
|
40081
|
+
console.log("Fetching project", n, "with options", e);
|
|
40081
40082
|
const t = {
|
|
40082
40083
|
...cG
|
|
40083
40084
|
};
|
|
40084
|
-
return t.id = n.id, e.empty ? {
|
|
40085
|
+
return t.id = n.id, e.empty ? (console.log("Returning empty project"), {
|
|
40085
40086
|
data: {
|
|
40086
40087
|
id: n.id,
|
|
40087
40088
|
type: r.Project,
|
|
@@ -40100,24 +40101,26 @@ async function $9(n, e = {}) {
|
|
|
40100
40101
|
searches: [],
|
|
40101
40102
|
events: []
|
|
40102
40103
|
}
|
|
40103
|
-
} : { data: t };
|
|
40104
|
+
}) : (console.log("Returning project data", t), { data: t });
|
|
40104
40105
|
}
|
|
40105
40106
|
function V9(n) {
|
|
40107
|
+
console.log("Initializing project", n);
|
|
40106
40108
|
const e = new x(n);
|
|
40107
40109
|
return B9(e), w9(e), O9(e), _9(e), M9(e), N9(e), x9(e), e.initChildren(), e;
|
|
40108
40110
|
}
|
|
40109
40111
|
async function g3(n, e = {}) {
|
|
40110
40112
|
try {
|
|
40111
|
-
if (n.id && nr[n.id])
|
|
40112
|
-
return nr[n.id];
|
|
40113
|
+
if (console.log("Getting project", n, "with options", e), n.id && nr[n.id])
|
|
40114
|
+
return console.log("Project already cached", n.id), nr[n.id];
|
|
40113
40115
|
if (n.id && ea[n.id])
|
|
40114
|
-
return await ea[n.id], nr[n.id];
|
|
40116
|
+
return console.log("Project already being fetched", n.id), await ea[n.id], nr[n.id];
|
|
40115
40117
|
const t = $9(n, e);
|
|
40116
40118
|
n.id && (ea[n.id] = t);
|
|
40117
40119
|
const i = await t;
|
|
40118
40120
|
if (i.data) {
|
|
40121
|
+
console.log("Fetched project", i.data);
|
|
40119
40122
|
const a = V9(i.data);
|
|
40120
|
-
return nr[n.id] = a, n.id && delete ea[n.id], a;
|
|
40123
|
+
return nr[n.id] = a, n.id && (console.log("Deleting currently fetching", n.id), delete ea[n.id]), console.log("Returning project state", a), a;
|
|
40121
40124
|
}
|
|
40122
40125
|
return null;
|
|
40123
40126
|
} catch (t) {
|
|
@@ -40146,6 +40149,7 @@ export {
|
|
|
40146
40149
|
sd as BaseValueDescriptorIds,
|
|
40147
40150
|
Ii as BreakStatementState,
|
|
40148
40151
|
Ft as BuiltInBaseEntityState,
|
|
40152
|
+
nr as CACHED_PROJECTS_BY_ID,
|
|
40149
40153
|
z6 as CALLABLE_ENTITIES_EXPLANATION,
|
|
40150
40154
|
$n as CALLABLE_TYPES,
|
|
40151
40155
|
$8 as CALLER_ENTITIES_EXPLANATION,
|