@imqueue/rpc 3.5.0 → 3.5.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imqueue/rpc",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "Type-safe RPC framework for Node.js & TypeScript microservices over a Redis message queue — self-describing services generate their own strongly-typed clients (@imqueue framework)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"redis",
|
package/src/cache/ICache.d.ts
CHANGED
|
@@ -32,7 +32,11 @@
|
|
|
32
32
|
*/
|
|
33
33
|
export interface ICacheConstructor {
|
|
34
34
|
/**
|
|
35
|
+
* Constructs a cache adapter instance, ready to be initialized.
|
|
36
|
+
*
|
|
35
37
|
* @param name - legacy, and never supplied by the registry
|
|
38
|
+
* @returns an uninitialized adapter — {@link ICache.init} must be called
|
|
39
|
+
* before use
|
|
36
40
|
*/
|
|
37
41
|
new (name?: string): ICache;
|
|
38
42
|
}
|
|
@@ -23,8 +23,12 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { type ILogger } from '@imqueue/core';
|
|
25
25
|
/**
|
|
26
|
-
* Names of the
|
|
26
|
+
* Names of the `ILogger` methods {@link logged} can use to record a caught
|
|
27
27
|
* error.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* `ILogger` is declared by `@imqueue/core` and is not re-exported here — import it
|
|
31
|
+
* from that package if you need the type. A plain `console` satisfies it.
|
|
28
32
|
*/
|
|
29
33
|
export type LoggedLogLevel = 'info' | 'log' | 'warn' | 'error';
|
|
30
34
|
/**
|
|
@@ -32,7 +36,7 @@ export type LoggedLogLevel = 'info' | 'log' | 'warn' | 'error';
|
|
|
32
36
|
*/
|
|
33
37
|
export interface LoggedDecoratorOptions {
|
|
34
38
|
/**
|
|
35
|
-
* Which
|
|
39
|
+
* Which `ILogger` method records the error.
|
|
36
40
|
*
|
|
37
41
|
* @defaultValue 'error'
|
|
38
42
|
*
|