@callidescope/graph 0.0.14 → 0.0.15
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/CHANGELOG.md +7 -0
- package/README.md +8 -8
- package/dist/src/index.js +25 -53
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -636,13 +636,13 @@ graph LR
|
|
|
636
636
|
### Project
|
|
637
637
|
|
|
638
638
|

|
|
639
|
-

|
|
640
640
|

|
|
641
641
|

|
|
642
642
|
|
|
643
643
|
### Measured Targets
|
|
644
644
|
|
|
645
|
-

|
|
646
646
|
|
|
647
647
|
### TypeScript
|
|
648
648
|
|
|
@@ -824,16 +824,16 @@ graph LR
|
|
|
824
824
|
### Markdown
|
|
825
825
|
|
|
826
826
|

|
|
827
|
-

|
|
828
828
|

|
|
829
|
-

|
|
830
|
+

|
|
831
831
|

|
|
832
832
|

|
|
833
833
|

|
|
834
|
-

|
|
835
|
+

|
|
836
|
+

|
|
837
837
|

|
|
838
838
|

|
|
839
839
|

|
package/dist/src/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import { execFileSync as ne } from "node:child_process";
|
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
8
8
|
var re = /^\d+$/u, ie = /:\d+$/u;
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region \0@oxc-project+runtime@0.
|
|
10
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateMetadata.js
|
|
11
11
|
function __decorateMetadata(e, t) {
|
|
12
12
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
16
16
|
function __decorate(e, t, n, r) {
|
|
17
17
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
18
18
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
@@ -223,11 +223,7 @@ var oe = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
static logToStandardError() {
|
|
226
|
-
|
|
227
|
-
process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
d.writesToStandardError = !0;
|
|
226
|
+
d.rootLogger === void 0 ? d.writesToStandardError = !0 : process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
231
227
|
}
|
|
232
228
|
assertConventionalMessage(e) {
|
|
233
229
|
if (d.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
|
|
@@ -404,20 +400,19 @@ var ue = "the directory holds no tsconfig.json", ProgramConfigurationError = cla
|
|
|
404
400
|
configurationPath: n,
|
|
405
401
|
fileFilter: t.fileFilter,
|
|
406
402
|
workspaceRoot: t.workspaceRoot
|
|
407
|
-
})) {
|
|
408
|
-
|
|
409
|
-
|
|
403
|
+
})) this.logger.debug("🔭 Skipped an excluded project", void 0, { root: i });
|
|
404
|
+
else {
|
|
405
|
+
if (!s(n)) throw new ProgramConfigurationError({
|
|
406
|
+
configurationPath: n,
|
|
407
|
+
messages: [ue]
|
|
408
|
+
});
|
|
409
|
+
r.push({
|
|
410
|
+
configurationPath: n,
|
|
411
|
+
hasPackageManifest: s(e.join(t.workspaceRoot, i, fe)),
|
|
412
|
+
name: i,
|
|
413
|
+
root: i
|
|
414
|
+
});
|
|
410
415
|
}
|
|
411
|
-
if (!s(n)) throw new ProgramConfigurationError({
|
|
412
|
-
configurationPath: n,
|
|
413
|
-
messages: [ue]
|
|
414
|
-
});
|
|
415
|
-
r.push({
|
|
416
|
-
configurationPath: n,
|
|
417
|
-
hasPackageManifest: s(e.join(t.workspaceRoot, i, fe)),
|
|
418
|
-
name: i,
|
|
419
|
-
root: i
|
|
420
|
-
});
|
|
421
416
|
}
|
|
422
417
|
return r.toSorted((e, t) => e.name.localeCompare(t.name));
|
|
423
418
|
}
|
|
@@ -492,11 +487,8 @@ var v, y = v = class FileFilterService {
|
|
|
492
487
|
let n = /* @__PURE__ */ new Set();
|
|
493
488
|
for (let r of t.excludeFrom) {
|
|
494
489
|
let i = e.resolve(t.workspaceRoot, r);
|
|
495
|
-
if (!s(i)) {
|
|
496
|
-
|
|
497
|
-
continue;
|
|
498
|
-
}
|
|
499
|
-
for (let e of this.listIgnoredFiles({
|
|
490
|
+
if (!s(i)) this.logger.warn("🔭 Skipped a missing ignore file", void 0, { ignoreFile: r });
|
|
491
|
+
else for (let e of this.listIgnoredFiles({
|
|
500
492
|
ignorePath: i,
|
|
501
493
|
workspaceRoot: t.workspaceRoot
|
|
502
494
|
})) n.add(e);
|
|
@@ -571,11 +563,7 @@ var S, C = S = class ProgramService {
|
|
|
571
563
|
projects: n,
|
|
572
564
|
workspaceRelativePath: r
|
|
573
565
|
}), s = e.programs.find((e) => e.project === o);
|
|
574
|
-
|
|
575
|
-
this.logger.warn("🔭 Skipped a file no traced project contains", void 0, { workspaceRelativePath: r });
|
|
576
|
-
continue;
|
|
577
|
-
}
|
|
578
|
-
i.set(a, s);
|
|
566
|
+
s === void 0 ? this.logger.warn("🔭 Skipped a file no traced project contains", void 0, { workspaceRelativePath: r }) : i.set(a, s);
|
|
579
567
|
}
|
|
580
568
|
return i;
|
|
581
569
|
}
|
|
@@ -1422,30 +1410,18 @@ var K = class AddressDepthService {
|
|
|
1422
1410
|
}
|
|
1423
1411
|
follow(e) {
|
|
1424
1412
|
let { context: t, frame: n, neighborId: r, paths: i, pending: a } = e;
|
|
1425
|
-
|
|
1426
|
-
i.push([...n.path, r]);
|
|
1427
|
-
return;
|
|
1428
|
-
}
|
|
1429
|
-
if (!t.callablesById.has(r)) {
|
|
1430
|
-
i.push(n.path);
|
|
1431
|
-
return;
|
|
1432
|
-
}
|
|
1433
|
-
a.push({
|
|
1413
|
+
n.path.includes(r) ? i.push([...n.path, r]) : t.callablesById.has(r) ? a.push({
|
|
1434
1414
|
currentId: r,
|
|
1435
1415
|
nextIndex: 0,
|
|
1436
1416
|
path: [...n.path, r]
|
|
1437
|
-
});
|
|
1417
|
+
}) : i.push(n.path);
|
|
1438
1418
|
}
|
|
1439
1419
|
isLowerBound(e) {
|
|
1440
1420
|
return e.path.some((t) => e.unresolvedCallerIds.has(t));
|
|
1441
1421
|
}
|
|
1442
1422
|
step(e) {
|
|
1443
1423
|
let { context: t, frame: n, paths: r, pending: i } = e, a = t.adjacency.get(n.currentId) ?? [], o = n.nextIndex === 0, s = a.at(n.nextIndex);
|
|
1444
|
-
|
|
1445
|
-
o && r.push(n.path), i.pop();
|
|
1446
|
-
return;
|
|
1447
|
-
}
|
|
1448
|
-
this.follow({
|
|
1424
|
+
n.nextIndex += 1, s === void 0 ? (o && r.push(n.path), i.pop()) : this.follow({
|
|
1449
1425
|
context: t,
|
|
1450
1426
|
frame: n,
|
|
1451
1427
|
neighborId: s,
|
|
@@ -1623,17 +1599,13 @@ var Te = 0, J = class ComponentsService {
|
|
|
1623
1599
|
}
|
|
1624
1600
|
visitSuccessor(e) {
|
|
1625
1601
|
let { parentId: t, state: n, successor: r } = e;
|
|
1626
|
-
|
|
1627
|
-
this.openNode({
|
|
1628
|
-
callableId: r,
|
|
1629
|
-
state: n
|
|
1630
|
-
});
|
|
1631
|
-
return;
|
|
1632
|
-
}
|
|
1633
|
-
n.onStack.has(r) && this.liftLowLink({
|
|
1602
|
+
n.order.has(r) ? n.onStack.has(r) && this.liftLowLink({
|
|
1634
1603
|
child: r,
|
|
1635
1604
|
parent: t,
|
|
1636
1605
|
state: n
|
|
1606
|
+
}) : this.openNode({
|
|
1607
|
+
callableId: r,
|
|
1608
|
+
state: n
|
|
1637
1609
|
});
|
|
1638
1610
|
}
|
|
1639
1611
|
buildSuccessors(e) {
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@callidescope/configuration": "0.0.
|
|
8
|
-
"@callidescope/core": "0.0.
|
|
7
|
+
"@callidescope/configuration": "0.0.16",
|
|
8
|
+
"@callidescope/core": "0.0.15",
|
|
9
9
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
10
10
|
"pino": "^10.3.1",
|
|
11
11
|
"pino-pretty": "^13.1.3",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"strict": true
|
|
67
67
|
},
|
|
68
68
|
"types": "./dist/src/index.d.ts",
|
|
69
|
-
"version": "0.0.
|
|
69
|
+
"version": "0.0.15"
|
|
70
70
|
}
|