@spider-mesh/core 2.0.1 → 2.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/build/const.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SPIDERMESH_NAMESPACE = "default";
1
+ export declare const SPIDERMESH_NAMESPACE: string;
package/build/const.js CHANGED
@@ -1,2 +1,2 @@
1
- export const SPIDERMESH_NAMESPACE = 'default';
1
+ export const SPIDERMESH_NAMESPACE = process.env.SPIDERMESH_NAMESPACE || 'default';
2
2
  //# sourceMappingURL=const.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.js","sourceRoot":"","sources":["../const.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../const.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,SAAS,CAAA"}
@@ -15,7 +15,7 @@ export type NodesMap = {
15
15
  export declare class SpiderMesh {
16
16
  #private;
17
17
  readonly node_id: string;
18
- readonly namespace = "default";
18
+ readonly namespace: string;
19
19
  constructor();
20
20
  callRemoteService<T>(options: RpcOptions<T>): Observable<T>;
21
21
  linkTransporter(transporter: RpcTransporter | PubsubTransporter | DiscoveryTransporter): import("rxjs").Subscription | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"PubsubTransporter.js","sourceRoot":"","sources":["../../../src/interfaces/PubsubTransporter.ts"],"names":[],"mappings":"AAUA,MAAM,OAAgB,iBAAiB;CAItC"}
1
+ {"version":3,"file":"PubsubTransporter.js","sourceRoot":"","sources":["../../../src/interfaces/PubsubTransporter.ts"],"names":[],"mappings":"AASA,MAAM,OAAgB,iBAAiB;CAItC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spider-mesh/core",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "Lightweight microservice framework for typescript, auto discovery, load-balancing, fault-torrent, multiple transporters",
6
6
  "main": "./build/src/index.js",
7
7
  "types": "./build/src/index.d.ts",
@@ -17,8 +17,6 @@
17
17
  "@types/node": "^22.10.3",
18
18
  "@types/reflect-metadata": "^0.1.0",
19
19
  "@types/uuid": "^10.0.0",
20
- "ts-node": "^10.9.1",
21
- "tsx": "^4.19.2",
22
20
  "typescript": "^5.7.2"
23
21
  },
24
22
  "exports": {
@@ -30,7 +28,6 @@
30
28
  }
31
29
  },
32
30
  "scripts": {
33
- "dev": "clear; node --no-warnings --es-module-specifier-resolution=node --experimental-specifier-resolution=node --loader ts-node/esm ",
34
31
  "build": "tsc -v && tsc -b tsconfig.json"
35
32
  },
36
33
  "author": "Duong Van Ba",