Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-zod-router

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-zod-router - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

6

CHANGELOG.md
# koa-zod-router
## 2.1.0
### Minor Changes
- 5995387: Fix incorrect ZodError type for ctx.invalid
## 2.0.1

@@ -4,0 +10,0 @@

12

dist/index.d.ts

@@ -10,7 +10,7 @@ import KoaRouter, { LayerOptions, RouterOptions } from '@koa/router';

interface ZodRouterInvalid {
body?: ZodError[];
headers?: ZodError[];
params?: ZodError[];
query?: ZodError[];
files?: ZodError[];
body?: ZodError;
headers?: ZodError;
params?: ZodError;
query?: ZodError;
files?: ZodError;
error?: boolean;

@@ -20,3 +20,3 @@ }

requestParameter: 'body' | 'headers' | 'params' | 'query' | 'files';
error: ZodError<T>[];
error: ZodError<T>;
};

@@ -23,0 +23,0 @@ interface ZodContext<Headers, Params, Query, Body, Files> extends Context {

{
"name": "koa-zod-router",
"version": "2.0.1",
"version": "2.1.0",
"description": "",

@@ -43,15 +43,15 @@ "main": "dist/index.js",

"koa-bodyparser": "^4.4.1",
"zod": "^3.21.4"
"zod": "^3.22.1"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/koa": "^2.13.6",
"@types/node": "^18.16.19",
"@types/koa": "^2.13.8",
"@types/node": "^18.17.5",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"coveralls": "^3.1.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint": "^8.47.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^4.2.1",

@@ -67,3 +67,3 @@ "husky": "^8.0.3",

"tsup": "^6.7.0",
"turbo": "^1.10.7",
"turbo": "^1.10.12",
"typescript": "5.0.4"

@@ -70,0 +70,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc