backendium 0.0.7 → 0.0.9

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 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/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { BackendiumRouter, MethodType } from "./router.js";
4
4
  import { EventEmitter, EventKey } from "event-emitter-typescript";
5
5
  import { WebSocketExpress, WSRequestHandler } from "websocket-express";
6
6
  import { BackendiumWebSocket } from "./ws.js";
7
- import Logger from "./logger";
7
+ import Logger from "./logger.js";
8
8
  import BackendiumResponse from "./response";
9
9
  import { ValidationError } from "checkeasy";
10
10
  export type BackendiumConfigType = {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { BackendiumRouter } from "./router.js";
2
2
  import { EventEmitter } from "event-emitter-typescript";
3
3
  import { WebSocketExpress } from "websocket-express";
4
- import Logger from "./logger";
4
+ import Logger from "./logger.js";
5
5
  export default class Backendium extends BackendiumRouter {
6
6
  express = new WebSocketExpress;
7
7
  eventEmitter = new EventEmitter;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backendium",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Express-based javascript backend framework with websocket support and type-safe checkeasy validators",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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/index.ts CHANGED
@@ -4,7 +4,7 @@ import {BackendiumRouter, MethodType} from "./router.js";
4
4
  import {EventEmitter, EventKey} from "event-emitter-typescript";
5
5
  import {WebSocketExpress, WSRequestHandler} from "websocket-express";
6
6
  import {BackendiumWebSocket} from "./ws.js";
7
- import Logger from "./logger";
7
+ import Logger from "./logger.js";
8
8
  import BackendiumResponse from "./response";
9
9
  import {ValidationError} from "checkeasy";
10
10
 
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>,