Compare commits

...

872 Commits

Author SHA1 Message Date
Kamil Myśliwiec
0712346adc feature(): use metadata cache for headers and status code 2019-04-10 12:52:40 +02:00
Kamil Myśliwiec
1dfc81459c Merge branch 'feature/change-http-code-interceptor' of https://github.com/ToonvanStrijp/nest into ToonvanStrijp-feature/change-http-code-interceptor 2019-04-10 12:39:15 +02:00
Kamil Myśliwiec
48137df07d test(): fix broken unit tests (tcp) 2019-04-10 11:56:04 +02:00
Kamil Myśliwiec
c687421c03 bugfix(platform-fastify): add missing constructor interfaces (http, http2) #1950 2019-04-10 11:40:08 +02:00
Kamil Myśliwiec
b04d2bbc91 bugfix(microservices): use host property in TcpServer 2019-04-10 11:35:09 +02:00
Kamil Myśliwiec
098eb3b4f6 Merge branch 'master' of https://github.com/nestjs/nest 2019-04-08 21:37:23 +02:00
Kamil Myśliwiec
c29144c5c0 tests(): hotfix (client proxy) createObserver issue 2019-04-08 21:32:47 +02:00
Toon van Strijp
21c22d5af3 change header interceptor in hello-world e2e to take multiple headers if needed. 2019-04-06 15:49:42 +02:00
Kamil Mysliwiec
1a64c893c7 Merge pull request #1941 from nestjs/renovate/fastify-2.x
fix(deps): update dependency fastify to v2.2.0
2019-04-06 09:57:26 +02:00
Kamil Mysliwiec
8ce7cfd677 Merge pull request #1946 from nestjs/renovate/core-js-3.x
chore(deps): update dependency core-js to v3.0.1
2019-04-06 09:57:15 +02:00
Kamil Mysliwiec
7d31f7a7ab Merge pull request #1944 from nestjs/renovate/ts-jest-24.x
chore(deps): update dependency ts-jest to v24.0.2
2019-04-06 09:57:05 +02:00
Kamil Mysliwiec
e444600f4d Merge pull request #1945 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.2.3
2019-04-06 09:56:58 +02:00
Kamil Mysliwiec
24f67c911a Merge pull request #1943 from nestjs/renovate/typescript-3.x
fix(deps): update dependency typescript to v3.4.2
2019-04-06 09:56:45 +02:00
Kamil Mysliwiec
dba1bb8d86 Merge pull request #1929 from nestjs/renovate/fast-json-stringify-1.x
fix(deps): update dependency fast-json-stringify to v1.14.0
2019-04-06 09:56:38 +02:00
Kamil Mysliwiec
347d51d77f Merge pull request #1940 from nestjs/renovate/fastify-multipart-0.x
fix(deps): update dependency fastify-multipart to v0.8.0
2019-04-06 09:56:24 +02:00
Kamil Mysliwiec
59267796ec Merge pull request #1931 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v24.7.1
2019-04-06 09:56:04 +02:00
Kamil Mysliwiec
4152540051 Merge pull request #1934 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.4.22
2019-04-06 09:55:57 +02:00
Kamil Mysliwiec
13d8b3e9fe Merge pull request #1928 from nestjs/renovate/sequelize-5.x
fix(deps): update dependency sequelize to v5.2.12
2019-04-06 09:55:40 +02:00
Renovate Bot
af0c2085bb chore(deps): update dependency core-js to v3.0.1 2019-04-06 07:33:47 +00:00
Renovate Bot
283de2ec40 fix(deps): update dependency mongodb to v3.2.3 2019-04-05 22:12:13 +00:00
Renovate Bot
bff7901078 chore(deps): update dependency ts-jest to v24.0.2 2019-04-05 22:12:02 +00:00
Renovate Bot
59304b0856 fix(deps): update dependency typescript to v3.4.2 2019-04-05 21:13:47 +00:00
Renovate Bot
253c959e88 fix(deps): update dependency fastify to v2.2.0 2019-04-05 19:35:50 +00:00
Renovate Bot
b056a80ead fix(deps): update dependency fastify-multipart to v0.8.0 2019-04-05 19:20:14 +00:00
Toon van Strijp
6618badc23 removed set header code before running interceptors. Added e2e test for testing header override. 2019-04-05 11:40:16 +02:00
Renovate Bot
422880f84e fix(deps): update dependency sequelize to v5.2.12 2019-04-04 15:57:16 +00:00
Renovate Bot
33f7e6f37b fix(deps): update dependency mongoose to v5.4.22 2019-04-04 15:12:18 +00:00
Renovate Bot
417b8a72cd fix(deps): update dependency fast-json-stringify to v1.14.0 2019-04-04 07:47:00 +00:00
Renovate Bot
e7c2a4e7b1 chore(deps): update dependency jest to v24.7.1 2019-04-04 02:05:32 +00:00
Kamil Mysliwiec
08ea60e620 Merge pull request #1909 from nestjs/renovate/amqp-connection-manager-2.x
fix(deps): update dependency amqp-connection-manager to v2.3.1
2019-04-03 12:36:36 +02:00
Kamil Mysliwiec
6be6f14d7c Merge pull request #1912 from nestjs/renovate/ts-morph-1.x
fix(deps): update dependency ts-morph to v1.3.3
2019-04-03 12:36:21 +02:00
Kamil Mysliwiec
85b166fc6d Merge pull request #1913 from nestjs/renovate/tslint-5.x
chore(deps): update dependency tslint to v5.15.0
2019-04-03 12:36:15 +02:00
Kamil Mysliwiec
8e6fb080f9 Merge pull request #1917 from nestjs/renovate/sequelize-5.x
fix(deps): update dependency sequelize to v5.2.10
2019-04-03 12:36:06 +02:00
Kamil Mysliwiec
00e121a702 Merge pull request #1918 from nestjs/renovate/nestjs-graphql-6.x
fix(deps): update dependency @nestjs/graphql to v6.0.5
2019-04-03 12:36:00 +02:00
Kamil Mysliwiec
8ebd26d586 Merge pull request #1902 from nestjs/renovate/fast-json-stringify-1.x
fix(deps): update dependency fast-json-stringify to v1.13.0
2019-04-03 12:34:50 +02:00
Kamil Mysliwiec
40769fcca1 Merge pull request #1911 from nestjs/renovate/jest-monorepo
chore(deps): update dependency jest to v24.7.0
2019-04-03 12:34:40 +02:00
Kamil Mysliwiec
9311abb33f Merge pull request #1921 from nestjs/renovate/graphql-subscriptions-1.x
fix(deps): update dependency graphql-subscriptions to v1.1.0
2019-04-03 12:34:22 +02:00
Kamil Mysliwiec
8a7bc79297 Merge pull request #1922 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.4.21
2019-04-03 12:34:14 +02:00
Renovate Bot
9ff511d6cd fix(deps): update dependency sequelize to v5.2.10 2019-04-03 05:04:39 +00:00
Renovate Bot
cf01bd29ed chore(deps): update dependency jest to v24.7.0 2019-04-03 04:52:20 +00:00
Renovate Bot
74a5bb5d1d fix(deps): update dependency mongoose to v5.4.21 2019-04-02 16:59:35 +00:00
Renovate Bot
6168c34607 fix(deps): update dependency graphql-subscriptions to v1.1.0 2019-04-02 16:28:39 +00:00
Renovate Bot
54012efa82 fix(deps): update dependency @nestjs/graphql to v6.0.5 2019-04-02 10:13:50 +00:00
Renovate Bot
7050f78851 chore(deps): update dependency tslint to v5.15.0 2019-04-01 23:57:08 +00:00
Renovate Bot
a76e17c0ff fix(deps): update dependency ts-morph to v1.3.3 2019-04-01 22:56:07 +00:00
Renovate Bot
629224b8a3 fix(deps): update dependency amqp-connection-manager to v2.3.1 2019-04-01 20:06:41 +00:00
Toon van Strijp
152140085b reverted reply signature to have statusCode 2019-04-01 11:47:37 +02:00
Toon van Strijp
6415633097 fixed unit tests 2019-04-01 09:24:09 +02:00
Renovate Bot
3d6c0a4925 fix(deps): update dependency fast-json-stringify to v1.13.0 2019-04-01 07:23:39 +00:00
Toon van Strijp
922bbc3e57 set http status code before running interceptors
added unit test and integration test
changes http adapter to not send  http status in reply
2019-04-01 01:02:09 +02:00
Kamil Mysliwiec
d5fce7845e Merge pull request #1896 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v6.0.5
2019-03-31 22:00:45 +02:00
Kamil Myśliwiec
13f44328d1 chore(): publish 6.0.5 version 2019-03-31 21:06:16 +02:00
Renovate Bot
45e315741b fix(deps): update nest monorepo to v6.0.5 2019-03-31 19:05:47 +00:00
Kamil Myśliwiec
2e895033f7 chore(@nestjs) publish v6.0.5 release 2019-03-31 20:56:14 +02:00
Kamil Mysliwiec
00f7c5746b Merge pull request #1877 from nestjs/renovate/typescript-3.x
fix(deps): update dependency typescript to v3.4.1
2019-03-31 20:53:45 +02:00
Kamil Mysliwiec
be093f3f30 Merge branch 'master' into renovate/typescript-3.x 2019-03-31 20:53:38 +02:00
Kamil Mysliwiec
62004c1762 Merge pull request #1881 from blueway/master
bugfix(fastify): fix the fastify adapter cors options config
2019-03-31 20:49:36 +02:00
Kamil Mysliwiec
89b2f69a7e Merge pull request #1895 from nestjs/renovate/sequelize-typescript-0.x
fix(deps): update dependency sequelize-typescript to v0.6.9
2019-03-31 20:49:16 +02:00
Kamil Myśliwiec
5d3d2f449d bugfix(microservices): fix request scoped microservice calls #1886 2019-03-31 20:48:45 +02:00
Kamil Mysliwiec
8c354e76c9 Merge pull request #1894 from nestjs/renovate/graphql-14.x
fix(deps): update dependency graphql to v14.2.1
2019-03-31 16:02:08 +02:00
Renovate Bot
b3f69ed624 fix(deps): update dependency sequelize-typescript to v0.6.9 2019-03-31 13:36:32 +00:00
Renovate Bot
b1eac49ffc fix(deps): update dependency graphql to v14.2.1 2019-03-31 12:27:17 +00:00
Kamil Mysliwiec
df6c27c634 Merge pull request #1892 from nestjs/renovate/nestjs-graphql-6.x
fix(deps): update dependency @nestjs/graphql to v6.0.4
2019-03-31 12:10:30 +02:00
Renovate Bot
37fd2caa98 fix(deps): update dependency @nestjs/graphql to v6.0.4 2019-03-31 10:04:10 +00:00
Renovate Bot
12b11c38f1 fix(deps): update dependency typescript to v3.4.1 2019-03-31 09:39:30 +00:00
Kamil Mysliwiec
feeedb44ee Merge pull request #1880 from nestjs/renovate/sequelize-4.x
chore(deps): update dependency @types/sequelize to v4.27.46
2019-03-31 11:36:14 +02:00
Kamil Mysliwiec
3588f67bef Merge pull request #1887 from nestjs/renovate/ts-jest-24.x
chore(deps): update dependency ts-jest to v24.0.1
2019-03-31 11:31:08 +02:00
Kamil Mysliwiec
9497beb5cd Merge pull request #1871 from nestjs/renovate/nats-1.x
fix(deps): update dependency nats to v1.2.6
2019-03-31 11:31:01 +02:00
Renovate Bot
d0fca77744 chore(deps): update dependency ts-jest to v24.0.1 2019-03-31 09:30:51 +00:00
Kamil Mysliwiec
efacf4ad0f Merge pull request #1878 from nestjs/renovate/type-graphql-0.x
fix(deps): update dependency type-graphql to v0.17.1
2019-03-31 11:30:45 +02:00
Kamil Mysliwiec
5ff04e756e Merge pull request #1889 from nestjs/renovate/ts-morph-1.x
fix(deps): update dependency ts-morph to v1.3.2
2019-03-31 11:30:38 +02:00
Kamil Mysliwiec
ad07a26975 Merge pull request #1866 from nestjs/renovate/sequelize-5.x
fix(deps): update dependency sequelize to v5.2.8
2019-03-31 11:30:17 +02:00
Kamil Mysliwiec
4acf1b83af Merge pull request #1862 from nestjs/renovate/fastify-static-2.x
chore(deps): update dependency fastify-static to v2.4.0
2019-03-31 11:30:10 +02:00
Kamil Mysliwiec
e17594983b Merge pull request #1859 from nestjs/renovate/sinon-7.x
chore(deps): update dependency @types/sinon to v7.0.11
2019-03-31 11:29:35 +02:00
Kamil Mysliwiec
da252ca23d Merge pull request #1858 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v6.0.4
2019-03-31 11:29:23 +02:00
Renovate Bot
8293bfa519 fix(deps): update dependency sequelize to v5.2.8 2019-03-31 08:17:38 +00:00
Renovate Bot
482432d477 fix(deps): update dependency ts-morph to v1.3.2 2019-03-30 16:37:39 +00:00
Renovate Bot
041f0ca992 chore(deps): update dependency @types/sinon to v7.0.11 2019-03-30 05:13:16 +00:00
jackblues
66b13f42b9 style: trim the ts code 2019-03-30 12:41:10 +08:00
Renovate Bot
f51d331cc2 chore(deps): update dependency @types/sequelize to v4.27.46 2019-03-30 04:18:04 +00:00
weezway
24b0f5a583 fix(fastify-cors): fix the fastify adapter cors options config 2019-03-30 11:17:15 +08:00
Renovate Bot
156184ead7 fix(deps): update dependency nats to v1.2.6 2019-03-29 21:03:19 +00:00
Renovate Bot
0b0afac93c fix(deps): update dependency type-graphql to v0.17.1 2019-03-29 19:44:43 +00:00
Renovate Bot
d1828d9026 fix(deps): update nest monorepo to v6.0.4 2019-03-27 19:49:07 +00:00
Kamil Mysliwiec
20145b06e8 Merge pull request #1857 from nestjs/renovate/fast-json-stringify-1.x
fix(deps): update dependency fast-json-stringify to v1.12.0
2019-03-27 20:40:09 +01:00
Kamil Mysliwiec
fd2854d832 Merge pull request #1860 from nestjs/renovate/nestjs-graphql-6.x
fix(deps): update dependency @nestjs/graphql to v6.0.3
2019-03-27 20:39:55 +01:00
Renovate Bot
20bc124e3d chore(deps): update dependency fastify-static to v2.4.0 2019-03-27 14:52:10 +00:00
Renovate Bot
fd86e7e4a8 fix(deps): update dependency @nestjs/graphql to v6.0.3 2019-03-27 12:10:49 +00:00
Renovate Bot
ed0dd2188c fix(deps): update dependency fast-json-stringify to v1.12.0 2019-03-27 10:37:36 +00:00
Kamil Myśliwiec
497e5fe3c3 chore(@nestjs) publish v6.0.4 release 2019-03-27 10:48:45 +01:00
Kamil Mysliwiec
61df77daef Merge pull request #1852 from WonderPanda/samples_fixes
sample(): fix unit tests in sample-01
2019-03-27 10:45:01 +01:00
Kamil Mysliwiec
029082b11d Merge pull request #1854 from nestjs/renovate/redis-2.x
chore(deps): update dependency @types/redis to v2.8.12
2019-03-27 10:42:27 +01:00
Kamil Mysliwiec
5e45858c9c Merge pull request #1848 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v6.0.3
2019-03-27 10:41:46 +01:00
Kamil Mysliwiec
1988dc6bba Merge pull request #1846 from nestjs/renovate/sequelize-5.x
fix(deps): update dependency sequelize to v5.2.1
2019-03-27 10:41:38 +01:00
Kamil Mysliwiec
f0caa89f5d Merge pull request #1847 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.2.16
2019-03-27 10:41:31 +01:00
Kamil Mysliwiec
0c511a8a42 Merge pull request #1853 from nestjs/renovate/graphql-14.x
fix(deps): update dependency graphql to v14.2.0
2019-03-27 10:40:46 +01:00
Kamil Mysliwiec
815b66121f Merge pull request #1855 from nestjs/renovate/prisma-binding-2.x
fix(deps): update dependency prisma-binding to v2.3.10
2019-03-27 10:40:40 +01:00
Kamil Mysliwiec
540abe91ac Merge pull request #1856 from nestjs/renovate/ws-6.x
fix(deps): update dependency ws to v6.2.1
2019-03-27 10:39:14 +01:00
Kamil Myśliwiec
2bf4577212 bugfix(core): injecting dependencies into middleware error #1834 2019-03-27 10:38:47 +01:00
Kamil Myśliwiec
ca62dc951d bugfix(common): http exceptions should have the same stacktrace as generic 2019-03-27 10:38:14 +01:00
Kamil Myśliwiec
1a3d16a7ea bugfix(common): registerAsync incorrectly sets Axios instance #1849 2019-03-27 10:37:22 +01:00
Renovate Bot
de446dacfa fix(deps): update dependency ws to v6.2.1 2019-03-27 09:01:31 +00:00
Renovate Bot
a6743f1078 fix(deps): update dependency prisma-binding to v2.3.10 2019-03-27 06:04:38 +00:00
Renovate Bot
0fbc8f2860 fix(deps): update dependency sequelize to v5.2.1 2019-03-27 05:20:24 +00:00
Renovate Bot
54d5592c09 chore(deps): update dependency @types/redis to v2.8.12 2019-03-26 22:03:51 +00:00
Renovate Bot
cf5e7ed3b1 fix(deps): update dependency graphql to v14.2.0 2019-03-26 19:28:33 +00:00
Jesse Carter
2eb2a037b8 test(sample/01) fix broken tests
- update jest configuration to remove warnings
- fix tests so that they run out of the box with correct types
- remove duplicate key from docker-compose
2019-03-26 12:56:04 -04:00
Renovate Bot
a37acf66c6 fix(deps): update nest monorepo to v6.0.3 2019-03-26 11:24:26 +00:00
Kamil Myśliwiec
ca110dfdb8 Update README files 2019-03-26 12:20:05 +01:00
Kamil Myśliwiec
cf7ff71694 chore(@nestjs) publish v6.0.3 release 2019-03-26 12:15:58 +01:00
Kamil Myśliwiec
70fa9f038b Merge branch 'ivibe-my-fix-branch' 2019-03-26 12:14:18 +01:00
Kamil Myśliwiec
802be5c8eb refactor(microservices): adjust to the general coding style 2019-03-26 12:13:45 +01:00
Kamil Myśliwiec
69ba249337 Merge branch 'my-fix-branch' of https://github.com/ivibe/nest into ivibe-my-fix-branch 2019-03-26 12:01:19 +01:00
Kamil Mysliwiec
48be3ef669 Merge pull request #1844 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.4.20
2019-03-26 12:00:42 +01:00
Kamil Myśliwiec
0a28c16b67 bugfix(platform): execute callback passed into listen method #1820 2019-03-26 11:58:50 +01:00
Kamil Myśliwiec
a6c0d19b1d Merge branch 'master' of https://github.com/nestjs/nest 2019-03-26 11:48:05 +01:00
Kamil Myśliwiec
78777bfd03 bugfix(): fix incorrect message (middleware exception, resolve - use) 2019-03-26 11:47:58 +01:00
Kamil Mysliwiec
1f394247bf Merge pull request #1805 from zarv1k/fix-external-context-creator-usage-in-next-application-context
bugfix(): fix usage of ExternalContextCreator in NestApplicationConte…
2019-03-26 11:43:12 +01:00
Kamil Mysliwiec
2ce08651bb Merge pull request #1842 from nestjs/renovate/node-10.x
chore(deps): update dependency @types/node to v10.14.4
2019-03-26 11:31:47 +01:00
Kamil Myśliwiec
3886e23ac9 Merge branch 'master' of https://github.com/nestjs/nest 2019-03-26 11:29:40 +01:00
Kamil Myśliwiec
59827181cb Merge branch 'gperdomor-fix-tcp-client' 2019-03-26 11:29:16 +01:00
Kamil Myśliwiec
d9a28f2253 bugfix(): normalize TCP pattern (event) 2019-03-26 11:28:19 +01:00
Renovate Bot
cf8950fd94 fix(deps): update dependency typeorm to v0.2.16 2019-03-26 10:06:08 +00:00
Renovate Bot
146c3e1fbc fix(deps): update dependency mongoose to v5.4.20 2019-03-25 21:27:53 +00:00
Renovate Bot
dbcac33499 chore(deps): update dependency @types/node to v10.14.4 2019-03-25 21:07:18 +00:00
Kamil Mysliwiec
c378b25ce4 Merge pull request #1841 from nestjs/renovate/mongoose-5.x
chore(deps): update dependency @types/mongoose to v5.3.24
2019-03-25 21:54:53 +01:00
Renovate Bot
bf5eaed54c chore(deps): update dependency @types/mongoose to v5.3.24 2019-03-25 20:52:46 +00:00
Gustavo Perdomo
6d9f15a2a8 fix dispatchEvent 2019-03-25 15:11:22 -03:00
Kamil Mysliwiec
ab8ce64fe8 Update Readme.md 2019-03-25 14:06:10 +01:00
Kamil Mysliwiec
654b746d55 Update Readme.md 2019-03-25 14:03:07 +01:00
Kamil Mysliwiec
349b39fb01 Merge pull request #1790 from nestjs/renovate/sinon-7.x
chore(deps): update dependency sinon to v7.3.0
2019-03-24 11:20:28 +01:00
Kamil Mysliwiec
4cd4904b54 Merge pull request #1807 from nestjs/renovate/node-10.x
chore(deps): update dependency @types/node to v10.14.3
2019-03-24 11:20:17 +01:00
Kamil Mysliwiec
bf9d7c3ee1 Merge pull request #1806 from nestjs/renovate/mongodb-3.x
fix(deps): update dependency mongodb to v3.2.2
2019-03-24 11:20:07 +01:00
Kamil Mysliwiec
17fa9a4b9e Merge pull request #1810 from nestjs/renovate/fast-json-stringify-1.x
fix(deps): update dependency fast-json-stringify to v1.11.4
2019-03-24 11:19:57 +01:00
Kamil Mysliwiec
6489611725 Merge pull request #1816 from nestjs/renovate/node-8.x
chore(deps): update dependency @types/node to v8.10.45
2019-03-24 11:18:24 +01:00
Kamil Mysliwiec
3edc181150 Merge pull request #1823 from nestjs/renovate/sequelize-5.x
fix(deps): update dependency sequelize to v5.1.1
2019-03-24 11:18:13 +01:00
Kamil Myśliwiec
ee2dc91357 Merge branch 'master' of https://github.com/nestjs/nest 2019-03-24 10:41:11 +01:00
Kamil Myśliwiec
c1b8f54104 refactor(): add blank line (web socket adapter interface) 2019-03-24 10:40:55 +01:00
Renovate Bot
612a18bb0e fix(deps): update dependency sequelize to v5.1.1 2019-03-23 14:41:59 +00:00
Renovate Bot
c4b7b4c016 fix(deps): update dependency mongodb to v3.2.2 2019-03-22 21:38:57 +00:00
Renovate Bot
9e05feb8c2 chore(deps): update dependency @types/node to v8.10.45 2019-03-22 19:26:06 +00:00
Renovate Bot
ffd24db6d2 chore(deps): update dependency @types/node to v10.14.3 2019-03-22 19:25:45 +00:00
Renovate Bot
c0cfb16175 fix(deps): update dependency fast-json-stringify to v1.11.4 2019-03-22 07:37:28 +00:00
Dmitry Zarva
d8a39a74c3 bugfix(): fix usage of ExternalContextCreator in NextApplicationContext (when NestContainer.applicationConfig is undefined) 2019-03-21 18:37:23 +03:00
Kamil Mysliwiec
845c5df66f Merge pull request #1803 from nestjs/renovate/nestjs-swagger-3.x
fix(deps): update dependency @nestjs/swagger to v3.0.2
2019-03-21 13:25:47 +01:00
Renovate Bot
cd1d338d2c fix(deps): update dependency @nestjs/swagger to v3.0.2 2019-03-21 12:20:54 +00:00
Kamil Myśliwiec
a39821a624 Merge branch 'master' of https://github.com/nestjs/nest 2019-03-21 12:08:26 +01:00
Kamil Myśliwiec
4fa54ffcdd refactor(): remove useless async keywords (unit tests) 2019-03-21 12:03:40 +01:00
Ivan Vibe
9c3e15a902 bugfix(microservices): let use unicode characters in TCP Microservice messages
add own json-socket implementation

