@opra/rabbitmq 1.27.0 → 1.27.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@opra/core';
|
|
2
|
-
import { classes } from '@opra/common';
|
|
2
|
+
import { classes, MQOperation } from '@opra/common';
|
|
3
3
|
import { RMQ_OPERATION_METADATA, RMQ_OPERATION_METADATA_RESOLVER, } from '../constants.js';
|
|
4
|
+
import { RabbitmqAdapter } from '../rabbitmq-adapter.js';
|
|
4
5
|
/* Implementation **/
|
|
5
6
|
classes.MQOperationDecoratorFactory.augment((decorator, decoratorChain) => {
|
|
6
7
|
decorator.RabbitMQ = (config) => {
|
package/config-builder.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { merge } from '@jsopen/objects';
|
|
2
|
-
import { MQ_CONTROLLER_METADATA, } from '@opra/common';
|
|
2
|
+
import { ApiDocument, MQ_CONTROLLER_METADATA, MQController, MQOperation, } from '@opra/common';
|
|
3
|
+
import * as rabbit from 'rabbitmq-client';
|
|
3
4
|
import { RMQ_OPERATION_METADATA, RMQ_OPERATION_METADATA_RESOLVER, } from './constants.js';
|
|
4
5
|
/**
|
|
5
6
|
* Helper class for building RabbitMQ adapter configuration and operation handlers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/rabbitmq",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"description": "Opra RabbitMQ adapter",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"valgen": "^6.0.3"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@opra/common": "^1.27.
|
|
18
|
-
"@opra/core": "^1.27.
|
|
17
|
+
"@opra/common": "^1.27.2",
|
|
18
|
+
"@opra/core": "^1.27.2",
|
|
19
19
|
"rabbitmq-client": ">=5.0.0 <6"
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
package/rabbitmq-adapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import zlib from 'node:zlib';
|
|
2
2
|
import typeIs from '@browsery/type-is';
|
|
3
3
|
import { updateErrorMessage } from '@jsopen/objects';
|
|
4
|
-
import { MQApi, OpraException, } from '@opra/common';
|
|
4
|
+
import { ApiDocument, MQApi, MQController, OpraException, OpraSchema, } from '@opra/common';
|
|
5
5
|
import { kAssetCache, PlatformAdapter } from '@opra/core';
|
|
6
6
|
import { parse as parseContentType } from 'content-type';
|
|
7
7
|
import iconv from 'iconv-lite';
|
package/rabbitmq-context.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { MQController, MQOperation } from '@opra/common';
|
|
1
2
|
import { ExecutionContext } from '@opra/core';
|
|
3
|
+
import * as rabbit from 'rabbitmq-client';
|
|
2
4
|
/**
|
|
3
5
|
* RabbitmqContext class provides the context for handling RabbitMQ messages.
|
|
4
6
|
* It extends the ExecutionContext and implements the AsyncEventEmitter.
|