@autofleet/rabbit 3.2.2-2.beta-0 → 3.2.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.
- package/.nvmrc +1 -1
- package/dist/index.d.ts +18 -27
- package/dist/index.js +171 -241
- package/dist/lib/redis.d.ts +1 -1
- package/dist/lib/types.d.ts +8 -20
- package/dist/lib/types.js +1 -7
- package/dist/lib/utils.js +3 -6
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +2 -5
- package/package.json +13 -12
- package/src/index.ts +155 -241
- package/src/lib/types.ts +1 -16
- package/src/logger.ts +1 -1
- package/tsconfig.json +2 -5
package/src/lib/types.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConsumeMessage, Options, Replies } from 'amqplib';
|
|
1
|
+
import { ConsumeMessage, Options } from 'amqplib';
|
|
3
2
|
|
|
4
3
|
export interface ExchangesCache {
|
|
5
4
|
[key: string]: any
|
|
@@ -9,10 +8,6 @@ export interface QueuesCache {
|
|
|
9
8
|
[key: string]: any
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
export interface QueueSetupPromisesDictionary {
|
|
13
|
-
[key: string]: Promise<Replies.AssertQueue> | undefined
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
export type CustomMessageHeaders = {
|
|
17
12
|
redisTimestampValidationKey?: string;
|
|
18
13
|
}
|
|
@@ -56,13 +51,3 @@ export const CONSUMER_DEFAULT_OPTIONS: Options.Consume = {
|
|
|
56
51
|
[HA_PROMOTE_ON_SHUTDOWN]: 'always',
|
|
57
52
|
},
|
|
58
53
|
};
|
|
59
|
-
|
|
60
|
-
export type ConnectionData = {
|
|
61
|
-
connection: AmqpConnectionManager | null;
|
|
62
|
-
creatingConnection: boolean;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export enum ConnectionPurpose {
|
|
66
|
-
Consume = 'consume',
|
|
67
|
-
Publish = 'publish',
|
|
68
|
-
};
|
package/src/logger.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
"strict": true,
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"experimentalDecorators": true,
|
|
10
|
-
"emitDecoratorMetadata": true
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"types": ["@types/jest"]
|
|
10
|
+
"emitDecoratorMetadata": true
|
|
13
11
|
},
|
|
14
|
-
"exclude": ["node_modules"]
|
|
15
|
-
"include": ["src/**/*.ts"]
|
|
12
|
+
"exclude": ["node_modules", "**/*.test.ts"]
|
|
16
13
|
}
|