@suss/adapter-typescript 0.31.0 → 0.31.2

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 CHANGED
@@ -2561,12 +2561,16 @@ var ResolutionStore = class {
2561
2561
  return cached;
2562
2562
  }
2563
2563
  this.askAbout(target, "wanted", () => void 0);
2564
- (0, import_resolution2.askResolutionUnder)(
2564
+ const outcome = (0, import_resolution2.askResolutionUnder)(
2565
2565
  this.db,
2566
2566
  [[key, site]],
2567
2567
  (0, import_resolution2.resolutionUnderProgram)(JS_RULES)
2568
2568
  );
2569
2569
  this.stale = true;
2570
+ if (outcome === "abandoned") {
2571
+ this.writtenUnderSite.set(`${key}|${site}`, null);
2572
+ return null;
2573
+ }
2570
2574
  const answer = (0, import_resolution2.writtenValueUnder)(this.db, key, site);
2571
2575
  const node = answer === null ? null : this.table.byId.get(answer) ?? null;
2572
2576
  const written = node === null || node === target || !import_ts_morph7.Node.isExpression(node) ? null : node;
package/dist/index.js CHANGED
@@ -2517,12 +2517,16 @@ var ResolutionStore = class {
2517
2517
  return cached;
2518
2518
  }
2519
2519
  this.askAbout(target, "wanted", () => void 0);
2520
- askResolutionUnder(
2520
+ const outcome = askResolutionUnder(
2521
2521
  this.db,
2522
2522
  [[key, site]],
2523
2523
  resolutionUnderProgram(JS_RULES)
2524
2524
  );
2525
2525
  this.stale = true;
2526
+ if (outcome === "abandoned") {
2527
+ this.writtenUnderSite.set(`${key}|${site}`, null);
2528
+ return null;
2529
+ }
2526
2530
  const answer = writtenValueUnder(this.db, key, site);
2527
2531
  const node = answer === null ? null : this.table.byId.get(answer) ?? null;
2528
2532
  const written = node === null || node === target || !Node6.isExpression(node) ? null : node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suss/adapter-typescript",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "type": "module",
5
5
  "description": "Read a TypeScript or JavaScript codebase with suss and check what each handler returns against every caller, spec and template it can see.",
6
6
  "keywords": [
@@ -48,11 +48,11 @@
48
48
  "typecheck": "tsc --noEmit"
49
49
  },
50
50
  "dependencies": {
51
- "@suss/behavioral-ir": "0.31.0",
52
- "@suss/datalog": "0.31.0",
53
- "@suss/extractor": "0.31.0",
54
- "@suss/resolution": "0.31.0",
55
- "@suss/values": "0.31.0",
51
+ "@suss/behavioral-ir": "0.31.2",
52
+ "@suss/datalog": "0.31.2",
53
+ "@suss/extractor": "0.31.2",
54
+ "@suss/resolution": "0.31.2",
55
+ "@suss/values": "0.31.2",
56
56
  "graphql": "^16.8.0",
57
57
  "picomatch": "^4.0.4",
58
58
  "ts-morph": "^23.0.0",