@emeryld/rrroutes-export 1.1.0 → 1.1.1

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.cjs CHANGED
@@ -271,7 +271,7 @@ function introspectSchema(schema, options = {}) {
271
271
  // src/serializeLeafContract.ts
272
272
  var import_rrroutes_contract = require("@emeryld/rrroutes-contract");
273
273
  function serializeContractSchema(schema, options) {
274
- return schema ? introspectSchema((0, import_rrroutes_contract.routeSchemaParse)(schema), options) : void 0;
274
+ return schema ? introspectSchema((0, import_rrroutes_contract.asZodSchema)(schema), options) : void 0;
275
275
  }
276
276
  function serializeBodyFiles(cfg) {
277
277
  if (!Array.isArray(cfg.bodyFiles) || cfg.bodyFiles.length === 0) {
@@ -302,7 +302,10 @@ function serializeLeafContract(leaf, options = {}) {
302
302
  params: serializeContractSchema(cfg.paramsSchema, options),
303
303
  output: serializeContractSchema(cfg.outputSchema, options),
304
304
  outputMeta: serializeContractSchema(cfg.outputMetaSchema, options),
305
- queryExtension: serializeContractSchema(cfg.queryExtensionSchema, options)
305
+ queryExtension: serializeContractSchema(
306
+ cfg.queryExtensionSchema,
307
+ options
308
+ )
306
309
  }
307
310
  }
308
311
  };