@xansql/bridge 1.0.3 → 1.0.4

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -0
  2. package/package.json +1 -1
  3. package/types.d.ts +11 -1
package/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { default as XansqlBridgeDialect } from './dialect.js';
2
2
  export { default as XansqlBridgeServer } from './server.js';
3
+ export { ListenOptions, XansqlBridgeAuthorizedInfo, XansqlBridgeInfo, XansqlBridgeResponse, XansqlBridgeServerConfig } from './types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xansql/bridge",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Xansql bridge",
5
5
  "author": "Devnax",
6
6
  "publishConfig": {
package/types.d.ts CHANGED
@@ -6,6 +6,16 @@ type XansqlBridgeAuthorizedInfo = {
6
6
  model: Model | null;
7
7
  action: string;
8
8
  };
9
+ type XansqlBridgeInfo = {
10
+ body: any;
11
+ headers: {
12
+ [key: string]: string;
13
+ };
14
+ };
15
+ type XansqlBridgeResponse = {
16
+ status: number;
17
+ value: any;
18
+ };
9
19
  type XansqlBridgeServerConfig = {
10
20
  basepath: string;
11
21
  mode?: "production" | "development";
@@ -14,4 +24,4 @@ type XansqlBridgeServerConfig = {
14
24
  };
15
25
  type ListenOptions = ListenerInfo;
16
26
 
17
- export type { ListenOptions, XansqlBridgeAuthorizedInfo, XansqlBridgeServerConfig };
27
+ export type { ListenOptions, XansqlBridgeAuthorizedInfo, XansqlBridgeInfo, XansqlBridgeResponse, XansqlBridgeServerConfig };