yedra 0.9.1 → 0.9.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.
@@ -100,7 +100,7 @@ const listen = (app, port) => {
100
100
  });
101
101
  const context = new ConcreteContext(server);
102
102
  server.listen(port, () => {
103
- console.info(`y listening on localhost:${port}...`);
103
+ console.info(`yedra listening on localhost:${port}...`);
104
104
  });
105
105
  return context;
106
106
  };
@@ -1,3 +1,4 @@
1
+ import { Http, Log } from '../lib';
1
2
  import type { BodyType, Typeof } from '../validation/body';
2
3
  import { type NoneBody } from '../validation/none';
3
4
  import { type ObjectSchema } from '../validation/object';
@@ -5,6 +6,9 @@ import type { Schema } from '../validation/schema';
5
6
  import type { Endpoint } from './app';
6
7
  import { Path } from './path';
7
8
  type ReqObject<Params, Query, Headers, Body> = {
9
+ log: Log;
10
+ http: Http;
11
+ url: string;
8
12
  params: Params;
9
13
  query: Query;
10
14
  headers: Headers;
@@ -67,6 +67,9 @@ class Route {
67
67
  const log = new lib_1.Log();
68
68
  const http = new lib_1.Http(log);
69
69
  const response = yield options.do({
70
+ log,
71
+ http,
72
+ url: req.url,
70
73
  params: parsedParams,
71
74
  query,
72
75
  headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yedra",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "repository": "github:0codekit/yedra",
5
5
  "main": "dist/index.js",
6
6
  "devDependencies": {