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

@hono/zod-openapi

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hono/zod-openapi - npm Package Compare versions

Comparing version 0.14.6 to 0.14.7

14

dist/index.js

@@ -124,3 +124,3 @@ "use strict";

const document = generator.generateDocument(config);
return document;
return this._basePath ? addBasePathToDocument(document, this._basePath) : document;
};

@@ -130,3 +130,3 @@ getOpenAPI31Document = (config) => {

const document = generator.generateDocument(config);
return document;
return this._basePath ? addBasePathToDocument(document, this._basePath) : document;
};

@@ -204,2 +204,12 @@ doc = (path, configure) => {

(0, import_zod_to_openapi.extendZodWithOpenApi)(import_zod.z);
function addBasePathToDocument(document, basePath) {
const updatedPaths = {};
Object.keys(document.paths).forEach((path) => {
updatedPaths[(0, import_url.mergePath)(basePath, path)] = document.paths[path];
});
return {
...document,
paths: updatedPaths
};
}
// Annotate the CommonJS export names for ESM import in node:

@@ -206,0 +216,0 @@ 0 && (module.exports = {

2

package.json
{
"name": "@hono/zod-openapi",
"version": "0.14.6",
"version": "0.14.7",
"description": "A wrapper class of Hono which supports OpenAPI.",

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

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