@kaito-http/core 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,6 +96,6 @@ export declare function createServer<Ctx, R extends Router<Ctx, ProcsInit<Ctx>>>
96
96
  code: number;
97
97
  message: string;
98
98
  }>;
99
- log?: (message: string) => unknown | false;
99
+ log?: ((message: string) => unknown) | false;
100
100
  }): import("fastify").FastifyInstance<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance> & PromiseLike<import("fastify").FastifyInstance<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>>;
101
101
  export {};
@@ -202,7 +202,7 @@ function createServer(config) {
202
202
  var _ref2 = _asyncToGenerator(function* (req, res) {
203
203
  var _handler$input$parse, _handler$input;
204
204
 
205
- var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.routerPath);
205
+ var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.url);
206
206
 
207
207
  if (config.log === undefined) {
208
208
  console.log(logMessage);
@@ -202,7 +202,7 @@ function createServer(config) {
202
202
  var _ref2 = _asyncToGenerator(function* (req, res) {
203
203
  var _handler$input$parse, _handler$input;
204
204
 
205
- var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.routerPath);
205
+ var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.url);
206
206
 
207
207
  if (config.log === undefined) {
208
208
  console.log(logMessage);
@@ -194,7 +194,7 @@ function createServer(config) {
194
194
  var _ref2 = _asyncToGenerator(function* (req, res) {
195
195
  var _handler$input$parse, _handler$input;
196
196
 
197
- var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.routerPath);
197
+ var logMessage = "".concat(req.hostname, " ").concat(req.method, " ").concat(req.url);
198
198
 
199
199
  if (config.log === undefined) {
200
200
  console.log(logMessage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaito-http/core",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Functional HTTP Framework for TypeScript",
5
5
  "repository": "https://github.com/kaito-http/kaito",
6
6
  "author": "Alistair Smith <hi@alistair.sh>",