@nestjs/swagger
Advanced tools
Comparing version 4.1.0 to 4.1.2
@@ -1,4 +0,4 @@ | ||
export declare function getSchemaPath(modelName: string): string; | ||
export declare function getSchemaPath(model: string | Function): string; | ||
export declare function refs(...models: Function[]): { | ||
$ref: string; | ||
}[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function getSchemaPath(modelName) { | ||
const util_1 = require("util"); | ||
function getSchemaPath(model) { | ||
const modelName = util_1.isString(model) ? model : model && model.name; | ||
return `#/components/schemas/${modelName}`; | ||
@@ -5,0 +7,0 @@ } |
{ | ||
"name": "@nestjs/swagger", | ||
"version": "4.1.0", | ||
"version": "4.1.2", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@swagger)", | ||
@@ -21,3 +21,3 @@ "author": "Kamil Mysliwiec", | ||
"lodash": "4.17.15", | ||
"path-to-regexp": "6.1.0" | ||
"path-to-regexp": "3.2.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
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
156005
3009
- Removedpath-to-regexp@6.1.0(transitive)
Updatedpath-to-regexp@3.2.0