@fluojs/microservices 1.0.0-beta.2 → 1.0.0-beta.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.
- package/README.ko.md +13 -5
- package/README.md +13 -5
- package/dist/decorators.d.ts.map +1 -1
- package/dist/decorators.js +2 -2
- package/dist/metadata.d.ts +16 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +21 -6
- package/dist/status.d.ts +21 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +27 -0
- package/dist/transports/event-handler-logger.d.ts +7 -0
- package/dist/transports/event-handler-logger.d.ts.map +1 -1
- package/dist/transports/event-handler-logger.js +7 -0
- package/package.json +4 -4
package/README.ko.md
CHANGED
|
@@ -128,11 +128,7 @@ Behavioral contract notes:
|
|
|
128
128
|
|
|
129
129
|
### provider 배열 헬퍼
|
|
130
130
|
|
|
131
|
-
`createMicroservicesProviders(...)`는
|
|
132
|
-
|
|
133
|
-
`createMicroservicesProviders(...)`는 커스텀 모듈 조합에 provider 배열이 필요할 때 사용할 수 있습니다.
|
|
134
|
-
|
|
135
|
-
`createMicroservicesProviders(...)`는 실제로 low-level provider array 자체가 필요한 호출자에게만 남아 있습니다.
|
|
131
|
+
`createMicroservicesProviders(...)`는 커스텀 모듈 조합에 low-level provider array 자체가 필요할 때만 사용하세요. Custom provider/export/non-global registration에는 built-in lifecycle wiring과 export token을 그대로 유지하는 `MicroservicesModule.forRoot({ transport, module: { ... } })` 경로를 우선 사용하세요.
|
|
136
132
|
|
|
137
133
|
```ts
|
|
138
134
|
import { Module } from '@fluojs/core';
|
|
@@ -156,6 +152,18 @@ class ManualMicroserviceProvidersModule {}
|
|
|
156
152
|
- `MicroserviceLifecycleService`, `MICROSERVICE`: 런타임 접근용 서비스와 토큰입니다.
|
|
157
153
|
- `createMicroservicePlatformStatusSnapshot`, `ServerStreamWriter`: 상태 스냅샷/TypeScript 계약 헬퍼입니다.
|
|
158
154
|
|
|
155
|
+
### Programmatic runtime
|
|
156
|
+
|
|
157
|
+
`MicroserviceLifecycleService`는 programmatic runtime access를 위해 `listen()`, `close()`, `send()`, `emit()`, `serverStream()`, `clientStream()`, `bidiStream()`, `createPlatformStatusSnapshot()`을 제공합니다.
|
|
158
|
+
|
|
159
|
+
### Type export
|
|
160
|
+
|
|
161
|
+
Root barrel은 `Microservice`, `MicroserviceModuleOptions`, `MicroserviceModuleRegistrationOptions`, `MicroserviceTransport`, `Pattern`, `ServerStreamWriter`와 `GrpcMicroserviceTransportOptions`, `KafkaMicroserviceTransportOptions`, `MqttMicroserviceTransportOptions`, `NatsMicroserviceTransportOptions`, `RabbitMqMicroserviceTransportOptions`, `RedisPubSubMicroserviceTransportOptions`, `RedisStreamsMicroserviceTransportOptions`, `RedisStreamClientLike` 같은 transport option type을 export합니다.
|
|
162
|
+
|
|
163
|
+
### 동작 계약
|
|
164
|
+
|
|
165
|
+
Payload는 dispatch 전에 clone되고, 동시 `listen()` 호출은 dedupe되며, request-scoped provider는 성공/실패 후 dispose됩니다. Event fan-out은 event dispatch마다 하나의 scope를 공유하고, duplicate message match는 결정적으로 실패합니다.
|
|
166
|
+
|
|
159
167
|
### 지원되는 트랜스포트 서브패스
|
|
160
168
|
|
|
161
169
|
- `@fluojs/microservices/tcp`
|
package/README.md
CHANGED
|
@@ -125,11 +125,7 @@ Behavioral contract notes:
|
|
|
125
125
|
|
|
126
126
|
### Provider-array helper
|
|
127
127
|
|
|
128
|
-
`createMicroservicesProviders(...)`
|
|
129
|
-
|
|
130
|
-
Use `createMicroservicesProviders(...)` when you need a provider array for custom module assembly.
|
|
131
|
-
|
|
132
|
-
`createMicroservicesProviders(...)` remains available only for callers that truly need the low-level provider array itself.
|
|
128
|
+
Use `createMicroservicesProviders(...)` only when you need the low-level provider array itself for custom module assembly. Prefer `MicroservicesModule.forRoot({ transport, module: { ... } })` for custom providers, exports, or non-global registration because that path keeps the built-in lifecycle wiring and exported tokens intact.
|
|
133
129
|
|
|
134
130
|
```typescript
|
|
135
131
|
import { Module } from '@fluojs/core';
|
|
@@ -153,6 +149,18 @@ class ManualMicroserviceProvidersModule {}
|
|
|
153
149
|
- `MicroserviceLifecycleService`, `MICROSERVICE`: programmatic runtime access token and service.
|
|
154
150
|
- `createMicroservicePlatformStatusSnapshot`, `ServerStreamWriter`: status and TypeScript contract helpers.
|
|
155
151
|
|
|
152
|
+
### Programmatic runtime
|
|
153
|
+
|
|
154
|
+
`MicroserviceLifecycleService` exposes `listen()`, `close()`, `send()`, `emit()`, `serverStream()`, `clientStream()`, `bidiStream()`, and `createPlatformStatusSnapshot()` for programmatic runtime access.
|
|
155
|
+
|
|
156
|
+
### Type exports
|
|
157
|
+
|
|
158
|
+
The root barrel exports `Microservice`, `MicroserviceModuleOptions`, `MicroserviceModuleRegistrationOptions`, `MicroserviceTransport`, `Pattern`, `ServerStreamWriter`, and transport option types such as `GrpcMicroserviceTransportOptions`, `KafkaMicroserviceTransportOptions`, `MqttMicroserviceTransportOptions`, `NatsMicroserviceTransportOptions`, `RabbitMqMicroserviceTransportOptions`, `RedisPubSubMicroserviceTransportOptions`, `RedisStreamsMicroserviceTransportOptions`, and `RedisStreamClientLike`.
|
|
159
|
+
|
|
160
|
+
### Behavioral contracts
|
|
161
|
+
|
|
162
|
+
Payloads are cloned before dispatch, concurrent `listen()` calls are deduped, request-scoped providers are disposed after success and failure, event fan-out shares one scope per event dispatch, and duplicate message matches fail deterministically.
|
|
163
|
+
|
|
156
164
|
### Supported transport subpaths
|
|
157
165
|
|
|
158
166
|
- `@fluojs/microservices/tcp`
|
package/dist/decorators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgC,OAAO,EAAE,MAAM,YAAY,CAAC;AAGxE,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,2BAA2B,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgC,OAAO,EAAE,MAAM,YAAY,CAAC;AAGxE,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,2BAA2B,KAAK,IAAI,CAAC;AA2D3F;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAEzE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAEzE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAEvE"}
|
package/dist/decorators.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ensureMetadataSymbol } from '@fluojs/core/internal';
|
|
2
2
|
import { microserviceMetadataSymbol } from './metadata.js';
|
|
3
|
+
ensureMetadataSymbol();
|
|
3
4
|
function getStandardMetadataBag(metadata) {
|
|
4
|
-
void metadataSymbol;
|
|
5
5
|
return metadata;
|
|
6
6
|
}
|
|
7
7
|
function defineStandardHandlerMetadata(metadata, propertyKey, handlerMetadata) {
|
package/dist/metadata.d.ts
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { type MetadataPropertyKey } from '@fluojs/core';
|
|
2
2
|
import type { HandlerMetadata } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Define handler metadata.
|
|
5
|
+
*
|
|
6
|
+
* @param target The target.
|
|
7
|
+
* @param propertyKey The property key.
|
|
8
|
+
* @param metadata The metadata.
|
|
9
|
+
*/
|
|
3
10
|
export declare function defineHandlerMetadata(target: object, propertyKey: MetadataPropertyKey, metadata: HandlerMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Get handler metadata entries.
|
|
13
|
+
*
|
|
14
|
+
* @param target The target.
|
|
15
|
+
* @returns The get handler metadata entries result.
|
|
16
|
+
*/
|
|
4
17
|
export declare function getHandlerMetadataEntries(target: object): Array<{
|
|
5
18
|
metadata: HandlerMetadata;
|
|
6
19
|
propertyKey: MetadataPropertyKey;
|
|
7
20
|
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Provides the microservice metadata symbol value.
|
|
23
|
+
*/
|
|
8
24
|
export declare const microserviceMetadataSymbol: symbol;
|
|
9
25
|
//# sourceMappingURL=metadata.d.ts.map
|
package/dist/metadata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA+BlD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI,CAKvH;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,GACb,KAAK,CAAC;IAAE,QAAQ,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAkBxE;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,QAAkC,CAAC"}
|
package/dist/metadata.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ensureSymbolMetadataPolyfill,
|
|
1
|
+
import { ensureSymbolMetadataPolyfill, getStandardConstructorMetadataBag } from '@fluojs/core/internal';
|
|
2
2
|
void ensureSymbolMetadataPolyfill();
|
|
3
3
|
const standardMicroserviceMetadataKey = Symbol.for('fluo.microservices.standard.handler');
|
|
4
4
|
const handlerMetadataStore = new WeakMap();
|
|
@@ -8,12 +8,8 @@ function cloneHandlerMetadata(metadata) {
|
|
|
8
8
|
pattern: metadata.pattern
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
function getStandardMetadataBag(target) {
|
|
12
|
-
return target[metadataSymbol];
|
|
13
|
-
}
|
|
14
11
|
function getStandardHandlerMap(target) {
|
|
15
|
-
|
|
16
|
-
return constructor ? getStandardMetadataBag(constructor)?.[standardMicroserviceMetadataKey] : undefined;
|
|
12
|
+
return getStandardConstructorMetadataBag(target)?.[standardMicroserviceMetadataKey];
|
|
17
13
|
}
|
|
18
14
|
function getOrCreateHandlerMap(target) {
|
|
19
15
|
let map = handlerMetadataStore.get(target);
|
|
@@ -23,12 +19,27 @@ function getOrCreateHandlerMap(target) {
|
|
|
23
19
|
}
|
|
24
20
|
return map;
|
|
25
21
|
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Define handler metadata.
|
|
25
|
+
*
|
|
26
|
+
* @param target The target.
|
|
27
|
+
* @param propertyKey The property key.
|
|
28
|
+
* @param metadata The metadata.
|
|
29
|
+
*/
|
|
26
30
|
export function defineHandlerMetadata(target, propertyKey, metadata) {
|
|
27
31
|
const map = getOrCreateHandlerMap(target);
|
|
28
32
|
const current = map.get(propertyKey) ?? [];
|
|
29
33
|
current.push(cloneHandlerMetadata(metadata));
|
|
30
34
|
map.set(propertyKey, current);
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get handler metadata entries.
|
|
39
|
+
*
|
|
40
|
+
* @param target The target.
|
|
41
|
+
* @returns The get handler metadata entries result.
|
|
42
|
+
*/
|
|
32
43
|
export function getHandlerMetadataEntries(target) {
|
|
33
44
|
const stored = handlerMetadataStore.get(target) ?? new Map();
|
|
34
45
|
const standard = getStandardHandlerMap(target) ?? new Map();
|
|
@@ -45,4 +56,8 @@ export function getHandlerMetadataEntries(target) {
|
|
|
45
56
|
}
|
|
46
57
|
return entries;
|
|
47
58
|
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Provides the microservice metadata symbol value.
|
|
62
|
+
*/
|
|
48
63
|
export const microserviceMetadataSymbol = standardMicroserviceMetadataKey;
|
package/dist/status.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { PlatformHealthReport, PlatformReadinessReport, PlatformSnapshot } from '@fluojs/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Defines the microservice lifecycle state type.
|
|
4
|
+
*/
|
|
2
5
|
export type MicroserviceLifecycleState = 'created' | 'starting' | 'ready' | 'stopping' | 'stopped' | 'failed';
|
|
6
|
+
/**
|
|
7
|
+
* Describes the microservice handler counts contract.
|
|
8
|
+
*/
|
|
3
9
|
export interface MicroserviceHandlerCounts {
|
|
4
10
|
'bidi-stream': number;
|
|
5
11
|
'client-stream': number;
|
|
@@ -7,6 +13,9 @@ export interface MicroserviceHandlerCounts {
|
|
|
7
13
|
message: number;
|
|
8
14
|
'server-stream': number;
|
|
9
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Describes the microservice transport capabilities contract.
|
|
18
|
+
*/
|
|
10
19
|
export interface MicroserviceTransportCapabilities {
|
|
11
20
|
bidiStream: boolean;
|
|
12
21
|
clientStream: boolean;
|
|
@@ -14,17 +23,29 @@ export interface MicroserviceTransportCapabilities {
|
|
|
14
23
|
send: boolean;
|
|
15
24
|
serverStream: boolean;
|
|
16
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Describes the microservice status adapter input contract.
|
|
28
|
+
*/
|
|
17
29
|
export interface MicroserviceStatusAdapterInput {
|
|
18
30
|
handlerCounts: MicroserviceHandlerCounts;
|
|
19
31
|
lastListenError?: string;
|
|
20
32
|
lifecycleState: MicroserviceLifecycleState;
|
|
21
33
|
transportCapabilities: MicroserviceTransportCapabilities;
|
|
22
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Describes the microservice platform status snapshot contract.
|
|
37
|
+
*/
|
|
23
38
|
export interface MicroservicePlatformStatusSnapshot {
|
|
24
39
|
readiness: PlatformReadinessReport;
|
|
25
40
|
health: PlatformHealthReport;
|
|
26
41
|
ownership: PlatformSnapshot['ownership'];
|
|
27
42
|
details: Record<string, unknown>;
|
|
28
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Create microservice platform status snapshot.
|
|
46
|
+
*
|
|
47
|
+
* @param input The input.
|
|
48
|
+
* @returns The create microservice platform status snapshot result.
|
|
49
|
+
*/
|
|
29
50
|
export declare function createMicroservicePlatformStatusSnapshot(input: MicroserviceStatusAdapterInput): MicroservicePlatformStatusSnapshot;
|
|
30
51
|
//# sourceMappingURL=status.d.ts.map
|
package/dist/status.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEvG,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9G,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,yBAAyB,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,0BAA0B,CAAC;IAC3C,qBAAqB,EAAE,iCAAiC,CAAC;CAC1D;AAED,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,uBAAuB,CAAC;IACnC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAqED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,8BAA8B,GACpC,kCAAkC,CAoBpC"}
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEvG;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9G;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,yBAAyB,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,0BAA0B,CAAC;IAC3C,qBAAqB,EAAE,iCAAiC,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,uBAAuB,CAAC;IACnC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAqED;;;;;GAKG;AACH,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,8BAA8B,GACpC,kCAAkC,CAoBpC"}
|
package/dist/status.js
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the microservice lifecycle state type.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Describes the microservice handler counts contract.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the microservice transport capabilities contract.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the microservice status adapter input contract.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Describes the microservice platform status snapshot contract.
|
|
19
|
+
*/
|
|
20
|
+
|
|
1
21
|
function createReadiness(input) {
|
|
2
22
|
if (input.lifecycleState === 'ready') {
|
|
3
23
|
return {
|
|
@@ -56,6 +76,13 @@ function createHealth(input) {
|
|
|
56
76
|
status: 'healthy'
|
|
57
77
|
};
|
|
58
78
|
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Create microservice platform status snapshot.
|
|
82
|
+
*
|
|
83
|
+
* @param input The input.
|
|
84
|
+
* @returns The create microservice platform status snapshot result.
|
|
85
|
+
*/
|
|
59
86
|
export function createMicroservicePlatformStatusSnapshot(input) {
|
|
60
87
|
return {
|
|
61
88
|
details: {
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { MicroserviceTransportLogger } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Log transport event handler failure.
|
|
4
|
+
*
|
|
5
|
+
* @param logger The logger.
|
|
6
|
+
* @param transportName The transport name.
|
|
7
|
+
* @param error The error.
|
|
8
|
+
*/
|
|
2
9
|
export declare function logTransportEventHandlerFailure(logger: MicroserviceTransportLogger | undefined, transportName: string, error: unknown): void;
|
|
3
10
|
//# sourceMappingURL=event-handler-logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-handler-logger.d.ts","sourceRoot":"","sources":["../../src/transports/event-handler-logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,2BAA2B,GAAG,SAAS,EAC/C,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,OAAO,GACb,IAAI,CAEN"}
|
|
1
|
+
{"version":3,"file":"event-handler-logger.d.ts","sourceRoot":"","sources":["../../src/transports/event-handler-logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,2BAA2B,GAAG,SAAS,EAC/C,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,OAAO,GACb,IAAI,CAEN"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Log transport event handler failure.
|
|
3
|
+
*
|
|
4
|
+
* @param logger The logger.
|
|
5
|
+
* @param transportName The transport name.
|
|
6
|
+
* @param error The error.
|
|
7
|
+
*/
|
|
1
8
|
export function logTransportEventHandlerFailure(logger, transportName, error) {
|
|
2
9
|
logger?.error('Event handler failed.', error, transportName);
|
|
3
10
|
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"grpc",
|
|
14
14
|
"mqtt"
|
|
15
15
|
],
|
|
16
|
-
"version": "1.0.0-beta.
|
|
16
|
+
"version": "1.0.0-beta.4",
|
|
17
17
|
"private": false,
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"repository": {
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"dist"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@fluojs/core": "^1.0.0-beta.
|
|
72
|
-
"@fluojs/di": "^1.0.0-beta.
|
|
73
|
-
"@fluojs/runtime": "^1.0.0-beta.
|
|
71
|
+
"@fluojs/core": "^1.0.0-beta.4",
|
|
72
|
+
"@fluojs/di": "^1.0.0-beta.6",
|
|
73
|
+
"@fluojs/runtime": "^1.0.0-beta.11"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@grpc/grpc-js": "^1.0.0",
|