@suss/resolution 0.33.0 → 0.33.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 +23 -0
- package/dist/index.js +23 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2655,6 +2655,29 @@ var RESOLUTION_QUESTIONS = [
|
|
|
2655
2655
|
(0, import_datalog4.lit)("paramNamesEnv", (0, import_datalog4.variable)("p"), (0, import_datalog4.variable)("site"))
|
|
2656
2656
|
]
|
|
2657
2657
|
),
|
|
2658
|
+
// The parameters the environment object is handed to, from the same
|
|
2659
|
+
// seed, so a question about one is a lookup rather than a read of
|
|
2660
|
+
// every file that could call its function.
|
|
2661
|
+
(0, import_datalog4.rule)(
|
|
2662
|
+
"wantedEnvParameter",
|
|
2663
|
+
[(0, import_datalog4.variable)("p")],
|
|
2664
|
+
[
|
|
2665
|
+
(0, import_datalog4.lit)("wantedEnvObject", (0, import_datalog4.variable)("w")),
|
|
2666
|
+
(0, import_datalog4.lit)("environmentValue", (0, import_datalog4.variable)("w"), (0, import_datalog4.variable)("p")),
|
|
2667
|
+
(0, import_datalog4.lit)("paramNamed", (0, import_datalog4.variable)("f"), (0, import_datalog4.variable)("n"), (0, import_datalog4.variable)("p"))
|
|
2668
|
+
]
|
|
2669
|
+
),
|
|
2670
|
+
// The calls that hand it on, for an asker to resolve, since the
|
|
2671
|
+
// parameter on the other side is in a file nothing has read yet.
|
|
2672
|
+
(0, import_datalog4.rule)(
|
|
2673
|
+
"wantedEnvPassingCall",
|
|
2674
|
+
[(0, import_datalog4.variable)("r")],
|
|
2675
|
+
[
|
|
2676
|
+
(0, import_datalog4.lit)("wantedEnvObject", (0, import_datalog4.variable)("w")),
|
|
2677
|
+
(0, import_datalog4.lit)("environmentValue", (0, import_datalog4.variable)("w"), (0, import_datalog4.variable)("a")),
|
|
2678
|
+
(0, import_datalog4.lit)("callArg", (0, import_datalog4.variable)("r"), (0, import_datalog4.variable)("k"), (0, import_datalog4.variable)("a"))
|
|
2679
|
+
]
|
|
2680
|
+
),
|
|
2658
2681
|
// The same relation asked from one expression. Seeding from the
|
|
2659
2682
|
// objects instead would settle it for every expression in the
|
|
2660
2683
|
// project, and a caller holding an argument wants only that one.
|
package/dist/index.js
CHANGED
|
@@ -2588,6 +2588,29 @@ var RESOLUTION_QUESTIONS = [
|
|
|
2588
2588
|
lit("paramNamesEnv", v("p"), v("site"))
|
|
2589
2589
|
]
|
|
2590
2590
|
),
|
|
2591
|
+
// The parameters the environment object is handed to, from the same
|
|
2592
|
+
// seed, so a question about one is a lookup rather than a read of
|
|
2593
|
+
// every file that could call its function.
|
|
2594
|
+
rule(
|
|
2595
|
+
"wantedEnvParameter",
|
|
2596
|
+
[v("p")],
|
|
2597
|
+
[
|
|
2598
|
+
lit("wantedEnvObject", v("w")),
|
|
2599
|
+
lit("environmentValue", v("w"), v("p")),
|
|
2600
|
+
lit("paramNamed", v("f"), v("n"), v("p"))
|
|
2601
|
+
]
|
|
2602
|
+
),
|
|
2603
|
+
// The calls that hand it on, for an asker to resolve, since the
|
|
2604
|
+
// parameter on the other side is in a file nothing has read yet.
|
|
2605
|
+
rule(
|
|
2606
|
+
"wantedEnvPassingCall",
|
|
2607
|
+
[v("r")],
|
|
2608
|
+
[
|
|
2609
|
+
lit("wantedEnvObject", v("w")),
|
|
2610
|
+
lit("environmentValue", v("w"), v("a")),
|
|
2611
|
+
lit("callArg", v("r"), v("k"), v("a"))
|
|
2612
|
+
]
|
|
2613
|
+
),
|
|
2591
2614
|
// The same relation asked from one expression. Seeding from the
|
|
2592
2615
|
// objects instead would settle it for every expression in the
|
|
2593
2616
|
// project, and a caller holding an argument wants only that one.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/resolution",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The rules suss uses to follow a name in TypeScript, Python or Ruby to the function it comes down to.",
|
|
6
6
|
"keywords": [
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@suss/datalog": "0.33.
|
|
59
|
+
"@suss/datalog": "0.33.1"
|
|
60
60
|
}
|
|
61
61
|
}
|