@suss/extractor 0.5.8 → 0.5.9
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 +31 -0
- package/dist/index.d.ts +31 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -945,6 +945,19 @@ interface ContractPattern {
|
|
|
945
945
|
paramsExtraction?: {
|
|
946
946
|
property: string;
|
|
947
947
|
};
|
|
948
|
+
/**
|
|
949
|
+
* Where the reader finds one endpoint's contract object. Left out,
|
|
950
|
+
* the ts-rest shape applies: one contract object contains every
|
|
951
|
+
* endpoint keyed by handler name, and the reader walks up from the
|
|
952
|
+
* handler to the enclosing router call. With `registrationArgument`,
|
|
953
|
+
* the zod-openapi shape applies instead: `app.openapi(route, handler)`
|
|
954
|
+
* passes the endpoint's own contract as the handler's sibling
|
|
955
|
+
* argument.
|
|
956
|
+
*/
|
|
957
|
+
endpoint?: {
|
|
958
|
+
from: "registrationArgument";
|
|
959
|
+
position: number;
|
|
960
|
+
};
|
|
948
961
|
}
|
|
949
962
|
type InputMappingPattern = {
|
|
950
963
|
/** Single object parameter, e.g. React Router LoaderFunctionArgs */
|
|
@@ -1234,6 +1247,24 @@ interface PatternPack {
|
|
|
1234
1247
|
* available without importing anything).
|
|
1235
1248
|
*/
|
|
1236
1249
|
requiresImport?: string[];
|
|
1250
|
+
/**
|
|
1251
|
+
* Environment variables the pack's library reads from inside
|
|
1252
|
+
* node_modules, where no walk ever looks. Declaring them keeps the
|
|
1253
|
+
* checker from telling a template that a variable is unused when the
|
|
1254
|
+
* library reads it on every invocation. The adapter emits one marker
|
|
1255
|
+
* summary per entry whose `module` some project file imports, and
|
|
1256
|
+
* the runtime-config pairing consults the markers before it accuses.
|
|
1257
|
+
* The module match is a specifier prefix, so one entry covers a
|
|
1258
|
+
* scoped family like `@aws-lambda-powertools/`.
|
|
1259
|
+
*/
|
|
1260
|
+
libraryEnvVars?: Array<{
|
|
1261
|
+
/** Module-specifier prefix the library's imports start with. */
|
|
1262
|
+
module: string;
|
|
1263
|
+
/** Env-var name prefixes the library reads, e.g. "POWERTOOLS_". */
|
|
1264
|
+
prefixes?: string[];
|
|
1265
|
+
/** Exact env-var names the library reads. */
|
|
1266
|
+
names?: string[];
|
|
1267
|
+
}>;
|
|
1237
1268
|
/**
|
|
1238
1269
|
* Library wrappers that return the function they wrapped. The adapter
|
|
1239
1270
|
* works this out on its own for a factory inside the project by reading
|
package/dist/index.d.ts
CHANGED
|
@@ -945,6 +945,19 @@ interface ContractPattern {
|
|
|
945
945
|
paramsExtraction?: {
|
|
946
946
|
property: string;
|
|
947
947
|
};
|
|
948
|
+
/**
|
|
949
|
+
* Where the reader finds one endpoint's contract object. Left out,
|
|
950
|
+
* the ts-rest shape applies: one contract object contains every
|
|
951
|
+
* endpoint keyed by handler name, and the reader walks up from the
|
|
952
|
+
* handler to the enclosing router call. With `registrationArgument`,
|
|
953
|
+
* the zod-openapi shape applies instead: `app.openapi(route, handler)`
|
|
954
|
+
* passes the endpoint's own contract as the handler's sibling
|
|
955
|
+
* argument.
|
|
956
|
+
*/
|
|
957
|
+
endpoint?: {
|
|
958
|
+
from: "registrationArgument";
|
|
959
|
+
position: number;
|
|
960
|
+
};
|
|
948
961
|
}
|
|
949
962
|
type InputMappingPattern = {
|
|
950
963
|
/** Single object parameter, e.g. React Router LoaderFunctionArgs */
|
|
@@ -1234,6 +1247,24 @@ interface PatternPack {
|
|
|
1234
1247
|
* available without importing anything).
|
|
1235
1248
|
*/
|
|
1236
1249
|
requiresImport?: string[];
|
|
1250
|
+
/**
|
|
1251
|
+
* Environment variables the pack's library reads from inside
|
|
1252
|
+
* node_modules, where no walk ever looks. Declaring them keeps the
|
|
1253
|
+
* checker from telling a template that a variable is unused when the
|
|
1254
|
+
* library reads it on every invocation. The adapter emits one marker
|
|
1255
|
+
* summary per entry whose `module` some project file imports, and
|
|
1256
|
+
* the runtime-config pairing consults the markers before it accuses.
|
|
1257
|
+
* The module match is a specifier prefix, so one entry covers a
|
|
1258
|
+
* scoped family like `@aws-lambda-powertools/`.
|
|
1259
|
+
*/
|
|
1260
|
+
libraryEnvVars?: Array<{
|
|
1261
|
+
/** Module-specifier prefix the library's imports start with. */
|
|
1262
|
+
module: string;
|
|
1263
|
+
/** Env-var name prefixes the library reads, e.g. "POWERTOOLS_". */
|
|
1264
|
+
prefixes?: string[];
|
|
1265
|
+
/** Exact env-var names the library reads. */
|
|
1266
|
+
names?: string[];
|
|
1267
|
+
}>;
|
|
1237
1268
|
/**
|
|
1238
1269
|
* Library wrappers that return the function they wrapped. The adapter
|
|
1239
1270
|
* works this out on its own for a factory inside the project by reading
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/extractor",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Framework-agnostic extraction pipeline that turns raw extractions into suss behavioral summaries.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typecheck": "tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@suss/behavioral-ir": "0.5.
|
|
48
|
+
"@suss/behavioral-ir": "0.5.9"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "*",
|