koa-zod-router
Advanced tools
Comparing version 1.1.2 to 1.1.3
# koa-zod-router | ||
## 1.1.3 | ||
### Patch Changes | ||
- ffb3890: Update Dependencies, fix formidable types causing tsc errors in declaration file | ||
## 1.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -6,3 +6,3 @@ import KoaRouter, { LayerOptions, RouterOptions } from '@koa/router'; | ||
import z, { ZodSchema, ZodTypeAny, z as z$1 } from 'zod'; | ||
import * as formidable_PersistentFile from 'formidable/PersistentFile'; | ||
import PersistentFile from 'formidable/PersistentFile'; | ||
@@ -229,3 +229,3 @@ type Method = 'acl' | 'bind' | 'checkout' | 'connect' | 'copy' | 'delete' | 'get' | 'head' | 'link' | 'lock' | 'm-search' | 'merge' | 'mkactivity' | 'mkcalendar' | 'mkcol' | 'move' | 'notify' | 'options' | 'patch' | 'post' | 'propfind' | 'proppatch' | 'purge' | 'put' | 'rebind' | 'report' | 'search' | 'source' | 'subscribe' | 'trace' | 'unbind' | 'unlink' | 'unlock' | 'unsubscribe'; | ||
declare const zFile: () => z$1.ZodUnion<[z$1.ZodType<formidable_PersistentFile, z$1.ZodTypeDef, formidable_PersistentFile>, z$1.ZodType<formidable_PersistentFile, z$1.ZodTypeDef, formidable_PersistentFile>]>; | ||
declare const zFile: () => z$1.ZodType<PersistentFile, z$1.ZodTypeDef, PersistentFile>; | ||
declare const createRouteSpec: <State extends DefaultState, H, P, Q, B, F, R>(spec: RouteSpec<State, H, P, Q, B, F, R>) => RouteSpec<State, H, P, Q, B, F, R>; | ||
@@ -232,0 +232,0 @@ declare const createUseSpec: <S, H, P, Q, B, F, R>(spec: UseSpec<S, H, P, Q, B, F, R>) => UseSpec<S, H, P, Q, B, F, R>; |
@@ -21,2 +21,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -413,2 +417,3 @@ mod | ||
register, | ||
// Delegated methods - we preserve KoaRouter type definitions with assertions | ||
all, | ||
@@ -415,0 +420,0 @@ allowedMethods, |
{ | ||
"name": "koa-zod-router", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
"koa-bodyparser": "^4.3.0", | ||
"zod": "^3.20.2" | ||
"zod": "^3.21.3" | ||
}, | ||
@@ -49,10 +49,10 @@ "devDependencies": { | ||
"@types/koa__router": "^12.0.0", | ||
"@types/node": "^18.11.18", | ||
"@types/node": "^18.14.6", | ||
"@types/sinon": "^10.0.13", | ||
"@types/supertest": "^2.0.12", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"@typescript-eslint/eslint-plugin": "^5.54.1", | ||
"@typescript-eslint/parser": "^5.54.1", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.33.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint": "^8.35.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
@@ -65,8 +65,8 @@ "eslint-plugin-prettier": "^4.2.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.8.3", | ||
"prettier": "^2.8.4", | ||
"sinon": "^15.0.1", | ||
"supertest": "^6.3.3", | ||
"ts-node-dev": "^2.0.0", | ||
"tsup": "^6.5.0", | ||
"turbo": "^1.7.0", | ||
"tsup": "^6.6.3", | ||
"turbo": "^1.8.3", | ||
"typescript": "4.9.4" | ||
@@ -73,0 +73,0 @@ }, |
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
53777
1070
Updatedzod@^3.21.3