Socket
Socket
Sign inDemoInstall

@nestjs/swagger

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/swagger - npm Package Compare versions

Comparing version 4.0.0-next.10 to 4.0.0-next.11

2

dist/constants.d.ts

@@ -7,3 +7,3 @@ export declare const DECORATORS_PREFIX = "swagger";

API_CONSUMES: string;
API_USE_TAGS: string;
API_TAGS: string;
API_PARAMETERS: string;

@@ -10,0 +10,0 @@ API_HEADERS: string;

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

API_CONSUMES: `${exports.DECORATORS_PREFIX}/apiConsumes`,
API_USE_TAGS: `${exports.DECORATORS_PREFIX}/apiUseTags`,
API_TAGS: `${exports.DECORATORS_PREFIX}/apiUseTags`,
API_PARAMETERS: `${exports.DECORATORS_PREFIX}/apiParameters`,

@@ -12,0 +12,0 @@ API_HEADERS: `${exports.DECORATORS_PREFIX}/apiHeaders`,

@@ -1,1 +0,1 @@

export declare function ApiUseTags(...tags: string[]): any;
export declare function ApiTags(...tags: string[]): any;

@@ -5,5 +5,5 @@ "use strict";

const helpers_1 = require("./helpers");
function ApiUseTags(...tags) {
return helpers_1.createMixedDecorator(constants_1.DECORATORS.API_USE_TAGS, tags);
function ApiTags(...tags) {
return helpers_1.createMixedDecorator(constants_1.DECORATORS.API_TAGS, tags);
}
exports.ApiUseTags = ApiUseTags;
exports.ApiTags = ApiTags;
import { Type } from '@nestjs/common';
export declare const exploreGlobalApiUseTagsMetadata: (metatype: Type<unknown>) => {
export declare const exploreGlobalApiTagsMetadata: (metatype: Type<unknown>) => {
tags: any;
};
export declare const exploreApiUseTagsMetadata: (instance: object, prototype: Type<unknown>, method: object) => any;
export declare const exploreApiTagsMetadata: (instance: object, prototype: Type<unknown>, method: object) => any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../constants");
exports.exploreGlobalApiUseTagsMetadata = (metatype) => {
const tags = Reflect.getMetadata(constants_1.DECORATORS.API_USE_TAGS, metatype);
exports.exploreGlobalApiTagsMetadata = (metatype) => {
const tags = Reflect.getMetadata(constants_1.DECORATORS.API_TAGS, metatype);
return tags ? { tags } : undefined;
};
exports.exploreApiUseTagsMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_USE_TAGS, method);
exports.exploreApiTagsMetadata = (instance, prototype, method) => Reflect.getMetadata(constants_1.DECORATORS.API_TAGS, method);

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

security: [api_security_explorer_1.exploreApiSecurityMetadata],
tags: [api_use_tags_explorer_1.exploreApiUseTagsMetadata],
tags: [api_use_tags_explorer_1.exploreApiTagsMetadata],
responses: [api_response_explorer_1.exploreApiResponseMetadata.bind(null, this.schemas)]

@@ -83,3 +83,3 @@ };

const globalExplorers = [
api_use_tags_explorer_1.exploreGlobalApiUseTagsMetadata,
api_use_tags_explorer_1.exploreGlobalApiTagsMetadata,
api_security_explorer_1.exploreGlobalApiSecurityMetadata,

@@ -86,0 +86,0 @@ api_response_explorer_1.exploreGlobalApiResponseMetadata.bind(null, this.schemas),

@@ -8,3 +8,3 @@ import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common';

ApiSecurity,
ApiUseTags
ApiTags
} from '../../../lib';

@@ -18,3 +18,3 @@ import { CatsService } from './cats.service';

@ApiBearerAuth()
@ApiUseTags('cats')
@ApiTags('cats')
@Controller('cats')

@@ -24,3 +24,3 @@ export class CatsController {

@ApiUseTags('create cats')
@ApiTags('create cats')
@Post()

@@ -27,0 +27,0 @@ @ApiOperation({ summary: 'Create cat' })

{
"name": "@nestjs/swagger",
"version": "4.0.0-next.10",
"version": "4.0.0-next.11",
"description": "Nest - modern, fast, powerful node.js web framework (@swagger)",

@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec",

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