koa-zod-router
Advanced tools
Comparing version 1.0.0 to 1.0.1
# koa-zod-router | ||
## 1.0.1 | ||
### Patch Changes | ||
- be19b89: Date type coercion fix | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -172,4 +172,4 @@ "use strict"; | ||
} else { | ||
Object.keys(headers).forEach((header) => { | ||
ctx.request.headers[header] = headers[header]; | ||
Object.keys(headers).forEach((key) => { | ||
ctx.request.headers[key] = headers[key]; | ||
}); | ||
@@ -182,3 +182,5 @@ } | ||
} else { | ||
ctx.request.params = params; | ||
Object.keys(params).forEach((key) => { | ||
ctx.request.params[key] = params[key]; | ||
}); | ||
} | ||
@@ -190,3 +192,5 @@ } | ||
} else { | ||
ctx.request.query = query; | ||
Object.keys(query).forEach((key) => { | ||
ctx.request.query[key] = query[key]; | ||
}); | ||
} | ||
@@ -198,3 +202,5 @@ } | ||
} else { | ||
ctx.request.body = body; | ||
Object.keys(body).forEach((key) => { | ||
ctx.request.body[key] = body[key]; | ||
}); | ||
} | ||
@@ -206,3 +212,5 @@ } | ||
} else { | ||
ctx.request.files = files; | ||
Object.keys(files).forEach((key) => { | ||
ctx.request.files[key] = files[key]; | ||
}); | ||
} | ||
@@ -209,0 +217,0 @@ } |
{ | ||
"name": "koa-zod-router", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44232
939