@suss/adapter-ruby 0.31.0 → 0.31.1
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 +8 -1
- package/dist/index.js +8 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -468,7 +468,14 @@ function writtenValueOf(db, key) {
|
|
|
468
468
|
return (0, import_resolution.writtenValueOf)(db, key, (keys) => resolveValues(db, keys));
|
|
469
469
|
}
|
|
470
470
|
function writtenValueUnder(db, key, site) {
|
|
471
|
-
|
|
471
|
+
const outcome = (0, import_resolution.askResolutionUnder)(
|
|
472
|
+
db,
|
|
473
|
+
[[key, site]],
|
|
474
|
+
(0, import_resolution.resolutionUnderProgram)(RUBY_RULES)
|
|
475
|
+
);
|
|
476
|
+
if (outcome === "abandoned") {
|
|
477
|
+
return null;
|
|
478
|
+
}
|
|
472
479
|
return (0, import_resolution.writtenValueUnder)(db, key, site);
|
|
473
480
|
}
|
|
474
481
|
function constructionSites(db, classKey) {
|
package/dist/index.js
CHANGED
|
@@ -398,7 +398,14 @@ function writtenValueOf(db, key) {
|
|
|
398
398
|
return sharedWrittenValueOf(db, key, (keys) => resolveValues(db, keys));
|
|
399
399
|
}
|
|
400
400
|
function writtenValueUnder(db, key, site) {
|
|
401
|
-
|
|
401
|
+
const outcome = askResolutionUnder(
|
|
402
|
+
db,
|
|
403
|
+
[[key, site]],
|
|
404
|
+
resolutionUnderProgram(RUBY_RULES)
|
|
405
|
+
);
|
|
406
|
+
if (outcome === "abandoned") {
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
402
409
|
return sharedWrittenValueUnder(db, key, site);
|
|
403
410
|
}
|
|
404
411
|
function constructionSites(db, classKey) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/adapter-ruby",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Read a Ruby codebase with suss and check what each Rails action or graphql-ruby resolver returns against the code that calls it.",
|
|
6
6
|
"keywords": [
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"typecheck": "tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@suss/behavioral-ir": "0.31.
|
|
53
|
-
"@suss/datalog": "0.31.
|
|
54
|
-
"@suss/extractor": "0.31.
|
|
55
|
-
"@suss/ir-core": "0.31.
|
|
56
|
-
"@suss/resolution": "0.31.
|
|
57
|
-
"@suss/values": "0.31.
|
|
52
|
+
"@suss/behavioral-ir": "0.31.1",
|
|
53
|
+
"@suss/datalog": "0.31.1",
|
|
54
|
+
"@suss/extractor": "0.31.1",
|
|
55
|
+
"@suss/ir-core": "0.31.1",
|
|
56
|
+
"@suss/resolution": "0.31.1",
|
|
57
|
+
"@suss/values": "0.31.1",
|
|
58
58
|
"web-tree-sitter": "^0.26.11"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|