silgi 0.42.3 → 0.42.5
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/cli/index.mjs +1 -1
- package/dist/cli/types.mjs +0 -1
- package/dist/core/index.d.mts +1 -2
- package/dist/core/index.mjs +3 -6
- package/dist/types/index.d.mts +2 -0
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -295,8 +295,7 @@ declare function replaceRuntimeValues(obj: any, runtime: any): any;
|
|
|
295
295
|
*/
|
|
296
296
|
declare function createSchema<Key extends string, Schema extends BaseMethodSchema>(params: {
|
|
297
297
|
key: Key;
|
|
298
|
-
|
|
299
|
-
}): {
|
|
298
|
+
} & Schema): {
|
|
300
299
|
[K in Key]: Schema;
|
|
301
300
|
};
|
|
302
301
|
|
package/dist/core/index.mjs
CHANGED
|
@@ -1312,13 +1312,10 @@ function createMiddleware(params) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
function createSchema(params) {
|
|
1315
|
-
const { key,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
setup,
|
|
1319
|
-
key
|
|
1315
|
+
const { key, ...object } = params;
|
|
1316
|
+
return {
|
|
1317
|
+
[key]: object
|
|
1320
1318
|
};
|
|
1321
|
-
return result;
|
|
1322
1319
|
}
|
|
1323
1320
|
|
|
1324
1321
|
function defineServiceSetup(setup) {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -724,6 +724,8 @@ interface BaseMethodSchema {
|
|
|
724
724
|
output?: StandardSchemaV1;
|
|
725
725
|
/** Schema for URL query parameters */
|
|
726
726
|
queryParams?: StandardSchemaV1;
|
|
727
|
+
/** Schema for URL headers */
|
|
728
|
+
pathParams?: StandardSchemaV1;
|
|
727
729
|
/** Schema for source data (contextual information) */
|
|
728
730
|
source?: StandardSchemaV1;
|
|
729
731
|
}
|