@suss/adapter-python 0.25.0 → 0.26.0
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.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -312,7 +312,7 @@ interface PyClientCall {
|
|
|
312
312
|
};
|
|
313
313
|
/** Constructors whose instances take the same calls, `Session`. */
|
|
314
314
|
receiverConstructors?: string[];
|
|
315
|
-
/** What the response object gives a caller, so a guard on
|
|
315
|
+
/** What the response object gives a caller, so a guard on one of its members counts as a guard on a status. */
|
|
316
316
|
response?: PyClientResponse;
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
@@ -355,7 +355,7 @@ interface RouteConventions {
|
|
|
355
355
|
defaultStatusCode?: number;
|
|
356
356
|
/**
|
|
357
357
|
* Set it only when the library reads a status out of the tuple a handler
|
|
358
|
-
* returns,
|
|
358
|
+
* returns, as Flask does with `return body, 201`. Without it
|
|
359
359
|
* the library default applies whatever the body returns, and a route
|
|
360
360
|
* that sets its own status would be reported at the default.
|
|
361
361
|
*/
|
|
@@ -375,7 +375,7 @@ interface RouteConventions {
|
|
|
375
375
|
* own status; a return of anything else keeps the declared one.
|
|
376
376
|
*/
|
|
377
377
|
responseConstructors?: PyStatusCall[];
|
|
378
|
-
/** Unset means the library has no router mounting, and a route's decorator path
|
|
378
|
+
/** Unset means the library has no router mounting, and a route's decorator path is used as written. */
|
|
379
379
|
routerComposition?: RouterComposition;
|
|
380
380
|
/** The ways the library runs a project's own function around a route. The README lists what each one covers. */
|
|
381
381
|
wrappers?: PyWrapperForm[];
|
|
@@ -431,7 +431,7 @@ interface PyDecoratedWrapperForm {
|
|
|
431
431
|
continuationParam?: number;
|
|
432
432
|
/**
|
|
433
433
|
* Set when a value returned ends the request and only a bare return
|
|
434
|
-
* hands on
|
|
434
|
+
* hands on. Flask's `before_request` works this way.
|
|
435
435
|
*/
|
|
436
436
|
returnedValueResponds?: boolean;
|
|
437
437
|
/** The position the library hands the raised exception at. Set on an error handler, which runs only when the handler raised. */
|
package/dist/index.d.ts
CHANGED
|
@@ -312,7 +312,7 @@ interface PyClientCall {
|
|
|
312
312
|
};
|
|
313
313
|
/** Constructors whose instances take the same calls, `Session`. */
|
|
314
314
|
receiverConstructors?: string[];
|
|
315
|
-
/** What the response object gives a caller, so a guard on
|
|
315
|
+
/** What the response object gives a caller, so a guard on one of its members counts as a guard on a status. */
|
|
316
316
|
response?: PyClientResponse;
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
@@ -355,7 +355,7 @@ interface RouteConventions {
|
|
|
355
355
|
defaultStatusCode?: number;
|
|
356
356
|
/**
|
|
357
357
|
* Set it only when the library reads a status out of the tuple a handler
|
|
358
|
-
* returns,
|
|
358
|
+
* returns, as Flask does with `return body, 201`. Without it
|
|
359
359
|
* the library default applies whatever the body returns, and a route
|
|
360
360
|
* that sets its own status would be reported at the default.
|
|
361
361
|
*/
|
|
@@ -375,7 +375,7 @@ interface RouteConventions {
|
|
|
375
375
|
* own status; a return of anything else keeps the declared one.
|
|
376
376
|
*/
|
|
377
377
|
responseConstructors?: PyStatusCall[];
|
|
378
|
-
/** Unset means the library has no router mounting, and a route's decorator path
|
|
378
|
+
/** Unset means the library has no router mounting, and a route's decorator path is used as written. */
|
|
379
379
|
routerComposition?: RouterComposition;
|
|
380
380
|
/** The ways the library runs a project's own function around a route. The README lists what each one covers. */
|
|
381
381
|
wrappers?: PyWrapperForm[];
|
|
@@ -431,7 +431,7 @@ interface PyDecoratedWrapperForm {
|
|
|
431
431
|
continuationParam?: number;
|
|
432
432
|
/**
|
|
433
433
|
* Set when a value returned ends the request and only a bare return
|
|
434
|
-
* hands on
|
|
434
|
+
* hands on. Flask's `before_request` works this way.
|
|
435
435
|
*/
|
|
436
436
|
returnedValueResponds?: boolean;
|
|
437
437
|
/** The position the library hands the raised exception at. Set on an error handler, which runs only when the handler raised. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/adapter-python",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Read a Python codebase with suss and check what each FastAPI or Flask route returns against the clients, specs and infrastructure that depend on it.",
|
|
6
6
|
"keywords": [
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"typecheck": "tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@suss/behavioral-ir": "0.
|
|
53
|
-
"@suss/datalog": "0.
|
|
54
|
-
"@suss/extractor": "0.
|
|
55
|
-
"@suss/ir-core": "0.
|
|
56
|
-
"@suss/resolution": "0.
|
|
57
|
-
"@suss/sql": "0.
|
|
58
|
-
"@suss/values": "0.
|
|
52
|
+
"@suss/behavioral-ir": "0.26.0",
|
|
53
|
+
"@suss/datalog": "0.26.0",
|
|
54
|
+
"@suss/extractor": "0.26.0",
|
|
55
|
+
"@suss/ir-core": "0.26.0",
|
|
56
|
+
"@suss/resolution": "0.26.0",
|
|
57
|
+
"@suss/sql": "0.26.0",
|
|
58
|
+
"@suss/values": "0.26.0",
|
|
59
59
|
"web-tree-sitter": "^0.26.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|