@lad-tech/nsc-toolkit 1.28.1 → 1.28.3

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.
@@ -0,0 +1,77 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "node",
9
+ "request": "launch",
10
+ "name": "Launch NSC_Example_Gate_Micro",
11
+ "skipFiles": ["<node_internals>/**"],
12
+ "program": "${workspaceFolder}/examples/HttpGate/dist/examples/HttpGate/start.micro.js",
13
+ "outFiles": ["${workspaceFolder}/examples/HttpGate/dist/**/*.js"],
14
+ "preLaunchTask": "buildGateMicro",
15
+ "outputCapture": "std",
16
+ "env": {
17
+ "NODE_PATH": "${workspaceFolder}/examples/HttpGate/dist",
18
+ "LOG_LEVEL": "info",
19
+ "NATS_HOST": "nats://localhost:4222",
20
+ "DEFAULT_RESPONSE_TIMEOUT": "50000",
21
+ "ENVIRONMENT": "local",
22
+ "OTEL_AGENT": "http://localhost:4318/v1/traces"
23
+ }
24
+ },
25
+ {
26
+ "type": "node",
27
+ "request": "launch",
28
+ "name": "Launch NSC_Example_Gate_Mono",
29
+ "skipFiles": ["<node_internals>/**"],
30
+ "program": "${workspaceFolder}/examples/HttpGate/dist/examples/HttpGate/start.mono.js",
31
+ "outFiles": ["${workspaceFolder}/examples/HttpGate/dist/**/*.js"],
32
+ "preLaunchTask": "buildGateMono",
33
+ "outputCapture": "std",
34
+ "env": {
35
+ "NODE_PATH": "${workspaceFolder}/examples/HttpGate/dist",
36
+ "LOG_LEVEL": "info",
37
+ "NATS_HOST": "nats://localhost:4222",
38
+ "DEFAULT_RESPONSE_TIMEOUT": "50000",
39
+ "ENVIRONMENT": "local"
40
+ }
41
+ },
42
+ {
43
+ "type": "node",
44
+ "request": "launch",
45
+ "name": "Launch NSC_Example_Logic",
46
+ "skipFiles": ["<node_internals>/**"],
47
+ "program": "${workspaceFolder}/examples/LogicService",
48
+ "outFiles": ["${workspaceFolder}/examples/LogicService/dist/**/*.js"],
49
+ "preLaunchTask": "buildLogic",
50
+ "outputCapture": "std",
51
+ "env": {
52
+ "NODE_PATH": "${workspaceFolder}/examples/LogicService/dist",
53
+ "LOG_LEVEL": "info",
54
+ "NATS_HOST": "nats://localhost:4222",
55
+ "ENVIRONMENT": "local",
56
+ "OTEL_AGENT": "http://localhost:4318/v1/traces"
57
+ }
58
+ },
59
+ {
60
+ "type": "node",
61
+ "request": "launch",
62
+ "name": "Launch NSC_Example_Math",
63
+ "skipFiles": ["<node_internals>/**"],
64
+ "program": "${workspaceFolder}/examples/MathService",
65
+ "outFiles": ["${workspaceFolder}/examples/MathService/dist/**/*.js"],
66
+ "preLaunchTask": "buildMath",
67
+ "outputCapture": "std",
68
+ "env": {
69
+ "NODE_PATH": "${workspaceFolder}/examples/MathService/dist",
70
+ "LOG_LEVEL": "info",
71
+ "NATS_HOST": "nats://localhost:4222",
72
+ "ENVIRONMENT": "local",
73
+ "OTEL_AGENT": "http://localhost:4318/v1/traces"
74
+ }
75
+ }
76
+ ]
77
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "buildGateMicro",
6
+ "type": "shell",
7
+ "command": "cd ${workspaceFolder}/examples/HttpGate/ && npm run buildMicro",
8
+ },
9
+ {
10
+ "label": "buildGateMono",
11
+ "type": "shell",
12
+ "command": "cd ${workspaceFolder}/examples/HttpGate/ && npm run buildMono",
13
+ },
14
+ {
15
+ "label": "buildLogic",
16
+ "type": "shell",
17
+ "command": "cd ${workspaceFolder}/examples/LogicService/ && npm run build",
18
+ },
19
+ {
20
+ "label": "buildMath",
21
+ "type": "shell",
22
+ "command": "cd ${workspaceFolder}/examples/MathService/ && npm run build",
23
+ }
24
+ ]
25
+ }
@@ -139,7 +139,7 @@ export interface Listener<E extends Emitter> {
139
139
  }
140
140
  export interface ListenerBatch<E extends Emitter> {
141
141
  on<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>, meter: EventMeter) => void): void;
142
- off<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>) => void): void;
142
+ off<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>, ...args: any[]) => void): void;
143
143
  }
144
144
  export interface HttpSettings {
145
145
  ip?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "1.28.1",
3
+ "version": "1.28.3",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",
package/CHANGELOG.md DELETED
@@ -1,6 +0,0 @@
1
- ## [1.28.1](https://github.com/lad-tech/nsc-toolkit/compare/v1.28.0...v1.28.1) (2025-07-01)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * Meter for batch consumer ([#147](https://github.com/lad-tech/nsc-toolkit/issues/147)) ([94a20b3](https://github.com/lad-tech/nsc-toolkit/commit/94a20b3b70caee64ac7a26998bc1019193c13516))