@autofleet/rabbit 3.2.2-2.beta-0 → 3.2.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/src/lib/types.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { AmqpConnectionManager } from 'amqp-connection-manager';
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
@@ -1,4 +1,4 @@
1
- import Logger from '@autofleet/logger';
1
+ const Logger = require('@autofleet/logger');
2
2
 
3
3
  const logger = Logger();
4
4
 
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
  }