backendium 0.0.7 → 0.0.8
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.
- package/dist/handler.d.ts +1 -1
- package/dist/request.d.ts +1 -1
- package/package.json +1 -1
- package/src/handler.ts +1 -1
- package/src/request.ts +1 -1
package/dist/handler.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import BackendiumResponse from "./response.js";
|
|
|
2
2
|
import Backendium from "./index.js";
|
|
3
3
|
import { NextFunction, Request, RequestHandler } from "express";
|
|
4
4
|
import { BackendiumRequestOptionsType, BackendiumRequestType } from "./request.js";
|
|
5
|
-
import { BackendiumRouter } from "./router";
|
|
5
|
+
import { BackendiumRouter } from "./router.js";
|
|
6
6
|
import { ValidationError } from "checkeasy";
|
|
7
7
|
export type BackendiumHandlerReturnType = void | undefined | {
|
|
8
8
|
code?: number;
|
package/dist/request.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Request } from "express";
|
|
2
2
|
import Backendium from "./index.js";
|
|
3
3
|
import { ValidationError, Validator } from "checkeasy";
|
|
4
|
-
import BackendiumResponse from "./response";
|
|
4
|
+
import BackendiumResponse from "./response.js";
|
|
5
5
|
export type ValidatorsType<BodyType, ParamsType, QueryType, HeadersType> = {
|
|
6
6
|
bodyValidator?: Validator<BodyType>;
|
|
7
7
|
paramsValidator?: Validator<ParamsType>;
|
package/package.json
CHANGED
package/src/handler.ts
CHANGED
|
@@ -2,7 +2,7 @@ import BackendiumResponse from "./response.js";
|
|
|
2
2
|
import Backendium from "./index.js";
|
|
3
3
|
import {NextFunction, Request, RequestHandler, Response} from "express";
|
|
4
4
|
import parseRequest, {BackendiumRequestOptionsType, BackendiumRequestType} from "./request.js";
|
|
5
|
-
import {BackendiumRouter} from "./router";
|
|
5
|
+
import {BackendiumRouter} from "./router.js";
|
|
6
6
|
import {ValidationError} from "checkeasy";
|
|
7
7
|
|
|
8
8
|
export type BackendiumHandlerReturnType = void | undefined | {code?: number, next?: boolean};
|
package/src/request.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {Request} from "express";
|
|
2
2
|
import Backendium from "./index.js";
|
|
3
3
|
import {ValidationError, Validator} from "checkeasy";
|
|
4
|
-
import BackendiumResponse from "./response";
|
|
4
|
+
import BackendiumResponse from "./response.js";
|
|
5
5
|
|
|
6
6
|
export type ValidatorsType<BodyType, ParamsType, QueryType, HeadersType> = {
|
|
7
7
|
bodyValidator?: Validator<BodyType>,
|