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

@anatine/zod-openapi

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anatine/zod-openapi - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.2.3](https://github.com/anatine/zod-plugins/compare/zod-openapi-2.2.2...zod-openapi-2.2.3) (2024-01-23)
### Bug Fixes
* **zod-openapi:** do not mutate original schema with extendApi ([6684ca6](https://github.com/anatine/zod-plugins/commit/6684ca6b54e49afc1ccedc701e9b7e289e2e9b42))
### [2.2.2](https://github.com/anatine/zod-plugins/compare/zod-openapi-2.2.1...zod-openapi-2.2.2) (2023-12-15)

@@ -7,0 +14,0 @@

2

package.json
{
"name": "@anatine/zod-openapi",
"version": "2.2.2",
"version": "2.2.3",
"description": "Zod to OpenAPI converter",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -7,4 +7,6 @@ "use strict";

function extendApi(schema, schemaObject = {}) {
schema.metaOpenApi = Object.assign(schema.metaOpenApi || {}, schemaObject);
return schema;
const This = schema.constructor;
const newSchema = new This(schema._def);
newSchema.metaOpenApi = Object.assign({}, schema.metaOpenApi || {}, schemaObject);
return newSchema;
}

@@ -11,0 +13,0 @@ exports.extendApi = extendApi;

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