@suss/adapter-typescript 0.5.6 → 0.5.7
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.cjs +7 -1
- package/dist/index.js +7 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -2405,12 +2405,13 @@ function dispatchAccessRecognizers(root, recognizers, isStop) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
const out = [];
|
|
2407
2407
|
const sourceFile = root.getSourceFile();
|
|
2408
|
+
const seenEffects = /* @__PURE__ */ new Set();
|
|
2408
2409
|
root.forEachDescendant((node, traversal) => {
|
|
2409
2410
|
if (isStop(node)) {
|
|
2410
2411
|
traversal.skip();
|
|
2411
2412
|
return;
|
|
2412
2413
|
}
|
|
2413
|
-
if (!import_ts_morph12.Node.isPropertyAccessExpression(node)) {
|
|
2414
|
+
if (!import_ts_morph12.Node.isPropertyAccessExpression(node) && !import_ts_morph12.Node.isCallExpression(node)) {
|
|
2414
2415
|
return;
|
|
2415
2416
|
}
|
|
2416
2417
|
const ctx = {
|
|
@@ -2435,6 +2436,11 @@ function dispatchAccessRecognizers(root, recognizers, isStop) {
|
|
|
2435
2436
|
continue;
|
|
2436
2437
|
}
|
|
2437
2438
|
for (const eff of emitted) {
|
|
2439
|
+
const key = `${line}:${JSON.stringify(eff)}`;
|
|
2440
|
+
if (seenEffects.has(key)) {
|
|
2441
|
+
continue;
|
|
2442
|
+
}
|
|
2443
|
+
seenEffects.add(key);
|
|
2438
2444
|
out.push({ effect: eff, line });
|
|
2439
2445
|
}
|
|
2440
2446
|
}
|
package/dist/index.js
CHANGED
|
@@ -2375,12 +2375,13 @@ function dispatchAccessRecognizers(root, recognizers, isStop) {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
const out = [];
|
|
2377
2377
|
const sourceFile = root.getSourceFile();
|
|
2378
|
+
const seenEffects = /* @__PURE__ */ new Set();
|
|
2378
2379
|
root.forEachDescendant((node, traversal) => {
|
|
2379
2380
|
if (isStop(node)) {
|
|
2380
2381
|
traversal.skip();
|
|
2381
2382
|
return;
|
|
2382
2383
|
}
|
|
2383
|
-
if (!Node11.isPropertyAccessExpression(node)) {
|
|
2384
|
+
if (!Node11.isPropertyAccessExpression(node) && !Node11.isCallExpression(node)) {
|
|
2384
2385
|
return;
|
|
2385
2386
|
}
|
|
2386
2387
|
const ctx = {
|
|
@@ -2405,6 +2406,11 @@ function dispatchAccessRecognizers(root, recognizers, isStop) {
|
|
|
2405
2406
|
continue;
|
|
2406
2407
|
}
|
|
2407
2408
|
for (const eff of emitted) {
|
|
2409
|
+
const key = `${line}:${JSON.stringify(eff)}`;
|
|
2410
|
+
if (seenEffects.has(key)) {
|
|
2411
|
+
continue;
|
|
2412
|
+
}
|
|
2413
|
+
seenEffects.add(key);
|
|
2408
2414
|
out.push({ effect: eff, line });
|
|
2409
2415
|
}
|
|
2410
2416
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/adapter-typescript",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript adapter for suss — walks source files with ts-morph and emits raw extractions for the suss pipeline.",
|
|
6
6
|
"keywords": [
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@suss/behavioral-ir": "0.5.
|
|
50
|
-
"@suss/datalog": "0.5.
|
|
51
|
-
"@suss/extractor": "0.5.
|
|
52
|
-
"@suss/resolution": "0.5.
|
|
49
|
+
"@suss/behavioral-ir": "0.5.7",
|
|
50
|
+
"@suss/datalog": "0.5.7",
|
|
51
|
+
"@suss/extractor": "0.5.7",
|
|
52
|
+
"@suss/resolution": "0.5.7",
|
|
53
53
|
"graphql": "^16.8.0",
|
|
54
54
|
"picomatch": "^4.0.4",
|
|
55
55
|
"ts-morph": "^23.0.0"
|