https://github.com/nestjs/nest/issues/1734
2019-03-21 02:49:23 +05:00
Kamil Mysliwiec
9f5f1159ae Merge pull request #1791 from nestjs/renovate/nestjs-graphql-6.x
fix(deps): update dependency @nestjs/graphql to v6.0.2
2019-03-20 14:38:58 +01:00
Renovate Bot
aefdee3983 fix(deps): update dependency @nestjs/graphql to v6.0.2 2019-03-20 13:33:53 +00:00
Renovate Bot
5f2a395158 chore(deps): update dependency sinon to v7.3.0 2019-03-20 13:32:35 +00:00
Kamil Mysliwiec
01b06f3848 Merge pull request #1789 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v6.0.2
2019-03-20 13:53:38 +01:00
Kamil Myśliwiec
6d09f36cb0 chore(): publish 6.0.2 release 2019-03-20 13:50:02 +01:00
Renovate Bot
01dd813f5c fix(deps): update nest monorepo to v6.0.2 2019-03-20 12:43:53 +00:00
Kamil Myśliwiec
704fe4c700 chore(@nestjs) publish v6.0.2 release 2019-03-20 13:36:19 +01:00
Kamil Myśliwiec
568d321cfa Merge branch 'master' of https://github.com/nestjs/nest 2019-03-20 13:32:01 +01:00
Kamil Myśliwiec
be92334bb5 bugfix(): fix incorrect providers processing (factory/value) 2019-03-20 13:31:51 +01:00
Kamil Myśliwiec
179a65f1ab bugfix(): fix incorrect platform-express resolution 2019-03-20 13:31:22 +01:00
Kamil Myśliwiec
9111d12f8a bugfix(): fix incorrect platform-express resolution 2019-03-20 13:31:14 +01:00
Kamil Myśliwiec
acd1a439c0 bugfix(): fix cache interceptor DI 2019-03-20 13:30:51 +01:00
Kamil Mysliwiec
a54a5b90af Merge pull request #1784 from nestjs/renovate/core-js-3.x
chore(deps): update dependency core-js to v3
2019-03-20 12:35:41 +01:00
Kamil Mysliwiec
4d691ce42e Merge pull request #1785 from nestjs/renovate/typescript-3.x
fix(deps): update dependency typescript to v3.3.4000
2019-03-20 12:35:32 +01:00
Renovate Bot
50e91cfb44 fix(deps): update dependency typescript to v3.3.4000 2019-03-20 00:09:48 +00:00
Renovate Bot
e3a2378b9a chore(deps): update dependency core-js to v3 2019-03-19 19:26:18 +00:00
Kamil Myśliwiec
15bbd74cf8 Merge branch 'master' of https://github.com/nestjs/nest 2019-03-19 15:55:46 +01:00
Kamil Myśliwiec
5ba9a94957 Merge branch 'jbpionnier-feat/accept_provide_abstract_class' 2019-03-19 15:55:31 +01:00
Kamil Myśliwiec
a79e192b55 chore(): set license date 2019-03-19 15:54:55 +01:00
Kamil Myśliwiec
4af5d81727 Merge branch 'feat/accept_provide_abstract_class' of https://github.com/jbpionnier/nest into jbpionnier-feat/accept_provide_abstract_class 2019-03-19 15:16:49 +01:00
Kamil Mysliwiec
82910abca0 Merge pull request #1780 from nestjs/renovate/major-nest-monorepo
Update nest monorepo to v6 (major)
2019-03-19 14:49:46 +01:00
Renovate Bot
94d7ab0000 Update nest monorepo to v6 2019-03-19 13:47:19 +00:00
Kamil Mysliwiec
55970a1dff Merge pull request #1728 from MarkPieszak/patch-2
docs(readme): update links to open in new window
2019-03-19 14:46:45 +01:00
Kamil Mysliwiec
839fcb0f9c Update Readme.md 2019-03-19 14:45:46 +01:00
Kamil Mysliwiec
b318da43c8 Merge pull request #1778 from nestjs/renovate/ws-6.x
Update dependency ws to v6
2019-03-19 14:43:50 +01:00
Renovate Bot
2d56988e86 Update dependency ws to v6 2019-03-19 13:01:23 +00:00
Kamil Mysliwiec
0e33860828 Merge pull request #1730 from pvtri96/pvtri96/refactor
refactor(sample/22): Update the method name in posts resolver to match the context
2019-03-19 13:51:55 +01:00
Kamil Mysliwiec
00a9aef722 Merge pull request #1766 from nestjs/renovate/tsconfig-paths-3.x
Update dependency tsconfig-paths to v3.8.0
2019-03-19 13:51:30 +01:00
Kamil Mysliwiec
38737c99d1 Merge pull request #1771 from nestjs/renovate/point-of-view-3.x
Update dependency point-of-view to v3
2019-03-19 13:51:16 +01:00
Kamil Mysliwiec
335c25512d Merge pull request #1777 from nestjs/renovate/typescript-3.x
Update dependency typescript to v3
2019-03-19 13:51:01 +01:00
Kamil Mysliwiec
9430e2b78d Merge pull request #1772 from nestjs/renovate/sequelize-5.x
Update dependency sequelize to v5
2019-03-19 13:50:44 +01:00
Renovate Bot
f2ef6e19c6 Update dependency typescript to v3 2019-03-19 12:50:42 +00:00
Kamil Mysliwiec
4cceae670e Merge pull request #1724 from nestjs/renovate/gulp-typescript-5.x
Update dependency gulp-typescript to v5
2019-03-19 13:49:17 +01:00
Kamil Mysliwiec
01b8f3dc11 Merge pull request #1756 from nestjs/renovate/nestjs-passport-6.x
Update dependency @nestjs/passport to v6
2019-03-19 13:48:37 +01:00
Kamil Mysliwiec
28eb129900 Merge pull request #1773 from shauntrennery/patch-1
Update webpack.config.js
2019-03-19 13:48:21 +01:00
Shaun Trennery
213743c287 Update webpack.config.js
Update to prevent endless watch loop.
2019-03-19 13:03:56 +02:00
Renovate Bot
8089f18349 Update dependency sequelize to v5 2019-03-19 10:23:14 +00:00
Renovate Bot
4241b744a0 Update dependency point-of-view to v3 2019-03-19 10:23:09 +00:00
Renovate Bot
97e7274bf7 Update dependency tsconfig-paths to v3.8.0 2019-03-19 09:54:48 +00:00
Renovate Bot
9f618b8502 Update dependency @nestjs/passport to v6 2019-03-19 08:09:31 +00:00
Kamil Mysliwiec
fc6e07a103 Merge pull request #1752 from nestjs/renovate/ts-node-8.x
Update dependency ts-node to v8
2019-03-19 09:07:14 +01:00
Renovate Bot
93ae488da4 Update dependency ts-node to v8 2019-03-19 08:06:39 +00:00
Kamil Mysliwiec
5dbc306577 Merge pull request #1761 from nestjs/renovate/point-of-view-1.x
Update dependency point-of-view to v1.3.0
2019-03-19 09:06:15 +01:00
Kamil Mysliwiec
dc9db9d5b8 Merge pull request #1762 from nestjs/renovate/subscriptions-transport-ws-0.x
Update dependency subscriptions-transport-ws to v0.9.16
2019-03-19 09:02:26 +01:00
Renovate Bot
b087fb0041 Update dependency subscriptions-transport-ws to v0.9.16 2019-03-19 08:01:17 +00:00
Renovate Bot
87c736e0dd Update dependency point-of-view to v1.3.0 2019-03-19 08:00:52 +00:00
Kamil Mysliwiec
9f252794b9 Merge pull request #1750 from nestjs/renovate/supertest-4.x
Update dependency supertest to v4
2019-03-19 08:56:22 +01:00
Renovate Bot
847bb1cc18 Update dependency supertest to v4 2019-03-19 07:53:59 +00:00
Renovate Bot
92a017d7b6 Update dependency gulp-typescript to v5 2019-03-19 07:51:11 +00:00
Kamil Mysliwiec
715c25dfb6 Merge pull request #1737 from nestjs/renovate/nest-monorepo
Update nest monorepo to v6.0.1
2019-03-19 08:49:26 +01:00
Renovate Bot
5c4c8b58a1 Update nest monorepo to v6.0.1 2019-03-19 07:48:16 +00:00
Kamil Mysliwiec
f5f1181eb2 Merge pull request #1758 from nestjs/renovate/fastify-2.x
fix(deps): update dependency fastify to v2
2019-03-19 08:40:07 +01:00
Kamil Mysliwiec
98533b8816 Merge pull request #1753 from nestjs/renovate/nestjs-jwt-6.x
fix(deps): update dependency @nestjs/jwt to v6
2019-03-19 08:39:51 +01:00
Kamil Mysliwiec
dc2bb08d80 Merge pull request #1746 from nestjs/renovate/major-lerna-monorepo
chore(deps): update dependency lerna to v3
2019-03-19 08:39:35 +01:00
Kamil Mysliwiec
fc4285ff6c Merge pull request #1748 from nestjs/renovate/pin-dependencies
fix(deps): pin dependency @nestjs/swagger to 3.0.1
2019-03-19 08:38:53 +01:00
Kamil Mysliwiec
72df09ef65 Merge pull request #1745 from nestjs/renovate/major-jest-monorepo
chore(deps): update dependency jest to v24
2019-03-19 08:38:29 +01:00
Kamil Mysliwiec
8db439ad95 Merge pull request #1744 from nestjs/renovate/gulp-watch-5.x
chore(deps): update dependency gulp-watch to v5
2019-03-19 08:38:12 +01:00
Kamil Mysliwiec
f5a5ce8595 Merge pull request #1743 from nestjs/renovate/mongoose-5.x
chore(deps): update dependency @types/mongoose to v5.3.23
2019-03-19 08:38:04 +01:00
Kamil Mysliwiec
54357e23e5 Merge pull request #1741 from nestjs/renovate/cache-manager-1.x
chore(deps): update dependency @types/cache-manager to v1.2.7
2019-03-19 08:37:55 +01:00
Kamil Mysliwiec
5c91c38aa2 Merge pull request #1736 from nestjs/renovate/prisma-binding-2.x
fix(deps): update dependency prisma-binding to v2.3.9
2019-03-19 08:37:27 +01:00
Kamil Mysliwiec
3c36ea9914 Merge pull request #1759 from nestjs/revert-1749-renovate/mocha-6.x
Revert "chore(deps): update dependency mocha to v6"
2019-03-19 08:37:03 +01:00
Kamil Mysliwiec
e0e2b5080d Revert "chore(deps): update dependency mocha to v6" 2019-03-19 08:36:43 +01:00
Renovate Bot
c10e8d01fb fix(deps): pin dependency @nestjs/swagger to 3.0.1 2019-03-19 07:36:35 +00:00
Kamil Mysliwiec
e24826286c Merge pull request #1749 from nestjs/renovate/mocha-6.x
chore(deps): update dependency mocha to v6
2019-03-19 08:35:56 +01:00
Kamil Mysliwiec
6bc1829cf7 Merge pull request #1751 from nestjs/renovate/ts-jest-24.x
chore(deps): update dependency ts-jest to v24
2019-03-19 08:35:40 +01:00
Kamil Mysliwiec
6d83b3a3da Merge pull request #1755 from nestjs/renovate/nestjs-mongoose-6.x
fix(deps): update dependency @nestjs/mongoose to v6
2019-03-19 08:35:27 +01:00
Kamil Mysliwiec
8013e8dfca Merge pull request #1757 from nestjs/renovate/nestjs-typeorm-6.x
fix(deps): update dependency @nestjs/typeorm to v6
2019-03-19 08:35:13 +01:00
Kamil Mysliwiec
3ab4eb86c5 Merge pull request #1742 from nestjs/renovate/sequelize-4.x
chore(deps): update dependency @types/sequelize to v4.27.44
2019-03-19 08:34:55 +01:00
Renovate Bot
fc0766aede fix(deps): update dependency fastify to v2 2019-03-19 06:25:28 +00:00
Renovate Bot
5e25e2ba3c fix(deps): update dependency @nestjs/typeorm to v6 2019-03-19 06:25:08 +00:00
Renovate Bot
ed04ff25c3 fix(deps): update dependency @nestjs/mongoose to v6 2019-03-19 04:54:58 +00:00
Renovate Bot
ba7699771a fix(deps): update dependency @nestjs/jwt to v6 2019-03-19 03:49:44 +00:00
Renovate Bot
ea53b9f95d chore(deps): update dependency ts-jest to v24 2019-03-19 01:54:02 +00:00
Renovate Bot
9b29f1b5fc chore(deps): update dependency mocha to v6 2019-03-19 00:55:42 +00:00
Kamil Myśliwiec
10f70be0be Merge branch 'master' of https://github.com/nestjs/nest 2019-03-18 23:40:32 +01:00
Renovate Bot
d1d756a717 chore(deps): update dependency lerna to v3 2019-03-18 22:17:23 +00:00
Renovate Bot
211f4b15c6 chore(deps): update dependency jest to v24 2019-03-18 22:14:54 +00:00
Renovate Bot
ff2b81ae1e chore(deps): update dependency @types/sequelize to v4.27.44 2019-03-18 22:14:40 +00:00
Renovate Bot
21fe68ee40 chore(deps): update dependency gulp-watch to v5 2019-03-18 21:38:07 +00:00
Renovate Bot
df45b5377d chore(deps): update dependency @types/mongoose to v5.3.23 2019-03-18 21:35:36 +00:00
Jean-Baptiste Pionnier
61728fa46a feat(common): accept provide abstract class 2019-03-18 21:24:01 +01:00
Renovate Bot
b7c66efd30 chore(deps): update dependency @types/cache-manager to v1.2.7 2019-03-18 20:08:17 +00:00
Renovate Bot
97acd2cf56 fix(deps): update dependency prisma-binding to v2.3.9 2019-03-18 19:01:29 +00:00
Kamil Myśliwiec
5f0643ccd0 sample(): update swagger example 2019-03-18 15:18:26 +01:00
Kamil Mysliwiec
81d8dae7cd Merge pull request #1731 from nestjs/renovate/nestjs-graphql-6.x
fix(deps): update dependency @nestjs/graphql to v6.0.1
2019-03-18 15:17:36 +01:00
Renovate Bot
bc9ced8d71 fix(deps): update dependency @nestjs/graphql to v6.0.1 2019-03-18 14:16:20 +00:00
pvtri96
0015231e86 refactor(sample/22): Update the method name in posts resolver to match the context 2019-03-18 21:01:56 +07:00
Mark Pieszak
67e0c89980 update nestjs to nest 2019-03-18 09:59:57 -04:00
Kamil Mysliwiec
6882bc7fbf Merge pull request #1729 from MarkPieszak/patch-1
chore(license): update license date
2019-03-18 14:45:55 +01:00
Mark Pieszak
bab88e328f docs(readme): update links to open in new window 2019-03-18 09:04:59 -04:00
Mark Pieszak
aa088d63a7 chore: update license date 2019-03-18 08:50:24 -04:00
Kamil Myśliwiec
55646f5ae2 chore(@nestjs) publish v6.0.1 release 2019-03-18 12:26:38 +01:00
Kamil Mysliwiec
96ba98d882 Merge pull request #1723 from nestjs/bugfix/1690-proxy-context
Bugfix/1690 proxy context
2019-03-18 12:05:53 +01:00
Kamil Mysliwiec
bf2b062711 Merge pull request #1722 from nestjs/bugfix/1689-testing-module
bugfix(core/testing): override provider only if exists in the scope
2019-03-18 12:05:25 +01:00
Kamil Myśliwiec
e1b46b7cc7 Merge branch 'bugfix/1690-proxy-context' into bugfix/1689-testing-module 2019-03-18 12:04:46 +01:00
Kamil Myśliwiec
fc4aaf29f7 bugfix(fastify): not registered fastify routes #1703 2019-03-18 12:02:10 +01:00
Kamil Myśliwiec
7ee2f58513 tests(): hotfix (client proxy) - unit tests 2019-03-18 11:11:01 +01:00
Kamil Myśliwiec
ff69407263 tests(): hotfix (client proxy) - unit tests 2019-03-18 11:10:43 +01:00
Kamil Myśliwiec
f1d458ca28 style(): add whitespace 2019-03-18 10:57:35 +01:00
Kamil Myśliwiec
2abfd741bd Merge branch 'master' of https://github.com/nestjs/nest 2019-03-18 10:54:02 +01:00
Kamil Myśliwiec
8e2280db05 bugfix(core/testing): override provider only if exists in the scope 2019-03-18 10:47:05 +01:00
Kamil Mysliwiec
b2722cec63 Merge pull request #1720 from nestjs/renovate/fastify-static-2.x
chore(deps): update dependency fastify-static to v2
2019-03-18 10:36:50 +01:00
Renovate Bot
74feffb8e7 chore(deps): update dependency fastify-static to v2 2019-03-18 09:29:25 +00:00
Kamil Mysliwiec
a74bd6bda1 Merge pull request #1719 from nestjs/renovate/coveralls-3.x
chore(deps): update dependency coveralls to v3
2019-03-18 10:28:41 +01:00
Kamil Mysliwiec
e412b5567c Merge pull request #1713 from nestjs/renovate/concurrently-4.x
chore(deps): update dependency concurrently to v4
2019-03-18 10:28:25 +01:00
Renovate Bot
a70e2b8e80 chore(deps): update dependency coveralls to v3 2019-03-18 09:28:15 +00:00
Renovate Bot
35e6723893 chore(deps): update dependency concurrently to v4 2019-03-18 09:27:02 +00:00
Kamil Mysliwiec
e2f59a15d6 Merge pull request #1702 from nestjs/renovate/typeorm-0.x
fix(deps): update dependency typeorm to v0.2.15
2019-03-18 10:25:42 +01:00
Renovate Bot
17f2c697b2 fix(deps): update dependency typeorm to v0.2.15 2019-03-18 09:24:22 +00:00
Kamil Mysliwiec
a0f3581924 Merge pull request #1696 from nestjs/renovate/rxjs-6.x
fix(deps): update dependency rxjs to v6.4.0
2019-03-18 10:22:32 +01:00
Renovate Bot
8c71e4b644 fix(deps): update dependency rxjs to v6.4.0 2019-03-18 09:21:27 +00:00
Kamil Mysliwiec
561b3dae5e Merge pull request #1709 from nestjs/renovate/mocha-5.x
chore(deps): update dependency @types/mocha to v5
2019-03-18 10:19:47 +01:00
Kamil Mysliwiec
7804cc454b Merge pull request #1707 from nestjs/renovate/chai-as-promised-7.x
chore(deps): update dependency @types/chai-as-promised to v7
2019-03-18 10:19:32 +01:00
Kamil Mysliwiec
2691fd3fb0 Merge pull request #1708 from nestjs/renovate/jest-24.x
chore(deps): update dependency @types/jest to v24
2019-03-18 10:19:03 +01:00
Kamil Mysliwiec
15d7829822 Merge pull request #1710 from nestjs/renovate/redis-2.x
chore(deps): update dependency @types/redis to v2
2019-03-18 10:18:55 +01:00
Kamil Mysliwiec
7bcc3ed284 Merge pull request #1694 from nestjs/renovate/reflect-metadata-0.x
fix(deps): update dependency reflect-metadata to v0.1.13
2019-03-18 10:17:42 +01:00
Kamil Mysliwiec
1b00185e2e Merge pull request #1711 from nestjs/renovate/socket.io-2.x
chore(deps): update dependency @types/socket.io to v2
2019-03-18 10:16:29 +01:00
Renovate Bot
a42e4fdfc7 fix(deps): update dependency reflect-metadata to v0.1.13 2019-03-18 09:16:23 +00:00
Kamil Mysliwiec
009de393d6 Merge pull request #1712 from nestjs/renovate/awesome-typescript-loader-5.x
chore(deps): update dependency awesome-typescript-loader to v5
2019-03-18 10:16:13 +01:00
Kamil Mysliwiec
d9cc475ef5 Merge pull request #1714 from nestjs/renovate/conventional-changelog-3.x
chore(deps): update dependency conventional-changelog to v3
2019-03-18 10:15:56 +01:00
Kamil Mysliwiec
dcf6047e66 Merge pull request #1705 from nestjs/renovate/nest-monorepo
fix(deps): update nest monorepo to v5.7.4
2019-03-18 10:15:33 +01:00
Kamil Mysliwiec
b75c76733b Merge pull request #1704 from nestjs/renovate/typescript-2.x
fix(deps): update dependency typescript to v2.9.2
2019-03-18 10:15:20 +01:00
Kamil Mysliwiec
8f2b6b6057 Merge pull request #1701 from nestjs/renovate/type-graphql-0.x
fix(deps): update dependency type-graphql to v0.17.0
2019-03-18 10:14:58 +01:00
Kamil Mysliwiec
0879363302 Merge pull request #1699 from nestjs/renovate/ts-morph-1.x
fix(deps): update dependency ts-morph to v1.3.1
2019-03-18 10:14:47 +01:00
Kamil Mysliwiec
51e644a990 Merge pull request #1698 from nestjs/renovate/sequelize-typescript-0.x
fix(deps): update dependency sequelize-typescript to v0.6.8
2019-03-18 10:14:38 +01:00
Kamil Mysliwiec
547d587b7a Merge pull request #1697 from nestjs/renovate/subscriptions-transport-ws-0.x
fix(deps): update dependency subscriptions-transport-ws to v0.9.16
2019-03-18 10:14:28 +01:00
Kamil Mysliwiec
3b63f9ea56 Merge pull request #1692 from nestjs/renovate/point-of-view-1.x
fix(deps): update dependency point-of-view to v1.3.0
2019-03-18 10:13:58 +01:00
Kamil Mysliwiec
162e545b19 Merge pull request #1691 from nestjs/renovate/mysql-2.x
fix(deps): update dependency mysql to v2.16.0
2019-03-18 10:13:11 +01:00
Renovate Bot
5861a0763c chore(deps): update dependency conventional-changelog to v3 2019-03-17 22:00:37 +00:00
Renovate Bot
7cbfdbeafa chore(deps): update dependency awesome-typescript-loader to v5 2019-03-17 20:06:26 +00:00
Renovate Bot
003b1ea51b chore(deps): update dependency @types/socket.io to v2 2019-03-17 20:05:20 +00:00
Renovate Bot
6ffa338c56 chore(deps): update dependency @types/redis to v2 2019-03-17 19:56:19 +00:00
Renovate Bot
8d05f34d34 chore(deps): update dependency @types/mocha to v5 2019-03-17 19:55:14 +00:00
Renovate Bot
9f4d566e5b chore(deps): update dependency @types/jest to v24 2019-03-17 18:57:51 +00:00
Renovate Bot
566fada699 chore(deps): update dependency @types/chai-as-promised to v7 2019-03-17 18:57:46 +00:00
Renovate Bot
dc34a29ff7 fix(deps): update nest monorepo to v5.7.4 2019-03-17 17:39:29 +00:00
Renovate Bot
6f4eb4fba9 fix(deps): update dependency typescript to v2.9.2 2019-03-17 17:38:14 +00:00
Renovate Bot
1674038bfa fix(deps): update dependency type-graphql to v0.17.0 2019-03-17 15:57:01 +00:00
Renovate Bot
8d039d3099 fix(deps): update dependency ts-morph to v1.3.1 2019-03-17 14:09:45 +00:00
Renovate Bot
d8b0a4a46e fix(deps): update dependency sequelize-typescript to v0.6.8 2019-03-17 14:07:44 +00:00
Renovate Bot
73098e5306 fix(deps): update dependency subscriptions-transport-ws to v0.9.16 2019-03-17 13:58:46 +00:00
Kamil Myśliwiec
ee19d1eedb Merge branch 'master' of https://github.com/nestjs/nest 2019-03-17 13:30:09 +01:00
Kamil Myśliwiec
42f38c68af bugfix(core): invalid context object (proxy) #1690 2019-03-17 13:28:08 +01:00
Renovate Bot
03e3d224a3 fix(deps): update dependency point-of-view to v1.3.0 2019-03-17 11:59:09 +00:00
Renovate Bot
f1bfd130f6 fix(deps): update dependency mysql to v2.16.0 2019-03-17 11:58:57 +00:00
Kamil Mysliwiec
18d2062702 Merge pull request #1682 from nestjs/renovate/class-transformer-0.x
fix(deps): update dependency class-transformer to v0.2.0
2019-03-17 11:15:16 +01:00
Renovate Bot
40b6cf92c6 fix(deps): update dependency class-transformer to v0.2.0 2019-03-17 10:15:01 +00:00
Kamil Mysliwiec
ab07cd5684 Merge pull request #1674 from nestjs/renovate/webpack-cli-3.x
chore(deps): update dependency webpack-cli to v3.3.0
2019-03-17 11:14:22 +01:00
Renovate Bot
4bc38cf855 chore(deps): update dependency webpack-cli to v3.3.0 2019-03-17 10:14:13 +00:00
Kamil Mysliwiec
dc67e8ea4c Merge pull request #1687 from nestjs/renovate/hbs-4.x
fix(deps): update dependency hbs to v4.0.3
2019-03-17 11:13:58 +01:00
Kamil Mysliwiec
08356946ac Merge pull request #1688 from nestjs/renovate/mongoose-5.x
fix(deps): update dependency mongoose to v5.4.19
2019-03-17 11:13:36 +01:00
Kamil Mysliwiec
a2ac3153ea Merge pull request #1684 from nestjs/renovate/fastify-1.x
fix(deps): update dependency fastify to v1.14.4
2019-03-17 11:13:21 +01:00
Kamil Mysliwiec
46ed4f09a6 Merge pull request #1671 from nestjs/renovate/ts-node-6.x
chore(deps): update dependency ts-node to v6.2.0
2019-03-17 11:13:06 +01:00
Kamil Mysliwiec
653c1b83f0 Merge pull request #1673 from nestjs/renovate/webpack-4.x
chore(deps): update dependency webpack to v4.29.6
2019-03-17 11:12:32 +01:00
Renovate Bot
6e4b319219 fix(deps): update dependency mongoose to v5.4.19 2019-03-17 10:10:58 +00:00
Renovate Bot
b5a6a349e5 fix(deps): update dependency fastify to v1.14.4 2019-03-17 10:10:41 +00:00
Renovate Bot
b23daa9cda chore(deps): update dependency ts-node to v6.2.0 2019-03-17 10:10:17 +00:00
Kamil Mysliwiec
de5c6f72af Merge pull request #1669 from nestjs/renovate/imports-loader-0.x
chore(deps): update dependency imports-loader to v0.8.0
2019-03-17 11:10:17 +01:00
Kamil Mysliwiec
bdf73cbb8e Merge pull request #1685 from nestjs/renovate/graphql-14.x
fix(deps): update dependency graphql to v14.1.1
2019-03-17 11:07:48 +01:00
Kamil Mysliwiec
9729a308eb Merge pull request #1665 from nestjs/renovate/node-7.x
chore(deps): update dependency @types/node to v7.10.5
2019-03-17 11:07:19 +01:00
Kamil Mysliwiec
d616b60f83 Merge pull request #1686 from nestjs/renovate/handlebars-4.x
fix(deps): update dependency handlebars to v4.1.1
2019-03-17 11:07:10 +01:00
Renovate Bot
74368cef06 fix(deps): update dependency hbs to v4.0.3 2019-03-17 10:02:02 +00:00
Kamil Myśliwiec
2e850f48fa Merge branch 'master' of https://github.com/nestjs/nest 2019-03-17 11:00:12 +01:00
Kamil Myśliwiec
5c0388f76f tests(): fix race condition in unit tests 2019-03-17 10:59:28 +01:00
Renovate Bot
b5971a3a94 Update dependency graphql to v14.1.1 2019-03-17 09:55:04 +00:00
Renovate Bot
8cfbeeafda Update dependency @types/node to v7.10.5 2019-03-17 09:54:13 +00:00
Renovate Bot
d5d7dddee3 chore(deps): update dependency webpack to v4.29.6 2019-03-17 09:51:18 +00:00
Kamil Mysliwiec
bdcb8bf861 Merge pull request #1679 from nestjs/renovate/nestjs-typeorm-5.x
fix(deps): update dependency @nestjs/typeorm to v5.3.0
2019-03-17 10:50:11 +01:00
Kamil Mysliwiec
8b796482e0 Merge pull request #1683 from nestjs/renovate/class-validator-0.x
fix(deps): update dependency class-validator to v0.9.1
2019-03-17 10:49:47 +01:00
Kamil Mysliwiec
6ae8237642 Merge pull request #1681 from nestjs/renovate/apollo-server-monorepo
fix(deps): update dependency apollo-server-express to v2.4.8
2019-03-17 10:49:29 +01:00
Kamil Mysliwiec
8ccf3e4a4e Merge pull request #1680 from nestjs/renovate/amqp-connection-manager-2.x
fix(deps): update dependency amqp-connection-manager to v2.3.0
2019-03-17 10:49:21 +01:00
Kamil Mysliwiec
81b8653183 Merge pull request #1678 from nestjs/renovate/nestjs-jwt-0.x
fix(deps): update dependency @nestjs/jwt to v0.3.0
2019-03-17 10:49:12 +01:00
Kamil Mysliwiec
aa6e50e7d4 Merge pull request #1670 from nestjs/renovate/supertest-3.x
chore(deps): update dependency supertest to v3.4.2
2019-03-17 10:48:28 +01:00
Renovate Bot
8dd1c28a25 fix(deps): update dependency handlebars to v4.1.1 2019-03-17 09:48:02 +00:00
Kamil Mysliwiec
18563ca0fe Merge pull request #1672 from nestjs/renovate/tslint-5.x
chore(deps): update dependency tslint to v5.14.0
2019-03-17 10:47:59 +01:00
Kamil Mysliwiec
8c98870e21 Merge pull request #1675 from nestjs/renovate/docker-mysql-5.x
chore(deps): update mysql docker tag to v5.7.25
2019-03-17 10:47:42 +01:00
Kamil Mysliwiec
c07a467e62 Merge pull request #1668 from nestjs/renovate/fastify-static-0.x
chore(deps): update dependency fastify-static to v0.14.0
2019-03-17 10:46:19 +01:00
Kamil Mysliwiec
c286ceb4fc Merge pull request #1666 from nestjs/renovate/node-8.x
chore(deps): update dependency @types/node to v8.10.44
2019-03-17 10:46:11 +01:00
Kamil Mysliwiec
1d1b0ad9d0 Merge pull request #1663 from nestjs/renovate/pin-dependencies
fix(deps): pin dependency apollo-server-express to 2.4.8
2019-03-17 10:45:54 +01:00
Renovate Bot
32ac9d3762 fix(deps): update dependency class-validator to v0.9.1 2019-03-17 05:57:03 +00:00
Renovate Bot
87fdef9e53 fix(deps): update dependency apollo-server-express to v2.4.8 2019-03-17 04:48:45 +00:00
Renovate Bot
675124af1a fix(deps): update dependency amqp-connection-manager to v2.3.0 2019-03-17 03:44:05 +00:00
Renovate Bot
ca3ab408cf fix(deps): update dependency @nestjs/typeorm to v5.3.0 2019-03-17 03:43:57 +00:00
Renovate Bot
dc51260804 fix(deps): update dependency @nestjs/jwt to v0.3.0 2019-03-17 02:57:31 +00:00
Renovate Bot
e9affa9fb5 chore(deps): update mysql docker tag to v5.7.25 2019-03-17 01:01:06 +00:00
Renovate Bot
e47403e3b4 chore(deps): update dependency tslint to v5.14.0 2019-03-17 00:54:43 +00:00
Renovate Bot
f33c3edfe8 chore(deps): update dependency supertest to v3.4.2 2019-03-16 23:35:36 +00:00
Renovate Bot
5de0928c76 chore(deps): update dependency imports-loader to v0.8.0 2019-03-16 22:27:30 +00:00
Renovate Bot
43d658edd9 chore(deps): update dependency fastify-static to v0.14.0 2019-03-16 22:26:25 +00:00
Renovate Bot
bd74bfd347 chore(deps): update dependency @types/node to v8.10.44 2019-03-16 21:34:07 +00:00
Renovate Bot
d120b36f2c fix(deps): pin dependency apollo-server-express to 2.4.8 2019-03-16 21:32:48 +00:00
Kamil Myśliwiec
dec41760b6 deps(): update package-lock 2019-03-16 22:20:07 +01:00
Kamil Myśliwiec
dd1be8d448 Merge branch 'master' of https://github.com/nestjs/nest 2019-03-16 21:40:39 +01:00
Kamil Myśliwiec
28344d735c deps(): update package-lock.json files 2019-03-16 21:39:30 +01:00
Kamil Mysliwiec
8e2f64d9b7 Merge pull request #1659 from BrunnerLivio/6.0.0-next
test(@nestjs/core): Check lifecycle hook order
2019-03-16 21:23:24 +01:00
Kamil Myśliwiec
af175229e4 deps(): update @nestjs/graphql dep 2019-03-16 20:28:20 +01:00
Kamil Mysliwiec
7695de1f0a Merge pull request #1650 from nestjs/renovate/nodemon-1.x
chore(deps): update dependency nodemon to v1.18.10
2019-03-16 20:26:03 +01:00
Renovate Bot
e7f785b7c4 chore(deps): update dependency nodemon to v1.18.10 2019-03-16 19:19:04 +00:00
Kamil Mysliwiec
590f1e7646 Merge pull request #1661 from nestjs/renovate/tsconfig-paths-3.x
chore(deps): update dependency tsconfig-paths to v3.8.0
2019-03-16 20:17:37 +01:00
Kamil Mysliwiec
cb0435d3ca Merge pull request #1660 from nestjs/renovate/prettier-1.x
chore(deps): update dependency prettier to v1.16.4
2019-03-16 20:17:16 +01:00
Kamil Mysliwiec
dadc1e32fe Merge pull request #1648 from nestjs/renovate/pin-dependencies
fix(deps): pin dependencies
2019-03-16 20:16:57 +01:00
Renovate Bot
5a2dd18645 chore(deps): update dependency tsconfig-paths to v3.8.0 2019-03-16 19:13:34 +00:00
Renovate Bot
585d6bf321 chore(deps): update dependency prettier to v1.16.4 2019-03-16 19:13:28 +00:00
Renovate Bot
22533e9641 fix(deps): pin dependencies 2019-03-16 19:12:13 +00:00
Kamil Mysliwiec
d9bbe7d756 Merge pull request #1649 from nestjs/renovate/node-10.x
chore(deps): update dependency @types/node to v10.14.1
2019-03-16 20:03:56 +01:00
Kamil Mysliwiec
6858710e11 Merge pull request #1652 from nestjs/renovate/cli-color-1.x
fix(deps): update dependency cli-color to v1.4.0
2019-03-16 20:03:37 +01:00
Kamil Mysliwiec
1579ac75f9 Merge pull request #1656 from nestjs/renovate/graphql-tools-4.x
fix(deps): update dependency graphql-tools to v4.0.4
2019-03-16 20:03:23 +01:00
Renovate Bot
3949e97b5b fix(deps): update dependency graphql-tools to v4.0.4 2019-03-16 19:00:38 +00:00
Renovate Bot
1a2cfd9d8a fix(deps): update dependency cli-color to v1.4.0 2019-03-16 19:00:13 +00:00
Renovate Bot
920daa3887 chore(deps): update dependency @types/node to v10.14.1 2019-03-16 18:58:12 +00:00
Kamil Myśliwiec
fddab68bec chore(): publish 6.0.0 release 2019-03-16 19:47:44 +01:00
Kamil Myśliwiec
9e9b8b95bd chore(@nestjs) publish v6.0.0 release 2019-03-16 19:46:55 +01:00
Kamil Myśliwiec
161bbd8f5d chore(): update deps, pin deps, bump peerDeps, fix tests 2019-03-16 19:45:15 +01:00
Livio
19819f4669 test(@nestjs/core): Check lifecycle hook order 2019-03-16 19:19:56 +01:00
Kamil Mysliwiec
3bbba1cfd1 Merge pull request #1486 from nestjs/6.0.0-next
release(): major 6.0.0 release
2019-03-16 18:57:44 +01:00
Kamil Myśliwiec
ad75ce974c improvement(): generate random context id for middleware 2019-03-16 14:58:41 +01:00
Kamil Myśliwiec
14768044e9 lint(): fix linter issues, set callable types 2019-03-15 17:17:16 +01:00
Kamil Myśliwiec
98cea88f32 refactor(core): remove useless typings app context 2019-03-15 16:49:49 +01:00
Kamil Myśliwiec
07da047801 bugfix(): fix invalid middleware instantiation 2019-03-15 16:48:05 +01:00
Kamil Myśliwiec
7818a4de18 merge(): resolve conflicts 2019-03-15 14:30:08 +01:00
Kamil Myśliwiec
6893bd68bf integration(): add middleware integration test 2019-03-14 15:56:21 +01:00
Kamil Myśliwiec
3dc5b374ff chore(): publish 5.7.4 release 2019-03-09 14:38:29 +01:00
Kamil Myśliwiec
16f4611d0c chore(@nestjs) publish v5.7.4 release 2019-03-09 14:37:51 +01:00
Kamil Myśliwiec
6d798d5c18 refactor(): adjust coding style 2019-03-09 14:35:18 +01:00
Kamil Myśliwiec
3fa6625be2 Merge branch 'ynunez-master' 2019-03-09 14:32:35 +01:00
Kamil Myśliwiec
4c22feb289 refactor(): adjust coding style 2019-03-09 14:32:12 +01:00
Kamil Myśliwiec
89e5a1de49 Merge branch 'master' of https://github.com/ynunez/nest into ynunez-master 2019-03-09 14:31:40 +01:00
Kamil Myśliwiec
251a8a2dc5 Merge branch 'sincraianul-fix-class-validator-response' 2019-03-09 14:29:29 +01:00
Kamil Myśliwiec
46d930f48a refactor(): adjust coding style 2019-03-09 14:28:01 +01:00
Kamil Myśliwiec
5f0829d5db Merge branch 'fix-class-validator-response' of https://github.com/sincraianul/nest into sincraianul-fix-class-validator-response 2019-03-09 14:26:00 +01:00
Kamil Mysliwiec
9265743035 Merge pull request #1624 from murbanowicz/feature/add-missing-isoptional
sample(): add missing isOptional() to optional field in sample-23
2019-03-09 14:16:23 +01:00
Kamil Myśliwiec
cec89d285d bugfix(): fix fastify adapter query parameters 2019-03-09 14:04:35 +01:00
Marek Urbanowicz
3a75b00db0 Add missing isOptional on optional field in Sample-23 2019-03-08 20:15:08 +01:00
Andrei Sîncrăian
d6b8e1f514 bugfix(common): prevent exception body override if message is an array 2019-03-08 16:22:49 +02:00
Kamil Myśliwiec
00ddc0aeeb chore(@nestjs) publish v6.0.0-rc.1 release 2019-03-05 13:09:39 +01:00
Kamil Myśliwiec
3935279878 Merge branch 'BrunnerLivio-fix/process-memory-leak' into 6.0.0-next 2019-03-05 12:42:46 +01:00
Kamil Myśliwiec
c4b92e9b16 style(): adjust coding style 2019-03-05 12:40:13 +01:00
Kamil Myśliwiec
91500ba35e Merge branch 'fix/process-memory-leak' of https://github.com/BrunnerLivio/nest into BrunnerLivio-fix/process-memory-leak 2019-03-05 12:33:12 +01:00
Livio
83ec279f85 fix(@nestjs/core): Fix process.on memory leak bug in e2e testing 2019-03-04 12:56:48 +01:00
Kamil Myśliwiec
9f1a32cbfd refactor(): remove redundancy, extract handleEvent 2019-03-01 10:11:19 +01:00
Kamil Mysliwiec
d8c7ba3285 Merge pull request #1569 from kibertoad/chore/update-test-dependencies
build(test/linting) update test/linting dependencies
2019-02-28 14:26:42 +01:00
Kamil Mysliwiec
611924c4b2 Merge pull request #1572 from MaxWithU/patch-1
sample(): update docker-compose.yml
2019-02-28 14:03:39 +01:00
Yoel Nunez
a03b4b1f55 Merge branch 'master' of github.com:ynunez/nest 2019-02-26 20:40:32 -06:00
Yoel Nunez
03377180a7 bugfix(core): fixed basePath issue with routes-resolver 2019-02-26 20:40:15 -06:00
Yoel Nunez
f54f123953 fixed basePath issue with routes-resolver# 2019-02-26 20:29:43 -06:00
Kamil Myśliwiec
0cc1c4ebea sample(): use custom scalar interface 2019-02-22 12:46:13 +01:00
Kamil Myśliwiec
fe316b864e chore(): publish 6.0.0-alpha.4 release 2019-02-22 10:55:44 +01:00
Kamil Myśliwiec
c961d8559d resolve conflicts 2019-02-21 15:05:51 +01:00
Kamil Myśliwiec
20cbbaf296 chore(@nestjs) publish v5.7.3 release 2019-02-21 11:38:30 +01:00
Kamil Myśliwiec
f95b5ae6d1 Merge branch 'BrunnerLivio-fix/unknown-dependency-ex-symbol' 2019-02-21 11:10:15 +01:00
Kamil Myśliwiec
40fb55abae bugfix(core): add missing isSymbol check 2019-02-21 11:09:52 +01:00
Kamil Myśliwiec
b89651f5e6 Merge branch 'fix/unknown-dependency-ex-symbol' of https://github.com/BrunnerLivio/nest into BrunnerLivio-fix/unknown-dependency-ex-symbol 2019-02-21 11:07:38 +01:00
Kamil Myśliwiec
276f696a21 hotfix(): update package-lock 2019-02-21 09:33:32 +01:00
Kamil Myśliwiec
449989e857 hotfix(): bump grpc version 2019-02-21 09:28:34 +01:00
Kamil Myśliwiec
404afdca93 merge(): resolve conflicts 2019-02-21 09:06:25 +01:00
Kamil Myśliwiec
13e5bf6205 tests(): fix broken unit tests (rmq client) 2019-02-20 23:54:51 +01:00
Kamil Mysliwiec
6cea5928de Merge pull request #1576 from nestjs/bugfix/client-rmq
bugfix(microservices): remove reply_queue in rabbitmq client
2019-02-20 23:42:16 +01:00
Kamil Myśliwiec
b6406c639c tests(): fix broken unit tests (clients module) 2019-02-20 23:28:48 +01:00
Kamil Myśliwiec
4a44d16211 bugfix(microservices): remove reply_queue in rabbitmq client (use direct one) 2019-02-20 19:57:53 +01:00
Kamil Myśliwiec
af62405274 bugfix(microservices): fix rabbit mq client (using reply to queue) 2019-02-20 17:10:32 +01:00
Kamil Myśliwiec
8a94279cd7 refactor(microservices): simplify clients module 2019-02-20 17:10:04 +01:00
Kamil Myśliwiec
218ab96b0a bugfix(core): fix hanging process (add process.exit - lifecycle hook) 2019-02-20 17:09:16 +01:00
Kamil Myśliwiec
758257291b feature(): add typings to the provider interface 2019-02-20 17:08:31 +01:00
Kamil Myśliwiec
251fddd005 tests(): add clients module & reflector unit tests 2019-02-19 21:24:49 +01:00
Kamil Myśliwiec
a103dd27cb bugfix(): fix broken unit tests (invalid import & typing) 2019-02-19 21:07:58 +01:00
Kamil Myśliwiec
edf3ff3c9d bugfix(common): fix invalid http module interfaces & options 2019-02-19 21:07:38 +01:00
Kamil Myśliwiec
e2cb7ee8a3 feature(microservices): add clients module (factory abstraction) 2019-02-19 20:54:56 +01:00
Max Chen
f58c5116f5 Update docker-compose.yml 2019-02-19 17:18:52 +08:00
Kamil Mysliwiec
4fcc3731e1 Merge pull request #1545 from zuohuadong/patch-2
chore(readme_zh): add qq groups
2019-02-19 09:41:21 +01:00
Max Chen
ff80e52501 Update docker-compose.yml
latest mysql image can't access login
2019-02-19 16:16:38 +08:00
Igor Savin
a9f38fab03 build(vulnerabilities) update additional entries in package-lock to fix 8 additional vulnerabilities 2019-02-18 15:02:02 +01:00
Igor Savin
be9793c160 build(test/linting) update test/linting dependencies. Use new husky configuration syntax 2019-02-18 14:49:01 +01:00
Kamil Mysliwiec
c32697b414 Merge pull request #1560 from kibertoad/chore/update-sinon
build(sinon): update sinon and related dependencies
2019-02-18 14:10:14 +01:00
Kamil Mysliwiec
5c011a6328 Merge pull request #1561 from kibertoad/chore/uptodate-node-versions
ci(node): fix compatibility with Node 11 and execute tests on it in CI
2019-02-18 14:07:23 +01:00
Kamil Mysliwiec
414925e2f0 Update CONTRIBUTING.md 2019-02-17 13:48:31 +01:00
Kamil Myśliwiec
a5d3ce5070 test(graphql): add type-graphql intergration test 2019-02-17 12:52:19 +01:00
Kamil Myśliwiec
b80c33aa55 refactor(): update typings, code style update, remove typo 2019-02-17 10:57:37 +01:00
Livio
3261bedb1a fix(@nestjs/core): Display Symbol in UnknownDependencyException
Fixes #1551
2019-02-16 15:51:00 +01:00
Igor Savin
4930974042 build(sinon) fix more TypeScript compilation errors 2019-02-14 17:38:53 +01:00
Igor Savin
72b84ec97c build(sinon) fix more TypeScript compilation errors 2019-02-14 17:29:53 +01:00
Igor Savin
82bb7eff71 build(sinon) fix more TypeScript compilation errors 2019-02-14 17:22:09 +01:00
Igor Savin
2e75680f3c build(sinon) fix more TypeScript compilation errors 2019-02-14 17:13:26 +01:00
Igor Savin
d153872640 build(sinon) fix more TypeScript compilation errors 2019-02-14 17:04:58 +01:00
Igor Savin
98b81598e6 ci(node) commit updated package-lock.json 2019-02-14 17:03:24 +01:00
Igor Savin
059eba49af ci(node) update package-lock.json 2019-02-14 16:58:55 +01:00
Igor Savin
f801ad8214 build(sinon) fix more TypeScript compilation errors 2019-02-14 16:57:07 +01:00
Igor Savin
8b32bc61e4 ci(node) use gRPC version compatible with Node 11 2019-02-14 16:53:26 +01:00
Igor Savin
bd8705790e build(sinon) fix TypeScript compilation 2019-02-14 16:49:49 +01:00
Igor Savin
27d1c0fa7d ci(node) remove changes from wrong branch 2019-02-14 16:43:05 +01:00
Igor Savin
df538d5025 build(sinon) fix TypeScript compilation 2019-02-14 16:39:02 +01:00
Igor Savin
fc85b32be6 ci(node) execute tests in CI with Node 11 instead of Node 9 2019-02-14 16:15:28 +01:00
Igor Savin
8c03d84793 build(sinon) update sinon and related dependencies 2019-02-14 16:09:16 +01:00
Kamil Myśliwiec
7c82521e54 feature(): add debug and verbose to the logger service interface 2019-02-11 14:52:10 +01:00
huadong zuo
69dfb3d03b chore(readme_zh) add qq group 2019-02-11 12:49:38 +08:00
Kamil Myśliwiec
1714b51375 feature(): improve error messages (missing @Controller() decorator) 2019-02-08 20:11:33 +01:00
Kamil Myśliwiec
0e788fd3db chore(): publish 5.7.2 release 2019-02-08 18:04:34 +01:00
Kamil Myśliwiec
bf26d311d6 chore(@nestjs) publish v5.7.2 release 2019-02-08 18:03:01 +01:00
Kamil Myśliwiec
cb1e0bcd82 feature(): add scope option to the controller decorator 2019-02-08 17:19:55 +01:00
Kamil Mysliwiec
a975293d2e Update Readme.md 2019-02-08 14:46:16 +01:00
Kamil Myśliwiec
6ce05e117c chore(): publish 5.7.1 patch release 2019-02-08 10:46:52 +01:00
Kamil Myśliwiec
3b681a8ff0 chore(@nestjs) publish v5.7.1 release 2019-02-08 10:45:56 +01:00
Kamil Myśliwiec
b2b5cb1005 fix(): circular dependency (barrel import fix) 2019-02-07 18:23:05 +01:00
Kamil Myśliwiec
f77ed908aa bugfix(): add missing file 2019-02-07 17:29:02 +01:00
Kamil Myśliwiec
c05490ea61 feature(): change ReflectMetadata to SetMetadta, add getAll 2019-02-07 17:12:12 +01:00
Kamil Myśliwiec
3ce50b7f90 Merge branch 'master' of https://github.com/nestjs/nest 2019-02-07 14:44:30 +01:00
Kamil Myśliwiec
3159c402a2 chore(): update gitignore 2019-02-07 14:44:22 +01:00
Kamil Myśliwiec
0518c3c215 chore(): publish 5.7.0 minor release 2019-02-05 14:11:53 +01:00
Kamil Myśliwiec
213be3645f chore(@nestjs) publish v5.7.0 release 2019-02-05 14:10:53 +01:00
Kamil Myśliwiec
b634e6182d Merge branch 'elyesbenabdelkader-feature/request-mapping-decorator' 2019-02-05 14:07:37 +01:00
Kamil Myśliwiec
36ce494f76 feature(): allow array in request mapping decorators 2019-02-05 14:00:49 +01:00
Kamil Myśliwiec
9bb6b15f42 Merge branch 'feature/request-mapping-decorator' of https://github.com/elyesbenabdelkader/nest into elyesbenabdelkader-feature/request-mapping-decorator 2019-02-05 13:50:12 +01:00
Kamil Myśliwiec
7c772b2fd2 Merge branch 'master' of https://github.com/nestjs/nest 2019-02-05 13:44:49 +01:00
Kamil Myśliwiec
7edf59841a Merge branch 'AlexDaSoul-bugfix/interceptors-stream' 2019-02-05 13:44:42 +01:00
Kamil Myśliwiec
0848eeb53f style(): remove redundant comment 2019-02-05 13:44:08 +01:00
Kamil Myśliwiec
7fa51c87e3 Merge branch 'bugfix/interceptors-stream' of https://github.com/AlexDaSoul/nest into AlexDaSoul-bugfix/interceptors-stream 2019-02-05 13:43:45 +01:00
Kamil Mysliwiec
bf04704e11 Merge pull request #1458 from flex/patch-1
bugfix(grpc): handle null value in the proto definition
2019-02-05 13:43:17 +01:00
Kamil Mysliwiec
b289daa83e Merge pull request #1514 from kiwikern/multiple-view-dirs
feature(core): allow for multiple view dirs in Express
2019-02-05 13:42:46 +01:00
Kamil Myśliwiec
843d16dfb8 test(integration): fix invalid expected response (gRPC) 2019-02-05 13:35:28 +01:00
Kamil Mysliwiec
233e7ad14f Merge pull request #1460 from apiel/master
enhancement(common): make logger output more customizable
2019-02-05 13:28:51 +01:00
Kim Kern
dbfa3a4caa feature(core): allow for multiple view dirs in Express
In Express, you can set a string or an array of string as
base view paths. The views are looked up in the order they occur in
the array. The ExpressAdapter only allowed for a single string, now it
accepts an array of strings as well.

closes #1513
2019-02-01 12:36:47 +01:00
Kamil Mysliwiec
93b3e0b313 Merge pull request #1494 from nestjs/renovate/nestjs-common-5.x
chore(): update dependency @nestjs/common to v5.6.2
2019-02-01 08:20:03 +01:00
Renovate Bot
7e93330162 Update dependency @nestjs/common to v5.6.2 2019-01-31 15:42:31 +00:00
Kamil Mysliwiec
8861f58bf5 Merge pull request #1491 from nestjs/renovate/configure
chore(): configure renovate
2019-01-31 16:22:42 +01:00
Renovate Bot
4edcaf87e8 Add renovate.json 2019-01-31 14:31:34 +00:00
Kamil Mysliwiec
7b96d2dbfb Update Readme.md 2019-01-31 13:04:38 +01:00
Kamil Mysliwiec
74a21208ff Update Readme.md 2019-01-31 13:04:03 +01:00
Kamil Mysliwiec
ad6dd43e04 Merge pull request #1416 from BrunnerLivio/refactor/lifecycle-hooks
refactor(core) extract lifecycle hooks
2019-01-30 23:08:52 +01:00
Kamil Myśliwiec
e4179eb380 enhancement() add loader function to load package utility 2019-01-30 23:07:34 +01:00
Alexandre Piel
8f66fd1321 make logger output more customizable 2019-01-21 09:28:47 +01:00
Livio
c735dc646d test(core): Add tests for lifecycle hooks 2019-01-20 14:09:17 +01:00
Livio
1022bad2fb refactor(core): Add barrel file for hooks 2019-01-20 14:09:17 +01:00
Livio
f5531822c3 feat(core): Add onApplicationShutdown hook 2019-01-20 14:09:12 +01:00
flex
40ce9e4a88 bugfix(grpc) Handle null value in proto definition 2019-01-19 02:00:45 +08:00
Kamil Myśliwiec
e019afa472 chore() publish 5.6.2 release 2019-01-16 23:36:04 +01:00
Kamil Myśliwiec
a32c7373cc chore() publish 5.6.2 release 2019-01-16 22:48:07 +01:00
Kamil Myśliwiec
79fc37f093 chore(@nestjs) publish v5.6.2 release 2019-01-16 22:45:26 +01:00
Kamil Myśliwiec
8eedff85bd chore() publish 5.6.1 release 2019-01-16 21:47:30 +01:00
Kamil Myśliwiec
159a947f1b chore(@nestjs) publish v5.6.1 release 2019-01-16 21:46:35 +01:00
Kamil Myśliwiec
5eee77ea20 Merge branch '5.6.0' 2019-01-16 21:39:08 +01:00
Kamil Myśliwiec
c90b8e3d07 chore() publish 5.6.0 release 2019-01-16 21:37:29 +01:00
Kamil Myśliwiec
acf97a2e1d chore(@nestjs) publish v5.6.0 release 2019-01-16 21:36:15 +01:00
Kamil Myśliwiec
84c156356b feature(websockets) support regexp in namespaces 2019-01-16 21:34:18 +01:00
Kamil Myśliwiec
9a3f760b6c bugfix(core) fix missing abstract type typing 2019-01-16 21:33:53 +01:00
Kamil Myśliwiec
d1ad94324b feature() support abstract classes in nest ctx 2019-01-16 21:15:29 +01:00
Kamil Myśliwiec
69fb434def Merge branch 'master' of https://github.com/nestjs/nest 2019-01-16 21:05:10 +01:00
Kamil Myśliwiec
c448e56611 chore() merge changes 2019-01-16 21:04:02 +01:00
Kamil Myśliwiec
b8e6553a06 Merge branch 'FionaLovett-validate-transform' into 5.6.0 2019-01-16 21:00:19 +01:00
Kamil Myśliwiec
6fc4826b30 Merge branch 'FionaLovett-validate-transform' 2019-01-16 20:59:29 +01:00
Kamil Myśliwiec
2f888d3abe refactor() adjust code style 2019-01-16 20:59:06 +01:00
Kamil Myśliwiec
0db05f62f1 Merge branch 'validate-transform' of https://github.com/FionaLovett/nest into FionaLovett-validate-transform 2019-01-16 20:55:36 +01:00
Kamil Mysliwiec
255ca7ef99 Merge pull request #1448 from caohuilin/patch-2
sample(mongoose) should await on create POST
2019-01-16 20:51:50 +01:00
Kamil Mysliwiec
6744a8648d Update Readme.md 2019-01-16 20:35:19 +01:00
Belinda Cao
7a0808ed5b Update cats.controller.ts 2019-01-15 09:57:06 +08:00
Kamil Mysliwiec
5940ec7d62 Merge pull request #1388 from hschiavone/grpc-server-max-received-and-send-message-length
feature(microservices) add server gRPC max received & message length options
2019-01-15 00:30:02 +01:00
Kamil Mysliwiec
535c881a95 Merge branch '5.6.0' into grpc-server-max-received-and-send-message-length 2019-01-15 00:29:17 +01:00
Kamil Mysliwiec
986ad4e746 Merge pull request #1424 from quaternion/master
bugfix(common) add missing axios provider in HttpModule.registerAsync
2019-01-15 00:26:41 +01:00
Kamil Myśliwiec
6204fe1a09 Merge branch 'anton-alation-feature/grpc-method-with-namespaces' into 5.6.0 2019-01-15 00:25:16 +01:00
Kamil Myśliwiec
3cb73111bf refactor() adjust code style 2019-01-15 00:23:18 +01:00
Kamil Mysliwiec
1b872d66b7 Update Readme.md 2019-01-15 00:12:24 +01:00
Kamil Myśliwiec
891de8eea8 Merge branch 'feature/grpc-method-with-namespaces' of https://github.com/anton-alation/nest into anton-alation-feature/grpc-method-with-namespaces 2019-01-15 00:03:29 +01:00
Kamil Myśliwiec
b0de7ce6f3 sample() update existing samples to 6.0.0 2019-01-15 00:02:34 +01:00
Kamil Mysliwiec
0f788efd0c Merge pull request #1441 from iblamefish/circular-dependency-message
bugfix(core) update URL for circular dependency in the error message
2019-01-14 23:17:34 +01:00
Kamil Mysliwiec
72491e7d62 Merge pull request #1410 from BrunnerLivio/feature/discord-badge
chore() add discord badge to README.md
2019-01-14 22:06:00 +01:00
Clinton Montague
4b74c275bd bugfix(core) update url for circular dependency in error message
Fixes the url in INVALID_MODULE_MESSAGE

This closes #1369
2019-01-13 17:50:03 +00:00
Livio
3939a67bd3 chore: add discord badge to README.md 2019-01-07 18:48:39 +01:00
Elyes BA
ea700d8bb2 feature(core): allow Array in request mapping decorator
This feature was requested in the issue #1343. When routing, besides using a single string, you can
now use an array of strings in the Post, Get, ... decorators.
2019-01-05 21:37:50 +01:00
Andrew Nikolaev
1212c6034a fix(common): add missing axios provider in HttpModule.registerAsync 2019-01-05 18:46:53 +03:00
Kamil Myśliwiec
4f767080bf feature() add external context, microservices event patterns 2019-01-04 16:59:11 +01:00
Livio
c4eeb7bdb0 refactor(core): add comments to the hook caller functions 2019-01-03 11:04:23 +01:00
Livio
17fff02dbb refactor(core): Cleanup unneeded imports in nest-application-context 2019-01-03 11:01:57 +01:00
Livio
d30c64d2a6 refactor(core): Move call onModuleDestroyHook into dedicated file 2019-01-03 10:56:36 +01:00
Livio
6f6cf0189f refactor(core): Move callOnAppBootstrapHook into dedicated file 2019-01-03 10:55:38 +01:00
Livio
93536ac7c2 refactor(core): Move callModuleInitHook into dedicated file 2019-01-03 10:47:11 +01:00
Fiona Lovett
94679b2d79 feature(common): add transformOptions to ValidationPipeOptions
allows plainToClass to expose class properties to defined groups as per issue #1374
2019-01-02 20:52:29 +01:00
Fiona Lovett
83fc4c3bc4 feature(common): add transformOptions to ValidationPipeOptions
allows plainToClass to expose class properties to defined groups as per issue #1374
2019-01-02 20:07:50 +01:00
Fiona Lovett
69f2f3dd0b feature(common): add transformOptions to ValidationPipeOptions
allows plainToClass to expose class properties to defined groups as per issue #1374
2019-01-02 19:56:33 +01:00
Fiona Lovett
b49a9a1098 feature(common): add transformOptions to ValidationPipeOptions
allows plainToClass to expose class properties to defined groups as per issue #1374
2019-01-02 17:53:46 +01:00
Kamil Myśliwiec
f0e9b40e2c chore() publish alpha version (next) 2018-12-29 14:02:22 +01:00
Kamil Myśliwiec
aaad9ae742 fix() adjust router proxy callback type (next function) 2018-12-29 13:46:20 +01:00
Kamil Myśliwiec
443eccc11e fix() adjust router proxy callback type (next function) 2018-12-29 13:45:37 +01:00
Kamil Mysliwiec
385dabbaae Merge pull request #1406 from nestjs/feature/middleware-api
refactor() simplify middleware API
2018-12-29 13:43:29 +01:00
Kamil Mysliwiec
58d407be6b Merge pull request #1405 from nestjs/feature/di-scopes
feature() dependency injection scopes (transient/per-request)
2018-12-29 13:43:02 +01:00
Kamil Myśliwiec
5fc7999813 tests(core) add cached metadata checks (injector) 2018-12-29 12:55:53 +01:00
Kamil Mysliwiec
856141de55 Merge pull request #1329 from nestjs/feature/extract-http
feature() extract platforms (express/fastify/socket.io/ws)
2018-12-29 10:46:47 +01:00
Kamil Myśliwiec
2a5e22e2c6 scripts() fix prepare script (install all deps) 2018-12-29 10:21:18 +01:00
Hugo Schiavone
84e4bdef1e fix getOptionsProp method 2018-12-27 18:25:43 +01:00
Hugo Schiavone
da110d01dd use getOptionsProp method on grcp max_send_message_length & max_receive_message_length implementation 2018-12-27 12:24:38 +01:00
Kamil Myśliwiec
00554ee913 tests(core) update middleware builder/module unit tests 2018-12-24 15:21:16 +01:00
Kamil Myśliwiec
87c1ef35b0 sample() update samples 2018-12-24 15:20:55 +01:00
Kamil Myśliwiec
4ca914e0c7 Merge branch 'feature/di-scopes' into feature/middleware-api 2018-12-24 15:08:22 +01:00
Kamil Myśliwiec
0e258842a6 cleanup(core) remove async hooks module 2018-12-24 15:06:34 +01:00
Kamil Myśliwiec
3da97c684c refactor(common/core) simplify middleware interface 2018-12-24 15:01:04 +01:00
Kamil Myśliwiec
06dec9a897 feature() transient/request scope with circular deps 2018-12-24 14:45:32 +01:00
alexdasoul
d9434a2a9f bugfix(core) Interceptors toPromise is break Observable stream 2018-12-21 14:42:15 +03:00
Kamil Myśliwiec
ed96171f38 chore() resolve conflicts (merge) 2018-12-21 10:19:24 +01:00
Hugo Schiavone
bd3222ad62 implement server grpc max received & send message length option 2018-12-20 10:10:16 +01:00
Kamil Myśliwiec
2e992d39ea tests() fix unit tests, update enhancers 2018-12-18 16:51:47 +01:00
Kamil Myśliwiec
cb062be24f feature() wip DI scopes 2018-12-17 10:13:49 +01:00
Kamil Myśliwiec
5352bba8f7 feature() fix request scoped 2018-12-15 23:02:04 +01:00
Kamil Myśliwiec
5cd3448670 feature() fix request scoped 2018-12-15 23:01:48 +01:00
Kamil Myśliwiec
17e0ae6c63 feature() wip: DI scopes 2018-12-15 21:22:36 +01:00
Kamil Myśliwiec
6071ea80c8 feature(common) enhance internal logger 2018-12-13 11:15:51 +01:00
Anton Repin
595bc988ec GRPC Server test stub updated to match getServiceNames new output 2018-12-12 15:50:10 -08:00
Kamil Myśliwiec
53687ba46a feature(websockets) extract web sockets drivers 2018-12-12 23:35:27 +01:00
Anton Repin
ea26100ec3 GRPC server tests updated:
- Added package recursive search test for support of proto-namespaces
- Updated tests which were testing single level proto structure
2018-12-12 13:27:06 -08:00
Kamil Mysliwiec
ff2e310a18 Update cats.controller.ts 2018-12-12 14:24:41 +01:00
Anton Repin
8d41edadce GRPC Server namespaces support added for loaded proto descriptors
- Recursive scan of descriptors object
- Service names with namespaces concatenated with dot-syntax
2018-12-11 23:37:38 -08:00
Kamil Myśliwiec
03b0cf838a chore() merge latest changes (resolve conflicts) 2018-12-10 22:57:45 +01:00
Kamil Mysliwiec
15bdbacc4b Merge pull request #1328 from nestjs/bugfix/interceptor-flow
bugfix(core) fix interceptors execution flow
2018-12-10 22:40:02 +01:00
Kamil Mysliwiec
f96b2a8c9b Merge pull request #1161 from nestjs/refactor/microservices
refactor(microservices) refactor, improvements, use es6 map
2018-12-10 22:38:50 +01:00
Kamil Myśliwiec
4ec8e3436c test(microservices) fix unit tests 2018-12-10 22:33:48 +01:00
Kamil Myśliwiec
4796023e02 chore() resolve conflicts 2018-12-10 22:03:06 +01:00
Kamil Myśliwiec
30b6c50dd8 merge() resolve conflicts 2018-12-10 21:48:06 +01:00
Kamil Myśliwiec
ef2147d697 chore(@nestjs) publish v5.5.0 release 2018-12-09 14:16:11 +01:00
Kamil Myśliwiec
438e662352 bugfix(common) inconsistent microservice config #1352 2018-12-09 14:14:54 +01:00
Kamil Mysliwiec
17b0100c51 Merge pull request #1349 from nestjs/5.5.0
chore() 5.5.0 minor release
2018-12-09 14:13:25 +01:00
Kamil Mysliwiec
8bce796ad7 Merge pull request #1271 from grin0c/another-proto-loader
feature(microservices): added option for proto-loader (grpc)
2018-12-06 19:45:47 +01:00
Kamil Mysliwiec
6a54900df8 Merge pull request #1344 from nestjs/bugfix/1339-exceptions
bugfix(common): custom exception body #1339
2018-12-06 19:45:21 +01:00
Kamil Mysliwiec
63e3940c02 Merge pull request #1345 from nestjs/bugfix/1338-injection-scopes
bugfix(common) invalid metadata inheritance with custom providers
2018-12-06 19:45:10 +01:00
Kamil Mysliwiec
d25e6c713a Merge pull request #1346 from nestjs/bugfix/1285-throw-error
bugfix(ws/microservices): add catchError() to observables
2018-12-06 19:44:59 +01:00
Kamil Mysliwiec
ed37b9138d Merge pull request #1347 from nestjs/feature/1257-http-async
feature(common) add async support (HttpModule) and extraProviders
2018-12-06 19:44:39 +01:00
Kamil Mysliwiec
b632f60a9e Merge pull request #1348 from nestjs/feature/1267-validation-factory
feature(common) add validation error factory (ValidationPipe)
2018-12-06 19:44:24 +01:00
Kamil Myśliwiec
ee9d31671c feature(common) add validation error factory (ValidationPipe) 2018-12-06 18:33:22 +01:00
Kamil Myśliwiec
9fa12b43f2 fix(common) add missing interfaces reexport (http) 2018-12-06 14:16:39 +01:00
Kamil Myśliwiec
e66d72f904 feature(common) add async support (HttpModule) and extraProviders (cache/http) 2018-12-06 14:15:16 +01:00
Kamil Myśliwiec
efb367e65c bugfix(ws/microservices): add catchError() to observables 2018-12-06 11:47:14 +01:00
Kamil Myśliwiec
fe96bf67bc bugfix(common) invalid metadata inheritance with custom providers 2018-12-06 09:08:33 +01:00
Kamil Myśliwiec
411db0c3ff bugfix(common): custom exception body #1339 2018-12-05 23:31:13 +01:00
Kamil Myśliwiec
42e1e79b31 test(): fix e2e tests 2018-12-05 23:08:03 +01:00
Kamil Myśliwiec
a3fbb8816e feature() extract fastify, multer, cors, adapters 2018-12-01 21:02:36 +01:00
Kamil Myśliwiec
bc4a8a556c feature(core/common) extract HTTP adapters (express/fastify) 2018-11-30 16:48:04 +01:00
Kamil Myśliwiec
ead8d55538 refactor: fix typings (tuples, binding checks) 2018-11-30 14:52:01 +01:00
Kamil Myśliwiec
e3cbab771a merge: resolve conflicts 2018-11-30 14:28:00 +01:00
Kamil Mysliwiec
df9c8215ca Merge pull request #1322 from nestjs/refactor/remove-deprecations
refactor: remove deprecations, update to TypeScript 3.0+
2018-11-30 14:09:24 +01:00
Kamil Myśliwiec
af923ced97 lint() update ts-lint package (ts compatibility) 2018-11-30 14:04:02 +01:00
Kamil Myśliwiec
ee9360dcff fix: quick fix 2018-11-30 14:01:40 +01:00
Kamil Myśliwiec
2c87615f8e ci() fix travis build (update lock file) 2018-11-30 13:59:54 +01:00
Kamil Myśliwiec
7fd9849a6c merge: resolve conflicts 2018-11-30 13:47:00 +01:00
Kamil Mysliwiec
1c320071aa Merge pull request #1312 from nestjs/refactor/injector
refactor: general refactor (explicit types, generics, components)
2018-11-30 13:43:51 +01:00
Kamil Myśliwiec
93bdb62df2 merge: resolve conflicts 2018-11-30 13:41:53 +01:00
Kamil Mysliwiec
c6ec8878e0 Merge pull request #1206 from jbpionnier/refactor_simplified_if
refactor() simplified if (less checks)
2018-11-30 13:31:27 +01:00
Kamil Myśliwiec
db94dc54bf chore(): publish 5.4.1 release 2018-11-30 13:06:41 +01:00
Kamil Myśliwiec
72577136a7 chore(@nestjs) publish v5.4.1 release 2018-11-30 13:00:27 +01:00
Kamil Myśliwiec
6fac25bde0 chore(): update package.json 2018-11-30 12:59:16 +01:00
Kamil Myśliwiec
25bc5e8893 chore() format package.json 2018-11-30 12:10:43 +01:00
Kamil Myśliwiec
0a158798a9 tests(common) update file interceptors tests 2018-11-30 11:56:45 +01:00
Kamil Myśliwiec
42adbab0b5 Merge branch '5.4.1' of https://github.com/nestjs/nest into 5.4.1 2018-11-30 11:54:01 +01:00
Kamil Myśliwiec
df958c9e2b enhancement(common) make multer instance protected 2018-11-30 11:53:53 +01:00
Kamil Mysliwiec
bc9aa8cdec Merge pull request #1325 from nestjs/improvement/application-ref
improvement(core) use application ref host instead of http ref
2018-11-30 11:52:26 +01:00
Kamil Mysliwiec
6b97b11665 Merge pull request #1324 from nestjs/bugfix/928-direct-instance
bugfix(core) use direct class instance
2018-11-30 11:50:26 +01:00
Kamil Mysliwiec
58d7300098 Merge pull request #1248 from andrew-yustyk/issue/1246
fix(core/common): allow to use symbol token in the module exports
2018-11-30 11:49:20 +01:00
Kamil Myśliwiec
ae4e7d3b12 test(core) fix broken unit tests (interceptors) 2018-11-30 11:06:59 +01:00
Kamil Myśliwiec
d534c47455 sample() update examples with new API 2018-11-30 10:13:57 +01:00
Kamil Myśliwiec
cfa96f08fa bugfix(core) fix interceptors execution flow 2018-11-30 10:08:13 +01:00
Kamil Myśliwiec
f71613a79f Merge branch 'master' of https://github.com/nestjs/nest 2018-11-29 23:25:44 +01:00
Kamil Myśliwiec
35053d093a refactor(): remove trailing commas 2018-11-29 23:24:25 +01:00
Kamil Myśliwiec
6f85ea4f12 improvement(core) use application ref host instead of http ref 2018-11-29 23:14:11 +01:00
Kamil Mysliwiec
dd882ac1a2 Merge pull request #1287 from dzzzzzy/patch-1
docs(readme) add communication groups for Chinese developers
2018-11-29 14:21:37 +01:00
Kamil Mysliwiec
4f8d9fe694 Merge pull request #1314 from rafalschmidt97/contributing-comments-fix
docs(contributing) fix comments issues in lists
2018-11-29 14:19:26 +01:00
Kamil Myśliwiec
5a6f64a51e bugfix(core) use direct class instance 2018-11-29 14:11:31 +01:00
Kamil Myśliwiec
5588470479 refactor: remove deprecations and update to typescript 3.0 2018-11-28 23:59:57 +01:00
Kamil Myśliwiec
773d062e41 feature(core) add HttpServer typings 2018-11-28 23:27:54 +01:00
Kamil Myśliwiec
1cac0a99fd feature: more typings, refactor 2018-11-28 23:08:27 +01:00
Rafał Schmidt
7e07ef3abb docs(contributing) fix comments issues in lists 2018-11-25 18:15:10 +01:00
Kamil Myśliwiec
0b23422ab1 refactor: reduce implicit types 2018-11-24 17:28:28 +01:00
Kamil Myśliwiec
1cb3ed7f87 refactor: general refactor reorganize, rename things 2018-11-24 16:01:29 +01:00
bingoyao
4a5ce3b04d Update readme_zh.md
Add more state about Chinese developer communication channel.
2018-11-21 12:03:45 +08:00
Jean-Baptiste Pionnier
3a297530d8 Merge branch 'master' of github.com:nestjs/nest into refactor_simplified_if 2018-11-16 11:41:22 +01:00
bingoyao
3a84bfb7e8 Add communication groups for Chinese developers
Chinese developers are growing, and in order to allow Chinese developers to communicate and share with each other, I have established a communication group.
2018-11-14 18:55:25 +08:00
Kamil Mysliwiec
385071ba6d Update Readme.md 2018-11-10 22:29:49 +01:00
Kamil Myśliwiec
bf1a97be36 test(nestjs) bump test coverage 2018-11-10 21:54:42 +01:00
Aleksey Tsvetkov
be40001511 fixed protoLoader option 2018-11-08 11:38:56 +03:00
Aleksey Tsvetkov
4b55261aeb feat(client-grpc): added protoLoader option for grpc client 2018-11-08 11:32:32 +03:00
Aleksey Tsvetkov
1bd70484e8 feat(grpc): added option for proto-loader 2018-11-07 14:01:36 +03:00
Kamil Myśliwiec
a95b3d6048 Merge branch 'master' of https://github.com/nestjs/nest 2018-11-03 17:02:57 +01:00
Kamil Myśliwiec
1f8c84d19b test(nestjs) increase test coverage 2018-11-03 17:00:55 +01:00
Kamil Mysliwiec
7c644d989e Update Readme.md 2018-11-03 12:29:38 +01:00
Kamil Mysliwiec
cebb6267f2 Update Readme.md 2018-11-03 12:28:17 +01:00
Andrew Yustyk
644b2c1745 fix(core/common): allow to use symbol token in the module exports
Symbol token can be used in the exports section as well as the string token.

Closes #1246
2018-10-31 13:26:48 +02:00
Jean-Baptiste Pionnier
0d29cd7f96 Merge branch 'master' of github.com:jbpionnier/nest into refactor_simplified_if 2018-10-22 07:49:40 +02:00
Kamil Myśliwiec
47f0fa0ab5 chore(@nestjs) publish v5.4.0 release 2018-10-19 14:21:48 +02:00
Kamil Myśliwiec
9be35b4c10 tests(microservices) fix server-rmq unit tests 2018-10-19 14:08:19 +02:00
Kamil Myśliwiec
dd38a49508 Merge pull request #1215 from nestjs/5.4.0
chore() 5.4.0 minor release
2018-10-19 14:07:32 +02:00
Kamil Myśliwiec
b55ee078b2 Merge branch 'master' into 5.4.0 2018-10-19 14:07:23 +02:00
Kamil Myśliwiec
6eec6016a4 Merge pull request #1143 from BrunnerLivio/feature/print-context-injection-error
feature(core) add module context name to UnknownDependenciesMessage
2018-10-19 13:55:22 +02:00
Kamil Myśliwiec
9b799ba3c1 Merge pull request #1170 from nestjs/AlariCode-feature/rmq-transport
feature(microservices) RabbitMQ support
2018-10-19 13:55:08 +02:00
Kamil Myśliwiec
a2ed524824 Merge pull request #1172 from nestjs/feature/property-injection
feature(core) property based injection (composition)
2018-10-19 13:54:17 +02:00
Kamil Myśliwiec
82bf25b707 Merge pull request #1175 from nestjs/feature/nats-queue
feature(microservices) add a few options to the nats strategy + general refactor
2018-10-19 13:54:04 +02:00
Kamil Myśliwiec
ffea148892 Merge pull request #1214 from nestjs/feature/update-axios
feature(common) update axios dependency
2018-10-19 13:53:45 +02:00
Kamil Myśliwiec
b0026d8cc1 style(microservices) remove lint issues 2018-10-19 13:38:12 +02:00
Kamil Myśliwiec
313e22632b feature(core) add dynamic properties resolution 2018-10-19 13:37:00 +02:00
Kamil Myśliwiec
a299b12ad5 feature(common) update axios dependency 2018-10-19 13:23:46 +02:00
Kamil Myśliwiec
6635d2cbe1 Merge branch '5.4.0' into feature/property-injection 2018-10-19 13:22:10 +02:00
Kamil Myśliwiec
9972649770 bugfix: fix package-lock.json file 2018-10-19 13:16:45 +02:00
Kamil Myśliwiec
92cd57a19b Merge pull request #1163 from nestjs/feature/dynamic-create
feature(core) instantiate class dynamically (ModuleRef)
2018-10-19 13:16:17 +02:00
Kamil Myśliwiec
6ac9968ec0 Merge branch 'feature/property-injection' into feature/dynamic-create 2018-10-19 13:16:06 +02:00
Kamil Myśliwiec
9210dc1318 Merge pull request #1208 from jbpionnier/feat/accept_export_abstract_class
bugfix(common) accept export abstract class
2018-10-19 13:12:41 +02:00
Kamil Myśliwiec
a850d5d322 bugfix(microservices) fix issues with deps resolution 2018-10-19 13:01:54 +02:00
Kamil Myśliwiec
b0e4383e6e merge: resolve conflicts 2018-10-19 11:39:15 +02:00
Kamil Myśliwiec
935aa704fc lint: update lint rules 2018-10-19 10:12:36 +02:00
Kamil Myśliwiec
f0512d2a26 chore(@nestjs) publish v5.3.15 release 2018-10-19 09:58:30 +02:00
Kamil Myśliwiec
6f9b242410 bugfix: fix incorrect dependencies, simplify relations 2018-10-19 09:55:50 +02:00
Jean-Baptiste Pionnier
e1a9643887 feat(common): accept export abstract class 2018-10-18 15:10:57 +02:00
Jean-Baptiste Pionnier
e1b8d3b411 refactor: simplified isString 2018-10-18 12:05:35 +02:00
Jean-Baptiste Pionnier
6db29c6e3d refactor: simplified isObject 2018-10-18 12:01:39 +02:00
Jean-Baptiste Pionnier
1f59ec3458 refactor: simplified validatePath 2018-10-18 11:58:49 +02:00
Jean-Baptiste Pionnier
ff3ef16d18 refactor: simplified isFunction 2018-10-18 11:55:11 +02:00
Jean-Baptiste Pionnier
41190d7546 refactor: simplified isEmpty 2018-10-18 11:52:12 +02:00
Kamil Myśliwiec
b03e36c692 chore(@nestjs) publish v5.3.14 release 2018-10-18 08:37:26 +02:00
Kamil Myśliwiec
2383cdb412 build: fix incorrect prepublish hook 2018-10-18 00:12:05 +02:00
Kamil Myśliwiec
e9433d0fb5 Merge branch 'master' of https://github.com/nestjs/nest 2018-10-18 00:05:15 +02:00
Kamil Myśliwiec
13d473fcba chore(@nestjs) publish v5.3.13 release 2018-10-18 00:04:49 +02:00
Kamil Myśliwiec
a78a31eff2 Merge pull request #1199 from jbpionnier/refactor/void_0_not_necessary
refactor: remove void 0 not necessary
2018-10-17 23:16:35 +02:00
Jean-Baptiste Pionnier
bd05652cbe refactor: remove void 0 not necessary 2018-10-17 23:05:24 +02:00
Kamil Myśliwiec
96b0a194af chore(@nestjs) publish v5.3.12 release 2018-10-17 22:37:02 +02:00
Kamil Myśliwiec
64555bf428 bugfix: fix WsAdapter close invokation issues #1156 2018-10-17 22:09:03 +02:00
Kamil Myśliwiec
6f18afc036 bugfix(core) support symbols in exports array #1177 2018-10-17 22:02:26 +02:00
Kamil Myśliwiec
21bdbac788 Merge branch 'master' of https://github.com/nestjs/nest 2018-10-17 21:42:54 +02:00
Kamil Myśliwiec
b6d059fc30 Merge branch 'spaiter-fix-ws-client-closing' 2018-10-17 21:42:43 +02:00
Kamil Myśliwiec
a6b001638f refactor: extract handle message from WsAdapter 2018-10-17 21:42:24 +02:00
Kamil Myśliwiec
3e9bfff04e Merge branch 'fix-ws-client-closing' of https://github.com/spaiter/nest into spaiter-fix-ws-client-closing 2018-10-17 21:37:33 +02:00
Kamil Myśliwiec
186f018d76 Merge pull request #1188 from andrew-yustyk/issue/1182
bugfix(core) change initial context arguments from null to undefined
2018-10-17 21:35:46 +02:00
Kamil Myśliwiec
6dda6c58c5 Merge branch 'jbpionnier-refactor_remove_reflect_metadata' 2018-10-17 21:35:14 +02:00
Kamil Myśliwiec
bf02e984ac Merge branch 'refactor_remove_reflect_metadata' of https://github.com/jbpionnier/nest into jbpionnier-refactor_remove_reflect_metadata 2018-10-17 21:33:41 +02:00
Kamil Myśliwiec
da8612b4d6 Merge pull request #1176 from nestjs/build/refactor
build: refactor packages structure, remove bundle
2018-10-17 21:31:32 +02:00
Kamil Myśliwiec
63ae5b16e2 build: fix missing script build:lib 2018-10-17 21:20:09 +02:00
Kamil Myśliwiec
e9e277c21c ci: update travis.yml file 2018-10-17 21:14:11 +02:00
Kamil Myśliwiec
ceabe7418a build: update CONTRIBUTION guide/scripts 2018-10-17 21:13:12 +02:00
Kamil Myśliwiec
84aa4dec09 build: update gulp/package.json scripts 2018-10-17 21:07:39 +02:00
Jean-Baptiste Pionnier
40e90516f0 Merge branch 'master' of github.com:nestjs/nest into refactor_remove_reflect_metadata 2018-10-16 09:34:40 +02:00
Andrew Yustyk
35cf1faa84 bugfix(core) change initial context arguments from null to undefined
fix nestjs/nest#1182
2018-10-13 03:58:53 +03:00
anonanonimus
72a8725b21 websockets(bug) send message to client only in open state
sending messages to ws client only if it in open state

no breaking changes
2018-10-11 11:44:02 +05:00
Kamil Myśliwiec
5d27183295 Merge pull request #1179 from jbpionnier/build/hide-package-lock
build: hide package lock during a PR
2018-10-09 09:57:46 +02:00
Jean-Baptiste Pionnier
3a0f461a56 build: hide package lock 2018-10-08 11:08:30 +02:00
Kamil Myśliwiec
72616cc0f1 tests(core) fix middleware utils unit tests 2018-10-06 16:26:17 +02:00
Kamil Myśliwiec
0e71949538 chore(build) share tsconfig, add 'clean' and npmignore 2018-10-06 16:14:35 +02:00
Kamil Myśliwiec
04fe22b44e chore(build) remove bundle directory 2018-10-06 15:30:20 +02:00
Kamil Myśliwiec
06d0f12169 feature(microservices) add a few options to the nats strategy 2018-10-06 15:02:55 +02:00
Kamil Myśliwiec
1eef51345f Merge branch 'master' of https://github.com/nestjs/nest 2018-10-06 14:31:29 +02:00
Kamil Myśliwiec
b2f3dfe0b3 refactor(microservices) move utils to decorators dir, use not stringified 2018-10-06 14:31:09 +02:00
Kamil Myśliwiec
d49a265686 tests(integration) update test suite (property injection) 2018-10-06 12:50:04 +02:00
Kamil Myśliwiec
51b93e5306 feature(core) property based injection (composition) 2018-10-06 12:45:44 +02:00
Kamil Myśliwiec
656ecf831c Merge pull request #1168 from jbpionnier/build/add_lint_travis_builds
chore(build) add lint for travis build
2018-10-05 23:11:17 +02:00
Kamil Myśliwiec
e6dfef8480 content(integration) fix typo in sum-rmq spec 2018-10-05 22:43:06 +02:00
Kamil Myśliwiec
096336c243 bugfix(microservices) fix rabbit mq transport, code refactor, add tests 2018-10-05 22:42:35 +02:00
Jean-Baptiste Pionnier
fb052ab971 refactor fix lint 2018-10-05 21:12:37 +02:00
Jean-Baptiste Pionnier
84df209740 build add lint for travis build 2018-10-05 15:28:48 +02:00
Jean-Baptiste Pionnier
457c57b9dc refactor remove multiple reflect metadata 2018-10-05 15:20:45 +02:00
Kamil Myśliwiec
098afe6b85 chore(@nestjs) publish v5.3.11 release 2018-10-05 15:07:19 +02:00
Kamil Myśliwiec
3e42f9b91d chore: fix package.json scripts 2018-10-05 15:04:27 +02:00
Kamil Myśliwiec
85d7384b5e Merge pull request #1155 from jbpionnier/refactor_clean_as_any
refactor(nestjs) code style, clean "as any"
2018-10-05 15:01:37 +02:00
Kamil Myśliwiec
3e851e5652 Merge branch 'master' of https://github.com/nestjs/nest 2018-10-05 14:56:52 +02:00
Kamil Myśliwiec
e391936e69 Merge branch 'BrunnerLivio-fix/circular-structures' 2018-10-05 14:56:39 +02:00
Kamil Myśliwiec
6c92bf72ef bugfix(core) add missing fast-json-stringify dep 2018-10-05 14:55:37 +02:00
Kamil Myśliwiec
81fe7124bc Merge pull request #1144 from spaiter/fix-ws-unexpected-close
bugfix(websockets) handle ws unexpected connection error
2018-10-05 14:43:15 +02:00
Kamil Myśliwiec
20a5e7e77a Merge pull request #1151 from nestjs/bugfix/1150-defaults
bugfix(core) make use of default assignments (DI)
2018-10-05 14:42:54 +02:00
Kamil Myśliwiec
eba4102b2a Merge pull request #1159 from nestjs/refactor/websockets
refactor(websockets) code cleanup, improvements, refactor
2018-10-05 14:42:43 +02:00
Kamil Myśliwiec
402d83ff9e Merge pull request #1166 from jbpionnier/refactor_remove_multiple_reflect_metadata
refactor(common) remove multiple reflect metadata
2018-10-05 14:42:20 +02:00
Jean-Baptiste Pionnier
227d4fba56 refactor(common) remove multiple reflect metadata 2018-10-05 12:31:53 +02:00
Kamil Myśliwiec
62e0283098 feature(core) instantiate class dynamically (ModuleRef) 2018-10-04 16:28:51 +02:00
Jean-Baptiste Pionnier
8a827ff9fc Merge branch 'master' of github.com:nestjs/nest into refactor_clean_as_any 2018-10-04 10:58:42 +02:00
Jean-Baptiste Pionnier
66ee3ebe72 refactor clean as any 2018-10-04 10:49:07 +02:00
Kamil Myśliwiec
91be484b83 refactor(microservices) partially fixed rabbitmq transport (+tests) 2018-10-03 23:26:52 +02:00
Kamil Myśliwiec
8ec7c5b31e chore: resolve conflicts (merge) 2018-10-03 22:31:25 +02:00
Kamil Myśliwiec
f802f94c0f refactor(microservices) refactor, improvements, use es6 map 2018-10-03 22:15:29 +02:00
Kamil Myśliwiec
7c2143f889 refactor(websockets) code cleanup, improvements, refactor 2018-10-03 21:22:50 +02:00
Kamil Myśliwiec
89d84d214f Merge branch 'master' of https://github.com/nestjs/nest 2018-10-03 17:23:47 +02:00
Kamil Myśliwiec
f8ffc2d064 chore(nestjs) add scripts directory 2018-10-03 17:23:36 +02:00
Kamil Myśliwiec
d453e9bc65 Update CONTRIBUTING.md 2018-10-03 17:23:30 +02:00
Kamil Myśliwiec
3a74c790bf chore(nestjs) add scripts directory 2018-10-03 17:00:08 +02:00
Kamil Myśliwiec
0c8e6968bd bugfix(@nestjs/microservices) set flag to true 2018-10-03 15:25:43 +02:00
Jean-Baptiste Pionnier
4a8c8bc740 refactor Unnecessary 'await' 2018-10-03 15:25:43 +02:00
Jean-Baptiste Pionnier
47a17e85e4 refactor clean code 2018-10-03 15:25:43 +02:00
Jean-Baptiste Pionnier
f45021e7cb refactor(integration) resolve module path 2018-10-03 15:25:43 +02:00
Livio Brunner
958da96733 bugfix(core): Allow circular structures for dynamic module #678 2018-10-03 11:47:16 +02:00
Kamil Myśliwiec
1acae78302 Merge branch 'jbpionnier-refactor_module_path' 2018-10-02 22:41:11 +02:00
Kamil Myśliwiec
f01d60021c bugfix(@nestjs/microservices) set flag to true 2018-10-02 22:40:59 +02:00
Kamil Myśliwiec
945eff5274 Merge branch 'refactor_module_path' of https://github.com/jbpionnier/nest into jbpionnier-refactor_module_path 2018-10-02 22:35:34 +02:00
Kamil Myśliwiec
9e8eff09bf Merge branch 'master' of https://github.com/nestjs/nest 2018-10-02 22:25:20 +02:00
Kamil Myśliwiec
b90842048b bugfix(@nestjs/core) make use of default assignments when optional 2018-10-02 22:23:42 +02:00
Kamil Myśliwiec
cce8c45f6f feature(@nestjs/core) add typings to adapters 2018-10-02 22:23:00 +02:00
Kamil Myśliwiec
ac5a556a3c Merge pull request #1136 from cschroeter/master
sample(prisma) update graphql-prisma example
2018-10-02 22:22:16 +02:00
anonanonimus
bf945310b5 bugfix(websockets) need to handle ws unexpected connection error and log it
Fixed unhandled ws connection error in ws-adapter

No breaking changes
2018-10-02 16:44:24 +05:00
Livio Brunner
4e943dbaae feature(core): Add module context name to UnknownDependenciesMessage 2018-10-02 12:07:14 +02:00
Jean-Baptiste Pionnier
ac295e68f6 refactor Unnecessary 'await' 2018-09-30 22:14:35 +02:00
Jean-Baptiste Pionnier
31c2b87a6a refactor clean code 2018-09-30 22:13:58 +02:00
Jean-Baptiste Pionnier
6193f506c2 refactor(integration) resolve module path 2018-09-30 21:08:44 +02:00
Christian Schröter
34f72ce4a7 chore: Regenerate schemda.d.ts 2018-09-30 00:33:42 +02:00
Christian Schröter
63947cd3c0 fix: Do not use Prisma library to generate schema 2018-09-30 00:33:18 +02:00
Christian Schröter
14cc3edb10 chore: Bump deps 2018-09-30 00:32:27 +02:00
Kamil Myśliwiec
65bb7e7c34 Update Readme.md 2018-09-26 19:48:26 +02:00
Kamil Myśliwiec
8604f25a20 Update Readme.md 2018-09-26 19:47:50 +02:00
Kamil Myśliwiec
57faedcc98 Merge pull request #1121 from nartc/patch-1
chore(github) update README.md (add new bronze sponsor)
2018-09-26 19:45:05 +02:00
Chau Tran
515151660b Add AN 2018-09-25 17:57:43 -05:00
Kamil Myśliwiec
7f124f9d92 build(nestjs) fix travis builds 2018-09-24 15:23:41 +02:00
Kamil Myśliwiec
9ffbbad4e8 chore(@nestjs) publish v5.3.10 release 2018-09-24 15:20:30 +02:00
Kamil Myśliwiec
de9664831c chore(@nestjs) publish v5.3.9 release 2018-09-24 15:17:18 +02:00
Kamil Myśliwiec
26eeeb598e chore(nestjs) publish 5.3.8 release 2018-09-24 15:14:09 +02:00
Kamil Myśliwiec
49f97cf72c chore(@nestjs) publish v5.3.8 release 2018-09-24 15:07:47 +02:00
Kamil Myśliwiec
15a6d890a5 Merge branch 'master' of https://github.com/nestjs/nest 2018-09-24 15:06:29 +02:00
Kamil Myśliwiec
a3c1bdc061 chore: update bundle 2018-09-24 15:06:26 +02:00
Kamil Myśliwiec
b75460b34f Merge pull request #1102 from nestjs/bugfix/1098-multiple-http
bugfix: multiple HttpModule collision
2018-09-24 15:06:11 +02:00
Kamil Myśliwiec
25a3684dcf chore(@nestjs) publish v5.3.7-postinstall-next release 2018-09-24 15:04:16 +02:00
Kamil Myśliwiec
9e322c1ed1 refactor(nestjs) fix invalid imports, refactor messages 2018-09-21 10:29:18 +02:00
Kamil Myśliwiec
767ccd3e92 Merge pull request #1103 from jbpionnier/refactor/enable_strict_mode
refactor(nestjs) enable strict mode
2018-09-21 09:27:26 +02:00
Kamil Myśliwiec
0368d5267c merge: resolve conflicts 2018-09-21 09:22:26 +02:00
Kamil Myśliwiec
005d16f447 refactor(nestjs) remove uncessary map calls 2018-09-21 09:21:50 +02:00
Jean-Baptiste Pionnier
d37ec239c4 refactor: clean code 2018-09-20 14:41:15 +02:00
Jean-Baptiste Pionnier
558e33f25c refactor: enable strict mode 2018-09-20 11:24:39 +02:00
Kamil Myśliwiec
5172ef3c49 bugfix(common) fix multiple HttpModule collision 2018-09-19 13:58:47 +02:00
Kamil Myśliwiec
cdccb8ed97 Merge pull request #1094 from jbpionnier/refactor/replace_index_of_methods
refactor(nestjs) replace indexOf methods & improvements
2018-09-19 13:36:55 +02:00
Kamil Myśliwiec
4d407ab239 Merge pull request #1091 from cschroeter/master
sample(prisma) update Prisma example
2018-09-19 13:27:33 +02:00
Kamil Myśliwiec
58120783d5 sample(mongoose) update packages 2018-09-19 12:18:04 +02:00
Jean-Baptiste Pionnier
9732e8a0f4 refactor: code improvement 2018-09-18 11:25:32 +02:00
Jean-Baptiste Pionnier
dabf8a24c7 refactor: replace indexOf method 2018-09-18 10:40:15 +02:00
Christian Schröter
447372a485 refactor: Extract GraphQL related configuration in a dedicated GraphqlOptions class 2018-09-14 15:10:37 +02:00
Christian Schröter
4b042af629 chore: Update graphql.schema.d.ts 2018-09-14 15:09:52 +02:00
Christian Schröter
ff828b9e86 feat: Implement all supoorted queries and mutations 2018-09-14 15:09:35 +02:00
Christian Schröter
806f079c2c chore: Remove duplicate typings 2018-09-14 14:54:42 +02:00
Christian Schröter
a2880d02bd chore: Update dependencies 2018-09-14 14:53:56 +02:00
Kamil Myśliwiec
ce498e8615 bugfix(core) revert stringify instead of hash 2018-09-13 12:21:54 +02:00
Kamil Myśliwiec
14f737f770 Merge branch 'master' of https://github.com/nestjs/nest 2018-09-13 11:46:29 +02:00
Kamil Myśliwiec
a9922dab23 bugfix(core) fix incorrent hash generated by token factory 2018-09-13 11:46:22 +02:00
Kamil Myśliwiec
b1f7096432 Merge pull request #1074 from cschroeter/master
sample(graphql) add prisma integration example
2018-09-13 11:45:33 +02:00
Kamil Myśliwiec
d5dca175d7 Merge pull request #1041 from jbpionnier/refactor/delete_resolve_factory_instance_method
refactor(core) delete resolve factory instance method
2018-09-13 11:44:29 +02:00
Kamil Myśliwiec
66c0b8cf5c sample(grpc) update packages to latest patch versions 2018-09-13 10:43:56 +02:00
Kamil Myśliwiec
e3356cf19e chore(@nestjs) publish v5.3.7 release 2018-09-13 10:42:35 +02:00
Kamil Myśliwiec
4b6ca2a3e0 bugfix(microservices) fix client with loader settings 2018-09-13 10:41:28 +02:00
Kamil Myśliwiec
137e8fd408 Merge branch 'master' of https://github.com/nestjs/nest 2018-09-13 10:20:32 +02:00
Kamil Myśliwiec
03f2832a2d sample(graphql) update graphql sample (add validation) 2018-09-13 10:20:24 +02:00
Christian Schröter
d9a9e7df2f chore: Update graphql schema definitions 2018-09-10 18:20:48 +02:00
Christian Schröter
a3fe26babf chore: Use decorators 2018-09-10 18:20:22 +02:00
Christian Schröter
71cc0dea61 chore: Get rid off obsolete jest configuration 2018-09-10 18:07:55 +02:00
Christian Schröter
6198204b0b chore(Update deps): 2018-09-10 18:07:29 +02:00
Jean-Baptiste Pionnier
32953148df Merge branch 'master' of github.com:nestjs/nest into refactor/delete_resolve_factory_instance_method 2018-09-10 17:08:58 +02:00
Christian Schröter
603ed2de28 feat: Add GraphQL-Prisma example 2018-09-10 16:44:35 +02:00
Kamil Myśliwiec
b272ec313b Update Readme.md 2018-09-09 23:23:26 +02:00
Kamil Myśliwiec
25588d83d0 test(core) fix broken unit tests (container) 2018-09-09 23:15:33 +02:00
Kamil Myśliwiec
d4c0969f1a feature(core) show more descriptive errors on barrel file issues 2018-09-09 22:56:36 +02:00
Kamil Myśliwiec
2d942a8405 test(nestjs) fix broken unit tests (context creator) 2018-09-09 18:29:56 +02:00
Kamil Myśliwiec
e0f5e1d5ca performance(nestjs) context creator improvements 2018-09-09 18:24:54 +02:00
Kamil Myśliwiec
e8c815d8ec sample(nestjs) update packages (apollo sample) 2018-09-09 17:59:11 +02:00
Kamil Myśliwiec
149176ae6f benchmarks(nestjs) use dashes instead of dots 2018-09-09 13:49:28 +02:00
Kamil Myśliwiec
fa3ee7e2aa chore(nestjs) push latest bundle 2018-09-09 13:42:04 +02:00
Kamil Myśliwiec
d5880506df chore(@nestjs) publish v5.3.6 release 2018-09-09 12:23:03 +02:00
Kamil Myśliwiec
dfd0d17126 chore(@nestjs) publish v5.3.5 release 2018-09-09 12:22:16 +02:00
Kamil Myśliwiec
9638c18020 performance(core) add headers check 2018-09-09 11:38:23 +02:00
Anton
17c5044bae feature(microservices) added amqp-connection-manager 2018-09-09 09:44:51 +03:00
Kamil Myśliwiec
9ef356b30f refactor(nestjs) cleanup, get rid of needless condition (interceptors) 2018-09-08 09:24:44 +02:00
Kamil Myśliwiec
1a7ab4e5f9 refactor(nestjs) microservices improvements, reduce memory usage 2018-09-08 09:24:06 +02:00
Anton
6099f9ec1b Merge branch 'master' into feature/rmq-transport 2018-09-08 08:48:16 +03:00
Kamil Myśliwiec
c5da005d81 sample(nestjs) update sample http cache interceptor 2018-09-05 11:40:34 +02:00
Kamil Myśliwiec
76beabe686 sample(nestjs) update sample http cache interceptor 2018-09-05 10:07:50 +02:00
Kamil Myśliwiec
e766ea72ba chore(nestjs) publish 5.3.5 release 2018-09-05 10:04:54 +02:00
Kamil Myśliwiec
2f535c33ae chore(@nestjs) publish v5.3.5 release 2018-09-05 10:04:15 +02:00
Kamil Myśliwiec
20dd9fc8ca bugfix(common) remove useless parts of cache interceptor 2018-09-05 10:03:28 +02:00
Kamil Myśliwiec
6110526402 chore(@nestjs) publish v5.3.4 release 2018-09-05 09:38:05 +02:00
Kamil Myśliwiec
0a1f44ac4d bugfix(common) export CACHE_MANAGER, fix trackBy method 2018-09-05 09:37:33 +02:00
Kamil Myśliwiec
d048f23ff8 improvement(microservices) ensure that connection is shared across promises 2018-09-05 09:37:09 +02:00
Kamil Myśliwiec
f5f8255a37 bugfix(core) check bootstrap lifecycle hook 2018-09-05 09:36:23 +02:00
Kamil Myśliwiec
cc4d91fcb3 chore(@nestjs) publish v5.3.3 release 2018-09-04 11:48:10 +02:00
Jean-Baptiste Pionnier
b296cabd35 refactor: resolve module path 2018-09-03 21:34:15 +02:00
Jean-Baptiste Pionnier
b8a66efbba refactor: delete unnecessary resolveFactoryInstance method 2018-09-03 21:31:16 +02:00
Kamil Myśliwiec
89c76a682e chore(nestjs) publish 5.3.2 release 2018-09-03 18:05:35 +02:00
Kamil Myśliwiec
63577b9986 chore(@nestjs) publish v5.3.2 release 2018-09-03 18:01:18 +02:00
Kamil Myśliwiec
713e97f6c3 chore(nestjs) publish 5.3.1 release 2018-09-03 17:10:59 +02:00
Kamil Myśliwiec
c392da09a6 Merge branch 'master' of https://github.com/nestjs/nest 2018-09-03 17:10:16 +02:00
Kamil Myśliwiec
02d4841d05 chore(@nestjs) publish v5.3.1 release 2018-09-03 17:09:48 +02:00
Kamil Myśliwiec
cbe9ed4980 Merge pull request #1036 from cschroeter/master
sample(nestjs) update GraphQL example
2018-09-03 12:52:59 +02:00
Kamil Myśliwiec
d654e5e84f deps(nestjs) replace generate-safe-id with uuid 2018-09-03 12:52:25 +02:00
Christian Schröter
9d2bd82173 Enable subscriptions in GraphQLModule 2018-09-03 12:25:53 +02:00
Christian Schröter
02affa5677 Update and clean up dependencies 2018-09-03 12:25:07 +02:00
Kamil Myśliwiec
71a023ebae Merge branch 'master' of https://github.com/nestjs/nest 2018-09-02 22:47:57 +02:00
Kamil Myśliwiec
aa75b52255 build(nestjs) fix package-lock.json 2018-09-02 22:47:47 +02:00
Kamil Myśliwiec
6cf7cdc2a6 Merge pull request #1008 from jbpionnier/refactor/unnecessary_instanceof_promise
refactor(nestjs) unnecessary instanceOf Promise deletion
2018-09-02 22:43:37 +02:00
Kamil Myśliwiec
5b804f5a35 tests(microservices) fix broken options unit tests 2018-09-02 22:42:05 +02:00
Kamil Myśliwiec
b348920d25 build(nestjs) update bundle, add opencollective 2018-09-02 22:31:39 +02:00
Kamil Myśliwiec
b6fe9b06cc refactor(microservices) remove unecessary options object 2018-09-02 22:31:11 +02:00
Kamil Myśliwiec
fde2041f17 sample(nestjs) update framework to 5.3.0 in all samples 2018-08-31 16:30:03 +02:00
Kamil Myśliwiec
7a4b0e64ad Merge branch '5.3.0' 2018-08-31 13:18:21 +02:00
Kamil Myśliwiec
afe9c4b5f4 sample(@nestjs) update auth and graphql sample 2018-08-31 13:18:02 +02:00
Kamil Myśliwiec
5e6694cb8b Merge pull request #1024 from nestjs/5.3.0
chore(nestjs) publish minor release 5.3.0
2018-08-31 13:09:39 +02:00
Kamil Myśliwiec
d20f6bb653 chore(nestjs) publish 5.3.0 minor release 2018-08-31 12:47:11 +02:00
Kamil Myśliwiec
e8032f37fc chore(@nestjs) publish v5.3.0 release 2018-08-31 12:46:22 +02:00
Kamil Myśliwiec
cae159e77c sample(@nestjs) update gateways and graphql sample 2018-08-31 12:24:50 +02:00
Kamil Myśliwiec
47812f5822 refactor(@nestsjs) replace underlying http server (express) 2018-08-31 12:24:29 +02:00
Kamil Myśliwiec
afa9903882 refactor(@nestjs/common) rename class serializer 2018-08-31 12:23:51 +02:00
Kamil Myśliwiec
a7d465bfa1 enhancement(@nestjs/core) injector improvements (circular dependencies) 2018-08-31 12:23:22 +02:00
Kamil Myśliwiec
95dfd59e4e sample(@nestjs) add class serializer sample 2018-08-27 16:58:39 +02:00
Kamil Myśliwiec
08e6278a77 sample(common) add cache module sample 2018-08-27 16:58:24 +02:00
Kamil Myśliwiec
fbf47a2825 feature(common) add class serializer interceptor 2018-08-27 16:57:46 +02:00
Kamil Myśliwiec
643e84c49a feature(common) cache module 2018-08-27 16:57:12 +02:00
Kamil Myśliwiec
25c7e8909e enhancement(common) add default options to MulterModule 2018-08-27 16:56:41 +02:00
Kamil Myśliwiec
0d5972c66b build(@nestjs) force compilation (new bundle) 2018-08-27 16:55:46 +02:00
Kamil Myśliwiec
394d7f23bf refactor(common) move multer module spec files 2018-08-27 12:25:29 +02:00
Kamil Myśliwiec
09d9c6597f refactor(common) move file interceptors to files module 2018-08-27 08:59:40 +02:00
Kamil Myśliwiec
1d8c8ee264 refactor(@nestjs) update dependencies 2018-08-27 08:59:15 +02:00
Kamil Myśliwiec
5a9d6d6d14 sample(nestjs) update auth sample 2018-08-27 00:01:57 +02:00
Kamil Myśliwiec
4d13ee8100 feature(common) add MulterModule 2018-08-27 00:00:51 +02:00
Kamil Myśliwiec
6b0ae0602c feature(websockets) support ack in socketio, enhancements 2018-08-26 23:59:30 +02:00
Kamil Myśliwiec
d0bd2f7b20 Update CONTRIBUTING.md 2018-08-26 23:59:10 +02:00
Jean-Baptiste Pionnier
5f965cf174 refactor: unnecessary instanceOf Promise deletion 2018-08-26 21:05:14 +02:00
Kamil Myśliwiec
504a10ce5e Merge branch 'master' of https://github.com/nestjs/nest 2018-08-25 15:48:03 +02:00
Kamil Myśliwiec
a9abd1c2ea sample(@nestjs) update graphql example, add integration test 2018-08-25 15:47:46 +02:00
Kamil Myśliwiec
e7e859adce Merge pull request #989 from BrunnerLivio/feature/add-im-a-teapot-exception
feature(@nestjs/common) add im a teapot exception
2018-08-25 14:44:08 +02:00
Kamil Myśliwiec
0c98a65e79 chore(@nestjs) publish 5.2.2 release 2018-08-24 12:43:03 +02:00
Livio Brunner
ba2eeeeac7 feature(@nestjs/common) add im a teapot exception
"It’s a reminder that the underlying
processes of computers
are still made by humans.
It'd be a real shame to see 418 go."
2018-08-21 13:43:50 +02:00
Anton
c5a752c7da Merge branch 'master' into feature/rmq-transport 2018-08-16 18:14:10 +03:00
Anton
f3a80ab7c5 feature(@nestjs/microservices) fixed tests 2018-08-11 15:32:54 +03:00
Anton
014a7c92af feature(@nestjs/microservices) Integration tests 2018-07-26 17:43:27 +03:00
Anton
4bfbb8b9dd feature(@nestjs/microservices) Fixed startAllMicroservicesAsync 2018-07-26 17:07:38 +03:00
Anton
e0d1364e45 feature(@nestjs/microservices) Added additional options and fixes 2018-07-20 18:01:21 +03:00
Anton
bb73598c4c Merge branch 'master' into feature/rmq-transport 2018-07-19 21:49:25 +03:00
Anton
76fea94965 Merge updates 2018-07-19 21:48:31 +03:00
Anton
75e16b40d0 Merge branch 'master' into feature/rmq-transport 2018-07-19 19:29:53 +03:00
Anton
adfa76981d Merge branch 'feature/rmq-transport' 2018-07-19 19:29:26 +03:00
Anton
e7e4bbdd57 feature(@nestjs/microservices) updated package-lock 2018-07-19 19:26:43 +03:00
Anton
6ce0e38951 feature(@nestjs/microservices) revert lock file to resolve conflicts 2018-07-19 19:20:20 +03:00
Anton
bcb6c5f69a feature(@nestjs/microservices) boost performance with correlationID 2018-07-18 12:37:06 +03:00
Anton
0ddc86ee88 test(@nestjs/microservices) tests for rqm transport 2018-07-17 18:52:49 +03:00
Anton
ffe4529018 Merge remote-tracking branch 'origin/feature/rmq-transport' into feature/rmq-transport 2018-07-08 08:31:24 +03:00
Anton
685dc33a56 feature(@nestjs/microservices) added rmq transport support 2018-07-08 08:30:55 +03:00
Anton
3da993e2df Added RMQ Client and Server 2018-07-07 23:33:18 +03:00
1649 changed files with 62793 additions and 98826 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
package-lock.json -diff -merge
package-lock.json linguist-generated=true

17
.gitignore vendored
View File

@@ -6,16 +6,18 @@ node_modules/
/.awcache
/.vscode
# bundle
packages/**/*.d.ts
packages/**/*.js
# misc
.DS_Store
lerna-debug.log
npm-debug.log
yarn-error.log
/src/common/npm-debug.log
/src/core/npm-debug.log
/src/testing/npm-debug.log
/src/microservices/npm-debug.log
/src/websockets/npm-debug.log
/**/npm-debug.log
/packages/**/.npmignore
/packages/**/LICENSE
# example
/quick-start
@@ -24,6 +26,9 @@ yarn-error.log
# tests
/test
/benchmarks/memory
/coverage
/.nyc_output
build/config\.gypi
/packages/graphql
/benchmarks/memory
build/config\.gypi

13
.npmignore Normal file
View File

@@ -0,0 +1,13 @@
# source
**/*.ts
*.ts
# definitions
!**/*.d.ts
!*.d.ts
# configuration
package-lock.json
tslint.json
tsconfig.json
.prettierrc

View File

@@ -1 +1,2 @@
/bundle
packages/**/*.d.ts
packages/**/*.js

View File

@@ -1,8 +1,8 @@
language: node_js
node_js:
- "8"
- "9"
- "10"
- "11"
cache:
directories:
- "node_modules"
@@ -17,7 +17,8 @@ before_install:
- npm i -g npm@latest
install:
- npm ci
- gulp build
- npm run build:dev
script:
- npm run lint
- npm test
after_success: npm run coverage

View File

@@ -3,14 +3,15 @@
We would love for you to contribute to Nest and help make it even better than it is
today! As a contributor, here are the guidelines we would like you to follow:
- [Code of Conduct](#coc)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Submission Guidelines](#submit)
- [Coding Rules](#rules)
- [Commit Message Guidelines](#commit)
<!-- - [Signing the CLA](#cla) -->
<!--* [Code of Conduct](#coc)-->
* [Question or Problem?](#question)
* [Issues and Bugs](#issue)
* [Feature Requests](#feature)
* [Submission Guidelines](#submit)
* [Development Setup](#development)
* [Coding Rules](#rules)
* [Commit Message Guidelines](#commit)
<!-- - [Signing the CLA](#cla) -->
<!-- ## <a name="coc"></a> Code of Conduct
Help us keep Nest open and inclusive. Please read and follow our [Code of Conduct][coc]. -->
@@ -22,27 +23,30 @@ Help us keep Nest open and inclusive. Please read and follow our [Code of Conduc
Stack Overflow is a much better place to ask questions since:
<!-- - there are thousands of people willing to help on Stack Overflow [maybe one day] -->
- questions and answers stay available for public viewing so your question / answer might help someone else
- Stack Overflow's voting system assures that the best answers are prominently visible.
* questions and answers stay available for public viewing so your question / answer might help someone else
* Stack Overflow's voting system assures that the best answers are prominently visible.
To save your and our time, we will systematically close all issues that are requests for general support and redirect people to Stack Overflow.
If you would like to chat about the question in real-time, you can reach out via [our gitter channel][gitter].
## <a name="issue"></a> Found a Bug?
If you find a bug in the source code, you can help us by
[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can
[submit a Pull Request](#submit-pr) with a fix.
## <a name="feature"></a> Missing a Feature?
You can *request* a new feature by [submitting an issue](#submit-issue) to our GitHub
Repository. If you would like to *implement* a new feature, please submit an issue with
You can _request_ a new feature by [submitting an issue](#submit-issue) to our GitHub
Repository. If you would like to _implement_ a new feature, please submit an issue with
a proposal for your work first, to be sure that we can use it.
Please consider what kind of change it is:
* For a **Major Feature**, first open an issue and outline your proposal so that it can be
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
and help you to craft the change so that it is successfully accepted into the project. For your issue name, please prefix your proposal with `[discussion]`, for example "[discussion]: your feature idea".
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
and help you to craft the change so that it is successfully accepted into the project. For your issue name, please prefix your proposal with `[discussion]`, for example "[discussion]: your feature idea".
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
## <a name="submit"></a> Submission Guidelines
@@ -53,9 +57,9 @@ Before you submit an issue, please search the issue tracker, maybe an issue for
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using a repository or [Gist](https://gist.github.com/). Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:
- version of NestJS used
- 3rd-party libraries and their versions
- and most importantly - a use-case that fails
* version of NestJS used
* 3rd-party libraries and their versions
* and most importantly - a use-case that fails
<!--
// TODO we need to create a playground, similar to plunkr
@@ -68,42 +72,50 @@ Unfortunately, we are not able to investigate / fix bugs without a minimal repro
You can file new issues by filling out our [new issue form](https://github.com/nestjs/nest/issues/new).
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
Before you submit your Pull Request (PR) consider the following guidelines:
<!--
To the first point
1. Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
We cannot accept code without this.
-->
1. Search [GitHub](https://github.com/nestjs/nest/pulls) for an open or closed PR
that relates to your submission. You don't want to duplicate effort.
<!-- 1. Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
We cannot accept code without this. -->
that relates to your submission. You don't want to duplicate effort.
1. Fork the nestjs/nest repo.
1. Make your changes in a new git branch:
```shell
git checkout -b my-fix-branch master
```
```shell
git checkout -b my-fix-branch master
```
1. Create your patch, **including appropriate test cases**.
1. Follow our [Coding Rules](#rules).
1. Run the full Nest test suite, as described in the [developer documentation][dev-doc],
and ensure that all tests pass.
1. Run the full Nest test suite (see [common scripts](#common-scripts)),
and ensure that all tests pass.
1. Commit your changes using a descriptive commit message that follows our
[commit message conventions](#commit). Adherence to these conventions
is necessary because release notes are automatically generated from these messages.
[commit message conventions](#commit). Adherence to these conventions
is necessary because release notes are automatically generated from these messages.
```shell
git commit -a
```
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
```shell
git commit -a
```
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
1. Push your branch to GitHub:
```shell
git push origin my-fix-branch
```
```shell
git push origin my-fix-branch
```
1. In GitHub, send a pull request to `nestjs:master`.
* If we suggest changes then:
* Make the required updates.
* Re-run the Nest test suites to ensure tests are still passing.
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
@@ -122,47 +134,90 @@ from the main (upstream) repository:
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
```shell
git push origin --delete my-fix-branch
```
```shell
git push origin --delete my-fix-branch
```
* Check out the master branch:
```shell
git checkout master -f
```
```shell
git checkout master -f
```
* Delete the local branch:
```shell
git branch -D my-fix-branch
```
```shell
git branch -D my-fix-branch
```
* Update your master with the latest upstream version:
```shell
git pull --ff upstream master
```
```shell
git pull --ff upstream master
```
## <a name="development"></a> Development Setup
You will need Node.js version 8.9.0+.
1. After cloning the repo, run:
```bash
$ npm i # (or yarn install)
```
2. In order to prepare your environment run `prepare.sh` shell script:
```bash
$ sh scripts/prepare.sh
```
That will compile fresh packages and afterward, move them to all `sample` directories as well as integration tests.
### <a name="common-scripts"></a>Commonly used NPM scripts
```bash
# build all packages and put them near to their source .ts files
$ npm run build
# build all packages and move to "sample" and "integration" directories
# if cross-packages breaking changes were performed you may face irrelevant errors
# in order to verify the build, you can run this command again then
$ npm run build:dev
# run the full unit tests suite
$ npm run test
# run integration tests
# docker is required(!)
$ sh scripts/run-integration.sh
# run linter
$ npm run lint
```
## <a name="rules"></a> Coding Rules
To ensure consistency throughout the source code, keep these rules in mind as you are working:
* All features or bug fixes **must be tested** by one or more specs (unit-tests).
<!--
// We're working on auto-documentation.
* All public API methods **must be documented**. (Details TBC). -->
* All features or bug fixes **must be tested** by one or more specs (unit-tests).
* We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at
**100 characters**. An automated formatter is available, see
[DEVELOPER.md](docs/DEVELOPER.md#clang-format).
## <a name="commit"></a> Commit Message Guidelines
We have very precise rules over how our git commit messages can be formatted. This leads to **more
readable messages** that are easy to follow when looking through the **project history**. But also,
We have very precise rules over how our git commit messages can be formatted. This leads to **more
readable messages** that are easy to follow when looking through the **project history**. But also,
we use the git commit messages to **generate the Nest change log**.
### Commit Message Format
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
format that includes a **type**, a **scope** and a **subject**:
```
@@ -184,17 +239,15 @@ Samples: (even more [samples](https://github.com/nestjs/nest/commits/master))
```
docs(changelog) update change log to beta.5
```
```
bugfix(@nestjs/core) need to depend on latest rxjs and zone.js
The version in our package.json gets copied to the one we publish, and users need the latest of these.
bugfix(core) need to depend on latest rxjs and zone.js
```
### Revert
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
### Type
Must be one of the following:
* **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
@@ -208,6 +261,7 @@ Must be one of the following:
* **test**: Adding missing tests or correcting existing tests
### Scope
The scope should be the name of the npm package affected (as perceived by person reading changelog generated from commit messages.
The following is the list of supported scopes:
@@ -224,10 +278,11 @@ There are currently a few exceptions to the "use package name" rule:
* **packaging**: used for changes that change the npm package layout in all of our packages, e.g. public path changes, package.json changes done to all packages, d.ts file/format changes, changes to bundles, etc.
* **changelog**: used for updating the release notes in CHANGELOG.md
* **sample/#**: for the example apps directory, replacing # with the example app number
<!-- * **aio**: used for docs-app (angular.io) related changes within the /aio directory of the repo -->
* none/empty string: useful for `style`, `test` and `refactor` changes that are done across all packages (e.g. `style: add missing semicolons`)
<!-- * **aio**: used for docs-app (angular.io) related changes within the /aio directory of the repo -->
### Subject
The subject contains succinct description of the change:
* use the imperative, present tense: "change" not "changed" nor "changes"
@@ -235,10 +290,12 @@ The subject contains succinct description of the change:
* no dot (.) at the end
### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
The body should include the motivation for the change and contrast this with previous behavior.
### Footer
The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.
@@ -255,9 +312,10 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
* For corporations we'll need you to
[print, sign and one of scan+email, fax or mail the form][corporate-cla]. -->
<!-- [angular-group]: https://groups.google.com/forum/#!forum/angular -->
<!-- [coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md -->
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
[dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md
@@ -268,4 +326,5 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
[jsfiddle]: http://jsfiddle.net
[plunker]: http://plnkr.co/edit
[runnable]: http://runnable.com
<!-- [stackoverflow]: http://stackoverflow.com/questions/tagged/angular -->

View File

@@ -1,6 +1,6 @@
(The MIT License)
Copyright (c) 2017 Kamil Myśliwiec <http://kamilmysliwiec.com>
Copyright (c) 2017-2019 Kamil Myśliwiec <http://kamilmysliwiec.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@@ -7,28 +7,29 @@
[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 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#7" 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-ff3f59.svg"/></a>
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
<a href="https://travis-ci.org/nestjs/nest" target="_blank"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
<a href="https://travis-ci.org/nestjs/nest" target="_blank"><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" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#8" alt="Coverage" /></a>
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge" target="_blank"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
<a href="https://twitter.com/nestframework" target="_blank"><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
<p>Nest is a framework for building efficient, scalable <a href="http://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).</p>
Nest is a framework for building efficient, scalable <a href="http://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
## Philosophy
@@ -40,29 +41,42 @@
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
## Consulting
With official support, you can get expert help straight from Nest core team. We provide dedicated technical support, migration strategies, advice on best practices (and design decisions), PR reviews, and team augmentation. Read more about [support here](https://docs.nestjs.com/enterprise).
## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsor
<a href="https://valor-software.com/"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="320" /></a>
<a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="320" /></a>
#### Gold Sponsors
#### Base Sponsor
<a href="http://xtremis.com/"><img src="https://nestjs.com/img/logo-xtremis.svg" width="220" /></a>
<a href="https://blueanchor.io/" target="_blank"><img src="https://nestjs.com/img/blueanchor.png" width="300" /></a> &nbsp;
<a href="https://www.novologic.com/" target="_blank"><img src="https://nestjs.com/img/novologic.png" width="200" /></a>
#### Silver Sponsors
<a href="https://neoteric.eu/"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" /></a> &nbsp; <a href="https://www.swingdev.io"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="150" /></a>
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> &nbsp;
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" height="95" /></a> &nbsp; <a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="150" valign="middle" /> </a> &nbsp; &nbsp;
<a href="https://yakaz.com/" target="_blank"><img src="https://nestjs.com/img/yakaz.png" width="100" valign="middle" /></a> &nbsp;
<a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="150" valign="middle" /></a>
<a href="http://xtremis.com/" target="_blank"><img src="https://nestjs.com/img/logo-xtremis.svg" width="150" valign="middle" /></a>
#### Sponsors
<a href="https://scal.io"><img src="https://nestjs.com/img/scalio-logo.svg" width="110" /></a> &nbsp; <a href="http://angularity.io"><img src="http://angularity.io/media/logo.svg" height="30" /></a> &nbsp; <a href="http://gojob.com"><img src="https://gojob.com/w/wp-content/uploads/2017/02/cropped-Logo-web-home.png" height="40" /> &nbsp; <!--<a href="https://keycdn.com"><img src="https://nestjs.com/img/keycdn.svg" height="30" /></a> &nbsp;--> <a href="https://hostpresto.com"><img src="https://nestjs.com/img/hostpresto.png" height="30" /></a>
<a href="https://scal.io" target="_blank"><img src="https://nestjs.com/img/scalio-logo.svg" width="110" valign="middle" /></a> &nbsp; <a href="http://angularity.io" target="_blank"><img src="http://angularity.io/media/logo.svg" height="26" valign="middle" /></a> &nbsp; <!--<a href="https://keycdn.com"><img src="https://nestjs.com/img/keycdn.svg" height="30" /></a> &nbsp;--> <a href="https://hostpresto.com" target="_blank"><img src="https://nestjs.com/img/hostpresto.png" height="30" valign="middle" /></a> &nbsp; <a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/genuinebee.svg" height="36" valign="middle" /></a> &nbsp; <a href="http://architectnow.net/" target="_blank"><img src="https://nestjs.com/img/architectnow.png" height="24" valign="middle" /></a> &nbsp; <a href="https://quander.io/" target="_blank"><img src="https://nestjs.com/img/quander.png" height="28" valign="middle" /></a> &nbsp; <a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/mantro-logo.svg" height="20" valign="middle" /></a> &nbsp;
<a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/triplebyte.png" height="30" valign="middle" /></a> &nbsp;
<a href="https://ever.co/" target="_blank"><img src="https://nestjs.com/img/ever-logo.png" height="20" valign="middle" /></a> &nbsp;
<a href="https://buddy.works/" target="_blank"><img src="https://nestjs.com/img/buddy-logo.svg" height="35" valign="middle" /></a>
## Backers
<a href="https://opencollective.com/nest"><img src="https://opencollective.com/nest/backers.svg?width=890"></a>
<a href="https://opencollective.com/nest" target="_blank"><img src="https://opencollective.com/nest/backers.svg?width=890"></a>
## Stay in touch

48
benchmarks/all_output.txt Normal file
View File

@@ -0,0 +1,48 @@
-----------------------
express
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 47.78ms 19.09ms 212.47ms 66.94%
Req/Sec 1.31k 268.90 2.07k 72.38%
104687 requests in 10.02s, 21.47MB read
Socket errors: connect 0, read 877, write 0, timeout 0
Requests/sec: 10444.24
Transfer/sec: 2.14MB
-----------------------
fastify
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 21.80ms 8.73ms 78.12ms 55.78%
Req/Sec 2.99k 0.92k 5.67k 68.88%
238550 requests in 10.02s, 31.17MB read
Socket errors: connect 0, read 862, write 0, timeout 0
Requests/sec: 23795.79
Transfer/sec: 3.11MB
-----------------------
nest
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 54.00ms 22.33ms 200.25ms 62.23%
Req/Sec 1.15k 338.60 1.88k 66.12%
91348 requests in 10.05s, 18.82MB read
Socket errors: connect 0, read 983, write 0, timeout 0
Requests/sec: 9093.64
Transfer/sec: 1.87MB
-----------------------
nest-fastify
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 29.31ms 11.71ms 101.96ms 70.03%
Req/Sec 2.17k 0.93k 4.12k 63.13%
173241 requests in 10.05s, 22.80MB read
Socket errors: connect 0, read 934, write 0, timeout 0
Requests/sec: 17233.87
Transfer/sec: 2.27MB

7
benchmarks/express.js Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
const express = require('express');
const app = express();
app.get('/', async (req, res) => res.send('Hello world'));
app.listen(3000);

5
benchmarks/fastify.js Normal file
View File

@@ -0,0 +1,5 @@
'use strict';
const fastify = require('fastify')();
fastify.get('/', async (req, reply) => reply.send('Hello world'));
fastify.listen(3000);

View File

@@ -0,0 +1,14 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const core_1 = require('@nestjs/core');
const fastify_platform_1 = require('@nestjs/platform-fastify');
const app_module_1 = require('./nest/app.module');
core_1.NestFactory.create(
app_module_1.AppModule,
new fastify_platform_1.FastifyAdapter(),
{
logger: false,
bodyParser: false,
},
).then(app => app.listen(3000));
//# sourceMappingURL=main.js.map

9
benchmarks/nest.js Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const core_1 = require('@nestjs/core');
const app_module_1 = require('./nest/app.module');
core_1.NestFactory.create(app_module_1.AppModule, {
logger: false,
bodyParser: false,
}).then(app => app.listen(3000));
//# sourceMappingURL=main.js.map

3
benchmarks/nest/app.controller.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare class AppController {
root(): string;
}

View File

@@ -0,0 +1,47 @@
'use strict';
var __decorate =
(this && this.__decorate) ||
function(decorators, target, key, desc) {
var c = arguments.length,
r =
c < 3
? target
: desc === null
? (desc = Object.getOwnPropertyDescriptor(target, key))
: desc,
d;
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
r = Reflect.decorate(decorators, target, key, desc);
else
for (var i = decorators.length - 1; i >= 0; i--)
if ((d = decorators[i]))
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata =
(this && this.__metadata) ||
function(k, v) {
if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
return Reflect.metadata(k, v);
};
Object.defineProperty(exports, '__esModule', { value: true });
const common_1 = require('@nestjs/common');
let AppController = class AppController {
root() {
return 'Hello world!';
}
};
__decorate(
[
common_1.Get(),
__metadata('design:type', Function),
__metadata('design:paramtypes', []),
__metadata('design:returntype', String),
],
AppController.prototype,
'root',
null,
);
AppController = __decorate([common_1.Controller()], AppController);
exports.AppController = AppController;
//# sourceMappingURL=app.controller.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAAiD;AAGjD,IAAa,aAAa,GAA1B,MAAa,aAAa;IAExB,IAAI;QACF,OAAO,cAAc,CAAA;IACvB,CAAC;CACF,CAAA;AAHC;IADC,YAAG,EAAE;;;;yCAGL;AAJU,aAAa;IADzB,mBAAU,EAAE;GACA,aAAa,CAKzB;AALY,sCAAa"}

1
benchmarks/nest/app.module.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare class AppModule {}

View File

@@ -6,20 +6,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const bad_request_exception_1 = require("../exceptions/bad-request.exception");
const index_1 = require("../index");
let ParseIntPipe = class ParseIntPipe {
async transform(value, metadata) {
const isNumeric = 'string' === typeof value &&
!isNaN(parseFloat(value)) &&
isFinite(value);
if (!isNumeric) {
throw new bad_request_exception_1.BadRequestException('Validation failed (numeric string is expected)');
}
return parseInt(value, 10);
}
const common_1 = require("@nestjs/common");
const app_controller_1 = require("./app.controller");
let AppModule = class AppModule {
};
ParseIntPipe = __decorate([
index_1.Injectable()
], ParseIntPipe);
exports.ParseIntPipe = ParseIntPipe;
AppModule = __decorate([
common_1.Module({
imports: [],
controllers: [app_controller_1.AppController],
})
], AppModule);
exports.AppModule = AppModule;
//# sourceMappingURL=app.module.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AAMjD,IAAa,SAAS,GAAtB,MAAa,SAAS;CAAG,CAAA;AAAZ,SAAS;IAJrB,eAAM,CAAC;QACN,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,CAAC,8BAAa,CAAC;KAC7B,CAAC;GACW,SAAS,CAAG;AAAZ,8BAAS"}

1
benchmarks/nest/main.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAChD,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AACD,SAAS,EAAE,CAAC"}

14
benchmarks/run.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
echo 'Library:' $1
node $1 &
pid=$!
sleep 2
wrk 'http://localhost:3000' \
-d 10 \
-c 1024 \
-t 8
kill $pid

23
benchmarks/run_all.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
: > all_output.txt
lib=(express fastify nest nest-fastify)
for item in ${lib[*]}
do
echo '-----------------------' >> all_output.txt
echo $item >> all_output.txt
echo '-----------------------' >> all_output.txt
node $item &
pid=$!
sleep 2
wrk 'http://localhost:3000' \
-d 10 \
-c 1024 \
-t 8 >> all_output.txt
kill $pid
done

View File

@@ -1,75 +0,0 @@
<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#7" 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-ff3f59.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
<p>Nest is a framework for building efficient, scalable <a href="http://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).</p>
<p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also, provides compatibility with a wide range of other libraries, like e.g. <a href="https://github.com/fastify/fastify" target="blank">Fastify</a>, allowing for easy use of the myriad third-party plugins which are available.</p>
## Philosophy
<p>In recent years, thanks to Node.js, JavaScript has become the “lingua franca” of the web for both front and backend applications, giving rise to awesome projects like <a href="https://angular.io/" target="_blank">Angular</a>, <a href="https://github.com/facebook/react" target="_blank">React</a> and <a href="https://github.com/vuejs/vue" target="_blank">Vue</a> which improve developer productivity and enable the construction of fast, testable, extensible frontend applications. However, on the server-side, while there are a lot of superb libraries, helpers and tools for Node, none of them effectively solve the main problem - the architecture.</p>
<p>Nest aims to provide an application architecture out of the box which allows for effortless creation of highly testable, scalable, loosely coupled and easily maintainable applications.</p>
## Getting started
* To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
* 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
#### Principal Sponsor
<a href="https://valor-software.com/"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="320" /></a>
#### Gold Sponsors
<a href="http://xtremis.com/"><img src="https://nestjs.com/img/logo-xtremis.svg" width="220" /></a>
#### Silver Sponsors
<a href="https://neoteric.eu/"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" /></a> &nbsp; <a href="https://www.swingdev.io"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="150" /></a>
#### Sponsors
<a href="https://scal.io"><img src="https://nestjs.com/img/scalio-logo.svg" width="110" /></a> &nbsp; <a href="http://angularity.io"><img src="http://angularity.io/media/logo.svg" height="30" /></a> &nbsp; <a href="http://gojob.com"><img src="https://gojob.com/w/wp-content/uploads/2017/02/cropped-Logo-web-home.png" height="40" /> &nbsp; <!--<a href="https://keycdn.com"><img src="https://nestjs.com/img/keycdn.svg" height="30" /></a> &nbsp;--> <a href="https://hostpresto.com"><img src="https://nestjs.com/img/hostpresto.png" height="30" /></a>
## Backers
<a href="https://opencollective.com/nest"><img src="https://opencollective.com/nest/backers.svg?width=890"></a>
## Stay in touch
* 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).

View File

@@ -1,28 +0,0 @@
export declare const metadata: {
MODULES: string;
IMPORTS: string;
COMPONENTS: string;
PROVIDERS: string;
CONTROLLERS: string;
EXPORTS: string;
};
export declare const SHARED_MODULE_METADATA = "__sharedModule__";
export declare const GLOBAL_MODULE_METADATA = "__globalModule__";
export declare const PATH_METADATA = "path";
export declare const PARAMTYPES_METADATA = "design:paramtypes";
export declare const SELF_DECLARED_DEPS_METADATA = "self:paramtypes";
export declare const OPTIONAL_DEPS_METADATA = "optional:paramtypes";
export declare const METHOD_METADATA = "method";
export declare const ROUTE_ARGS_METADATA = "__routeArguments__";
export declare const CUSTOM_ROUTE_AGRS_METADATA = "__customRouteArgs__";
export declare const EXCEPTION_FILTERS_METADATA = "__exceptionFilters__";
export declare const FILTER_CATCH_EXCEPTIONS = "__filterCatchExceptions__";
export declare const PIPES_METADATA = "__pipes__";
export declare const GUARDS_METADATA = "__guards__";
export declare const RENDER_METADATA = "__renderTemplate__";
export declare const INTERCEPTORS_METADATA = "__interceptors__";
export declare const HTTP_CODE_METADATA = "__httpCode__";
export declare const GATEWAY_MIDDLEWARES = "__gatewayMiddleware";
export declare const MODULE_PATH = "__module_path__";
export declare const HEADERS_METADATA = "__headers__";
export declare const REDIRECT_METADATA = "__redirect__";

View File

@@ -1,30 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.metadata = {
MODULES: 'modules',
IMPORTS: 'imports',
COMPONENTS: 'components',
PROVIDERS: 'providers',
CONTROLLERS: 'controllers',
EXPORTS: 'exports',
};
exports.SHARED_MODULE_METADATA = '__sharedModule__';
exports.GLOBAL_MODULE_METADATA = '__globalModule__';
exports.PATH_METADATA = 'path';
exports.PARAMTYPES_METADATA = 'design:paramtypes';
exports.SELF_DECLARED_DEPS_METADATA = 'self:paramtypes';
exports.OPTIONAL_DEPS_METADATA = 'optional:paramtypes';
exports.METHOD_METADATA = 'method';
exports.ROUTE_ARGS_METADATA = '__routeArguments__';
exports.CUSTOM_ROUTE_AGRS_METADATA = '__customRouteArgs__';
exports.EXCEPTION_FILTERS_METADATA = '__exceptionFilters__';
exports.FILTER_CATCH_EXCEPTIONS = '__filterCatchExceptions__';
exports.PIPES_METADATA = '__pipes__';
exports.GUARDS_METADATA = '__guards__';
exports.RENDER_METADATA = '__renderTemplate__';
exports.INTERCEPTORS_METADATA = '__interceptors__';
exports.HTTP_CODE_METADATA = '__httpCode__';
exports.GATEWAY_MIDDLEWARES = '__gatewayMiddleware';
exports.MODULE_PATH = '__module_path__';
exports.HEADERS_METADATA = '__headers__';
exports.REDIRECT_METADATA = '__redirect__';

View File

@@ -1,6 +0,0 @@
/**
* Binds parameters decorators to the particular method
* Useful when the language doesn't provide a 'Parameter Decorators' feature (vanilla JavaScript)
* @param {} ...decorators
*/
export declare function Bind(...decorators: any[]): (target: object, key: any, descriptor: any) => any;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Binds parameters decorators to the particular method
* Useful when the language doesn't provide a 'Parameter Decorators' feature (vanilla JavaScript)
* @param {} ...decorators
*/
function Bind(...decorators) {
return (target, key, descriptor) => {
decorators.forEach((fn, index) => fn(target, key, index));
return descriptor;
};
}
exports.Bind = Bind;

View File

@@ -1,7 +0,0 @@
import 'reflect-metadata';
import { Type } from '../../interfaces';
/**
* Defines the Exceptions Filter. Takes set of exception types as an argument which has to be caught by this Filter.
* The class should implement the `ExceptionFilter` interface.
*/
export declare function Catch(...exceptions: Type<any>[]): ClassDecorator;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Defines the Exceptions Filter. Takes set of exception types as an argument which has to be caught by this Filter.
* The class should implement the `ExceptionFilter` interface.
*/
function Catch(...exceptions) {
return (target) => {
Reflect.defineMetadata(constants_1.FILTER_CATCH_EXCEPTIONS, exceptions, target);
};
}
exports.Catch = Catch;

View File

@@ -1,32 +0,0 @@
/**
* Defines the injectable class. This class can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
export declare function Injectable(): ClassDecorator;
/**
* @deprecated
* Defines the Component. The component can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
export declare function Component(): ClassDecorator;
/**
* @deprecated
* Defines the Pipe. The Pipe should implement the `PipeTransform` interface.
*/
export declare function Pipe(): ClassDecorator;
/**
* @deprecated
* Defines the Guard. The Guard should implement the `CanActivate` interface.
*/
export declare function Guard(): ClassDecorator;
/**
* @deprecated
* Defines the Middleware. The Middleware should implement the `NestMiddleware` interface.
*/
export declare function Middleware(): ClassDecorator;
/**
* @deprecated
* Defines the Interceptor. The Interceptor should implement `HttpInterceptor`, `RpcInterceptor` or `WsInterceptor` interface.
*/
export declare function Interceptor(): ClassDecorator;
export declare function mixin(mixinClass: any): any;

View File

@@ -1,66 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const deprecate = require("deprecate");
/**
* Defines the injectable class. This class can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
function Injectable() {
return (target) => { };
}
exports.Injectable = Injectable;
/**
* @deprecated
* Defines the Component. The component can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
function Component() {
deprecate('The @Component() decorator is deprecated and will be removed within next major release. Use @Injectable() instead.');
return (target) => { };
}
exports.Component = Component;
/**
* @deprecated
* Defines the Pipe. The Pipe should implement the `PipeTransform` interface.
*/
function Pipe() {
deprecate('The @Pipe() decorator is deprecated and will be removed within next major release. Use @Injectable() instead.');
return (target) => { };
}
exports.Pipe = Pipe;
/**
* @deprecated
* Defines the Guard. The Guard should implement the `CanActivate` interface.
*/
function Guard() {
deprecate('The @Guard() decorator is deprecated and will be removed within next major release. Use @Injectable() instead.');
return (target) => { };
}
exports.Guard = Guard;
/**
* @deprecated
* Defines the Middleware. The Middleware should implement the `NestMiddleware` interface.
*/
function Middleware() {
deprecate('The @Middleware() decorator is deprecated and will be removed within next major release. Use @Injectable() instead.');
return (target) => { };
}
exports.Middleware = Middleware;
/**
* @deprecated
* Defines the Interceptor. The Interceptor should implement `HttpInterceptor`, `RpcInterceptor` or `WsInterceptor` interface.
*/
function Interceptor() {
deprecate('The @Interceptor() decorator is deprecated and will be removed within next major release. Use @Injectable() instead.');
return (target) => { };
}
exports.Interceptor = Interceptor;
let offset = Math.random() * 100;
function mixin(mixinClass) {
Object.defineProperty(mixinClass, 'name', {
value: JSON.stringify(offset++),
});
Injectable()(mixinClass);
return mixinClass;
}
exports.mixin = mixin;

View File

@@ -1,6 +0,0 @@
import 'reflect-metadata';
/**
* Defines the Controller. The controller can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
export declare function Controller(prefix?: string): ClassDecorator;

View File

@@ -1,16 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const shared_utils_1 = require("../../utils/shared.utils");
const constants_1 = require("../../constants");
/**
* Defines the Controller. The controller can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
function Controller(prefix) {
const path = shared_utils_1.isUndefined(prefix) ? '/' : prefix;
return (target) => {
Reflect.defineMetadata(constants_1.PATH_METADATA, path, target);
};
}
exports.Controller = Controller;

View File

@@ -1,3 +0,0 @@
import 'reflect-metadata';
export declare function flatten(arr: any[]): any;
export declare const Dependencies: (...dependencies: any[]) => ClassDecorator;

View File

@@ -1,15 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
function flatten(arr) {
const flat = [].concat(...arr);
return flat.some(Array.isArray) ? flatten(flat) : flat;
}
exports.flatten = flatten;
exports.Dependencies = (...dependencies) => {
const flattenDeps = flatten(dependencies);
return (target) => {
Reflect.defineMetadata(constants_1.PARAMTYPES_METADATA, flattenDeps, target);
};
};

View File

@@ -1,13 +0,0 @@
import 'reflect-metadata';
import { ExceptionFilter } from '../../index';
/**
* Setups exception filters to the chosen context.
* When the `@UseFilters()` is used on the controller level:
* - Exception Filter will be set up to every handler (every method)
*
* When the `@UseFilters()` is used on the handle level:
* - Exception Filter will be set up only to specified method
*
* @param {ExceptionFilter[]} ...filters
*/
export declare const UseFilters: (...filters: (Function | ExceptionFilter<any>)[]) => (target: any, key?: any, descriptor?: any) => any;

View File

@@ -1,31 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
const shared_utils_1 = require("../../utils/shared.utils");
const validate_each_util_1 = require("../../utils/validate-each.util");
const defineFiltersMetadata = (...filters) => {
return (target, key, descriptor) => {
const isFilterValid = filter => filter && (shared_utils_1.isFunction(filter) || shared_utils_1.isFunction(filter.catch));
if (descriptor) {
validate_each_util_1.validateEach(target.constructor, filters, isFilterValid, '@UseFilters', 'filter');
extend_metadata_util_1.extendArrayMetadata(constants_1.EXCEPTION_FILTERS_METADATA, filters, descriptor.value);
return descriptor;
}
validate_each_util_1.validateEach(target, filters, isFilterValid, '@UseFilters', 'filter');
extend_metadata_util_1.extendArrayMetadata(constants_1.EXCEPTION_FILTERS_METADATA, filters, target);
return target;
};
};
/**
* Setups exception filters to the chosen context.
* When the `@UseFilters()` is used on the controller level:
* - Exception Filter will be set up to every handler (every method)
*
* When the `@UseFilters()` is used on the handle level:
* - Exception Filter will be set up only to specified method
*
* @param {ExceptionFilter[]} ...filters
*/
exports.UseFilters = (...filters) => defineFiltersMetadata(...filters);

View File

@@ -1,12 +0,0 @@
export * from './bind.decorator';
export * from './catch.decorator';
export * from './component.decorator';
export * from './controller.decorator';
export * from './dependencies.decorator';
export * from './exception-filters.decorator';
export * from './inject.decorator';
export * from './optional.decorator';
export * from './reflect-metadata.decorator';
export * from './use-guards.decorator';
export * from './use-interceptors.decorator';
export * from './use-pipes.decorator';

View File

@@ -1,17 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./bind.decorator"));
__export(require("./catch.decorator"));
__export(require("./component.decorator"));
__export(require("./controller.decorator"));
__export(require("./dependencies.decorator"));
__export(require("./exception-filters.decorator"));
__export(require("./inject.decorator"));
__export(require("./optional.decorator"));
__export(require("./reflect-metadata.decorator"));
__export(require("./use-guards.decorator"));
__export(require("./use-interceptors.decorator"));
__export(require("./use-pipes.decorator"));

View File

@@ -1,6 +0,0 @@
import 'reflect-metadata';
/**
* Injects provider which has to be available in the current injector (module) scope.
* Providers are recognized by types or tokens.
*/
export declare function Inject<T = any>(token: T): ParameterDecorator;

View File

@@ -1,18 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
const shared_utils_1 = require("../../utils/shared.utils");
/**
* Injects provider which has to be available in the current injector (module) scope.
* Providers are recognized by types or tokens.
*/
function Inject(token) {
return (target, key, index) => {
const args = Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, target) || [];
const type = shared_utils_1.isFunction(token) ? token.name : token;
args.push({ index, param: type });
Reflect.defineMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, args, target);
};
}
exports.Inject = Inject;

View File

@@ -1,5 +0,0 @@
import 'reflect-metadata';
/**
* Sets dependency as an optional one.
*/
export declare function Optional(): ParameterDecorator;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Sets dependency as an optional one.
*/
function Optional() {
return (target, key, index) => {
const args = Reflect.getMetadata(constants_1.OPTIONAL_DEPS_METADATA, target) || [];
Reflect.defineMetadata(constants_1.OPTIONAL_DEPS_METADATA, [...args, index], target);
};
}
exports.Optional = Optional;

View File

@@ -1,5 +0,0 @@
/**
* Assigns the metadata to the class/function under specified `key`.
* This metadata can be reflected using `Reflector` class.
*/
export declare const ReflectMetadata: <K = any, V = any>(metadataKey: K, metadataValue: V) => (target: object, key?: any, descriptor?: any) => any;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Assigns the metadata to the class/function under specified `key`.
* This metadata can be reflected using `Reflector` class.
*/
exports.ReflectMetadata = (metadataKey, metadataValue) => (target, key, descriptor) => {
if (descriptor) {
Reflect.defineMetadata(metadataKey, metadataValue, descriptor.value);
return descriptor;
}
Reflect.defineMetadata(metadataKey, metadataValue, target);
return target;
};

View File

@@ -1,12 +0,0 @@
import { CanActivate } from '../../interfaces';
/**
* Binds guards to the particular context.
* When the `@UseGuards()` is used on the controller level:
* - Guard will be register to each handler (every method)
*
* When the `@UseGuards()` is used on the handler level:
* - Guard will be registered only to specified method
*
* @param {} ...guards
*/
export declare function UseGuards(...guards: (CanActivate | Function)[]): (target: any, key?: any, descriptor?: any) => any;

View File

@@ -1,30 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../../constants");
const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
const validate_each_util_1 = require("../../utils/validate-each.util");
const shared_utils_1 = require("../../utils/shared.utils");
/**
* Binds guards to the particular context.
* When the `@UseGuards()` is used on the controller level:
* - Guard will be register to each handler (every method)
*
* When the `@UseGuards()` is used on the handler level:
* - Guard will be registered only to specified method
*
* @param {} ...guards
*/
function UseGuards(...guards) {
return (target, key, descriptor) => {
const isValidGuard = guard => guard && (shared_utils_1.isFunction(guard) || shared_utils_1.isFunction(guard.canActivate));
if (descriptor) {
validate_each_util_1.validateEach(target.constructor, guards, isValidGuard, '@UseGuards', 'guard');
extend_metadata_util_1.extendArrayMetadata(constants_1.GUARDS_METADATA, guards, descriptor.value);
return descriptor;
}
validate_each_util_1.validateEach(target, guards, isValidGuard, '@UseGuards', 'guard');
extend_metadata_util_1.extendArrayMetadata(constants_1.GUARDS_METADATA, guards, target);
return target;
};
}
exports.UseGuards = UseGuards;

View File

@@ -1,12 +0,0 @@
import { NestInterceptor } from '../../interfaces';
/**
* Binds interceptors to the particular context.
* When the `@UseInterceptors()` is used on the controller level:
* - Interceptor will be register to each handler (every method)
*
* When the `@UseInterceptors()` is used on the handle level:
* - Interceptor will be registered only to specified method
*
* @param {} ...interceptors
*/
export declare function UseInterceptors(...interceptors: (NestInterceptor | Function)[]): (target: any, key?: any, descriptor?: any) => any;

View File

@@ -1,31 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../../constants");
const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
const shared_utils_1 = require("../../utils/shared.utils");
const validate_each_util_1 = require("../../utils/validate-each.util");
/**
* Binds interceptors to the particular context.
* When the `@UseInterceptors()` is used on the controller level:
* - Interceptor will be register to each handler (every method)
*
* When the `@UseInterceptors()` is used on the handle level:
* - Interceptor will be registered only to specified method
*
* @param {} ...interceptors
*/
function UseInterceptors(...interceptors) {
return (target, key, descriptor) => {
const isValidInterceptor = interceptor => interceptor &&
(shared_utils_1.isFunction(interceptor) || shared_utils_1.isFunction(interceptor.intercept));
if (descriptor) {
validate_each_util_1.validateEach(target.constructor, interceptors, isValidInterceptor, '@UseInterceptors', 'interceptor');
extend_metadata_util_1.extendArrayMetadata(constants_1.INTERCEPTORS_METADATA, interceptors, descriptor.value);
return descriptor;
}
validate_each_util_1.validateEach(target, interceptors, isValidInterceptor, '@UseInterceptors', 'interceptor');
extend_metadata_util_1.extendArrayMetadata(constants_1.INTERCEPTORS_METADATA, interceptors, target);
return target;
};
}
exports.UseInterceptors = UseInterceptors;

View File

@@ -1,12 +0,0 @@
import { PipeTransform } from '../../interfaces/index';
/**
* Binds pipes to the particular context.
* When the `@UsePipes()` is used on the controller level:
* - Pipe will be register to each handler (every method)
*
* When the `@UsePipes()` is used on the handle level:
* - Pipe will be registered only to specified method
*
* @param {PipeTransform[]} ...pipes
*/
export declare function UsePipes(...pipes: (PipeTransform | Function)[]): (target: any, key?: any, descriptor?: any) => any;

View File

@@ -1,29 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../../constants");
const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
const validate_each_util_1 = require("../../utils/validate-each.util");
const shared_utils_1 = require("../../utils/shared.utils");
/**
* Binds pipes to the particular context.
* When the `@UsePipes()` is used on the controller level:
* - Pipe will be register to each handler (every method)
*
* When the `@UsePipes()` is used on the handle level:
* - Pipe will be registered only to specified method
*
* @param {PipeTransform[]} ...pipes
*/
function UsePipes(...pipes) {
return (target, key, descriptor) => {
const isPipeValid = pipe => pipe && (shared_utils_1.isFunction(pipe) || shared_utils_1.isFunction(pipe.transform));
if (descriptor) {
extend_metadata_util_1.extendArrayMetadata(constants_1.PIPES_METADATA, pipes, descriptor.value);
return descriptor;
}
validate_each_util_1.validateEach(target, pipes, isPipeValid, '@UsePipes', 'pipe');
extend_metadata_util_1.extendArrayMetadata(constants_1.PIPES_METADATA, pipes, target);
return target;
};
}
exports.UsePipes = UsePipes;

View File

@@ -1,15 +0,0 @@
import { PipeTransform } from '../../index';
import { Type } from '../../interfaces';
import { CustomParamFactory } from '../../interfaces/features/custom-route-param-factory.interface';
export declare type ParamDecoratorEnhancer = ParameterDecorator;
/**
* Defines HTTP route param decorator
* @param factory
*/
export declare function createParamDecorator(factory: CustomParamFactory, enhancers?: ParamDecoratorEnhancer[]): (...dataOrPipes: (Type<PipeTransform> | PipeTransform | string)[]) => ParameterDecorator;
/**
* Defines HTTP route param decorator
* @deprecated
* @param factory
*/
export declare function createRouteParamDecorator(factory: CustomParamFactory): (data?: any, ...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;

View File

@@ -1,40 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const deprecate = require("deprecate");
const constants_1 = require("../../constants");
const shared_utils_1 = require("../../utils/shared.utils");
const assignCustomMetadata = (args, paramtype, index, factory, data, ...pipes) => (Object.assign({}, args, { [`${paramtype}${constants_1.CUSTOM_ROUTE_AGRS_METADATA}:${index}`]: {
index,
factory,
data,
pipes,
} }));
const randomString = () => Math.random()
.toString(36)
.substring(2, 15);
/**
* Defines HTTP route param decorator
* @param factory
*/
function createParamDecorator(factory, enhancers = []) {
const paramtype = randomString() + randomString();
return (data, ...pipes) => (target, key, index) => {
const args = Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA, target.constructor, key) || {};
const hasParamData = shared_utils_1.isNil(data) || shared_utils_1.isString(data);
const paramData = hasParamData ? data : undefined;
const paramPipes = hasParamData ? pipes : [data, ...pipes];
Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA, assignCustomMetadata(args, paramtype, index, factory, paramData, ...paramPipes), target.constructor, key);
enhancers.forEach(fn => fn(target, key, index));
};
}
exports.createParamDecorator = createParamDecorator;
/**
* Defines HTTP route param decorator
* @deprecated
* @param factory
*/
function createRouteParamDecorator(factory) {
deprecate('The "createRouteParamDecorator" function is deprecated and will be removed within next major release. Use "createParamDecorator" instead.');
return createParamDecorator(factory);
}
exports.createRouteParamDecorator = createRouteParamDecorator;

View File

@@ -1,5 +0,0 @@
import 'reflect-metadata';
/**
* Sets a response header.
*/
export declare function Header(name: string, value: string): MethodDecorator;

View File

@@ -1,15 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
const extend_metadata_util_1 = require("../../utils/extend-metadata.util");
/**
* Sets a response header.
*/
function Header(name, value) {
return (target, key, descriptor) => {
extend_metadata_util_1.extendArrayMetadata(constants_1.HEADERS_METADATA, [{ name, value }], descriptor.value);
return descriptor;
};
}
exports.Header = Header;

View File

@@ -1,7 +0,0 @@
/**
* Defines the HTTP response status code.
* It overrides default status code for the given request method.
*
* @param {number} statusCode
*/
export declare function HttpCode(statusCode: number): MethodDecorator;

View File

@@ -1,16 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../../constants");
/**
* Defines the HTTP response status code.
* It overrides default status code for the given request method.
*
* @param {number} statusCode
*/
function HttpCode(statusCode) {
return (target, key, descriptor) => {
Reflect.defineMetadata(constants_1.HTTP_CODE_METADATA, statusCode, descriptor.value);
return descriptor;
};
}
exports.HttpCode = HttpCode;

View File

@@ -1,6 +0,0 @@
export * from './request-mapping.decorator';
export * from './route-params.decorator';
export * from './http-code.decorator';
export * from './create-route-param-metadata.decorator';
export * from './render.decorator';
export * from './header.decorator';

View File

@@ -1,11 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./request-mapping.decorator"));
__export(require("./route-params.decorator"));
__export(require("./http-code.decorator"));
__export(require("./create-route-param-metadata.decorator"));
__export(require("./render.decorator"));
__export(require("./header.decorator"));

View File

@@ -1,5 +0,0 @@
import 'reflect-metadata';
/**
* Redirects request.
*/
export declare function Redirect(url: string): MethodDecorator;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Redirects request.
*/
function Redirect(url) {
return (target, key, descriptor) => {
Reflect.defineMetadata(constants_1.REDIRECT_METADATA, url, descriptor.value);
return descriptor;
};
}
exports.Redirect = Redirect;

View File

@@ -1,5 +0,0 @@
import 'reflect-metadata';
/**
* Defines a template to be rendered by the controller.
*/
export declare function Render(template: string): MethodDecorator;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Defines a template to be rendered by the controller.
*/
function Render(template) {
return (target, key, descriptor) => {
Reflect.defineMetadata(constants_1.RENDER_METADATA, template, descriptor.value);
return descriptor;
};
}
exports.Render = Render;

View File

@@ -1,35 +0,0 @@
import 'reflect-metadata';
import { RequestMappingMetadata } from '../../interfaces/request-mapping-metadata.interface';
export declare const RequestMapping: (metadata?: RequestMappingMetadata) => MethodDecorator;
/**
* Routes HTTP POST requests to the specified path.
*/
export declare const Post: (path?: string) => MethodDecorator;
/**
* Routes HTTP GET requests to the specified path.
*/
export declare const Get: (path?: string) => MethodDecorator;
/**
* Routes HTTP DELETE requests to the specified path.
*/
export declare const Delete: (path?: string) => MethodDecorator;
/**
* Routes HTTP PUT requests to the specified path.
*/
export declare const Put: (path?: string) => MethodDecorator;
/**
* Routes HTTP PATCH requests to the specified path.
*/
export declare const Patch: (path?: string) => MethodDecorator;
/**
* Routes HTTP OPTIONS requests to the specified path.
*/
export declare const Options: (path?: string) => MethodDecorator;
/**
* Routes HTTP HEAD requests to the specified path.
*/
export declare const Head: (path?: string) => MethodDecorator;
/**
* Routes all HTTP requests to the specified path.
*/
export declare const All: (path?: string) => MethodDecorator;

View File

@@ -1,56 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const request_method_enum_1 = require("../../enums/request-method.enum");
const constants_1 = require("../../constants");
const defaultMetadata = {
[constants_1.PATH_METADATA]: '/',
[constants_1.METHOD_METADATA]: request_method_enum_1.RequestMethod.GET,
};
exports.RequestMapping = (metadata = defaultMetadata) => {
const path = metadata[constants_1.PATH_METADATA] || '/';
const requestMethod = metadata[constants_1.METHOD_METADATA] || request_method_enum_1.RequestMethod.GET;
return (target, key, descriptor) => {
Reflect.defineMetadata(constants_1.PATH_METADATA, path, descriptor.value);
Reflect.defineMetadata(constants_1.METHOD_METADATA, requestMethod, descriptor.value);
return descriptor;
};
};
const createMappingDecorator = (method) => (path) => {
return exports.RequestMapping({
[constants_1.PATH_METADATA]: path,
[constants_1.METHOD_METADATA]: method,
});
};
/**
* Routes HTTP POST requests to the specified path.
*/
exports.Post = createMappingDecorator(request_method_enum_1.RequestMethod.POST);
/**
* Routes HTTP GET requests to the specified path.
*/
exports.Get = createMappingDecorator(request_method_enum_1.RequestMethod.GET);
/**
* Routes HTTP DELETE requests to the specified path.
*/
exports.Delete = createMappingDecorator(request_method_enum_1.RequestMethod.DELETE);
/**
* Routes HTTP PUT requests to the specified path.
*/
exports.Put = createMappingDecorator(request_method_enum_1.RequestMethod.PUT);
/**
* Routes HTTP PATCH requests to the specified path.
*/
exports.Patch = createMappingDecorator(request_method_enum_1.RequestMethod.PATCH);
/**
* Routes HTTP OPTIONS requests to the specified path.
*/
exports.Options = createMappingDecorator(request_method_enum_1.RequestMethod.OPTIONS);
/**
* Routes HTTP HEAD requests to the specified path.
*/
exports.Head = createMappingDecorator(request_method_enum_1.RequestMethod.HEAD);
/**
* Routes all HTTP requests to the specified path.
*/
exports.All = createMappingDecorator(request_method_enum_1.RequestMethod.ALL);

View File

@@ -1,28 +0,0 @@
import 'reflect-metadata';
import { PipeTransform } from '../../index';
import { Type } from '../../interfaces';
export declare type ParamData = object | string | number;
export interface RouteParamsMetadata {
[prop: number]: {
index: number;
data?: ParamData;
};
}
export declare const Request: () => ParameterDecorator;
export declare const Response: () => ParameterDecorator;
export declare const Next: () => ParameterDecorator;
export declare const Session: () => ParameterDecorator;
export declare const UploadedFile: (fileKey?: string) => ParameterDecorator;
export declare const UploadedFiles: () => ParameterDecorator;
export declare const Headers: (property?: string) => ParameterDecorator;
export declare function Query(): any;
export declare function Query(...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare function Query(property: string, ...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare function Body(): any;
export declare function Body(...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare function Body(property: string, ...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare function Param(): any;
export declare function Param(...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare function Param(property: string, ...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
export declare const Req: () => ParameterDecorator;
export declare const Res: () => ParameterDecorator;

View File

@@ -1,45 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
const route_paramtypes_enum_1 = require("../../enums/route-paramtypes.enum");
const shared_utils_1 = require("../../utils/shared.utils");
const assignMetadata = (args, paramtype, index, data, ...pipes) => (Object.assign({}, args, { [`${paramtype}:${index}`]: {
index,
data,
pipes,
} }));
const createRouteParamDecorator = (paramtype) => {
return (data) => (target, key, index) => {
const args = Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA, target.constructor, key) || {};
Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA, assignMetadata(args, paramtype, index, data), target.constructor, key);
};
};
const createPipesRouteParamDecorator = (paramtype) => (data, ...pipes) => (target, key, index) => {
const args = Reflect.getMetadata(constants_1.ROUTE_ARGS_METADATA, target.constructor, key) || {};
const hasParamData = shared_utils_1.isNil(data) || shared_utils_1.isString(data);
const paramData = hasParamData ? data : undefined;
const paramPipes = hasParamData ? pipes : [data, ...pipes];
Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA, assignMetadata(args, paramtype, index, paramData, ...paramPipes), target.constructor, key);
};
exports.Request = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.REQUEST);
exports.Response = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.RESPONSE);
exports.Next = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.NEXT);
exports.Session = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.SESSION);
exports.UploadedFile = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILE);
exports.UploadedFiles = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILES);
exports.Headers = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HEADERS);
function Query(property, ...pipes) {
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.QUERY)(property, ...pipes);
}
exports.Query = Query;
function Body(property, ...pipes) {
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.BODY)(property, ...pipes);
}
exports.Body = Body;
function Param(property, ...pipes) {
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.PARAM)(property, ...pipes);
}
exports.Param = Param;
exports.Req = exports.Request;
exports.Res = exports.Response;

View File

@@ -1,3 +0,0 @@
export * from './core';
export * from './modules';
export * from './http';

View File

@@ -1,8 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./core"));
__export(require("./modules"));
__export(require("./http"));

View File

@@ -1 +0,0 @@
export declare const InvalidModuleConfigMessage: (property: string) => string;

View File

@@ -1,3 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidModuleConfigMessage = (property) => `Invalid property '${property}' in @Module() decorator.`;

View File

@@ -1,3 +0,0 @@
export declare class InvalidModuleConfigException extends Error {
constructor(property: string);
}

View File

@@ -1,9 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("./constants");
class InvalidModuleConfigException extends Error {
constructor(property) {
super(constants_1.InvalidModuleConfigMessage(property));
}
}
exports.InvalidModuleConfigException = InvalidModuleConfigException;

View File

@@ -1,6 +0,0 @@
import 'reflect-metadata';
/**
* Makes the module global-scoped.
* Once imported will be available for all existing modules.
*/
export declare function Global(): ClassDecorator;

View File

@@ -1,14 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Makes the module global-scoped.
* Once imported will be available for all existing modules.
*/
function Global() {
return (target) => {
Reflect.defineMetadata(constants_1.GLOBAL_MODULE_METADATA, true, target);
};
}
exports.Global = Global;

View File

@@ -1,3 +0,0 @@
export * from './module.decorator';
export * from './single-scope.decorator';
export * from './global.decorator';

View File

@@ -1,8 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./module.decorator"));
__export(require("./single-scope.decorator"));
__export(require("./global.decorator"));

View File

@@ -1,12 +0,0 @@
import 'reflect-metadata';
import { ModuleMetadata } from '../../interfaces/modules/module-metadata.interface';
/**
* Defines the module
* - `imports` - the set of the 'imported' modules
* - `controllers` - the list of controllers (e.g. HTTP controllers)
* - `providers` - the list of providers that belong to this module. They can be injected between themselves.
* - `exports` - the set of components, which should be available for modules, which imports this module
* - `components` - @deprecated the list of components that belong to this module. They can be injected between themselves.
* @param options {ModuleMetadata} Module metadata
*/
export declare function Module(metadata: ModuleMetadata): ClassDecorator;

View File

@@ -1,61 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const deprecate = require("deprecate");
const constants_1 = require("../../constants");
const invalid_module_config_exception_1 = require("./exceptions/invalid-module-config.exception");
const metadataKeys = [
constants_1.metadata.MODULES,
constants_1.metadata.IMPORTS,
constants_1.metadata.EXPORTS,
constants_1.metadata.COMPONENTS,
constants_1.metadata.CONTROLLERS,
constants_1.metadata.PROVIDERS,
];
const validateKeys = (keys) => {
const isKeyInvalid = key => metadataKeys.findIndex(k => k === key) < 0;
const validateKey = key => {
if (!isKeyInvalid(key)) {
return;
}
throw new invalid_module_config_exception_1.InvalidModuleConfigException(key);
};
keys.forEach(validateKey);
};
/**
* Defines the module
* - `imports` - the set of the 'imported' modules
* - `controllers` - the list of controllers (e.g. HTTP controllers)
* - `providers` - the list of providers that belong to this module. They can be injected between themselves.
* - `exports` - the set of components, which should be available for modules, which imports this module
* - `components` - @deprecated the list of components that belong to this module. They can be injected between themselves.
* @param options {ModuleMetadata} Module metadata
*/
function Module(metadata) {
const propsKeys = Object.keys(metadata);
validateKeys(propsKeys);
showDeprecatedWarnings(metadata);
overrideModuleMetadata(metadata);
return (target) => {
for (const property in metadata) {
if (metadata.hasOwnProperty(property)) {
Reflect.defineMetadata(property, metadata[property], target);
}
}
};
}
exports.Module = Module;
function overrideModuleMetadata(moduleMetadata) {
moduleMetadata.modules = moduleMetadata.imports
? moduleMetadata.imports
: moduleMetadata.modules;
moduleMetadata.components = moduleMetadata.providers
? moduleMetadata.providers
: moduleMetadata.components;
}
function showDeprecatedWarnings(moduleMetadata) {
const modulesDeprecatedWarning = 'The "modules" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "imports" key instead.';
const componentsDeprecatetWarning = 'The "components" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "providers" key instead.';
moduleMetadata.modules && deprecate(modulesDeprecatedWarning);
moduleMetadata.components && deprecate(componentsDeprecatetWarning);
}

View File

@@ -1,7 +0,0 @@
import 'reflect-metadata';
/**
* Specifies scope of this module. When module is `@Shared()`, Nest will create only one instance of this
* module and share them between all of the modules.
* @deprecated
*/
export declare const Shared: (scope?: string) => (target: any) => any;

View File

@@ -1,25 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
const index_1 = require("../../index");
/**
* Specifies scope of this module. When module is `@Shared()`, Nest will create only one instance of this
* module and share them between all of the modules.
* @deprecated
*/
exports.Shared = (scope = 'global') => {
const logger = new index_1.Logger('Shared');
logger.warn('DEPRECATED! Since version 4.0.0 `@Shared()` decorator is deprecated. All modules are singletons now.');
return (target) => {
const Metatype = target;
const Type = class extends Metatype {
constructor(...args) {
super(...args);
}
};
Reflect.defineMetadata(constants_1.SHARED_MODULE_METADATA, scope, Type);
Object.defineProperty(Type, 'name', { value: target.name });
return Type;
};
};

View File

@@ -1,6 +0,0 @@
import 'reflect-metadata';
/**
* Makes the module single-scoped (not singleton).
* In this case, Nest will always create a new instance of this particular module when it's imported by another one.
*/
export declare function SingleScope(): ClassDecorator;

View File

@@ -1,22 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const constants_1 = require("../../constants");
/**
* Makes the module single-scoped (not singleton).
* In this case, Nest will always create a new instance of this particular module when it's imported by another one.
*/
function SingleScope() {
return (target) => {
const Metatype = target;
const Type = class extends Metatype {
constructor(...args) {
super(...args);
}
};
Reflect.defineMetadata(constants_1.SHARED_MODULE_METADATA, true, Type);
Object.defineProperty(Type, 'name', { value: target.name });
return Type;
};
}
exports.SingleScope = SingleScope;

View File

@@ -1,46 +0,0 @@
export declare enum HttpStatus {
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
OK = 200,
CREATED = 201,
ACCEPTED = 202,
NON_AUTHORITATIVE_INFORMATION = 203,
NO_CONTENT = 204,
RESET_CONTENT = 205,
PARTIAL_CONTENT = 206,
AMBIGUOUS = 300,
MOVED_PERMANENTLY = 301,
FOUND = 302,
SEE_OTHER = 303,
NOT_MODIFIED = 304,
TEMPORARY_REDIRECT = 307,
PERMANENT_REDIRECT = 308,
BAD_REQUEST = 400,
UNAUTHORIZED = 401,
PAYMENT_REQUIRED = 402,
FORBIDDEN = 403,
NOT_FOUND = 404,
METHOD_NOT_ALLOWED = 405,
NOT_ACCEPTABLE = 406,
PROXY_AUTHENTICATION_REQUIRED = 407,
REQUEST_TIMEOUT = 408,
CONFLICT = 409,
GONE = 410,
LENGTH_REQUIRED = 411,
PRECONDITION_FAILED = 412,
PAYLOAD_TOO_LARGE = 413,
URI_TOO_LONG = 414,
UNSUPPORTED_MEDIA_TYPE = 415,
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
EXPECTATION_FAILED = 417,
I_AM_A_TEAPOT = 418,
UNPROCESSABLE_ENTITY = 422,
TOO_MANY_REQUESTS = 429,
INTERNAL_SERVER_ERROR = 500,
NOT_IMPLEMENTED = 501,
BAD_GATEWAY = 502,
SERVICE_UNAVAILABLE = 503,
GATEWAY_TIMEOUT = 504,
HTTP_VERSION_NOT_SUPPORTED = 505,
}

View File

@@ -1,49 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var HttpStatus;
(function (HttpStatus) {
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
HttpStatus[HttpStatus["OK"] = 200] = "OK";
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));

View File

@@ -1,2 +0,0 @@
export * from './request-method.enum';
export * from './http-status.enum';

View File

@@ -1,7 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./request-method.enum"));
__export(require("./http-status.enum"));

View File

@@ -1,4 +0,0 @@
export declare enum NestEnvironment {
RUN = 0,
TEST = 1,
}

View File

@@ -1,7 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var NestEnvironment;
(function (NestEnvironment) {
NestEnvironment[NestEnvironment["RUN"] = 0] = "RUN";
NestEnvironment[NestEnvironment["TEST"] = 1] = "TEST";
})(NestEnvironment = exports.NestEnvironment || (exports.NestEnvironment = {}));

View File

@@ -1,10 +0,0 @@
export declare enum RequestMethod {
GET = 0,
POST = 1,
PUT = 2,
DELETE = 3,
PATCH = 4,
ALL = 5,
OPTIONS = 6,
HEAD = 7,
}

View File

@@ -1,13 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RequestMethod;
(function (RequestMethod) {
RequestMethod[RequestMethod["GET"] = 0] = "GET";
RequestMethod[RequestMethod["POST"] = 1] = "POST";
RequestMethod[RequestMethod["PUT"] = 2] = "PUT";
RequestMethod[RequestMethod["DELETE"] = 3] = "DELETE";
RequestMethod[RequestMethod["PATCH"] = 4] = "PATCH";
RequestMethod[RequestMethod["ALL"] = 5] = "ALL";
RequestMethod[RequestMethod["OPTIONS"] = 6] = "OPTIONS";
RequestMethod[RequestMethod["HEAD"] = 7] = "HEAD";
})(RequestMethod = exports.RequestMethod || (exports.RequestMethod = {}));

View File

@@ -1,12 +0,0 @@
export declare enum RouteParamtypes {
REQUEST = 0,
RESPONSE = 1,
NEXT = 2,
BODY = 3,
QUERY = 4,
PARAM = 5,
HEADERS = 6,
SESSION = 7,
FILE = 8,
FILES = 9,
}

View File

@@ -1,15 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RouteParamtypes;
(function (RouteParamtypes) {
RouteParamtypes[RouteParamtypes["REQUEST"] = 0] = "REQUEST";
RouteParamtypes[RouteParamtypes["RESPONSE"] = 1] = "RESPONSE";
RouteParamtypes[RouteParamtypes["NEXT"] = 2] = "NEXT";
RouteParamtypes[RouteParamtypes["BODY"] = 3] = "BODY";
RouteParamtypes[RouteParamtypes["QUERY"] = 4] = "QUERY";
RouteParamtypes[RouteParamtypes["PARAM"] = 5] = "PARAM";
RouteParamtypes[RouteParamtypes["HEADERS"] = 6] = "HEADERS";
RouteParamtypes[RouteParamtypes["SESSION"] = 7] = "SESSION";
RouteParamtypes[RouteParamtypes["FILE"] = 8] = "FILE";
RouteParamtypes[RouteParamtypes["FILES"] = 9] = "FILES";
})(RouteParamtypes = exports.RouteParamtypes || (exports.RouteParamtypes = {}));

View File

@@ -1,7 +0,0 @@
export declare enum Transport {
TCP = 0,
REDIS = 1,
NATS = 2,
MQTT = 3,
GRPC = 4,
}

View File

@@ -1,10 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Transport;
(function (Transport) {
Transport[Transport["TCP"] = 0] = "TCP";
Transport[Transport["REDIS"] = 1] = "REDIS";
Transport[Transport["NATS"] = 2] = "NATS";
Transport[Transport["MQTT"] = 3] = "MQTT";
Transport[Transport["GRPC"] = 4] = "GRPC";
})(Transport = exports.Transport || (exports.Transport = {}));

View File

@@ -1,4 +0,0 @@
import { HttpException } from './http.exception';
export declare class BadGatewayException extends HttpException {
constructor(message?: string | object | any, error?: string);
}

View File

@@ -1,11 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const http_exception_1 = require("./http.exception");
const http_status_enum_1 = require("../enums/http-status.enum");
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
class BadGatewayException extends http_exception_1.HttpException {
constructor(message, error = 'Bad Gateway') {
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.BAD_GATEWAY), http_status_enum_1.HttpStatus.BAD_GATEWAY);
}
}
exports.BadGatewayException = BadGatewayException;

View File

@@ -1,4 +0,0 @@
import { HttpException } from './http.exception';
export declare class BadRequestException extends HttpException {
constructor(message?: string | object | any, error?: string);
}

View File

@@ -1,11 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const http_exception_1 = require("./http.exception");
const http_status_enum_1 = require("../enums/http-status.enum");
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
class BadRequestException extends http_exception_1.HttpException {
constructor(message, error = 'Bad Request') {
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.BAD_REQUEST), http_status_enum_1.HttpStatus.BAD_REQUEST);
}
}
exports.BadRequestException = BadRequestException;

Some files were not shown because too many files have changed in this diff Show More