Skip to content

Commit

Permalink
chore: publish 1.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 3, 2018
1 parent b1ba01b commit 657e07e
Show file tree
Hide file tree
Showing 35 changed files with 135 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "none"
}
45 changes: 22 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
[travis-url]: https://travis-ci.org/nestjs/nest
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
[linux-url]: https://travis-ci.org/nestjs/nest

<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
<img src="https://img.shields.io/badge/👌-Production Ready-78c7ff.svg"/>
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)

<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->

## Description
Expand All @@ -45,10 +44,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors

## Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)
* Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).
Nest is [MIT licensed](LICENSE).
1 change: 0 additions & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
<img src="https://img.shields.io/badge/👌-Production Ready-78c7ff.svg"/>
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
Expand Down
2 changes: 1 addition & 1 deletion dist/decorators/api-bearer.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare const ApiBearerAuth: () => (
target: object,
key?: any,
descriptor?: any,
descriptor?: any
) => any;
2 changes: 1 addition & 1 deletion dist/decorators/api-implicit-body.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export declare const ApiImplicitBody: (
required?: boolean;
type?: any;
isArray?: boolean;
},
}
) => MethodDecorator;
4 changes: 2 additions & 2 deletions dist/decorators/api-implicit-header.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ export declare const ApiImplicitHeader: (
name: string;
description?: string;
required?: boolean;
},
}
) => MethodDecorator;
export declare const ApiImplicitHeaders: (
headers: {
name: string;
description?: string;
required?: boolean;
}[],
}[]
) => MethodDecorator;
2 changes: 1 addition & 1 deletion dist/decorators/api-implicit-param.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export declare const ApiImplicitParam: (
description?: string;
required?: boolean;
type?: any;
},
}
) => MethodDecorator;
2 changes: 1 addition & 1 deletion dist/decorators/api-implicit-query.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export declare const ApiImplicitQuery: (
description?: string;
required?: boolean;
type?: any;
},
}
) => MethodDecorator;
4 changes: 2 additions & 2 deletions dist/decorators/api-model-property.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export declare const ApiModelProperty: (
readOnly?: boolean;
xml?: any;
example?: any;
},
}
) => PropertyDecorator;
export declare const ApiModelPropertyOptional: (
metadata?: {
Expand All @@ -49,5 +49,5 @@ export declare const ApiModelPropertyOptional: (
readOnly?: boolean;
xml?: any;
example?: any;
},
}
) => PropertyDecorator;
2 changes: 1 addition & 1 deletion dist/decorators/api-oauth2.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export declare const ApiOAuth2Auth: (
scopes?: string[],
scopes?: string[]
) => (target: object, key?: any, descriptor?: any) => any;
2 changes: 1 addition & 1 deletion dist/decorators/api-operation.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export declare const ApiOperation: (
title: string;
description?: string;
operationId?: string;
},
}
) => MethodDecorator;
2 changes: 1 addition & 1 deletion dist/decorators/api-response.decorator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export declare const ApiResponse: (
description?: string;
type?: any;
isArray?: boolean;
},
}
) => (target: any, key?: any, descriptor?: PropertyDescriptor) => any;
16 changes: 8 additions & 8 deletions dist/decorators/helpers.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
export declare const createMethodDecorator: (
metakey: any,
metadata: any,
metadata: any
) => MethodDecorator;
export declare const createClassDecorator: (
metakey: any,
metadata: any,
metadata: any
) => ClassDecorator;
export declare const createPropertyDecorator: (
metakey: any,
metadata: any,
metadata: any
) => PropertyDecorator;
export declare const createMixedDecorator: (
metakey: any,
metadata: any,
metadata: any
) => (target: object, key?: any, descriptor?: any) => any;
export declare const createParamDecorator: (
metadata: any,
initial: any,
initial: any
) => (
target: any,
key: any,
descriptor: PropertyDescriptor,
descriptor: PropertyDescriptor
) => PropertyDescriptor;
export declare const createMultipleParamDecorator: (
multiMetadata: any[],
initial: any,
initial: any
) => (
target: any,
key: any,
descriptor: PropertyDescriptor,
descriptor: PropertyDescriptor
) => PropertyDescriptor;
4 changes: 2 additions & 2 deletions dist/explorers/api-consumes.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export declare const exploreGlobalApiConsumesMetadata: (
metatype: any,
metatype: any
) => {
consumes: any;
};
export declare const exploreApiConsumesMetadata: (
instance: any,
prototype: any,
method: any,
method: any
) => any;
2 changes: 1 addition & 1 deletion dist/explorers/api-operation.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare const exploreApiOperationMetadata: (
instance: any,
prototype: any,
method: any,
method: any
) => any;
4 changes: 2 additions & 2 deletions dist/explorers/api-parameters.explorer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ export declare const exploreApiParametersMetadata: (
definitions: any,
instance: any,
prototype: any,
method: any,
method: any
) => {
parameters: any;
};
export declare const exploreModelDefinition: (
type: any,
definitions: any,
definitions: any
) => any;
export declare const mapTypesToSwaggerTypes: (type: string) => string;
4 changes: 2 additions & 2 deletions dist/explorers/api-produces.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export declare const exploreGlobalApiProducesMetadata: (
metatype: any,
metatype: any
) => {
produces: any;
};
export declare const exploreApiProducesMetadata: (
instance: any,
prototype: any,
method: any,
method: any
) => any;
8 changes: 4 additions & 4 deletions dist/explorers/api-response.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
export declare const exploreGlobalApiResponseMetadata: (
definitions: any,
metatype: any,
metatype: any
) => {
responses: any;
};
export declare const exploreApiResponseMetadata: (
definitions: any,
instance: any,
prototype: any,
method: any,
method: any
) => any;
export declare const toArrayResponseWithDefinition: (
response: any,
name: any,
name: any
) => any;
export declare const toResponseWithDefinition: (
response: any,
name: any,
name: any
) => any;
4 changes: 2 additions & 2 deletions dist/explorers/api-security.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export declare const exploreGlobalApiSecurityMetadata: (
metatype: any,
metatype: any
) => {
security: any[];
};
export declare const exploreApiSecurityMetadata: (
instance: any,
prototype: any,
method: any,
method: any
) => any[];
2 changes: 1 addition & 1 deletion dist/explorers/api-use-tags.explorer.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare const exploreGlobalApiUseTagsMetadata: (
metatype: any,
metatype: any
) => {
tags: any;
};
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/swagger",
"version": "1.2.0",
"version": "1.2.1",
"description":
"Nest - modern, fast, powerful node.js web framework (@swagger)",
"author": "Kamil Mysliwiec",
Expand Down
4 changes: 2 additions & 2 deletions lib/decorators/api-implicit-body.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { omit, pickBy, negate, isUndefined, isNil } from 'lodash';

