Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appolo/bus

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appolo/bus - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

index.js.map

5

module/src/bus/busProvider.js

@@ -113,5 +113,6 @@ "use strict";

}
async getQueueMessagesCount(queue) {
async getQueueMessagesCount(params) {
let { queue, connection } = params;
queue = this.topologyManager.appendEnv(queue) || this.topologyManager.getDefaultQueueName();
let apiQueue = await this.client.api.getQueue({ name: queue });
let apiQueue = await this.client.api.getQueue({ name: queue, connection });
return apiQueue ? apiQueue.messages : 0;

@@ -118,0 +119,0 @@ }

@@ -7,3 +7,3 @@ "use strict";

import {HttpService} from '@appolo/http';
import {Rabbit, IPublishOptions, IRequestOptions, IConnectionOptions,RabbitApi} from "appolo-rabbit";
import {Rabbit, IPublishOptions, IRequestOptions, IConnectionOptions, RabbitApi} from "appolo-rabbit";
import {TopologyManager} from "../topology/topologyManager";

@@ -194,7 +194,9 @@ import {MessageManager} from "../messages/messageManager";

public async getQueueMessagesCount(queue: string): Promise<number> {
public async getQueueMessagesCount(params: { queue: string, connection?: string }): Promise<number> {
let {queue, connection} = params;
queue = this.topologyManager.appendEnv(queue) || this.topologyManager.getDefaultQueueName();
let apiQueue = await this.client.api.getQueue({name: queue});
let apiQueue = await this.client.api.getQueue({name: queue, connection});

@@ -204,3 +206,3 @@ return apiQueue ? apiQueue.messages : 0;

public api():RabbitApi {
public api(): RabbitApi {
return this.client.api;

@@ -207,0 +209,0 @@ }

4

package.json
{
"name": "@appolo/bus",
"version": "8.1.2",
"version": "8.1.3",
"description": "appolo bus module",

@@ -18,3 +18,3 @@ "publishConfig": {

"@appolo/engine": "^8.0.23",
"appolo-rabbit": "^8.1.2",
"appolo-rabbit": "^8.1.3",
"@appolo/utils": "^8.0.5"

@@ -21,0 +21,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc