silgi 0.42.2 → 0.42.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.
@@ -2162,7 +2162,7 @@ async function writeTypesAndFiles(silgi) {
2162
2162
  contents: schemaContent.join("\n")
2163
2163
  });
2164
2164
  buildFiles.push({
2165
- path: join(typesDir, "silgi.d.ts"),
2165
+ path: join(typesDir, "silgi-config.d.ts"),
2166
2166
  contents: declarations.join("\n")
2167
2167
  });
2168
2168
  buildFiles.push({
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.42.2";
4
+ const version = "0.42.4";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -30,7 +30,7 @@ async function silgiGenerateType(silgi) {
30
30
  );
31
31
  const tsconfigDir = dirname(tsConfigPath);
32
32
  const include = /* @__PURE__ */ new Set([
33
- relativeWithDot(tsconfigDir, join(silgi.options.build.typesDir, "silgi.d.ts")).replace(
33
+ relativeWithDot(tsconfigDir, join(silgi.options.build.typesDir, "silgi-config.d.ts")).replace(
34
34
  /^(?=[^.])/,
35
35
  "./"
36
36
  ),
@@ -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.2",
4
+ "version": "0.42.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {