mirror of
https://github.com/nestjs/nest.git
synced 2026-02-24 00:02:56 +00:00
Compare commits
46 Commits
v7.0.5
...
Dominic-Pr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9a9d58bd1 | ||
|
|
f829f9c25f | ||
|
|
abbe2d9700 | ||
|
|
356fcd74a8 | ||
|
|
af8164ff5c | ||
|
|
447f341d28 | ||
|
|
dff909bd99 | ||
|
|
4635a35fc8 | ||
|
|
6c54451121 | ||
|
|
3e270a3285 | ||
|
|
1c1d4e9ce2 | ||
|
|
f7b48a3e18 | ||
|
|
6d0bbc8255 | ||
|
|
87abfaf036 | ||
|
|
89f6a69cf8 | ||
|
|
14075d9591 | ||
|
|
0691c5c11d | ||
|
|
08c005054c | ||
|
|
c2f6b2d413 | ||
|
|
831dac8e8a | ||
|
|
c7b70ee096 | ||
|
|
de58066618 | ||
|
|
acd6923ed9 | ||
|
|
6d6715322f | ||
|
|
c47f160322 | ||
|
|
9b5779de73 | ||
|
|
d3d01ccde9 | ||
|
|
c978fc2caa | ||
|
|
2ee05ecd79 | ||
|
|
41cc8bab79 | ||
|
|
3a08a26d20 | ||
|
|
35b79eb10e | ||
|
|
8a3d82c054 | ||
|
|
b3e1fa7867 | ||
|
|
b368f074bb | ||
|
|
3a09bf70ab | ||
|
|
fe888916f4 | ||
|
|
2e30be8a28 | ||
|
|
a276847de0 | ||
|
|
00658ca30e | ||
|
|
c368fe4255 | ||
|
|
5f7874fd61 | ||
|
|
c2e9646cd6 | ||
|
|
0e5b402a6f | ||
|
|
3dae6178b7 | ||
|
|
d40ecde991 |
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"arrowParens": "avoid",
|
||||
"trailingComma": "all"
|
||||
}
|
||||
|
||||
@@ -18,25 +18,19 @@ describe('Error messages', () => {
|
||||
});
|
||||
|
||||
it(`/GET`, () => {
|
||||
return request(server)
|
||||
.get('/sync')
|
||||
.expect(HttpStatus.BAD_REQUEST)
|
||||
.expect({
|
||||
statusCode: 400,
|
||||
error: 'Bad Request',
|
||||
message: 'Integration test',
|
||||
});
|
||||
return request(server).get('/sync').expect(HttpStatus.BAD_REQUEST).expect({
|
||||
statusCode: 400,
|
||||
error: 'Bad Request',
|
||||
message: 'Integration test',
|
||||
});
|
||||
});
|
||||
|
||||
it(`/GET (Promise/async)`, () => {
|
||||
return request(server)
|
||||
.get('/async')
|
||||
.expect(HttpStatus.BAD_REQUEST)
|
||||
.expect({
|
||||
statusCode: 400,
|
||||
error: 'Bad Request',
|
||||
message: 'Integration test',
|
||||
});
|
||||
return request(server).get('/async').expect(HttpStatus.BAD_REQUEST).expect({
|
||||
statusCode: 400,
|
||||
error: 'Bad Request',
|
||||
message: 'Integration test',
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -78,16 +78,11 @@ describe('Exclude middleware (fastify)', () => {
|
||||
).createNestApplication<NestFastifyApplication>(new FastifyAdapter());
|
||||
|
||||
await app.init();
|
||||
await app
|
||||
.getHttpAdapter()
|
||||
.getInstance()
|
||||
.ready();
|
||||
await app.getHttpAdapter().getInstance().ready();
|
||||
});
|
||||
|
||||
it(`should exclude "/test" endpoint`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/test')
|
||||
.expect(200, RETURN_VALUE);
|
||||
return request(app.getHttpServer()).get('/test').expect(200, RETURN_VALUE);
|
||||
});
|
||||
|
||||
it(`should not exclude "/test2" endpoint`, () => {
|
||||
|
||||
@@ -77,9 +77,7 @@ describe('Exclude middleware', () => {
|
||||
});
|
||||
|
||||
it(`should exclude "/test" endpoint`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/test')
|
||||
.expect(200, RETURN_VALUE);
|
||||
return request(app.getHttpServer()).get('/test').expect(200, RETURN_VALUE);
|
||||
});
|
||||
|
||||
it(`should not exclude "/test2" endpoint`, () => {
|
||||
|
||||
@@ -20,10 +20,7 @@ describe('Hello world (express instance)', () => {
|
||||
});
|
||||
|
||||
it(`/GET`, () => {
|
||||
return request(server)
|
||||
.get('/hello')
|
||||
.expect(200)
|
||||
.expect('Hello world!');
|
||||
return request(server).get('/hello').expect(200).expect('Hello world!');
|
||||
});
|
||||
|
||||
it(`/GET (Promise/async)`, () => {
|
||||
@@ -41,14 +38,11 @@ describe('Hello world (express instance)', () => {
|
||||
});
|
||||
|
||||
it(`/GET { host: ":tenant.example.com" } not matched`, () => {
|
||||
return request(server)
|
||||
.get('/host')
|
||||
.expect(404)
|
||||
.expect({
|
||||
statusCode: 404,
|
||||
error: 'Not Found',
|
||||
message: 'Cannot GET /host',
|
||||
});
|
||||
return request(server).get('/host').expect(404).expect({
|
||||
statusCode: 404,
|
||||
error: 'Not Found',
|
||||
message: 'Cannot GET /host',
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -29,10 +29,7 @@ describe('Hello world (express instance with multiple applications)', () => {
|
||||
});
|
||||
|
||||
it(`/GET`, () => {
|
||||
return request(server)
|
||||
.get('/hello')
|
||||
.expect(200)
|
||||
.expect('Hello world!');
|
||||
return request(server).get('/hello').expect(200).expect('Hello world!');
|
||||
});
|
||||
|
||||
it(`/GET (app2)`, () => {
|
||||
|
||||
@@ -37,8 +37,6 @@ describe('Guards', () => {
|
||||
app = (await createTestModule(new AuthGuard())).createNestApplication();
|
||||
|
||||
await app.init();
|
||||
return request(app.getHttpServer())
|
||||
.get('/hello')
|
||||
.expect(401);
|
||||
return request(app.getHttpServer()).get('/hello').expect(401);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -77,9 +77,7 @@ describe('Interceptors', () => {
|
||||
).createNestApplication();
|
||||
|
||||
await app.init();
|
||||
return request(app.getHttpServer())
|
||||
.get('/hello')
|
||||
.expect(200, RETURN_VALUE);
|
||||
return request(app.getHttpServer()).get('/hello').expect(200, RETURN_VALUE);
|
||||
});
|
||||
|
||||
it(`should map response`, async () => {
|
||||
|
||||
@@ -18,12 +18,9 @@ describe('Hello world (default adapter)', () => {
|
||||
});
|
||||
|
||||
it(`host=example.com should execute locally injected pipe by HelloController`, () => {
|
||||
return request(server)
|
||||
.get('/hello/local-pipe/1')
|
||||
.expect(200)
|
||||
.expect({
|
||||
id: '1',
|
||||
});
|
||||
return request(server).get('/hello/local-pipe/1').expect(200).expect({
|
||||
id: '1',
|
||||
});
|
||||
});
|
||||
|
||||
it(`host=host.example.com should execute locally injected pipe by HostController`, () => {
|
||||
@@ -39,14 +36,11 @@ describe('Hello world (default adapter)', () => {
|
||||
});
|
||||
|
||||
it(`should return 404 for mismatched host`, () => {
|
||||
return request(server)
|
||||
.get('/host/local-pipe/1')
|
||||
.expect(404)
|
||||
.expect({
|
||||
error: 'Not Found',
|
||||
message: 'Cannot GET /host/local-pipe/1',
|
||||
statusCode: 404,
|
||||
});
|
||||
return request(server).get('/host/local-pipe/1').expect(404).expect({
|
||||
error: 'Not Found',
|
||||
message: 'Cannot GET /host/local-pipe/1',
|
||||
statusCode: 404,
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -51,9 +51,7 @@ describe('Middleware (class)', () => {
|
||||
});
|
||||
|
||||
it(`forRoutes(*)`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/hello')
|
||||
.expect(200, RETURN_VALUE);
|
||||
return request(app.getHttpServer()).get('/hello').expect(200, RETURN_VALUE);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -57,15 +57,11 @@ describe('Middleware', () => {
|
||||
});
|
||||
|
||||
it(`forRoutes(*)`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/hello')
|
||||
.expect(200, RETURN_VALUE);
|
||||
return request(app.getHttpServer()).get('/hello').expect(200, RETURN_VALUE);
|
||||
});
|
||||
|
||||
it(`forRoutes(TestController)`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/test')
|
||||
.expect(200, SCOPED_VALUE);
|
||||
return request(app.getHttpServer()).get('/test').expect(200, SCOPED_VALUE);
|
||||
});
|
||||
|
||||
it(`forRoutes(tests/*)`, () => {
|
||||
|
||||
@@ -33,9 +33,7 @@ describe('MQTT transport', () => {
|
||||
});
|
||||
|
||||
it(`Broadcast (2 subscribers)`, () => {
|
||||
return request(server)
|
||||
.get('/broadcast')
|
||||
.expect(200, '2');
|
||||
return request(server).get('/broadcast').expect(200, '2');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -33,9 +33,7 @@ describe('NATS transport', () => {
|
||||
});
|
||||
|
||||
it(`Broadcast (2 subscribers)`, () => {
|
||||
return request(server)
|
||||
.get('/broadcast')
|
||||
.expect(200, '2');
|
||||
return request(server).get('/broadcast').expect(200, '2');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -33,9 +33,7 @@ describe('REDIS transport', () => {
|
||||
});
|
||||
|
||||
it(`Broadcast (2 subscribers)`, () => {
|
||||
return request(server)
|
||||
.get('/broadcast')
|
||||
.expect(200, '2');
|
||||
return request(server).get('/broadcast').expect(200, '2');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -129,11 +129,7 @@ describe('Advanced GRPC transport', () => {
|
||||
callHandler.on('error', (err: any) => {
|
||||
// We want to fail only on real errors while Cancellation error
|
||||
// is expected
|
||||
if (
|
||||
String(err)
|
||||
.toLowerCase()
|
||||
.indexOf('cancelled') === -1
|
||||
) {
|
||||
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
|
||||
fail('gRPC Stream error happened, error: ' + err);
|
||||
}
|
||||
});
|
||||
@@ -165,11 +161,7 @@ describe('Advanced GRPC transport', () => {
|
||||
callHandler.on('error', (err: any) => {
|
||||
// We want to fail only on real errors while Cancellation error
|
||||
// is expected
|
||||
if (
|
||||
String(err)
|
||||
.toLowerCase()
|
||||
.indexOf('cancelled') === -1
|
||||
) {
|
||||
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
|
||||
fail('gRPC Stream error happened, error: ' + err);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -63,11 +63,7 @@ describe('GRPC transport', () => {
|
||||
callHandler.on('error', (err: any) => {
|
||||
// We want to fail only on real errors while Cancellation error
|
||||
// is expected
|
||||
if (
|
||||
String(err)
|
||||
.toLowerCase()
|
||||
.indexOf('cancelled') === -1
|
||||
) {
|
||||
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
|
||||
fail('gRPC Stream error happened, error: ' + err);
|
||||
}
|
||||
});
|
||||
@@ -89,11 +85,7 @@ describe('GRPC transport', () => {
|
||||
callHandler.on('error', (err: any) => {
|
||||
// We want to fail only on real errors while Cancellation error
|
||||
// is expected
|
||||
if (
|
||||
String(err)
|
||||
.toLowerCase()
|
||||
.indexOf('cancelled') === -1
|
||||
) {
|
||||
if (String(err).toLowerCase().indexOf('cancelled') === -1) {
|
||||
fail('gRPC Stream error happened, error: ' + err);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -106,17 +106,11 @@ describe('Kafka transport', () => {
|
||||
user: newUser,
|
||||
};
|
||||
it(`/POST (sync command create user)`, () => {
|
||||
return request(server)
|
||||
.post('/user')
|
||||
.send(userDto)
|
||||
.expect(200);
|
||||
return request(server).post('/user').send(userDto).expect(200);
|
||||
});
|
||||
|
||||
it(`/POST (sync command create business`, () => {
|
||||
return request(server)
|
||||
.post('/business')
|
||||
.send(businessDto)
|
||||
.expect(200);
|
||||
return request(server).post('/business').send(businessDto).expect(200);
|
||||
});
|
||||
|
||||
it(`/POST (sync command create user) Concurrency Test`, async () => {
|
||||
@@ -124,12 +118,7 @@ describe('Kafka transport', () => {
|
||||
for (let concurrencyKey = 0; concurrencyKey < 100; concurrencyKey++) {
|
||||
const innerUserDto = JSON.parse(JSON.stringify(userDto));
|
||||
innerUserDto.name += `+${concurrencyKey}`;
|
||||
promises.push(
|
||||
request(server)
|
||||
.post('/user')
|
||||
.send(userDto)
|
||||
.expect(200),
|
||||
);
|
||||
promises.push(request(server).post('/user').send(userDto).expect(200));
|
||||
}
|
||||
await Promise.all(promises);
|
||||
});
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('MQTT transport', () => {
|
||||
.expect(200, '15');
|
||||
});
|
||||
|
||||
it(`/POST (concurrent)`, function() {
|
||||
it(`/POST (concurrent)`, function () {
|
||||
return request(server)
|
||||
.post('/concurrent')
|
||||
.send([
|
||||
|
||||
@@ -75,12 +75,10 @@ describe('NATS transport', () => {
|
||||
});
|
||||
|
||||
it(`/GET (exception)`, () => {
|
||||
return request(server)
|
||||
.get('/exception')
|
||||
.expect(200, {
|
||||
message: 'test',
|
||||
status: 'error',
|
||||
});
|
||||
return request(server).get('/exception').expect(200, {
|
||||
message: 'test',
|
||||
status: 'error',
|
||||
});
|
||||
});
|
||||
|
||||
it(`/POST (event notification)`, done => {
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('REDIS transport', () => {
|
||||
.expect(200, '15');
|
||||
});
|
||||
|
||||
it(`/POST (concurrent)`, function() {
|
||||
it(`/POST (concurrent)`, function () {
|
||||
this.retries(10);
|
||||
|
||||
return request(server)
|
||||
|
||||
@@ -76,9 +76,7 @@ describe('RPC transport', () => {
|
||||
});
|
||||
|
||||
it(`/POST (pattern not found)`, () => {
|
||||
return request(server)
|
||||
.post('/?command=test')
|
||||
.expect(500);
|
||||
return request(server).post('/?command=test').expect(500);
|
||||
});
|
||||
|
||||
it(`/POST (event notification)`, done => {
|
||||
|
||||
@@ -65,7 +65,7 @@ describe('WebSocketGateway (WsAdapter)', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it(`should support 2 different gateways`, async function() {
|
||||
it(`should support 2 different gateways`, async function () {
|
||||
this.retries(10);
|
||||
|
||||
app = await createNestApp(ApplicationGateway, CoreGateway);
|
||||
|
||||
617
package-lock.json
generated
617
package-lock.json
generated
@@ -1126,13 +1126,13 @@
|
||||
}
|
||||
},
|
||||
"@nestjs/graphql": {
|
||||
"version": "7.0.12",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/graphql/-/graphql-7.0.12.tgz",
|
||||
"integrity": "sha512-RGwvPMlvtwD2vlhgdWPibws85kse82YCP64dBZOMIgrSLuwxV4O5hCbiUv2afuvB3Fvy9rh/ZLtKk7cR4bKj6A==",
|
||||
"version": "7.0.15",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/graphql/-/graphql-7.0.15.tgz",
|
||||
"integrity": "sha512-ixbX4moI1yVeeLNzSOtqf8mJA9DJ/rgVjjWcbccoe18uopF3AlOVCKjLLNzrkYhUKnz7gjS7MEyOVI0Ar97R8A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@apollo/federation": "^0.13.0",
|
||||
"@apollo/gateway": "^0.13.0",
|
||||
"@apollo/federation": "^0.13.2",
|
||||
"@apollo/gateway": "^0.13.2",
|
||||
"chokidar": "3.3.1",
|
||||
"fast-glob": "3.2.2",
|
||||
"graphql-tools": "4.0.7",
|
||||
@@ -1142,7 +1142,6 @@
|
||||
"normalize-path": "3.0.0",
|
||||
"ts-morph": "^7.0.0",
|
||||
"tslib": "1.11.1",
|
||||
"type-graphql": "^0.17.3",
|
||||
"uuid": "7.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -1204,9 +1203,9 @@
|
||||
"optional": true
|
||||
},
|
||||
"glob-parent": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz",
|
||||
"integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==",
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
|
||||
"integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-glob": "^4.0.1"
|
||||
@@ -1875,13 +1874,6 @@
|
||||
"integrity": "sha1-nAQr+pgD1Xeq1PV9+8pLfK5Chv4=",
|
||||
"dev": true
|
||||
},
|
||||
"@types/semver": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.2.1.tgz",
|
||||
"integrity": "sha512-+beqKQOh9PYxuHvijhVl+tIHvT6tuwOrE9m14zd+MT2A38KoKZhh7pYJ0SNleLtwDsiIxHDsIk9bv01oOxvSvA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@types/serve-static": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.3.tgz",
|
||||
@@ -1974,45 +1966,56 @@
|
||||
"optional": true
|
||||
},
|
||||
"@typescript-eslint/eslint-plugin": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.23.0.tgz",
|
||||
"integrity": "sha512-8iA4FvRsz8qTjR0L/nK9RcRUN3QtIHQiOm69FzV7WS3SE+7P7DyGGwh3k4UNR2JBbk+Ej2Io+jLAaqKibNhmtw==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.25.0.tgz",
|
||||
"integrity": "sha512-W2YyMtjmlrOjtXc+FtTelVs9OhuR6OlYc4XKIslJ8PUJOqgYYAPRJhAqkYRQo3G4sjvG8jSodsNycEn4W2gHUw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@typescript-eslint/experimental-utils": "2.23.0",
|
||||
"eslint-utils": "^1.4.3",
|
||||
"@typescript-eslint/experimental-utils": "2.25.0",
|
||||
"functional-red-black-tree": "^1.0.1",
|
||||
"regexpp": "^3.0.0",
|
||||
"tsutils": "^3.17.1"
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/experimental-utils": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.23.0.tgz",
|
||||
"integrity": "sha512-OswxY59RcXH3NNPmq+4Kis2CYZPurRU6mG5xPcn24CjFyfdVli5mySwZz/g/xDbJXgDsYqNGq7enV0IziWGXVQ==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.25.0.tgz",
|
||||
"integrity": "sha512-0IZ4ZR5QkFYbaJk+8eJ2kYeA+1tzOE1sBjbwwtSV85oNWYUBep+EyhlZ7DLUCyhMUGuJpcCCFL0fDtYAP1zMZw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/json-schema": "^7.0.3",
|
||||
"@typescript-eslint/typescript-estree": "2.23.0",
|
||||
"eslint-scope": "^5.0.0"
|
||||
"@typescript-eslint/typescript-estree": "2.25.0",
|
||||
"eslint-scope": "^5.0.0",
|
||||
"eslint-utils": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-utils": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/parser": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.23.0.tgz",
|
||||
"integrity": "sha512-k61pn/Nepk43qa1oLMiyqApC6x5eP5ddPz6VUYXCAuXxbmRLqkPYzkFRKl42ltxzB2luvejlVncrEpflgQoSUg==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.25.0.tgz",
|
||||
"integrity": "sha512-mccBLaBSpNVgp191CP5W+8U1crTyXsRziWliCqzj02kpxdjKMvFHGJbK33NroquH3zB/gZ8H511HEsJBa2fNEg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/eslint-visitor-keys": "^1.0.0",
|
||||
"@typescript-eslint/experimental-utils": "2.23.0",
|
||||
"@typescript-eslint/typescript-estree": "2.23.0",
|
||||
"@typescript-eslint/experimental-utils": "2.25.0",
|
||||
"@typescript-eslint/typescript-estree": "2.25.0",
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/typescript-estree": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.23.0.tgz",
|
||||
"integrity": "sha512-pmf7IlmvXdlEXvE/JWNNJpEvwBV59wtJqA8MLAxMKLXNKVRC3HZBXR/SlZLPWTCcwOSg9IM7GeRSV3SIerGVqw==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.25.0.tgz",
|
||||
"integrity": "sha512-VUksmx5lDxSi6GfmwSK7SSoIKSw9anukWWNitQPqt58LuYrKalzsgeuignbqnB+rK/xxGlSsCy8lYnwFfB6YJg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "^4.1.1",
|
||||
@@ -6478,12 +6481,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"debug-log": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/debug-log/-/debug-log-1.0.1.tgz",
|
||||
"integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=",
|
||||
"dev": true
|
||||
},
|
||||
"decamelize": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||
@@ -6684,20 +6681,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"deglob": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/deglob/-/deglob-4.0.1.tgz",
|
||||
"integrity": "sha512-/g+RDZ7yf2HvoW+E5Cy+K94YhgcFgr6C8LuHZD1O5HoNPkf3KY6RfXJ0DBGlB/NkLi5gml+G9zqRzk9S0mHZCg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"find-root": "^1.0.0",
|
||||
"glob": "^7.0.5",
|
||||
"ignore": "^5.0.0",
|
||||
"pkg-config": "^1.1.0",
|
||||
"run-parallel": "^1.1.2",
|
||||
"uniq": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
@@ -7641,9 +7624,9 @@
|
||||
}
|
||||
},
|
||||
"eslint-config-prettier": {
|
||||
"version": "6.10.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.10.0.tgz",
|
||||
"integrity": "sha512-AtndijGte1rPILInUdHjvKEGbIV06NuvPrqlIEaEaWtbtvJh464mDeyGMdZEQMsGvC0ZVkiex1fSNcC4HAbRGg==",
|
||||
"version": "6.10.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.10.1.tgz",
|
||||
"integrity": "sha512-svTy6zh1ecQojvpbJSgH3aei/Rt7C6i090l5f2WQ4aB05lYHeZIR1qL4wZyyILTbtmnbHP5Yn8MrsOJMGa8RkQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"get-stdin": "^6.0.0"
|
||||
@@ -7657,18 +7640,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-config-standard": {
|
||||
"version": "14.1.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-14.1.0.tgz",
|
||||
"integrity": "sha512-EF6XkrrGVbvv8hL/kYa/m6vnvmUT+K82pJJc4JJVMM6+Qgqh0pnwprSxdduDLB9p/7bIxD+YV5O0wfb8lmcPbA==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-config-standard-jsx": {
|
||||
"version": "8.1.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-8.1.0.tgz",
|
||||
"integrity": "sha512-ULVC8qH8qCqbU792ZOO6DaiaZyHNS/5CZt3hKqHkEhVlhPEPN3nfBqqxJCyp59XrjIBZPu1chMYe9T2DXZ7TMw==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-import-resolver-node": {
|
||||
"version": "0.3.3",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.3.tgz",
|
||||
@@ -7741,16 +7712,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-plugin-es": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-2.0.0.tgz",
|
||||
"integrity": "sha512-f6fceVtg27BR02EYnBhgWLFQfK6bN4Ll0nQFrBHOlCsAyxeZkn0NHns5O0YZOPrV1B3ramd6cgFwaoFLcSkwEQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-utils": "^1.4.2",
|
||||
"regexpp": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"eslint-plugin-import": {
|
||||
"version": "2.20.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz",
|
||||
@@ -7870,86 +7831,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-plugin-node": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-10.0.0.tgz",
|
||||
"integrity": "sha512-1CSyM/QCjs6PXaT18+zuAXsjXGIGo5Rw630rSKwokSs2jrYURQc4R5JZpoanNCqwNmepg+0eZ9L7YiRUJb8jiQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-plugin-es": "^2.0.0",
|
||||
"eslint-utils": "^1.4.2",
|
||||
"ignore": "^5.1.1",
|
||||
"minimatch": "^3.0.4",
|
||||
"resolve": "^1.10.1",
|
||||
"semver": "^6.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"resolve": {
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz",
|
||||
"integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-parse": "^1.0.6"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-plugin-promise": {
|
||||
"version": "4.2.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz",
|
||||
"integrity": "sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-plugin-react": {
|
||||
"version": "7.14.3",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.14.3.tgz",
|
||||
"integrity": "sha512-EzdyyBWC4Uz2hPYBiEJrKCUi2Fn+BJ9B/pJQcjw5X+x/H2Nm59S4MJIvL4O5NEE0+WbnQwEBxWY03oUk+Bc3FA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"array-includes": "^3.0.3",
|
||||
"doctrine": "^2.1.0",
|
||||
"has": "^1.0.3",
|
||||
"jsx-ast-utils": "^2.1.0",
|
||||
"object.entries": "^1.1.0",
|
||||
"object.fromentries": "^2.0.0",
|
||||
"object.values": "^1.1.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"resolve": "^1.10.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"doctrine": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
|
||||
"integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esutils": "^2.0.2"
|
||||
}
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz",
|
||||
"integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-parse": "^1.0.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-plugin-standard": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.1.tgz",
|
||||
"integrity": "sha512-v/KBnfyaOMPmZc/dmc6ozOdWqekGp7bBGq4jLAecEfPGmfKiWS4sA8sC0LqiV9w5qmXAtXVn4M3p1jSyhY85SQ==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-scope": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz",
|
||||
@@ -9086,12 +8967,6 @@
|
||||
"semver-store": "^0.3.0"
|
||||
}
|
||||
},
|
||||
"find-root": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
|
||||
"integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
|
||||
"dev": true
|
||||
},
|
||||
"find-up": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
|
||||
@@ -10567,16 +10442,6 @@
|
||||
"apollo-server-types": "^0.3.0"
|
||||
}
|
||||
},
|
||||
"graphql-query-complexity": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/graphql-query-complexity/-/graphql-query-complexity-0.3.0.tgz",
|
||||
"integrity": "sha512-JVqHT81Eh9O17iOjs1r1qzsh5YY2upfA3zoUsQGggT4d+1hajWitk4GQQY5SZtq5eul7y6jMsM9qRUSOAKhDJQ==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"lodash.get": "^4.4.2"
|
||||
}
|
||||
},
|
||||
"graphql-subscriptions": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/graphql-subscriptions/-/graphql-subscriptions-1.1.0.tgz",
|
||||
@@ -13177,16 +13042,6 @@
|
||||
"verror": "1.10.0"
|
||||
}
|
||||
},
|
||||
"jsx-ast-utils": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz",
|
||||
"integrity": "sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"array-includes": "^3.0.3",
|
||||
"object.assign": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"just-debounce": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz",
|
||||
@@ -13670,9 +13525,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"lint-staged": {
|
||||
"version": "10.0.8",
|
||||
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.0.8.tgz",
|
||||
"integrity": "sha512-Oa9eS4DJqvQMVdywXfEor6F4vP+21fPHF8LUXgBbVWUSWBddjqsvO6Bv1LwMChmgQZZqwUvgJSHlu8HFHAPZmA==",
|
||||
"version": "10.0.9",
|
||||
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.0.9.tgz",
|
||||
"integrity": "sha512-NKJHYgRa8oI9c4Ic42ZtF2XA6Ps7lFbXwg3q0ZEP0r55Tw3YWykCW1RzW6vu+QIGqbsy7DxndvKu93Wtr5vPQw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^3.0.0",
|
||||
@@ -14395,15 +14250,6 @@
|
||||
"integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==",
|
||||
"dev": true
|
||||
},
|
||||
"loose-envify": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
||||
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"js-tokens": "^3.0.0 || ^4.0.0"
|
||||
}
|
||||
},
|
||||
"loud-rejection": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
|
||||
@@ -15421,9 +15267,9 @@
|
||||
}
|
||||
},
|
||||
"mongoose": {
|
||||
"version": "5.9.5",
|
||||
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.9.5.tgz",
|
||||
"integrity": "sha512-2kMNZCZRWCMtww4f//CwdGH6BjO3+9/c3YdsC6nbzdJVyl8+GRtNfgrKUge3226VZXXLJa6LwxXN2K8/Dh4irg==",
|
||||
"version": "5.9.6",
|
||||
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.9.6.tgz",
|
||||
"integrity": "sha512-EfFGO2QUoenf/4eFeF5y2R8aBLKHtqwrMk1pVGgl3OyNWufP5XLLPIuihP006YqR1+6xM1YsBzGpgBjMZkINGA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bson": "~1.1.1",
|
||||
@@ -15784,12 +15630,12 @@
|
||||
"dev": true
|
||||
},
|
||||
"nats": {
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/nats/-/nats-1.4.2.tgz",
|
||||
"integrity": "sha512-s/42CAGdvQOn0XJPNAEJ6H2ehN3WDmamhb4gtpzawE6aE4GYyc8FICBG2EA1/Vy32L+XwZfyAKc2S1GFbQulKw==",
|
||||
"version": "1.4.8",
|
||||
"resolved": "https://registry.npmjs.org/nats/-/nats-1.4.8.tgz",
|
||||
"integrity": "sha512-Z+JtpcpMZKuZitvRyHB6Mt0PZx5cOj3RmTXfmYKiI7cxLJ/wHkVYRx9za2EoBgtT8g20TUMt9htN002jnr1SWg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"nuid": "^1.1.2",
|
||||
"nuid": "^1.1.4",
|
||||
"ts-nkeys": "^1.0.16"
|
||||
}
|
||||
},
|
||||
@@ -16096,13 +15942,10 @@
|
||||
}
|
||||
},
|
||||
"nuid": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/nuid/-/nuid-1.1.2.tgz",
|
||||
"integrity": "sha512-+cq1dQyCHCfzDNjPNxsNbk5y+1EkMN4RSVFAQXcFWKO3JUp35euH/pRpBs0E5QiNr2uy3lh51eQ/57alAuSOOw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"standard": "^14.3.1"
|
||||
}
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/nuid/-/nuid-1.1.4.tgz",
|
||||
"integrity": "sha512-PXiYyHhGfrq8H4g5HyC8enO1lz6SBe5z6x1yx/JG4tmADzDGJVQy3l1sRf3VtEvPsN8dGn9hRFRwDKWL62x0BA==",
|
||||
"dev": true
|
||||
},
|
||||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
@@ -16520,30 +16363,6 @@
|
||||
"isobject": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"object.entries": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.1.tgz",
|
||||
"integrity": "sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"define-properties": "^1.1.3",
|
||||
"es-abstract": "^1.17.0-next.1",
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3"
|
||||
}
|
||||
},
|
||||
"object.fromentries": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.2.tgz",
|
||||
"integrity": "sha512-r3ZiBH7MQppDJVLx6fhD618GKNG40CZYH9wgwdhKxBDDbQgjeWGGd4AtkZad84d291YxvWe7bJGuE65Anh0dxQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"define-properties": "^1.1.3",
|
||||
"es-abstract": "^1.17.0-next.1",
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3"
|
||||
}
|
||||
},
|
||||
"object.getownpropertydescriptors": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz",
|
||||
@@ -17193,97 +17012,6 @@
|
||||
"integrity": "sha512-WaL504dO8eGs+vrK+j4BuQQq6GLKeCCcHaMB2ItygzVURcL1CycwNEUHTD/lHFHs/NL5qAz2UKrjYWXKSf4aMQ==",
|
||||
"dev": true
|
||||
},
|
||||
"pkg-conf": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz",
|
||||
"integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"find-up": "^3.0.0",
|
||||
"load-json-file": "^5.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"find-up": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"locate-path": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"load-json-file": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz",
|
||||
"integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.1.15",
|
||||
"parse-json": "^4.0.0",
|
||||
"pify": "^4.0.1",
|
||||
"strip-bom": "^3.0.0",
|
||||
"type-fest": "^0.3.0"
|
||||
}
|
||||
},
|
||||
"locate-path": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"p-locate": "^3.0.0",
|
||||
"path-exists": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"p-limit": {
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz",
|
||||
"integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"p-try": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"p-locate": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"p-limit": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"p-try": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
|
||||
"dev": true
|
||||
},
|
||||
"pify": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
|
||||
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
|
||||
"dev": true
|
||||
},
|
||||
"type-fest": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz",
|
||||
"integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkg-config": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/pkg-config/-/pkg-config-1.1.1.tgz",
|
||||
"integrity": "sha1-VX7yLXPaPIg3EHdmxS6tq94pj+Q=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug-log": "^1.0.0",
|
||||
"find-root": "^1.0.0",
|
||||
"xtend": "^4.0.1"
|
||||
}
|
||||
},
|
||||
"pkg-dir": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
|
||||
@@ -17396,9 +17124,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.1.tgz",
|
||||
"integrity": "sha512-piXGBcY1zoFOG0MvHpNE5reAGseLmaCRifQ/fmfF49BcYkInEs/naD/unxGNAeOKFA5+JxVrPyMvMlpzcd20UA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.2.tgz",
|
||||
"integrity": "sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==",
|
||||
"dev": true
|
||||
},
|
||||
"pretty-format": {
|
||||
@@ -17492,25 +17220,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"prop-types": {
|
||||
"version": "15.7.2",
|
||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz",
|
||||
"integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"loose-envify": "^1.4.0",
|
||||
"object-assign": "^4.1.1",
|
||||
"react-is": "^16.8.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"protobufjs": {
|
||||
"version": "6.8.8",
|
||||
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz",
|
||||
@@ -17720,7 +17429,8 @@
|
||||
"version": "16.13.1",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"read-cmd-shim": {
|
||||
"version": "1.0.5",
|
||||
@@ -19234,167 +18944,6 @@
|
||||
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=",
|
||||
"dev": true
|
||||
},
|
||||
"standard": {
|
||||
"version": "14.3.3",
|
||||
"resolved": "https://registry.npmjs.org/standard/-/standard-14.3.3.tgz",
|
||||
"integrity": "sha512-HBEAD5eVXrr2o/KZ3kU8Wwaxw90wzoq4dOQe6vlRnPoQ6stn4LCLRLBBDp0CjH/aOTL9bDZJbRUOZcBaBnNJ0A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint": "~6.8.0",
|
||||
"eslint-config-standard": "14.1.0",
|
||||
"eslint-config-standard-jsx": "8.1.0",
|
||||
"eslint-plugin-import": "~2.18.0",
|
||||
"eslint-plugin-node": "~10.0.0",
|
||||
"eslint-plugin-promise": "~4.2.1",
|
||||
"eslint-plugin-react": "~7.14.2",
|
||||
"eslint-plugin-standard": "~4.0.0",
|
||||
"standard-engine": "^12.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"doctrine": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz",
|
||||
"integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esutils": "^2.0.2",
|
||||
"isarray": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"eslint-plugin-import": {
|
||||
"version": "2.18.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.18.2.tgz",
|
||||
"integrity": "sha512-5ohpsHAiUBRNaBWAF08izwUGlbrJoJJ+W9/TBwsGoR1MnlgfwMIKrFeSjWbt6moabiXW9xNvtFz+97KHRfI4HQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"array-includes": "^3.0.3",
|
||||
"contains-path": "^0.1.0",
|
||||
"debug": "^2.6.9",
|
||||
"doctrine": "1.5.0",
|
||||
"eslint-import-resolver-node": "^0.3.2",
|
||||
"eslint-module-utils": "^2.4.0",
|
||||
"has": "^1.0.3",
|
||||
"minimatch": "^3.0.4",
|
||||
"object.values": "^1.1.0",
|
||||
"read-pkg-up": "^2.0.0",
|
||||
"resolve": "^1.11.0"
|
||||
}
|
||||
},
|
||||
"isarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
|
||||
"dev": true
|
||||
},
|
||||
"load-json-file": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
|
||||
"integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.1.2",
|
||||
"parse-json": "^2.2.0",
|
||||
"pify": "^2.0.0",
|
||||
"strip-bom": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
|
||||
"dev": true
|
||||
},
|
||||
"parse-json": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
|
||||
"integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"error-ex": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"path-type": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
|
||||
"integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"pify": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"pify": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
|
||||
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
|
||||
"dev": true
|
||||
},
|
||||
"read-pkg": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
|
||||
"integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"load-json-file": "^2.0.0",
|
||||
"normalize-package-data": "^2.3.2",
|
||||
"path-type": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"read-pkg-up": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
|
||||
"integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"find-up": "^2.0.0",
|
||||
"read-pkg": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz",
|
||||
"integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-parse": "^1.0.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"standard-engine": {
|
||||
"version": "12.0.0",
|
||||
"resolved": "https://registry.npmjs.org/standard-engine/-/standard-engine-12.0.0.tgz",
|
||||
"integrity": "sha512-gJIIRb0LpL7AHyGbN9+hJ4UJns37lxmNTnMGRLC8CFrzQ+oB/K60IQjKNgPBCB2VP60Ypm6f8DFXvhVWdBOO+g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"deglob": "^4.0.0",
|
||||
"get-stdin": "^7.0.0",
|
||||
"minimist": "^1.1.0",
|
||||
"pkg-conf": "^3.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"get-stdin": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz",
|
||||
"integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==",
|
||||
"dev": true
|
||||
},
|
||||
"minimist": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"static-eval": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz",
|
||||
@@ -20361,48 +19910,6 @@
|
||||
"integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
|
||||
"dev": true
|
||||
},
|
||||
"type-graphql": {
|
||||
"version": "0.17.6",
|
||||
"resolved": "https://registry.npmjs.org/type-graphql/-/type-graphql-0.17.6.tgz",
|
||||
"integrity": "sha512-UFZaMMnpae3zeu9qCdWN82hm8wQeYu/+sQFbG5v3vlTtctZ9Xle9bvNi/rzSbQaG94K9Y5O5AGxjVKKMpEAMYA==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"@types/glob": "^7.1.1",
|
||||
"@types/node": "*",
|
||||
"@types/semver": "^6.0.1",
|
||||
"class-validator": ">=0.9.1",
|
||||
"glob": "^7.1.4",
|
||||
"graphql-query-complexity": "^0.3.0",
|
||||
"graphql-subscriptions": "^1.1.0",
|
||||
"semver": "^6.2.0",
|
||||
"tslib": "^1.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"glob": {
|
||||
"version": "7.1.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
||||
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
"inherits": "2",
|
||||
"minimatch": "^3.0.4",
|
||||
"once": "^1.3.0",
|
||||
"path-is-absolute": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"type-is": {
|
||||
"version": "1.6.16",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
|
||||
@@ -20752,12 +20259,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"uniq": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
|
||||
"integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=",
|
||||
"dev": true
|
||||
},
|
||||
"unique-filename": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
||||
|
||||
16
package.json
16
package.json
@@ -74,7 +74,7 @@
|
||||
"@commitlint/cli": "8.3.5",
|
||||
"@commitlint/config-angular": "8.3.4",
|
||||
"@grpc/proto-loader": "0.5.3",
|
||||
"@nestjs/graphql": "7.0.12",
|
||||
"@nestjs/graphql": "7.0.15",
|
||||
"@nestjs/mongoose": "6.4.0",
|
||||
"@nestjs/typeorm": "7.0.0",
|
||||
"@types/amqplib": "0.5.13",
|
||||
@@ -95,8 +95,8 @@
|
||||
"@types/sinon": "7.5.2",
|
||||
"@types/socket.io": "2.1.4",
|
||||
"@types/ws": "7.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"amqp-connection-manager": "3.2.0",
|
||||
"amqplib": "0.5.5",
|
||||
"apollo-server-express": "2.11.0",
|
||||
@@ -116,7 +116,7 @@
|
||||
"delete-empty": "3.0.0",
|
||||
"engine.io-client": "3.4.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"fancy-log": "1.3.3",
|
||||
"fastify": "2.13.0",
|
||||
@@ -138,18 +138,18 @@
|
||||
"json-loader": "0.5.7",
|
||||
"kafkajs": "1.12.0",
|
||||
"lerna": "2.11.0",
|
||||
"lint-staged": "10.0.8",
|
||||
"lint-staged": "10.0.9",
|
||||
"markdown-table": "2.0.0",
|
||||
"merge-graphql-schemas": "1.7.6",
|
||||
"mocha": "7.1.1",
|
||||
"mongoose": "5.9.5",
|
||||
"mongoose": "5.9.6",
|
||||
"mqtt": "3.0.0",
|
||||
"multer": "1.4.2",
|
||||
"mysql": "2.18.1",
|
||||
"nats": "1.4.2",
|
||||
"nats": "1.4.8",
|
||||
"nodemon": "2.0.2",
|
||||
"nyc": "15.0.0",
|
||||
"prettier": "2.0.1",
|
||||
"prettier": "2.0.2",
|
||||
"redis": "3.0.2",
|
||||
"rxjs-compat": "6.5.4",
|
||||
"sinon": "9.0.1",
|
||||
|
||||
@@ -8,7 +8,7 @@ export function flatten<T extends Array<unknown> = any>(
|
||||
}
|
||||
|
||||
/**
|
||||
* Decorator that sets required dependencies (required with a vanilla JavaScript pjects)
|
||||
* Decorator that sets required dependencies (required with a vanilla JavaScript objects)
|
||||
*/
|
||||
export const Dependencies = (
|
||||
...dependencies: Array<unknown>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Bad Gateway* type errors.
|
||||
@@ -17,25 +17,32 @@ export class BadGatewayException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 502.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 502.
|
||||
* - `message`: the string `'Bad Gateway'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Bad Gateway') {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = 'Bad Gateway',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.BAD_GATEWAY),
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
description,
|
||||
HttpStatus.BAD_GATEWAY,
|
||||
),
|
||||
HttpStatus.BAD_GATEWAY,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Bad Request* type errors.
|
||||
@@ -17,25 +17,32 @@ export class BadRequestException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 400.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 400.
|
||||
* - `message`: the string `'Bad Request'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Bad Request') {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = 'Bad Request',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.BAD_REQUEST),
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
description,
|
||||
HttpStatus.BAD_REQUEST,
|
||||
),
|
||||
HttpStatus.BAD_REQUEST,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Conflict* type errors.
|
||||
@@ -17,25 +17,25 @@ export class ConflictException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 409.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 409.
|
||||
* - `message`: the string `'Conflict'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Conflict') {
|
||||
constructor(objectOrError?: string | object | any, description = 'Conflict') {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.CONFLICT),
|
||||
HttpException.createBody(objectOrError, description, HttpStatus.CONFLICT),
|
||||
HttpStatus.CONFLICT,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Forbidden* type errors.
|
||||
@@ -17,25 +17,32 @@ export class ForbiddenException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 403.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 403.
|
||||
* - `message`: the string `'Forbidden'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Forbidden') {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = 'Forbidden',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.FORBIDDEN),
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
description,
|
||||
HttpStatus.FORBIDDEN,
|
||||
),
|
||||
HttpStatus.FORBIDDEN,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Gatway Timeout* type errors.
|
||||
@@ -17,30 +17,30 @@ export class GatewayTimeoutException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 504.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 504.
|
||||
* - `message`: the string `'Gateway Timeout'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Gateway Timeout',
|
||||
description = 'Gateway Timeout',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.GATEWAY_TIMEOUT,
|
||||
),
|
||||
HttpStatus.GATEWAY_TIMEOUT,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Gone* type errors.
|
||||
@@ -17,25 +17,25 @@ export class GoneException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 410.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 410.
|
||||
* - `message`: the string `'Gone'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Gone') {
|
||||
constructor(objectOrError?: string | object | any, description = 'Gone') {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.GONE),
|
||||
HttpException.createBody(objectOrError, description, HttpStatus.GONE),
|
||||
HttpStatus.GONE,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Http Version Not Supported* type errors.
|
||||
@@ -17,30 +17,30 @@ export class HttpVersionNotSupportedException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 505.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 505.
|
||||
* - `message`: the string `'HTTP Version Not Supported'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'HTTP Version Not Supported',
|
||||
description = 'HTTP Version Not Supported',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.HTTP_VERSION_NOT_SUPPORTED,
|
||||
),
|
||||
HttpStatus.HTTP_VERSION_NOT_SUPPORTED,
|
||||
|
||||
@@ -20,27 +20,30 @@ export class ImATeapotException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 418.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 418.
|
||||
* - `message`: the string `"I'm a Teapot"` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = `I'm a teapot`) {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = `I'm a teapot`,
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.I_AM_A_TEAPOT,
|
||||
),
|
||||
HttpStatus.I_AM_A_TEAPOT,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Internal Server Error* type errors.
|
||||
@@ -17,30 +17,30 @@ export class InternalServerErrorException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 500.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 500.
|
||||
* - `message`: the string `'Internal Server Error'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Internal Server Error',
|
||||
description = 'Internal Server Error',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
),
|
||||
HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Method Not Allowed* type errors.
|
||||
@@ -17,30 +17,30 @@ export class MethodNotAllowedException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 405.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 405.
|
||||
* - `message`: the string `'Method Not Allowed'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Method Not Allowed',
|
||||
description = 'Method Not Allowed',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.METHOD_NOT_ALLOWED,
|
||||
),
|
||||
HttpStatus.METHOD_NOT_ALLOWED,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Not Acceptable* type errors.
|
||||
@@ -17,8 +17,8 @@ export class NotAcceptableException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 406.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 406.
|
||||
@@ -26,21 +26,21 @@ export class NotAcceptableException extends HttpException {
|
||||
* a string in the `error` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Not Acceptable',
|
||||
description = 'Not Acceptable',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.NOT_ACCEPTABLE,
|
||||
),
|
||||
HttpStatus.NOT_ACCEPTABLE,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Not Found* type errors.
|
||||
@@ -17,25 +17,32 @@ export class NotFoundException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 404.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 404.
|
||||
* - `message`: the string `'Not Found'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Not Found') {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = 'Not Found',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.NOT_FOUND),
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
description,
|
||||
HttpStatus.NOT_FOUND,
|
||||
),
|
||||
HttpStatus.NOT_FOUND,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Not Implemented* type errors.
|
||||
@@ -17,30 +17,30 @@ export class NotImplementedException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 501.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 501.
|
||||
* - `message`: the string `'Not Implemented'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param message string or object describing the error condition.
|
||||
* @param description string or object describing the error condition.
|
||||
* @param error a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Not Implemented',
|
||||
description = 'Not Implemented',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.NOT_IMPLEMENTED,
|
||||
),
|
||||
HttpStatus.NOT_IMPLEMENTED,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Payload Too Large* type errors.
|
||||
@@ -17,30 +17,30 @@ export class PayloadTooLargeException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 413.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 413.
|
||||
* - `message`: the string `'Payload Too Large'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Payload Too Large',
|
||||
description = 'Payload Too Large',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.PAYLOAD_TOO_LARGE,
|
||||
),
|
||||
HttpStatus.PAYLOAD_TOO_LARGE,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Request Timeout* type errors.
|
||||
@@ -17,30 +17,30 @@ export class RequestTimeoutException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 408.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 408.
|
||||
* - `message`: the string `'Request Timeout'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Request Timeout',
|
||||
description = 'Request Timeout',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.REQUEST_TIMEOUT,
|
||||
),
|
||||
HttpStatus.REQUEST_TIMEOUT,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Service Unavailable* type errors.
|
||||
@@ -17,30 +17,30 @@ export class ServiceUnavailableException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 503.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 503.
|
||||
* - `message`: the string `'Service Unavailable'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Service Unavailable',
|
||||
description = 'Service Unavailable',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.SERVICE_UNAVAILABLE,
|
||||
),
|
||||
HttpStatus.SERVICE_UNAVAILABLE,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Unauthorized* type errors.
|
||||
@@ -17,25 +17,32 @@ export class UnauthorizedException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 401.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 401.
|
||||
* - `message`: the string `'Unauthorized'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(objectOrError?: string | object | any, message = 'Unauthorized') {
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
description = 'Unauthorized',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(objectOrError, message, HttpStatus.UNAUTHORIZED),
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
description,
|
||||
HttpStatus.UNAUTHORIZED,
|
||||
),
|
||||
HttpStatus.UNAUTHORIZED,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Unprocessable Entity* type errors.
|
||||
@@ -17,30 +17,30 @@ export class UnprocessableEntityException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 422.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 422.
|
||||
* - `message`: the string `'Unprocessable Entity'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Unprocessable Entity',
|
||||
description = 'Unprocessable Entity',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.UNPROCESSABLE_ENTITY,
|
||||
),
|
||||
HttpStatus.UNPROCESSABLE_ENTITY,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpException } from './http.exception';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { HttpException } from './http.exception';
|
||||
|
||||
/**
|
||||
* Defines an HTTP exception for *Unsupported Media Type* type errors.
|
||||
@@ -17,30 +17,30 @@ export class UnsupportedMediaTypeException extends HttpException {
|
||||
*
|
||||
* @usageNotes
|
||||
* The HTTP response status code will be 415.
|
||||
* - The `objectOrError` argument defines the JSON response body or the error string.
|
||||
* - The `message` argument contains a short description of the HTTP error.
|
||||
* - The `objectOrError` argument defines the JSON response body or the message string.
|
||||
* - The `description` argument contains a short description of the HTTP error.
|
||||
*
|
||||
* By default, the JSON response body contains two properties:
|
||||
* - `statusCode`: this will be the value 415.
|
||||
* - `message`: the string `'Unsupported Media Type'` by default; override this by supplying
|
||||
* a string in the `message` parameter.
|
||||
* a string in the `objectOrError` parameter.
|
||||
*
|
||||
* If the parameter `objectOrError` is a string, the response body will contain an
|
||||
* additional property, `error`, containing the given string. To override the
|
||||
* additional property, `error`, with a short description of the HTTP error. To override the
|
||||
* entire JSON response body, pass an object instead. Nest will serialize the object
|
||||
* and return it as the JSON response body.
|
||||
*
|
||||
* @param objectOrError string or object describing the error condition.
|
||||
* @param message a short description of the HTTP error.
|
||||
* @param description a short description of the HTTP error.
|
||||
*/
|
||||
constructor(
|
||||
objectOrError?: string | object | any,
|
||||
message = 'Unsupported Media Type',
|
||||
description = 'Unsupported Media Type',
|
||||
) {
|
||||
super(
|
||||
HttpException.createBody(
|
||||
objectOrError,
|
||||
message,
|
||||
description,
|
||||
HttpStatus.UNSUPPORTED_MEDIA_TYPE,
|
||||
),
|
||||
HttpStatus.UNSUPPORTED_MEDIA_TYPE,
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import {
|
||||
ArgumentMetadata,
|
||||
BadRequestException,
|
||||
Injectable,
|
||||
Optional,
|
||||
} from '../index';
|
||||
import { ArgumentMetadata, HttpStatus, Injectable, Optional } from '../index';
|
||||
import { Type } from '../interfaces';
|
||||
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
||||
import { HttpErrorByCode } from '../utils/http-error-by-code.util';
|
||||
import { isNil, isString } from '../utils/shared.utils';
|
||||
import { ValidationPipe, ValidationPipeOptions } from './validation.pipe';
|
||||
|
||||
@@ -42,9 +38,13 @@ export class ParseArrayPipe implements PipeTransform {
|
||||
...options,
|
||||
});
|
||||
|
||||
const { exceptionFactory } = options;
|
||||
const {
|
||||
exceptionFactory,
|
||||
errorHttpStatusCode = HttpStatus.BAD_REQUEST,
|
||||
} = options;
|
||||
this.exceptionFactory =
|
||||
exceptionFactory || (error => new BadRequestException(error));
|
||||
exceptionFactory ||
|
||||
(error => new HttpErrorByCode[errorHttpStatusCode](error));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
import { BadRequestException } from '../exceptions/bad-request.exception';
|
||||
import { ArgumentMetadata, Injectable, Optional } from '../index';
|
||||
import { ArgumentMetadata, HttpStatus, Injectable, Optional } from '../index';
|
||||
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
||||
import {
|
||||
ErrorHttpStatusCode,
|
||||
HttpErrorByCode,
|
||||
} from '../utils/http-error-by-code.util';
|
||||
|
||||
export interface ParseBoolPipeOptions {
|
||||
errorHttpStatusCode?: ErrorHttpStatusCode;
|
||||
exceptionFactory?: (error: string) => any;
|
||||
}
|
||||
|
||||
@@ -20,9 +24,13 @@ export class ParseBoolPipe
|
||||
|
||||
constructor(@Optional() options?: ParseBoolPipeOptions) {
|
||||
options = options || {};
|
||||
const { exceptionFactory } = options;
|
||||
const {
|
||||
exceptionFactory,
|
||||
errorHttpStatusCode = HttpStatus.BAD_REQUEST,
|
||||
} = options;
|
||||
this.exceptionFactory =
|
||||
exceptionFactory || (error => new BadRequestException(error));
|
||||
exceptionFactory ||
|
||||
(error => new HttpErrorByCode[errorHttpStatusCode](error));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
import { BadRequestException } from '../exceptions/bad-request.exception';
|
||||
import { ArgumentMetadata, HttpStatus, Injectable, Optional } from '../index';
|
||||
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
||||
import { ArgumentMetadata, Injectable, Optional } from '../index';
|
||||
import {
|
||||
ErrorHttpStatusCode,
|
||||
HttpErrorByCode,
|
||||
} from '../utils/http-error-by-code.util';
|
||||
|
||||
export interface ParseIntPipeOptions {
|
||||
errorHttpStatusCode?: ErrorHttpStatusCode;
|
||||
exceptionFactory?: (error: string) => any;
|
||||
}
|
||||
|
||||
@@ -19,9 +23,14 @@ export class ParseIntPipe implements PipeTransform<string> {
|
||||
|
||||
constructor(@Optional() options?: ParseIntPipeOptions) {
|
||||
options = options || {};
|
||||
const { exceptionFactory } = options;
|
||||
const {
|
||||
exceptionFactory,
|
||||
errorHttpStatusCode = HttpStatus.BAD_REQUEST,
|
||||
} = options;
|
||||
|
||||
this.exceptionFactory =
|
||||
exceptionFactory || (error => new BadRequestException(error));
|
||||
exceptionFactory ||
|
||||
(error => new HttpErrorByCode[errorHttpStatusCode](error));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { Optional } from '../decorators';
|
||||
import { ArgumentMetadata, BadRequestException, Injectable } from '../index';
|
||||
import { ArgumentMetadata, HttpStatus, Injectable } from '../index';
|
||||
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
||||
import {
|
||||
ErrorHttpStatusCode,
|
||||
HttpErrorByCode,
|
||||
} from '../utils/http-error-by-code.util';
|
||||
import { isUUID } from '../utils/is-uuid';
|
||||
|
||||
export interface ParseUUIDPipeOptions {
|
||||
version?: '3' | '4' | '5';
|
||||
errorHttpStatusCode?: ErrorHttpStatusCode;
|
||||
exceptionFactory?: (errors: string) => any;
|
||||
}
|
||||
|
||||
@@ -15,10 +20,16 @@ export class ParseUUIDPipe implements PipeTransform<string> {
|
||||
|
||||
constructor(@Optional() options?: ParseUUIDPipeOptions) {
|
||||
options = options || {};
|
||||
const {
|
||||
exceptionFactory,
|
||||
errorHttpStatusCode = HttpStatus.BAD_REQUEST,
|
||||
version,
|
||||
} = options;
|
||||
|
||||
this.version = options.version;
|
||||
this.version = version;
|
||||
this.exceptionFactory =
|
||||
options.exceptionFactory || (error => new BadRequestException(error));
|
||||
exceptionFactory ||
|
||||
(error => new HttpErrorByCode[errorHttpStatusCode](error));
|
||||
}
|
||||
async transform(value: string, metadata: ArgumentMetadata): Promise<string> {
|
||||
if (!isUUID(value, this.version)) {
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import iterate from 'iterare';
|
||||
import { Optional } from '../decorators';
|
||||
import { Injectable } from '../decorators/core';
|
||||
import {
|
||||
ArgumentMetadata,
|
||||
BadRequestException,
|
||||
ValidationError,
|
||||
} from '../index';
|
||||
import { HttpStatus } from '../enums/http-status.enum';
|
||||
import { ArgumentMetadata, ValidationError } from '../index';
|
||||
import { ClassTransformOptions } from '../interfaces/external/class-transform-options.interface';
|
||||
import { ValidatorOptions } from '../interfaces/external/validator-options.interface';
|
||||
import { PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
||||
import {
|
||||
ErrorHttpStatusCode,
|
||||
HttpErrorByCode,
|
||||
} from '../utils/http-error-by-code.util';
|
||||
import { loadPackage } from '../utils/load-package.util';
|
||||
import { isNil } from '../utils/shared.utils';
|
||||
|
||||
@@ -16,6 +17,7 @@ export interface ValidationPipeOptions extends ValidatorOptions {
|
||||
transform?: boolean;
|
||||
disableErrorMessages?: boolean;
|
||||
transformOptions?: ClassTransformOptions;
|
||||
errorHttpStatusCode?: ErrorHttpStatusCode;
|
||||
exceptionFactory?: (errors: ValidationError[]) => any;
|
||||
validateCustomDecorators?: boolean;
|
||||
}
|
||||
@@ -29,6 +31,7 @@ export class ValidationPipe implements PipeTransform<any> {
|
||||
protected isDetailedOutputDisabled?: boolean;
|
||||
protected validatorOptions: ValidatorOptions;
|
||||
protected transformOptions: ClassTransformOptions;
|
||||
protected errorHttpStatusCode: ErrorHttpStatusCode;
|
||||
protected exceptionFactory: (errors: ValidationError[]) => any;
|
||||
protected validateCustomDecorators: boolean;
|
||||
|
||||
@@ -37,15 +40,18 @@ export class ValidationPipe implements PipeTransform<any> {
|
||||
const {
|
||||
transform,
|
||||
disableErrorMessages,
|
||||
errorHttpStatusCode,
|
||||
transformOptions,
|
||||
validateCustomDecorators,
|
||||
...validatorOptions
|
||||
} = options;
|
||||
|
||||
this.isTransformEnabled = !!transform;
|
||||
this.validatorOptions = validatorOptions;
|
||||
this.transformOptions = transformOptions;
|
||||
this.isDetailedOutputDisabled = disableErrorMessages;
|
||||
this.validateCustomDecorators = validateCustomDecorators || false;
|
||||
this.errorHttpStatusCode = errorHttpStatusCode || HttpStatus.BAD_REQUEST;
|
||||
this.exceptionFactory =
|
||||
options.exceptionFactory || this.createExceptionFactory();
|
||||
|
||||
@@ -112,7 +118,7 @@ export class ValidationPipe implements PipeTransform<any> {
|
||||
public createExceptionFactory() {
|
||||
return (validationErrors: ValidationError[] = []) => {
|
||||
if (this.isDetailedOutputDisabled) {
|
||||
return new BadRequestException();
|
||||
return new HttpErrorByCode[this.errorHttpStatusCode]();
|
||||
}
|
||||
const errors = iterate(validationErrors)
|
||||
.filter(item => !!item.constraints)
|
||||
@@ -120,7 +126,7 @@ export class ValidationPipe implements PipeTransform<any> {
|
||||
.flatten()
|
||||
.toArray();
|
||||
|
||||
return new BadRequestException(errors);
|
||||
return new HttpErrorByCode[this.errorHttpStatusCode](errors);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ import { expect } from 'chai';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import { Exclude, Expose } from 'class-transformer';
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
import { HttpStatus } from '../../enums';
|
||||
import { UnprocessableEntityException } from '../../exceptions';
|
||||
import { ArgumentMetadata } from '../../interfaces';
|
||||
import { ValidationPipe } from '../../pipes/validation.pipe';
|
||||
chai.use(chaiAsPromised);
|
||||
@@ -332,4 +334,22 @@ describe('ValidationPipe', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('option: "errorHttpStatusCode"', () => {
|
||||
describe('when validation fails', () => {
|
||||
beforeEach(() => {
|
||||
target = new ValidationPipe({
|
||||
errorHttpStatusCode: HttpStatus.UNPROCESSABLE_ENTITY,
|
||||
});
|
||||
});
|
||||
it('should throw an error', async () => {
|
||||
const testObj = { prop1: 'value1' };
|
||||
try {
|
||||
await target.transform(testObj, metadata);
|
||||
} catch (err) {
|
||||
expect(err).to.be.instanceOf(UnprocessableEntityException);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
63
packages/common/utils/http-error-by-code.util.ts
Normal file
63
packages/common/utils/http-error-by-code.util.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import { HttpStatus } from '../enums';
|
||||
import {
|
||||
BadGatewayException,
|
||||
BadRequestException,
|
||||
ConflictException,
|
||||
ForbiddenException,
|
||||
GatewayTimeoutException,
|
||||
GoneException,
|
||||
ImATeapotException,
|
||||
InternalServerErrorException,
|
||||
MethodNotAllowedException,
|
||||
NotAcceptableException,
|
||||
NotFoundException,
|
||||
NotImplementedException,
|
||||
PayloadTooLargeException,
|
||||
RequestTimeoutException,
|
||||
ServiceUnavailableException,
|
||||
UnauthorizedException,
|
||||
UnprocessableEntityException,
|
||||
UnsupportedMediaTypeException,
|
||||
} from '../exceptions';
|
||||
import { Type } from '../interfaces';
|
||||
|
||||
export type ErrorHttpStatusCode =
|
||||
| HttpStatus.BAD_GATEWAY
|
||||
| HttpStatus.BAD_REQUEST
|
||||
| HttpStatus.CONFLICT
|
||||
| HttpStatus.FORBIDDEN
|
||||
| HttpStatus.GATEWAY_TIMEOUT
|
||||
| HttpStatus.GONE
|
||||
| HttpStatus.I_AM_A_TEAPOT
|
||||
| HttpStatus.INTERNAL_SERVER_ERROR
|
||||
| HttpStatus.METHOD_NOT_ALLOWED
|
||||
| HttpStatus.NOT_ACCEPTABLE
|
||||
| HttpStatus.NOT_FOUND
|
||||
| HttpStatus.NOT_IMPLEMENTED
|
||||
| HttpStatus.PAYLOAD_TOO_LARGE
|
||||
| HttpStatus.REQUEST_TIMEOUT
|
||||
| HttpStatus.SERVICE_UNAVAILABLE
|
||||
| HttpStatus.UNAUTHORIZED
|
||||
| HttpStatus.UNPROCESSABLE_ENTITY
|
||||
| HttpStatus.UNSUPPORTED_MEDIA_TYPE;
|
||||
|
||||
export const HttpErrorByCode: Record<ErrorHttpStatusCode, Type<unknown>> = {
|
||||
[HttpStatus.BAD_GATEWAY]: BadGatewayException,
|
||||
[HttpStatus.BAD_REQUEST]: BadRequestException,
|
||||
[HttpStatus.CONFLICT]: ConflictException,
|
||||
[HttpStatus.FORBIDDEN]: ForbiddenException,
|
||||
[HttpStatus.GATEWAY_TIMEOUT]: GatewayTimeoutException,
|
||||
[HttpStatus.GONE]: GoneException,
|
||||
[HttpStatus.I_AM_A_TEAPOT]: ImATeapotException,
|
||||
[HttpStatus.INTERNAL_SERVER_ERROR]: InternalServerErrorException,
|
||||
[HttpStatus.METHOD_NOT_ALLOWED]: MethodNotAllowedException,
|
||||
[HttpStatus.NOT_ACCEPTABLE]: NotAcceptableException,
|
||||
[HttpStatus.NOT_FOUND]: NotFoundException,
|
||||
[HttpStatus.NOT_IMPLEMENTED]: NotImplementedException,
|
||||
[HttpStatus.PAYLOAD_TOO_LARGE]: PayloadTooLargeException,
|
||||
[HttpStatus.REQUEST_TIMEOUT]: RequestTimeoutException,
|
||||
[HttpStatus.SERVICE_UNAVAILABLE]: ServiceUnavailableException,
|
||||
[HttpStatus.UNAUTHORIZED]: UnauthorizedException,
|
||||
[HttpStatus.UNPROCESSABLE_ENTITY]: UnprocessableEntityException,
|
||||
[HttpStatus.UNSUPPORTED_MEDIA_TYPE]: UnsupportedMediaTypeException,
|
||||
};
|
||||
@@ -3,8 +3,9 @@ import { RuntimeException } from './runtime.exception';
|
||||
export class UnknownElementException extends RuntimeException {
|
||||
constructor(name?: string) {
|
||||
super(
|
||||
`Nest could not find ${name ||
|
||||
'given'} element (this provider does not exist in the current context)`,
|
||||
`Nest could not find ${
|
||||
name || 'given'
|
||||
} element (this provider does not exist in the current context)`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,8 +109,9 @@ export const INVALID_CLASS_SCOPE_MESSAGE = (
|
||||
text: TemplateStringsArray,
|
||||
name: string | undefined,
|
||||
) =>
|
||||
`${name ||
|
||||
'This class'} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`;
|
||||
`${
|
||||
name || 'This class'
|
||||
} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`;
|
||||
|
||||
export const INVALID_MIDDLEWARE_CONFIGURATION = `An invalid middleware configuration has been passed inside the module 'configure()' method.`;
|
||||
export const UNKNOWN_REQUEST_MAPPING = `An invalid controller has been detected. Perhaps, one of your controllers is missing @Controller() decorator.`;
|
||||
|
||||
@@ -178,7 +178,11 @@ export class ExternalContextCreator {
|
||||
return this.transformToResult(result);
|
||||
};
|
||||
return options.filters
|
||||
? this.externalErrorProxy.createProxy(target, exceptionFilter)
|
||||
? this.externalErrorProxy.createProxy(
|
||||
target,
|
||||
exceptionFilter,
|
||||
contextType,
|
||||
)
|
||||
: target;
|
||||
}
|
||||
|
||||
|
||||
@@ -138,12 +138,7 @@ export class NestApplicationContext implements INestApplicationContext {
|
||||
}
|
||||
|
||||
signals = signals
|
||||
.map((signal: string) =>
|
||||
signal
|
||||
.toString()
|
||||
.toUpperCase()
|
||||
.trim(),
|
||||
)
|
||||
.map((signal: string) => signal.toString().toUpperCase().trim())
|
||||
// filter out the signals which is already listening to
|
||||
.filter(signal => !this.activeShutdownSignals.includes(signal));
|
||||
|
||||
|
||||
@@ -313,7 +313,9 @@ export class DependenciesScanner {
|
||||
if (!providersKeys.includes(type as string)) {
|
||||
return this.container.addProvider(provider as any, token);
|
||||
}
|
||||
const providerToken = `${type as string} (UUID: ${randomStringGenerator()})`;
|
||||
const providerToken = `${
|
||||
type as string
|
||||
} (UUID: ${randomStringGenerator()})`;
|
||||
|
||||
let scope = (provider as ClassProvider | FactoryProvider).scope;
|
||||
if (isNil(scope) && (provider as ClassProvider).useClass) {
|
||||
|
||||
@@ -240,9 +240,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
|
||||
call.on('data', (m: any) => req.next(m));
|
||||
call.on('error', (e: any) => {
|
||||
// Check if error means that stream ended on other end
|
||||
const isCancelledError = String(e)
|
||||
.toLowerCase()
|
||||
.indexOf('cancelled');
|
||||
const isCancelledError = String(e).toLowerCase().indexOf('cancelled');
|
||||
|
||||
if (isCancelledError) {
|
||||
call.end();
|
||||
|
||||
@@ -16,7 +16,7 @@ class TestClientProxy extends ClientProxy {
|
||||
public async close() {}
|
||||
}
|
||||
|
||||
describe('ClientProxy', function() {
|
||||
describe('ClientProxy', function () {
|
||||
this.retries(10);
|
||||
|
||||
let client: TestClientProxy;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { empty } from 'rxjs';
|
||||
import * as sinon from 'sinon';
|
||||
import { ClientRMQ } from '../../client/client-rmq';
|
||||
|
||||
describe('ClientRMQ', function() {
|
||||
describe('ClientRMQ', function () {
|
||||
this.retries(10);
|
||||
|
||||
let client: ClientRMQ;
|
||||
|
||||
@@ -23,12 +23,9 @@ describe('Cats', () => {
|
||||
});
|
||||
|
||||
it(`/GET cats`, () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/cats')
|
||||
.expect(200)
|
||||
.expect({
|
||||
data: catsService.findAll(),
|
||||
});
|
||||
return request(app.getHttpServer()).get('/cats').expect(200).expect({
|
||||
data: catsService.findAll(),
|
||||
});
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
2118
sample/01-cats-app/package-lock.json
generated
2118
sample/01-cats-app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "jest --config ./e2e/jest-e2e.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -31,22 +31,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/jest": "25.1.4",
|
||||
"@types/node": "10.17.3",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
},
|
||||
|
||||
1572
sample/02-gateways/package-lock.json
generated
1572
sample/02-gateways/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,11 +19,11 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/platform-socket.io": "7.0.3",
|
||||
"@nestjs/websockets": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/platform-socket.io": "7.0.5",
|
||||
"@nestjs/websockets": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -37,21 +37,21 @@
|
||||
"@types/ws": "7.2.3",
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "7.10.9",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1607
sample/03-microservices/package-lock.json
generated
1607
sample/03-microservices/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,10 +19,10 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/microservices": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/microservices": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -32,22 +32,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/amqplib": "0.5.13",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1264
sample/04-grpc/package-lock.json
generated
1264
sample/04-grpc/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -20,9 +20,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@grpc/proto-loader": "0.5.3",
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/microservices": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/microservices": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"grpc": "1.24.2",
|
||||
@@ -33,22 +33,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "10.17.3",
|
||||
"@types/supertest": "2.0.8",
|
||||
"@types/ws": "7.2.3",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1226
sample/05-sql-typeorm/package-lock.json
generated
1226
sample/05-sql-typeorm/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/typeorm": "7.0.0",
|
||||
"mysql": "2.18.1",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -32,22 +32,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "7.10.9",
|
||||
"@types/supertest": "2.0.8",
|
||||
"@types/ws": "7.2.3",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1616
sample/06-mongoose/package-lock.json
generated
1616
sample/06-mongoose/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,11 +19,11 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/mongoose": "6.4.0",
|
||||
"mongoose": "5.9.5",
|
||||
"mongoose": "5.9.6",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"rimraf": "3.0.2",
|
||||
"rxjs": "6.5.4"
|
||||
@@ -32,22 +32,22 @@
|
||||
"@types/mongoose": "5.7.7",
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"@types/ws": "7.2.3",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1610
sample/07-sequelize/package-lock.json
generated
1610
sample/07-sequelize/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/sequelize": "0.1.0",
|
||||
"mysql2": "2.1.0",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -35,22 +35,22 @@
|
||||
"@types/sequelize": "4.28.8",
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"@types/ws": "7.2.3",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
362
sample/08-webpack/package-lock.json
generated
362
sample/08-webpack/package-lock.json
generated
@@ -25,9 +25,9 @@
|
||||
}
|
||||
},
|
||||
"@nestjs/common": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-7.0.3.tgz",
|
||||
"integrity": "sha512-ENfgocjBC8aWAvvjjCq/JFN94CIVX4FrXr12r66UEcw/GtCW/qAc/BVWGX//7MRtk95me82hBEQQx2kovL91bA==",
|
||||
"version": "7.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-7.0.5.tgz",
|
||||
"integrity": "sha512-9h7FDyg3rSjztTe9mLhvdIeGpqoNf2uwpJIeyizRcQFAdQfJWiPsV2mRkt/VYdit+nrv6C1ADtvQD47qqUuj6A==",
|
||||
"requires": {
|
||||
"axios": "0.19.2",
|
||||
"cli-color": "2.0.0",
|
||||
@@ -43,9 +43,9 @@
|
||||
}
|
||||
},
|
||||
"@nestjs/core": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/core/-/core-7.0.3.tgz",
|
||||
"integrity": "sha512-uIIcM+a2IoV2aqHHMtnDGOy81CMNNNm3xpJIFLjS74OqCGpE4skqiFIZRsB1cIeip1EtVh7IzU0xXo0JrIZEQA==",
|
||||
"version": "7.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/core/-/core-7.0.5.tgz",
|
||||
"integrity": "sha512-imIkdGOeraURKLGAGB5UT/9Lz5Hvujn6wJ0ONEXb7MvbmkbmIe1K4Mj8hngQc9/PXMssslVE7tbFLNsiG2Rubg==",
|
||||
"requires": {
|
||||
"@nuxtjs/opencollective": "0.2.2",
|
||||
"fast-safe-stringify": "2.0.7",
|
||||
@@ -64,9 +64,9 @@
|
||||
}
|
||||
},
|
||||
"@nestjs/platform-express": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-7.0.3.tgz",
|
||||
"integrity": "sha512-epWK3NcywQclcWF/JrCdq4H1PH7v2h/HVOH2GtYEoKLr5Y4KrTcgaeyZfIzh6t+Vm8w8/N4Jqk2mIUltGtu2ug==",
|
||||
"version": "7.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-7.0.5.tgz",
|
||||
"integrity": "sha512-8o6+mTuIuOMJTwftS9y/bcFmnyp5uQMMZWSE7tjxdtPuQiZl7v0P00NdsUeBpwUmATJax07KH1zuSrcok57+KA==",
|
||||
"requires": {
|
||||
"body-parser": "1.19.0",
|
||||
"cors": "2.8.5",
|
||||
@@ -105,33 +105,33 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "12.12.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.21.tgz",
|
||||
"integrity": "sha512-8sRGhbpU+ck1n0PGAUgVrWrWdjSW2aqNeyC15W88GRsMpSwzv6RJGlLhE7s2RhVSOdyDmxbqlWSeThq4/7xqlA==",
|
||||
"version": "12.12.31",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.31.tgz",
|
||||
"integrity": "sha512-T+wnJno8uh27G9c+1T+a1/WYCHzLeDqtsGJkoEdSp2X8RTh3oOCZQcUnjAx90CS8cmmADX51O0FI/tu9s0yssg==",
|
||||
"dev": true
|
||||
},
|
||||
"@typescript-eslint/eslint-plugin": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.23.0.tgz",
|
||||
"integrity": "sha512-8iA4FvRsz8qTjR0L/nK9RcRUN3QtIHQiOm69FzV7WS3SE+7P7DyGGwh3k4UNR2JBbk+Ej2Io+jLAaqKibNhmtw==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.25.0.tgz",
|
||||
"integrity": "sha512-W2YyMtjmlrOjtXc+FtTelVs9OhuR6OlYc4XKIslJ8PUJOqgYYAPRJhAqkYRQo3G4sjvG8jSodsNycEn4W2gHUw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@typescript-eslint/experimental-utils": "2.23.0",
|
||||
"eslint-utils": "^1.4.3",
|
||||
"@typescript-eslint/experimental-utils": "2.25.0",
|
||||
"functional-red-black-tree": "^1.0.1",
|
||||
"regexpp": "^3.0.0",
|
||||
"tsutils": "^3.17.1"
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/experimental-utils": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.23.0.tgz",
|
||||
"integrity": "sha512-OswxY59RcXH3NNPmq+4Kis2CYZPurRU6mG5xPcn24CjFyfdVli5mySwZz/g/xDbJXgDsYqNGq7enV0IziWGXVQ==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.25.0.tgz",
|
||||
"integrity": "sha512-0IZ4ZR5QkFYbaJk+8eJ2kYeA+1tzOE1sBjbwwtSV85oNWYUBep+EyhlZ7DLUCyhMUGuJpcCCFL0fDtYAP1zMZw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/json-schema": "^7.0.3",
|
||||
"@typescript-eslint/typescript-estree": "2.23.0",
|
||||
"eslint-scope": "^5.0.0"
|
||||
"@typescript-eslint/typescript-estree": "2.25.0",
|
||||
"eslint-scope": "^5.0.0",
|
||||
"eslint-utils": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-scope": {
|
||||
@@ -143,25 +143,34 @@
|
||||
"esrecurse": "^4.1.0",
|
||||
"estraverse": "^4.1.1"
|
||||
}
|
||||
},
|
||||
"eslint-utils": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/parser": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.23.0.tgz",
|
||||
"integrity": "sha512-k61pn/Nepk43qa1oLMiyqApC6x5eP5ddPz6VUYXCAuXxbmRLqkPYzkFRKl42ltxzB2luvejlVncrEpflgQoSUg==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.25.0.tgz",
|
||||
"integrity": "sha512-mccBLaBSpNVgp191CP5W+8U1crTyXsRziWliCqzj02kpxdjKMvFHGJbK33NroquH3zB/gZ8H511HEsJBa2fNEg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/eslint-visitor-keys": "^1.0.0",
|
||||
"@typescript-eslint/experimental-utils": "2.23.0",
|
||||
"@typescript-eslint/typescript-estree": "2.23.0",
|
||||
"@typescript-eslint/experimental-utils": "2.25.0",
|
||||
"@typescript-eslint/typescript-estree": "2.25.0",
|
||||
"eslint-visitor-keys": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/typescript-estree": {
|
||||
"version": "2.23.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.23.0.tgz",
|
||||
"integrity": "sha512-pmf7IlmvXdlEXvE/JWNNJpEvwBV59wtJqA8MLAxMKLXNKVRC3HZBXR/SlZLPWTCcwOSg9IM7GeRSV3SIerGVqw==",
|
||||
"version": "2.25.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.25.0.tgz",
|
||||
"integrity": "sha512-VUksmx5lDxSi6GfmwSK7SSoIKSw9anukWWNitQPqt58LuYrKalzsgeuignbqnB+rK/xxGlSsCy8lYnwFfB6YJg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "^4.1.1",
|
||||
@@ -211,178 +220,177 @@
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/ast": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz",
|
||||
"integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
|
||||
"integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/helper-module-context": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/wast-parser": "1.8.5"
|
||||
"@webassemblyjs/helper-module-context": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.9.0",
|
||||
"@webassemblyjs/wast-parser": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/floating-point-hex-parser": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz",
|
||||
"integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-api-error": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz",
|
||||
"integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz",
|
||||
"integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-buffer": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz",
|
||||
"integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz",
|
||||
"integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-code-frame": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz",
|
||||
"integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz",
|
||||
"integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/wast-printer": "1.8.5"
|
||||
"@webassemblyjs/wast-printer": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/helper-fsm": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz",
|
||||
"integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz",
|
||||
"integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-module-context": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz",
|
||||
"integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz",
|
||||
"integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"mamacro": "^0.0.3"
|
||||
"@webassemblyjs/ast": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/helper-wasm-bytecode": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz",
|
||||
"integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz",
|
||||
"integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-wasm-section": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz",
|
||||
"integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz",
|
||||
"integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5"
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-buffer": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.9.0",
|
||||
"@webassemblyjs/wasm-gen": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/ieee754": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz",
|
||||
"integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz",
|
||||
"integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@xtuc/ieee754": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/leb128": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz",
|
||||
"integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz",
|
||||
"integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/utf8": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz",
|
||||
"integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz",
|
||||
"integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/wasm-edit": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz",
|
||||
"integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz",
|
||||
"integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-section": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5",
|
||||
"@webassemblyjs/wasm-opt": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5",
|
||||
"@webassemblyjs/wast-printer": "1.8.5"
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-buffer": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-section": "1.9.0",
|
||||
"@webassemblyjs/wasm-gen": "1.9.0",
|
||||
"@webassemblyjs/wasm-opt": "1.9.0",
|
||||
"@webassemblyjs/wasm-parser": "1.9.0",
|
||||
"@webassemblyjs/wast-printer": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-gen": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz",
|
||||
"integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz",
|
||||
"integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/ieee754": "1.8.5",
|
||||
"@webassemblyjs/leb128": "1.8.5",
|
||||
"@webassemblyjs/utf8": "1.8.5"
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.9.0",
|
||||
"@webassemblyjs/ieee754": "1.9.0",
|
||||
"@webassemblyjs/leb128": "1.9.0",
|
||||
"@webassemblyjs/utf8": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-opt": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz",
|
||||
"integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz",
|
||||
"integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5"
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-buffer": "1.9.0",
|
||||
"@webassemblyjs/wasm-gen": "1.9.0",
|
||||
"@webassemblyjs/wasm-parser": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-parser": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz",
|
||||
"integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-api-error": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/ieee754": "1.8.5",
|
||||
"@webassemblyjs/leb128": "1.8.5",
|
||||
"@webassemblyjs/utf8": "1.8.5"
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-api-error": "1.9.0",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.9.0",
|
||||
"@webassemblyjs/ieee754": "1.9.0",
|
||||
"@webassemblyjs/leb128": "1.9.0",
|
||||
"@webassemblyjs/utf8": "1.9.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wast-parser": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz",
|
||||
"integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/floating-point-hex-parser": "1.8.5",
|
||||
"@webassemblyjs/helper-api-error": "1.8.5",
|
||||
"@webassemblyjs/helper-code-frame": "1.8.5",
|
||||
"@webassemblyjs/helper-fsm": "1.8.5",
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/floating-point-hex-parser": "1.9.0",
|
||||
"@webassemblyjs/helper-api-error": "1.9.0",
|
||||
"@webassemblyjs/helper-code-frame": "1.9.0",
|
||||
"@webassemblyjs/helper-fsm": "1.9.0",
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wast-printer": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz",
|
||||
"integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==",
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz",
|
||||
"integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/wast-parser": "1.8.5",
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/wast-parser": "1.9.0",
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
@@ -408,9 +416,9 @@
|
||||
}
|
||||
},
|
||||
"acorn": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.0.tgz",
|
||||
"integrity": "sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
|
||||
"integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==",
|
||||
"dev": true
|
||||
},
|
||||
"acorn-jsx": {
|
||||
@@ -927,9 +935,9 @@
|
||||
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
|
||||
},
|
||||
"cacache": {
|
||||
"version": "12.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz",
|
||||
"integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==",
|
||||
"version": "12.0.4",
|
||||
"resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz",
|
||||
"integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bluebird": "^3.5.5",
|
||||
@@ -1804,9 +1812,9 @@
|
||||
}
|
||||
},
|
||||
"eslint-config-prettier": {
|
||||
"version": "6.10.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.10.0.tgz",
|
||||
"integrity": "sha512-AtndijGte1rPILInUdHjvKEGbIV06NuvPrqlIEaEaWtbtvJh464mDeyGMdZEQMsGvC0ZVkiex1fSNcC4HAbRGg==",
|
||||
"version": "6.10.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.10.1.tgz",
|
||||
"integrity": "sha512-svTy6zh1ecQojvpbJSgH3aei/Rt7C6i090l5f2WQ4aB05lYHeZIR1qL4wZyyILTbtmnbHP5Yn8MrsOJMGa8RkQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"get-stdin": "^6.0.0"
|
||||
@@ -2592,9 +2600,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "1.2.11",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.11.tgz",
|
||||
"integrity": "sha512-+ux3lx6peh0BpvY0JebGyZoiR4D+oYzdPZMKJwkZ+sFkNJzpL7tXc/wehS49gUAxg3tmMHPHZkA8JU2rhhgDHw==",
|
||||
"version": "1.2.12",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.12.tgz",
|
||||
"integrity": "sha512-Ggd/Ktt7E7I8pxZRbGIs7vwqAPscSESMrCSkx2FtWeqmheJgCo2R74fTsZFCifr0VTPwqRpPv17+6b8Zp7th0Q==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
@@ -2648,7 +2656,7 @@
|
||||
}
|
||||
},
|
||||
"chownr": {
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
@@ -2820,7 +2828,7 @@
|
||||
}
|
||||
},
|
||||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"version": "1.2.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
@@ -2845,12 +2853,12 @@
|
||||
}
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
"minimist": "^1.2.5"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
@@ -2860,7 +2868,7 @@
|
||||
"optional": true
|
||||
},
|
||||
"needle": {
|
||||
"version": "2.4.0",
|
||||
"version": "2.3.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
@@ -2889,7 +2897,7 @@
|
||||
}
|
||||
},
|
||||
"nopt": {
|
||||
"version": "4.0.1",
|
||||
"version": "4.0.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
@@ -2914,13 +2922,14 @@
|
||||
"optional": true
|
||||
},
|
||||
"npm-packlist": {
|
||||
"version": "1.4.7",
|
||||
"version": "1.4.8",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ignore-walk": "^3.0.1",
|
||||
"npm-bundled": "^1.0.1"
|
||||
"npm-bundled": "^1.0.1",
|
||||
"npm-normalize-package-bin": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"npmlog": {
|
||||
@@ -3000,18 +3009,10 @@
|
||||
"ini": "~1.3.0",
|
||||
"minimist": "^1.2.0",
|
||||
"strip-json-comments": "~2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "1.2.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "2.3.6",
|
||||
"version": "2.3.7",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
@@ -3935,12 +3936,6 @@
|
||||
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
||||
"dev": true
|
||||
},
|
||||
"mamacro": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz",
|
||||
"integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==",
|
||||
"dev": true
|
||||
},
|
||||
"map-age-cleaner": {
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz",
|
||||
@@ -4771,9 +4766,9 @@
|
||||
}
|
||||
},
|
||||
"picomatch": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.0.7.tgz",
|
||||
"integrity": "sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA==",
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz",
|
||||
"integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==",
|
||||
"dev": true
|
||||
},
|
||||
"pify": {
|
||||
@@ -5867,9 +5862,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"terser": {
|
||||
"version": "4.6.4",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-4.6.4.tgz",
|
||||
"integrity": "sha512-5fqgBPLgVHZ/fVvqRhhUp9YUiGXhFJ9ZkrZWD9vQtFBR4QIGTnbsb+/kKqSqfgp3WnBwGWAFnedGTtmX1YTn0w==",
|
||||
"version": "4.6.7",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-4.6.7.tgz",
|
||||
"integrity": "sha512-fmr7M1f7DBly5cX2+rFDvmGBAaaZyPrHYK4mMdHEDAdNTqXSZgSOfqsfGq2HqPGT/1V0foZZuCZFx8CHKgAk3g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"commander": "^2.20.0",
|
||||
@@ -6045,9 +6040,9 @@
|
||||
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
|
||||
},
|
||||
"ts-loader": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-6.2.1.tgz",
|
||||
"integrity": "sha512-Dd9FekWuABGgjE1g0TlQJ+4dFUfYGbYcs52/HQObE0ZmUNjQlmLAS7xXsSzy23AMaMwipsx5sNHvoEpT2CZq1g==",
|
||||
"version": "6.2.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-6.2.2.tgz",
|
||||
"integrity": "sha512-HDo5kXZCBml3EUPcc7RlZOV/JGlLHwppTLEHb3SHnr5V7NXD4klMEkrhJe5wgRbaWsSXi+Y1SIBN/K9B6zWGWQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^2.3.0",
|
||||
@@ -6392,15 +6387,15 @@
|
||||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.42.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.0.tgz",
|
||||
"integrity": "sha512-EzJRHvwQyBiYrYqhyjW9AqM90dE4+s1/XtCfn7uWg6cS72zH+2VPFAlsnW0+W0cDi0XRjNKUMoJtpSi50+Ph6w==",
|
||||
"version": "4.42.1",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.1.tgz",
|
||||
"integrity": "sha512-SGfYMigqEfdGchGhFFJ9KyRpQKnipvEvjc1TwrXEPCM6H5Wywu10ka8o3KGrMzSMxMQKt8aCHUFh5DaQ9UmyRg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-module-context": "1.8.5",
|
||||
"@webassemblyjs/wasm-edit": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5",
|
||||
"@webassemblyjs/ast": "1.9.0",
|
||||
"@webassemblyjs/helper-module-context": "1.9.0",
|
||||
"@webassemblyjs/wasm-edit": "1.9.0",
|
||||
"@webassemblyjs/wasm-parser": "1.9.0",
|
||||
"acorn": "^6.2.1",
|
||||
"ajv": "^6.10.2",
|
||||
"ajv-keywords": "^3.4.1",
|
||||
@@ -6412,7 +6407,7 @@
|
||||
"loader-utils": "^1.2.3",
|
||||
"memory-fs": "^0.4.1",
|
||||
"micromatch": "^3.1.10",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mkdirp": "^0.5.3",
|
||||
"neo-async": "^2.6.1",
|
||||
"node-libs-browser": "^2.2.1",
|
||||
"schema-utils": "^1.0.0",
|
||||
@@ -6422,6 +6417,21 @@
|
||||
"webpack-sources": "^1.4.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
||||
"dev": true
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.4",
|
||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz",
|
||||
"integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "^1.2.5"
|
||||
}
|
||||
},
|
||||
"tapable": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz",
|
||||
|
||||
@@ -11,24 +11,24 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"rxjs": "6.5.4",
|
||||
"typescript": "3.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "12.12.21",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@types/node": "12.12.31",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"start-server-webpack-plugin": "2.2.5",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"webpack": "4.42.0",
|
||||
"webpack": "4.42.1",
|
||||
"webpack-cli": "3.3.11",
|
||||
"webpack-node-externals": "1.7.2"
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ const StartServerPlugin = require('start-server-webpack-plugin');
|
||||
module.exports = function(options) {
|
||||
return {
|
||||
...options,
|
||||
entry: ['webpack/hot/poll?100', './src/main.ts'],
|
||||
entry: ['webpack/hot/poll?100', options.entry],
|
||||
watch: true,
|
||||
externals: [
|
||||
nodeExternals({
|
||||
@@ -15,7 +15,7 @@ module.exports = function(options) {
|
||||
plugins: [
|
||||
...options.plugins,
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
new StartServerPlugin({ name: 'main.js' }),
|
||||
new StartServerPlugin({ name: options.output.filename }),
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
1025
sample/09-babel-example/package-lock.json
generated
1025
sample/09-babel-example/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,11 +13,11 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/microservices": "7.0.3",
|
||||
"@nestjs/websockets": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/microservices": "7.0.5",
|
||||
"@nestjs/websockets": "7.0.5",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"rxjs": "6.5.4"
|
||||
},
|
||||
@@ -30,10 +30,10 @@
|
||||
"@babel/preset-env": "7.9.0",
|
||||
"@babel/register": "7.9.0",
|
||||
"@babel/runtime": "7.9.2",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"jest": "25.1.0",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"jest": "25.2.0",
|
||||
"nodemon": "2.0.2",
|
||||
"prettier": "2.0.1",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
1646
sample/10-fastify/package-lock.json
generated
1646
sample/10-fastify/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-fastify": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-fastify": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -31,22 +31,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"@types/ws": "7.2.3",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1574
sample/11-swagger/package-lock.json
generated
1574
sample/11-swagger/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/swagger": "4.4.0",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
@@ -33,21 +33,21 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "10.17.3",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1627
sample/12-graphql-schema-first/package-lock.json
generated
1627
sample/12-graphql-schema-first/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,10 +19,10 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/graphql": "7.0.12",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/graphql": "7.0.15",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"apollo-server": "2.11.0",
|
||||
"apollo-server-express": "2.11.0",
|
||||
"class-transformer": "0.2.3",
|
||||
@@ -36,21 +36,21 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { defaultFieldResolver, GraphQLField } from 'graphql';
|
||||
export class UpperCaseDirective extends SchemaDirectiveVisitor {
|
||||
visitFieldDefinition(field: GraphQLField<any, any>) {
|
||||
const { resolve = defaultFieldResolver } = field;
|
||||
field.resolve = async function(...args) {
|
||||
field.resolve = async function (...args) {
|
||||
const result = await resolve.apply(this, args);
|
||||
if (typeof result === 'string') {
|
||||
return result.toUpperCase();
|
||||
|
||||
1235
sample/13-mongo-typeorm/package-lock.json
generated
1235
sample/13-mongo-typeorm/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/typeorm": "7.0.0",
|
||||
"mongodb": "3.5.5",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -32,21 +32,21 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1584
sample/14-mongoose-base/package-lock.json
generated
1584
sample/14-mongoose-base/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,10 +19,10 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"mongoose": "5.9.5",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"mongoose": "5.9.6",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"rimraf": "3.0.2",
|
||||
"rxjs": "6.5.4"
|
||||
@@ -30,21 +30,21 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "7.10.9",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1436
sample/15-mvc/package-lock.json
generated
1436
sample/15-mvc/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"hbs": "4.1.0",
|
||||
"pug": "2.0.4",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -31,21 +31,21 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "8.10.58",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1607
sample/16-gateways-ws/package-lock.json
generated
1607
sample/16-gateways-ws/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,11 +19,11 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/platform-ws": "7.0.3",
|
||||
"@nestjs/websockets": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"@nestjs/platform-ws": "7.0.5",
|
||||
"@nestjs/websockets": "7.0.5",
|
||||
"class-transformer": "0.2.3",
|
||||
"class-validator": "0.11.1",
|
||||
"rimraf": "3.0.2",
|
||||
@@ -35,21 +35,21 @@
|
||||
"@types/ws": "7.2.3",
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1657
sample/17-mvc-fastify/package-lock.json
generated
1657
sample/17-mvc-fastify/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/platform-fastify": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/platform-fastify": "7.0.5",
|
||||
"handlebars": "4.7.3",
|
||||
"point-of-view": "3.7.2",
|
||||
"reflect-metadata": "0.1.13",
|
||||
@@ -34,21 +34,21 @@
|
||||
"@types/ws": "7.2.3",
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/node": "8.10.58",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
1560
sample/18-context/package-lock.json
generated
1560
sample/18-context/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,8 +19,8 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"reflect-metadata": "0.1.13",
|
||||
"rimraf": "3.0.2",
|
||||
"rxjs": "6.5.4"
|
||||
@@ -28,19 +28,19 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
}
|
||||
|
||||
2144
sample/19-auth-jwt/package-lock.json
generated
2144
sample/19-auth-jwt/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -20,11 +20,11 @@
|
||||
"test:e2e": "echo 'No e2e tests implemented yet.'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "7.0.3",
|
||||
"@nestjs/core": "7.0.3",
|
||||
"@nestjs/common": "7.0.5",
|
||||
"@nestjs/core": "7.0.5",
|
||||
"@nestjs/jwt": "7.0.0",
|
||||
"@nestjs/passport": "7.0.0",
|
||||
"@nestjs/platform-express": "7.0.3",
|
||||
"@nestjs/platform-express": "7.0.5",
|
||||
"passport": "0.4.1",
|
||||
"passport-jwt": "4.0.0",
|
||||
"passport-local": "1.0.0",
|
||||
@@ -35,22 +35,22 @@
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "7.0.2",
|
||||
"@nestjs/schematics": "7.0.0",
|
||||
"@nestjs/testing": "7.0.3",
|
||||
"@nestjs/testing": "7.0.5",
|
||||
"@types/express": "4.17.3",
|
||||
"@types/jest": "25.1.4",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/node": "12.12.31",
|
||||
"@types/supertest": "2.0.8",
|
||||
"jest": "25.1.0",
|
||||
"prettier": "2.0.1",
|
||||
"jest": "25.2.0",
|
||||
"prettier": "2.0.2",
|
||||
"supertest": "4.0.2",
|
||||
"ts-jest": "25.2.1",
|
||||
"ts-loader": "6.2.1",
|
||||
"ts-loader": "6.2.2",
|
||||
"ts-node": "8.8.1",
|
||||
"tsconfig-paths": "3.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.23.0",
|
||||
"@typescript-eslint/parser": "2.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
||||
"@typescript-eslint/parser": "2.25.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"eslint-config-prettier": "6.10.1",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"typescript": "3.7.2"
|
||||
},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user