lixnet 1.1.7 → 1.1.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/exports.d.ts CHANGED
@@ -2,3 +2,4 @@ import LixnetServer from "./lib/server";
2
2
  import LixnetClient from "./lib/client";
3
3
  import LixnetPeer from "./lib/peer";
4
4
  export { LixnetServer, LixnetClient, LixnetPeer };
5
+ export type { LXN_ServerClient_EventType, LXNServerHandler, FunctionInput, } from "./lib/types";
@@ -5,3 +5,6 @@ export type DebugLogger = ({ error, message, }: {
5
5
  export type FunctionInput<T> = T extends (input: infer TInput) => any ? TInput : never;
6
6
  export type LXNServerHandler<Input> = (input: Input) => Promise<any> | any;
7
7
  export type LXN_ServerClient_EventType = Record<string, LXNServerHandler<any>>;
8
+ export type LXN_ServerClient_Request = Request & {
9
+ setAdditionalInit: (init: ResponseInit) => void;
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lixnet",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "author": "Nitlix",
5
5
  "license": "MIT",
6
6
  "repository": {