New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-zod

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-zod - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

3

build/__tests__/FastifyZod.test.js

@@ -36,2 +36,3 @@ "use strict";

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -50,2 +51,3 @@ message: `body must have required property 'id', body must have required property 'label', body must have required property 'state'`,

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -104,2 +106,3 @@ message: `body/id invalid todo item id`,

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -106,0 +109,0 @@ message: `params/id invalid todo item id`,

@@ -101,2 +101,3 @@ "use strict";

expect(name).toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -114,2 +115,3 @@ message: `querystring must have required property 'name', querystring must have required property 'street', querystring must match a schema in anyOf`,

expect(address).toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -116,0 +118,0 @@ message: `querystring must have required property 'name', querystring must have required property 'street', querystring must match a schema in anyOf`,

@@ -17,2 +17,3 @@ "use strict";

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -31,2 +32,3 @@ message: `body must have required property 'id'`,

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -57,2 +59,3 @@ message: `body/id must match format "uuid"`,

}).then(res => res.json())).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -59,0 +62,0 @@ message: `params/id must match format "uuid"`,

50

package.json
{
"name": "fastify-zod",
"version": "1.3.2",
"version": "1.4.0",
"description": "Zod integration with Fastify",

@@ -34,26 +34,26 @@ "main": "build/index.js",

"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@openapitools/openapi-generator-cli": "^2.5.2",
"@babel/cli": "^7.22.10",
"@babel/core": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/preset-typescript": "^7.22.5",
"@openapitools/openapi-generator-cli": "^2.7.0",
"@types/http-errors": "^2.0.1",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@types/jest": "^29.5.3",
"@types/node": "^20.5.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"ajv-errors": "^3.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"fastify": "^4.15.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"fastify": "^4.21.0",
"fastify-zod-test-openapi-client": "file:test-openapi-client",
"http-errors": "^2.0.0",
"jest": "^29.5.0",
"node-fetch": "^3.3.1",
"pino-pretty": "^10.0.0",
"prettier": "^2.8.7",
"jest": "^29.6.2",
"node-fetch": "^3.3.2",
"pino-pretty": "^10.2.0",
"prettier": "^3.0.2",
"typed-jest-expect": "^1.0.1",
"typescript": "^5.0.4"
"typescript": "^5.1.6"
},

@@ -64,4 +64,4 @@ "peerDependencies": {

"dependencies": {
"@fastify/swagger": "^8.3.1",
"@fastify/swagger-ui": "^1.7.0",
"@fastify/swagger": "^8.9.0",
"@fastify/swagger-ui": "^1.9.3",
"@types/js-yaml": "^4.0.5",

@@ -71,6 +71,6 @@ "change-case": "^4.1.2",

"js-yaml": "^4.1.0",
"tslib": "^2.5.0",
"zod": "^3.21.4",
"zod-to-json-schema": "^3.20.4"
"tslib": "^2.6.1",
"zod": "^3.22.1",
"zod-to-json-schema": "^3.21.4"
}
}

@@ -45,2 +45,3 @@ import { buildJsonSchemas } from "../JsonSchema";

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -64,2 +65,3 @@ message: `body must have required property 'id', body must have required property 'label', body must have required property 'state'`,

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -140,2 +142,3 @@ message: `body/id invalid todo item id`,

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -142,0 +145,0 @@ message: `params/id invalid todo item id`,

@@ -119,2 +119,3 @@ import fastify from "fastify";

expect(name).toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -130,2 +131,3 @@ message: `querystring must have required property 'name', querystring must have required property 'street', querystring must match a schema in anyOf`,

expect(address).toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -132,0 +134,0 @@ message: `querystring must have required property 'name', querystring must have required property 'street', querystring must match a schema in anyOf`,

@@ -24,2 +24,3 @@ import { createLegacyTestServer } from "./server.legacy.fixtures";

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -43,2 +44,3 @@ message: `body must have required property 'id'`,

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -81,2 +83,3 @@ message: `body/id must match format "uuid"`,

).resolves.toEqual({
code: `FST_ERR_VALIDATION`,
error: `Bad Request`,

@@ -83,0 +86,0 @@ message: `params/id must match format "uuid"`,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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