@linebridge/engine-neo 1.0.1 → 1.0.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.
package/lib/engine.d.ts CHANGED
@@ -89,7 +89,7 @@ export declare class NeoEngine extends EngineAdaptor {
89
89
  */
90
90
  num_of_subscribers(topic: UWS.RecognizedString): number | undefined;
91
91
  /** Incoming HTTP request handler. Bound to the engine instance. */
92
- on_request: (native_req: import("uWebSockets.js").HttpRequest, native_res: import("uWebSockets.js").HttpResponse, route: Route<any, "server"[]>, socket?: import("uWebSockets.js").us_socket_context_t | null | undefined) => any;
92
+ on_request: (native_req: HttpRequest, native_res: HttpResponse, route: Route<any, "server"[]>, socket?: any) => any;
93
93
  /** Middleware/route iteration loop. Bound to the engine instance. */
94
94
  request_iterator: (request: Request<any>, response: Response<any>, route: Route<Server<"neo">, "server"[]>, allMiddlewares: Handler<HandlerKind>[], cursor?: number | undefined) => Promise<void>;
95
95
  /**
package/lib/request.d.ts CHANGED
@@ -98,11 +98,11 @@ export default class Request<TServer = Server<any>> implements BaseHttpRequest {
98
98
  /**
99
99
  * Signs a string with a secret using the same algorithm as `cookie-signature`.
100
100
  */
101
- sign(string: string, secret: string): string;
101
+ sign(string: string, secret: string): any;
102
102
  /**
103
103
  * Unsigns a signed value. Returns the original string or `undefined` on failure.
104
104
  */
105
- unsign(signed_value: string, secret: string): string | undefined;
105
+ unsign(signed_value: string, secret: string): any;
106
106
  /**
107
107
  * Starts the body parser by registering a uWS `onData` callback.
108
108
  *
package/lib/utils.d.ts CHANGED
@@ -10,5 +10,5 @@ declare function wrap_object(original: any, target: any): void;
10
10
  * @param {BufferEncoding} encoding
11
11
  * @returns {String} String
12
12
  */
13
- declare function array_buffer_to_string(array_buffer: ArrayBuffer, encoding?: BufferEncoding): string;
13
+ declare function array_buffer_to_string(array_buffer: ArrayBuffer, encoding?: BufferEncoding): any;
14
14
  export { array_buffer_to_string, wrap_object };
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "@linebridge/engine-neo",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "author": "ragestudio",
8
8
  "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/ragestudio/linebridge.git",
12
+ "directory": "engines/neo"
13
+ },
9
14
  "type": "module",
10
15
  "main": "./lib/index.js",
11
16
  "types": "./lib/index.d.ts",