rajt 0.0.78 → 0.0.79

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/routes.ts +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rajt",
3
3
  "description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
4
- "version": "0.0.78",
4
+ "version": "0.0.79",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
7
  "bin": {
package/src/routes.ts CHANGED
@@ -63,7 +63,7 @@ function isZodSchema(obj: any): obj is z.ZodType {
63
63
  function ResolveDescribeSchema(obj: any, deep: boolean = false) {
64
64
  if (!obj || typeof obj !== 'object') return obj
65
65
  if (isZodSchema(obj))
66
- return { content: {'*/*': { schema: resolver(obj as unknown as StandardSchemaV1) }} }
66
+ return { content: {'application/json': { schema: resolver(obj as unknown as StandardSchemaV1) }} }
67
67
 
68
68
  if (obj.content && typeof obj.content == 'object') {
69
69
  for (const mediaType in obj.content) {