chore(): upgrade deps

This commit is contained in:
Kamil Myśliwiec
2021-06-28 13:11:40 +02:00
parent 94382867d9
commit 90655d444b
5 changed files with 833 additions and 1134 deletions

1852
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -59,75 +59,75 @@
"cli-color": "2.0.0",
"cors": "2.8.5",
"express": "4.17.1",
"fast-json-stringify": "2.7.3",
"fast-json-stringify": "2.7.7",
"fast-safe-stringify": "2.0.7",
"iterare": "1.2.1",
"object-hash": "2.1.1",
"object-hash": "2.2.0",
"path-to-regexp": "3.2.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.0.1",
"socket.io": "4.1.1",
"tslib": "2.2.0",
"rxjs": "7.1.0",
"socket.io": "4.1.2",
"tslib": "2.3.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@codechecks/client": "0.1.10",
"@commitlint/cli": "12.1.4",
"@commitlint/config-angular": "12.1.4",
"@grpc/grpc-js": "1.3.1",
"@grpc/proto-loader": "0.6.2",
"@nestjs/graphql": "7.10.6",
"@grpc/grpc-js": "1.3.4",
"@grpc/proto-loader": "0.6.3",
"@nestjs/graphql": "7.11.0",
"@nestjs/mongoose": "7.2.4",
"@nestjs/typeorm": "7.1.5",
"@types/amqplib": "0.5.17",
"@types/amqplib": "0.8.0",
"@types/bytes": "3.1.0",
"@types/cache-manager": "3.4.0",
"@types/chai": "4.2.18",
"@types/chai": "4.2.19",
"@types/chai-as-promised": "7.1.4",
"@types/cors": "2.8.10",
"@types/express": "4.17.12",
"@types/gulp": "4.0.8",
"@types/http-errors": "1.8.0",
"@types/mocha": "8.2.2",
"@types/mongoose": "5.10.5",
"@types/mongoose": "5.11.97",
"@types/node": "15.12.5",
"@types/redis": "2.8.28",
"@types/redis": "2.8.30",
"@types/reflect-metadata": "0.1.0",
"@types/sinon": "10.0.0",
"@types/sinon": "10.0.2",
"@types/socket.io": "3.0.2",
"@types/ws": "7.4.4",
"@typescript-eslint/eslint-plugin": "4.23.0",
"@types/ws": "7.4.5",
"@typescript-eslint/eslint-plugin": "4.28.0",
"@typescript-eslint/parser": "4.28.0",
"amqp-connection-manager": "3.2.2",
"amqplib": "0.7.1",
"apollo-server-express": "2.24.0",
"artillery": "1.7.2",
"amqplib": "0.8.0",
"apollo-server-express": "2.25.2",
"artillery": "1.7.4",
"awesome-typescript-loader": "5.2.1",
"body-parser": "1.19.0",
"bytes": "3.1.0",
"cache-manager": "3.4.3",
"cache-manager-redis-store": "^2.0.0",
"cache-manager": "3.4.4",
"cache-manager-redis-store": "2.0.0",
"chai": "4.3.4",
"chai-as-promised": "7.1.1",
"clang-format": "1.5.0",
"commitlint-circle": "1.0.0",
"concurrently": "6.1.0",
"concurrently": "6.2.0",
"conventional-changelog": "3.1.24",
"core-js": "3.12.1",
"core-js": "3.15.1",
"coveralls": "3.1.0",
"delete-empty": "3.0.0",
"engine.io-client": "5.1.1",
"eslint": "7.26.0",
"engine.io-client": "5.1.2",
"eslint": "7.29.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.23.2",
"eslint-plugin-import": "2.23.4",
"eventsource": "1.1.0",
"fancy-log": "1.3.3",
"fastify": "3.18.0",
"fastify-cors": "6.0.1",
"fastify-formbody": "5.0.0",
"fastify-multipart": "4.0.5",
"fastify-multipart": "4.0.6",
"fastify-static": "4.2.2",
"graphql": "15.5.0",
"graphql": "15.5.1",
"graphql-tools": "7.0.5",
"gulp": "4.0.2",
"gulp-clang-format": "1.0.27",
@@ -145,28 +145,28 @@
"lint-staged": "11.0.0",
"markdown-table": "2.0.0",
"merge-graphql-schemas": "1.7.8",
"middie": "5.2.0",
"mocha": "8.4.0",
"mongoose": "5.12.14",
"mqtt": "4.2.6",
"middie": "5.3.0",
"mocha": "9.0.1",
"mongoose": "5.12.15",
"mqtt": "4.2.8",
"multer": "1.4.2",
"mysql": "2.18.1",
"nats": "2.0.8",
"nodemon": "2.0.7",
"nyc": "15.1.0",
"point-of-view": "4.14.0",
"prettier": "2.3.0",
"point-of-view": "4.15.0",
"prettier": "2.3.2",
"redis": "3.1.2",
"rxjs-compat": "6.6.7",
"sinon": "10.0.0",
"sinon-chai": "3.6.0",
"sinon": "11.1.1",
"sinon-chai": "3.7.0",
"socket.io-client": "4.1.2",
"subscriptions-transport-ws": "0.9.18",
"subscriptions-transport-ws": "0.9.19",
"supertest": "6.1.3",
"ts-morph": "10.1.0",
"ts-node": "9.1.1",
"typeorm": "0.2.32",
"typescript": "4.2.4",
"ts-morph": "11.0.0",
"ts-node": "10.0.0",
"typeorm": "0.2.34",
"typescript": "4.3.4",
"wrk": "1.2.1",
"ws": "7.5.0"
},

View File

@@ -97,7 +97,7 @@ export function isRouteExcluded(
if (
RequestMethod.ALL === method ||
RequestMethod[method] === reqMethod ||
method === -1
(method as number) === -1
) {
return regex.exec(pathname);
}

View File

@@ -120,20 +120,21 @@ data: hello
it('sets headers on destination when it looks like a HTTP Response', callback => {
const sse = new SseStream();
const sink = new Sink((status: number, headers: OutgoingHttpHeaders) => {
expect(headers).to.deep.equal({
'Content-Type': 'text/event-stream',
Connection: 'keep-alive',
'Cache-Control':
'private, no-cache, no-store, must-revalidate, max-age=0, no-transform',
'Transfer-Encoding': 'identity',
Pragma: 'no-cache',
Expire: '0',
'X-Accel-Buffering': 'no',
});
callback();
return sink;
});
const sink = new Sink(
(status: number, headers: string | OutgoingHttpHeaders) => {
expect(headers).to.deep.equal({
'Content-Type': 'text/event-stream',
Connection: 'keep-alive',
'Cache-Control':
'private, no-cache, no-store, must-revalidate, max-age=0, no-transform',
Pragma: 'no-cache',
Expire: '0',
'X-Accel-Buffering': 'no',
});
callback();
return sink;
},
);
sse.pipe(sink);
});

View File

@@ -155,7 +155,7 @@ export class FastifyAdapter<
response.statusCode = statusCode;
return response;
}
return response.code(statusCode);
return (response as FastifyReply).code(statusCode);
}
public render(
@@ -318,7 +318,7 @@ export class FastifyAdapter<
if (
requestMethod === RequestMethod.ALL ||
req.method === RequestMethod[requestMethod] ||
requestMethod === -1
(requestMethod as number) === -1
) {
return callback(req, res, next);
}