@midwayjs/rabbitmq 3.0.0-beta.3 → 3.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/CHANGELOG.md +11 -0
- package/dist/configuration.d.ts +0 -1
- package/dist/configuration.js +0 -5
- package/dist/interface.d.ts +2 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
|
|
7
18
|
|
|
8
19
|
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -14,11 +14,6 @@ const decorator_1 = require("@midwayjs/decorator");
|
|
|
14
14
|
const framework_1 = require("./framework");
|
|
15
15
|
let RabbitMQConfiguration = class RabbitMQConfiguration {
|
|
16
16
|
async onReady() { }
|
|
17
|
-
async onServerReady() {
|
|
18
|
-
if (this.framework.isEnable()) {
|
|
19
|
-
await this.framework.run();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
17
|
};
|
|
23
18
|
__decorate([
|
|
24
19
|
(0, decorator_1.Inject)(),
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
|
|
1
|
+
import { IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
|
|
2
2
|
import { ConsumeMessage, Options } from 'amqplib/properties';
|
|
3
3
|
import { RabbitMQListenerOptions } from '@midwayjs/decorator';
|
|
4
4
|
import type { ConfirmChannel, Channel, Options as AmqpOptions } from 'amqplib';
|
|
@@ -29,6 +29,7 @@ export declare type IMidwayRabbitMQContext = IMidwayContext<{
|
|
|
29
29
|
export declare type Application = IMidwayRabbitMQApplication;
|
|
30
30
|
export interface Context extends IMidwayRabbitMQContext {
|
|
31
31
|
}
|
|
32
|
+
export declare type NextFunction = BaseNextFunction;
|
|
32
33
|
export declare type DefaultConfig = string | AmqpOptions.Connect;
|
|
33
34
|
declare module '@midwayjs/core/dist/interface' {
|
|
34
35
|
interface MidwayConfig {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/rabbitmq",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"description": "Midway Framework for rabbitmq",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
],
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@midwayjs/decorator": "^3.0.0-beta.
|
|
27
|
-
"@midwayjs/mock": "^3.0.0-beta.
|
|
26
|
+
"@midwayjs/decorator": "^3.0.0-beta.4",
|
|
27
|
+
"@midwayjs/mock": "^3.0.0-beta.4",
|
|
28
28
|
"@types/amqplib": "*",
|
|
29
29
|
"fs-extra": "^8.0.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@midwayjs/core": "^3.0.0-beta.
|
|
33
|
-
"@midwayjs/logger": "^3.0.0-beta.
|
|
32
|
+
"@midwayjs/core": "^3.0.0-beta.4",
|
|
33
|
+
"@midwayjs/logger": "^3.0.0-beta.4",
|
|
34
34
|
"amqp-connection-manager": "^3.2.2",
|
|
35
35
|
"amqplib": "*"
|
|
36
36
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=12"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "02e2144e302f807770b512b0d89da3145b1cbf2e"
|
|
50
50
|
}
|