@midwayjs/rabbitmq 4.0.0-beta.6 → 4.0.0-beta.8

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.
@@ -1,8 +1,6 @@
1
1
  import { BaseFramework } from '@midwayjs/core';
2
2
  import { IMidwayRabbitMQApplication, IMidwayRabbitMQConfigurationOptions, IMidwayRabbitMQContext } from './interface';
3
3
  export declare class MidwayRabbitMQFramework extends BaseFramework<IMidwayRabbitMQApplication, IMidwayRabbitMQContext, IMidwayRabbitMQConfigurationOptions> {
4
- app: IMidwayRabbitMQApplication;
5
- consumerHandlerList: any[];
6
4
  configure(): any;
7
5
  applicationInitialize(options: any): Promise<void>;
8
6
  run(): Promise<void>;
package/dist/framework.js CHANGED
@@ -10,10 +10,6 @@ exports.MidwayRabbitMQFramework = void 0;
10
10
  const core_1 = require("@midwayjs/core");
11
11
  const mq_1 = require("./mq");
12
12
  let MidwayRabbitMQFramework = class MidwayRabbitMQFramework extends core_1.BaseFramework {
13
- constructor() {
14
- super(...arguments);
15
- this.consumerHandlerList = [];
16
- }
17
13
  configure() {
18
14
  return this.configService.getConfiguration('rabbitmq');
19
15
  }
package/dist/mq.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This RabbitMQ Server changed from https://github.com/JeniTurtle/egg-rabbitmq-plus/blob/master/rabbitmq.ts
3
3
  */
4
- /// <reference types="node" />
5
4
  import * as amqp from 'amqp-connection-manager';
6
5
  import { IRabbitMQApplication } from './interface';
7
6
  import { ConsumeMessage } from 'amqplib/properties';
package/dist/mq.js CHANGED
@@ -7,10 +7,12 @@ exports.RabbitMQServer = void 0;
7
7
  const amqp = require("amqp-connection-manager");
8
8
  const events_1 = require("events");
9
9
  class RabbitMQServer extends events_1.EventEmitter {
10
+ channelManagerSet = new Set();
11
+ connection = null;
12
+ logger;
13
+ reconnectTime;
10
14
  constructor(options = {}) {
11
15
  super();
12
- this.channelManagerSet = new Set();
13
- this.connection = null;
14
16
  this.logger = options.logger;
15
17
  this.reconnectTime = options.reconnectTime ?? 10 * 1000;
16
18
  this.bindError();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/rabbitmq",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-beta.8",
4
4
  "description": "Midway Framework for rabbitmq",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "fs-extra": "11.3.0"
31
31
  },
32
32
  "dependencies": {
33
- "@midwayjs/core": "^4.0.0-beta.6",
33
+ "@midwayjs/core": "^4.0.0-beta.8",
34
34
  "amqp-connection-manager": "4.1.15"
35
35
  },
36
36
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=20"
47
47
  },
48
- "gitHead": "a02425777d044ec502d050993bc256dc26d5b586"
48
+ "gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
49
49
  }