@suss/resolution 0.22.3 → 0.22.4

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
@@ -1142,6 +1142,14 @@ var RESOLUTION_QUESTIONS = [
1142
1142
  [(0, import_datalog3.variable)("x"), (0, import_datalog3.variable)("z")],
1143
1143
  [(0, import_datalog3.lit)("wanted", (0, import_datalog3.variable)("x")), (0, import_datalog3.lit)("objectOf", (0, import_datalog3.variable)("x"), (0, import_datalog3.variable)("z"))]
1144
1144
  ),
1145
+ // The same for the function a call returns: `app.use(requireCaller(config))`
1146
+ // registers what the factory gives back, and `resolves` on the call
1147
+ // says nothing unless the factory unwraps an argument.
1148
+ (0, import_datalog3.rule)(
1149
+ "wantedGivesBack",
1150
+ [(0, import_datalog3.variable)("x"), (0, import_datalog3.variable)("z")],
1151
+ [(0, import_datalog3.lit)("wanted", (0, import_datalog3.variable)("x")), (0, import_datalog3.lit)("givesBack", (0, import_datalog3.variable)("x"), (0, import_datalog3.variable)("z"))]
1152
+ ),
1145
1153
  // Keyed by the parameter, since that is what a caller has in hand
1146
1154
  // when it wants the call sites told apart.
1147
1155
  (0, import_datalog3.rule)(
package/dist/index.js CHANGED
@@ -1098,6 +1098,14 @@ var RESOLUTION_QUESTIONS = [
1098
1098
  [v("x"), v("z")],
1099
1099
  [lit("wanted", v("x")), lit("objectOf", v("x"), v("z"))]
1100
1100
  ),
1101
+ // The same for the function a call returns: `app.use(requireCaller(config))`
1102
+ // registers what the factory gives back, and `resolves` on the call
1103
+ // says nothing unless the factory unwraps an argument.
1104
+ rule(
1105
+ "wantedGivesBack",
1106
+ [v("x"), v("z")],
1107
+ [lit("wanted", v("x")), lit("givesBack", v("x"), v("z"))]
1108
+ ),
1101
1109
  // Keyed by the parameter, since that is what a caller has in hand
1102
1110
  // when it wants the call sites told apart.
1103
1111
  rule(
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@suss/resolution",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
4
4
  "type": "module",
5
- "description": "Language-neutral rules for following a value to the function it comes down to.",
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": [
7
7
  "suss",
8
+ "static-analysis",
8
9
  "datalog",
9
10
  "resolution",
10
- "static-analysis"
11
+ "typescript",
12
+ "python",
13
+ "ruby"
11
14
  ],
12
15
  "license": "Apache-2.0",
13
16
  "author": "Nimbus Cloud AI LLC",
@@ -53,6 +56,6 @@
53
56
  "access": "public"
54
57
  },
55
58
  "dependencies": {
56
- "@suss/datalog": "0.22.3"
59
+ "@suss/datalog": "0.22.4"
57
60
  }
58
61
  }