@increase21/simplenodejs 1.0.26 → 1.0.28

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/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export { SimpleNodeJsController } from "./utils/simpleController";
2
2
  export { CreateSimpleJsHttpServer, CreateSimpleJsHttpsServer } from "./server";
3
3
  export { SetCORS, SetHSTS, SetCSP, SetFrameGuard, SetNoSniff, SetReferrerPolicy, SetPermissionsPolicy, SetCOEP, SetCOOP, SetHelmet, SetRateLimiter, SetBodyParser, } from "./utils/simpleMiddleware";
4
4
  export * from "./utils/simplePlugins";
5
- export type { SimpleJsPrivateMethodProps, Middleware as SimpleJsMiddleware, SimpleJsHttpsServer } from "./typings/general";
5
+ export type { SimpleJsPrivateMethodProps, Middleware as SimpleJsMiddleware, SimpleJsHttpsServer, RequestObject, ResponseObject } from "./typings/general";
@@ -35,6 +35,6 @@ export interface SimpleJsPrivateMethodProps {
35
35
  res: ResponseObject;
36
36
  req: RequestObject;
37
37
  query: ObjectPayload;
38
+ customData: any;
38
39
  id?: string;
39
- customData?: any;
40
40
  }
@@ -8,10 +8,7 @@ export declare class SimpleNodeJsController {
8
8
  protected method: HttpMethod;
9
9
  protected _custom_data: any;
10
10
  /** @internal */
11
- __bindContext(ctx: {
12
- req: RequestObject;
13
- res: ResponseObject;
14
- }): void;
11
+ private __bindContext;
15
12
  protected __checkContext(): void;
16
13
  protected __run(handlers: SubRequestHandler): SubRequestHandler;
17
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@increase21/simplenodejs",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Lightweight Node.js HTTP framework with middlewares and plugins",
5
5
  "dev": "dist/index.js",
6
6
  "bugs": "https://github.com/increase21/simplenodejs/issues",
@@ -34,6 +34,9 @@
34
34
  ],
35
35
  "author": "Increase Nkanta",
36
36
  "license": "MIT",
37
+ "dependencies": {
38
+ "@types/node": "^20.0.0"
39
+ },
37
40
  "devDependencies": {
38
41
  "typescript": "^5.3.0"
39
42
  }