node-honest 0.0.1 → 0.0.7
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HONEST_PIPELINE_CONTROLLER_KEY, HONEST_PIPELINE_HANDLER_KEY } from '../constants';
|
|
2
2
|
import { createErrorResponse } from '../helpers';
|
|
3
3
|
import { NoopLogger } from '../loggers';
|
|
4
|
-
import {} from '../registries';
|
|
5
4
|
import { isObject } from '../utils';
|
|
6
5
|
/**
|
|
7
6
|
* Manager class for handling all component types in the Honest framework.
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { HTTPException } from 'hono/http-exception';
|
|
2
2
|
import { HONEST_PIPELINE_CONTROLLER_KEY, HONEST_PIPELINE_HANDLER_KEY } from '../constants';
|
|
3
3
|
import { NoopLogger } from '../loggers';
|
|
4
|
-
import { ComponentManager } from './component.manager';
|
|
5
|
-
import { HandlerInvoker } from './handler.invoker';
|
|
6
|
-
import { ParameterResolver } from './parameter.resolver';
|
|
7
4
|
/**
|
|
8
5
|
* Executes guard, parameter-resolution, and handler invocation stages.
|
|
9
6
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { VERSION_NEUTRAL } from '../constants';
|
|
2
2
|
import { NoopLogger } from '../loggers';
|
|
3
|
-
import { ComponentManager } from './component.manager';
|
|
4
3
|
import { HandlerInvoker } from './handler.invoker';
|
|
5
4
|
import { ParameterResolver } from './parameter.resolver';
|
|
6
5
|
import { PipelineExecutor } from './pipeline.executor';
|
|
7
|
-
import { RouteRegistry } from '../registries/route.registry';
|
|
8
6
|
import { isNil, isString, normalizePath } from '../utils';
|
|
9
7
|
/**
|
|
10
8
|
* Manager class for handling route registration in the Honest framework.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-honest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "HonestJS - a modern web framework built on top of Hono and support node.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"module": "dist/index.js",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/rx-ted/honest
|
|
15
|
+
"url": "git+https://github.com/rx-ted/node-honest.git"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"clean": "rm -rf dist",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"author": "rx-ted",
|
|
33
33
|
"license": "MIT",
|
|
34
|
-
"homepage": "https://github.com/rx-ted/honest
|
|
34
|
+
"homepage": "https://github.com/rx-ted/node-honest",
|
|
35
35
|
"keywords": [
|
|
36
36
|
"nodejs",
|
|
37
37
|
"deno",
|
package/dist/app.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/app.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Application, Controller, Get, Module, Service } from '.';
|
|
11
|
-
import { serve } from '@hono/node-server';
|
|
12
|
-
let UsersController = class UsersController {
|
|
13
|
-
getUsers() {
|
|
14
|
-
return { users: [] };
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
Get(),
|
|
19
|
-
__metadata("design:type", Function),
|
|
20
|
-
__metadata("design:paramtypes", []),
|
|
21
|
-
__metadata("design:returntype", void 0)
|
|
22
|
-
], UsersController.prototype, "getUsers", null);
|
|
23
|
-
UsersController = __decorate([
|
|
24
|
-
Controller('users')
|
|
25
|
-
], UsersController);
|
|
26
|
-
let AppModule = class AppModule {
|
|
27
|
-
};
|
|
28
|
-
AppModule = __decorate([
|
|
29
|
-
Module({
|
|
30
|
-
controllers: [UsersController]
|
|
31
|
-
})
|
|
32
|
-
], AppModule);
|
|
33
|
-
const { hono } = await Application.create(AppModule);
|
|
34
|
-
serve(hono, (info) => {
|
|
35
|
-
console.log(`Listening on http://localhost:${info.port}`); // Listening on http://localhost:3000
|
|
36
|
-
});
|