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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.42.3";
4
+ const version = "0.42.5";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -67,7 +67,6 @@ async function silgiGenerateType(silgi) {
67
67
  allowSyntheticDefaultImports: true,
68
68
  skipLibCheck: true,
69
69
  allowImportingTsExtensions: true,
70
- baseUrl: "./",
71
70
  /* Target options: */
72
71
  target: "ESNext",
73
72
  allowJs: true,
@@ -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
- setup: Schema;
299
- }): {
298
+ } & Schema): {
300
299
  [K in Key]: Schema;
301
300
  };
302
301
 
@@ -1312,13 +1312,10 @@ function createMiddleware(params) {
1312
1312
  }
1313
1313
 
1314
1314
  function createSchema(params) {
1315
- const { key, setup } = params;
1316
- const result = {};
1317
- result[key] = {
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) {
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.42.3",
4
+ "version": "0.42.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {