@xyo-network/bridge-http-express 4.0.3 → 4.1.0

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.
@@ -1,11 +1,13 @@
1
+ import * as _store__types_express_serve_static_core_npm_5_0_7_4a816a369e_package from '.store/@types-express-serve-static-core-npm-5.0.7-4a816a369e/package';
1
2
  import { Server } from 'node:http';
2
3
  import { Address } from '@xylabs/hex';
3
4
  import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
4
- import { HttpBridge, HttpBridgeConfig } from '@xyo-network/bridge-http';
5
- import { BridgeExposeOptions, BridgeParams, BridgeUnexposeOptions } from '@xyo-network/bridge-model';
5
+ import { HttpBridgeConfig, HttpBridge } from '@xyo-network/bridge-http';
6
+ import { BridgeParams, BridgeExposeOptions, BridgeUnexposeOptions } from '@xyo-network/bridge-model';
6
7
  import { AnyConfigSchema, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
7
- import { Payload, Schema } from '@xyo-network/payload-model';
8
+ import { Schema, Payload } from '@xyo-network/payload-model';
8
9
  import express, { Application, Request, Response } from 'express';
10
+
9
11
  /**
10
12
  * The type of the path parameters for the address path.
11
13
  */
@@ -16,13 +18,13 @@ type AddressPathParams = {
16
18
  * The type of the request body for the address path.
17
19
  */
18
20
  type PostAddressRequestBody = [QueryBoundWitness, undefined | Payload[]];
19
- export declare const HttpBridgeExpressConfigSchema: "network.xyo.bridge.http.express.config";
20
- export type HttpBridgeExpressConfigSchema = typeof HttpBridgeExpressConfigSchema;
21
- export interface HttpBridgeExpressConfig extends HttpBridgeConfig<{}, HttpBridgeExpressConfigSchema> {
21
+ declare const HttpBridgeExpressConfigSchema: "network.xyo.bridge.http.express.config";
22
+ type HttpBridgeExpressConfigSchema = typeof HttpBridgeExpressConfigSchema;
23
+ interface HttpBridgeExpressConfig extends HttpBridgeConfig<{}, HttpBridgeExpressConfigSchema> {
22
24
  }
23
- export interface HttpBridgeExpressParams extends BridgeParams<AnyConfigSchema<HttpBridgeExpressConfig>> {
25
+ interface HttpBridgeExpressParams extends BridgeParams<AnyConfigSchema<HttpBridgeExpressConfig>> {
24
26
  }
25
- export declare class HttpBridgeExpress<TParams extends HttpBridgeExpressParams> extends HttpBridge<TParams> {
27
+ declare class HttpBridgeExpress<TParams extends HttpBridgeExpressParams> extends HttpBridge<TParams> {
26
28
  static readonly configSchemas: Schema[];
27
29
  protected _app?: Application;
28
30
  protected _exposedModules: WeakRef<ModuleInstance>[];
@@ -37,9 +39,10 @@ export declare class HttpBridgeExpress<TParams extends HttpBridgeExpressParams>
37
39
  protected callLocalModule(address: Address, query: QueryBoundWitness, payloads: Payload[]): Promise<ModuleQueryResult | null>;
38
40
  protected handleGet(req: Request<AddressPathParams, ModuleQueryResult, PostAddressRequestBody>, res: Response): Promise<void>;
39
41
  protected handlePost(req: Request<AddressPathParams, ModuleQueryResult, PostAddressRequestBody>, res: Response): Promise<express.Response<any, Record<string, any>> | undefined>;
40
- protected initializeApp(): import(".store/@types-express-serve-static-core-npm-5.0.7-4a816a369e/package").Express;
42
+ protected initializeApp(): _store__types_express_serve_static_core_npm_5_0_7_4a816a369e_package.Express;
41
43
  protected startHttpServer(): Promise<boolean>;
42
44
  protected stopHttpServer(): Promise<boolean>;
43
45
  }
44
- export {};
45
- //# sourceMappingURL=HttpBridge.d.ts.map
46
+
47
+ export { HttpBridgeExpress, HttpBridgeExpressConfigSchema };
48
+ export type { HttpBridgeExpressConfig, HttpBridgeExpressParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/bridge-http-express",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,13 +21,13 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
33
  "src",
@@ -36,37 +36,37 @@
36
36
  "package.json"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/assert": "^4.13.4",
40
- "@xylabs/exists": "^4.13.4",
41
- "@xylabs/express": "^4.13.4",
42
- "@xylabs/hex": "^4.13.4",
43
- "@xylabs/object": "^4.13.4",
44
- "@xyo-network/boundwitness-model": "^4.0.3",
45
- "@xyo-network/bridge-http": "^4.0.3",
46
- "@xyo-network/bridge-model": "^4.0.3",
47
- "@xyo-network/module-model": "^4.0.3",
48
- "@xyo-network/payload-model": "^4.0.3",
39
+ "@xylabs/assert": "^4.13.15",
40
+ "@xylabs/exists": "^4.13.15",
41
+ "@xylabs/express": "^4.13.15",
42
+ "@xylabs/hex": "^4.13.15",
43
+ "@xylabs/object": "^4.13.15",
44
+ "@xyo-network/boundwitness-model": "^4.1.0",
45
+ "@xyo-network/bridge-http": "^4.1.0",
46
+ "@xyo-network/bridge-model": "^4.1.0",
47
+ "@xyo-network/module-model": "^4.1.0",
48
+ "@xyo-network/payload-model": "^4.1.0",
49
49
  "express": "^5.1.0",
50
50
  "http-status-codes": "^2.3.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/express": "^5.0.3",
54
54
  "@types/node": "^24.0.13",
55
- "@xylabs/ts-scripts-yarn3": "^6.5.18",
56
- "@xylabs/tsconfig": "^6.5.18",
57
- "@xylabs/vitest-extended": "^4.13.4",
58
- "@xyo-network/api-models": "^4.0.3",
59
- "@xyo-network/archivist-model": "^4.0.3",
60
- "@xyo-network/bridge-abstract": "^4.0.3",
61
- "@xyo-network/bridge-pub-sub": "^4.0.3",
62
- "@xyo-network/diviner-model": "^4.0.3",
63
- "@xyo-network/module-resolver": "^4.0.3",
64
- "@xyo-network/node-memory": "^4.0.3",
65
- "@xyo-network/node-model": "^4.0.3",
66
- "@xyo-network/payload-builder": "^4.0.3",
67
- "@xyo-network/payload-wrapper": "^4.0.3",
68
- "@xyo-network/wallet": "^4.0.3",
69
- "get-port-please": "^3.1.2",
55
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
56
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
57
+ "@xylabs/vitest-extended": "^4.13.15",
58
+ "@xyo-network/api-models": "^4.1.0",
59
+ "@xyo-network/archivist-model": "^4.1.0",
60
+ "@xyo-network/bridge-abstract": "^4.1.0",
61
+ "@xyo-network/bridge-pub-sub": "^4.1.0",
62
+ "@xyo-network/diviner-model": "^4.1.0",
63
+ "@xyo-network/module-resolver": "^4.1.0",
64
+ "@xyo-network/node-memory": "^4.1.0",
65
+ "@xyo-network/node-model": "^4.1.0",
66
+ "@xyo-network/payload-builder": "^4.1.0",
67
+ "@xyo-network/payload-wrapper": "^4.1.0",
68
+ "@xyo-network/wallet": "^4.1.0",
69
+ "get-port-please": "^3.2.0",
70
70
  "typescript": "^5.8.3",
71
71
  "vitest": "^3.2.4"
72
72
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpBridge.d.ts","sourceRoot":"","sources":["../../src/HttpBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAalC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAuB,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxF,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACvE,OAAO,EACL,mBAAmB,EAAE,YAAY,EAAE,qBAAqB,EACzD,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,eAAe,EAAmB,cAAc,EAAE,iBAAiB,EACpE,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,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