const initialMetadata = {
name: '',
required: true,
required: true
};

export const ApiImplicitBody = (metadata: {
Expand All @@ -20,7 +20,7 @@ export const ApiImplicitBody = (metadata: {
description: metadata.description,
required: metadata.required,
type: metadata.type,
isArray: metadata.isArray,
isArray: metadata.isArray
};
return createParamDecorator(param, initialMetadata);
};
10 changes: 5 additions & 5 deletions lib/decorators/api-implicit-header.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { DECORATORS } from '../constants';
import {
createMethodDecorator,
createParamDecorator,
createMultipleParamDecorator,
createMultipleParamDecorator
} from './helpers';
import { omit, pickBy, negate, isUndefined, isNil } from 'lodash';

const initialMetadata = {
name: '',
required: true,
required: true
};

export const ApiImplicitHeader = (metadata: {
Expand All @@ -21,7 +21,7 @@ export const ApiImplicitHeader = (metadata: {
in: 'header',
description: metadata.description,
required: metadata.required,
type: String,
type: String
};
return createParamDecorator(param, initialMetadata);
};
Expand All @@ -31,14 +31,14 @@ export const ApiImplicitHeaders = (
name: string;
description?: string;
required?: boolean;
}>,
}>
): MethodDecorator => {
const multiMetadata = headers.map(metadata => ({
name: isNil(metadata.name) ? initialMetadata.name : metadata.name,
in: 'header',
description: metadata.description,
required: metadata.required,
type: String,
type: String
}));
return createMultipleParamDecorator(multiMetadata, initialMetadata);
};
4 changes: 2 additions & 2 deletions lib/decorators/api-implicit-param.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { omit, pickBy, negate, isUndefined, isNil } from 'lodash';

const initialMetadata = {
name: '',
required: true,
required: true
};

export const ApiImplicitParam = (metadata: {
Expand All @@ -18,7 +18,7 @@ export const ApiImplicitParam = (metadata: {
in: 'path',
description: metadata.description,
required: metadata.required,
type: metadata.type,
type: metadata.type
};
return createParamDecorator(param, initialMetadata);
};
6 changes: 3 additions & 3 deletions lib/decorators/api-implicit-query.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { omit, pickBy, negate, isUndefined, isNil } from 'lodash';

const initialMetadata = {
name: '',
required: true,
required: true
};

export const ApiImplicitQuery = (metadata: {
Expand All @@ -20,12 +20,12 @@ export const ApiImplicitQuery = (metadata: {
description: metadata.description,
required: metadata.required,
type: metadata.type,
items: undefined,
items: undefined
};
if (metadata.isArray) {
param.type = Array;
param.items = {
type: param.type,
type: param.type
};
}
return createParamDecorator(param, initialMetadata);
Expand Down
Loading

0 comments on commit 657e07e

Please sign in to comment.