New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amqp-extension

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amqp-extension - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# [3.2.0](https://github.com/Tada5hi/amqp-extension/compare/v3.1.1...v3.2.0) (2024-03-11)
### Bug Fixes
* remove unnecessary alias option ([8027d0a](https://github.com/Tada5hi/amqp-extension/commit/8027d0afb2063e5d0387dacf26cd77444dc933e4))
### Features
* allways close channel after publishing ([a9b300f](https://github.com/Tada5hi/amqp-extension/commit/a9b300f6ab64d176a656cf9fc485f31a36168a7f))
## [3.1.1](https://github.com/Tada5hi/amqp-extension/compare/v3.1.0...v3.1.1) (2024-03-07)

@@ -2,0 +14,0 @@

1

dist/consume/utils.js

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

return (0, utils_1.removeKeysFromOptions)({ ...options }, [
'alias',
'exchange',

@@ -10,0 +9,0 @@ 'queueName',

@@ -160,6 +160,8 @@ "use strict";

}
return channel.publish(this.config.exchange.name, exchangeOptions.routingKey, buffer, (0, publish_1.buildDriverPublishOptions)({
const published = channel.publish(this.config.exchange.name, exchangeOptions.routingKey, buffer, (0, publish_1.buildDriverPublishOptions)({
persistent: true,
...options,
}));
await channel.close();
return published;
}

@@ -175,8 +177,10 @@ // publish to default exchange

});
return channel.sendToQueue(queueName, buffer, (0, publish_1.buildDriverPublishOptions)({
const published = channel.sendToQueue(queueName, buffer, (0, publish_1.buildDriverPublishOptions)({
persistent: true,
...options,
}));
await channel.close();
return published;
}
}
exports.Client = Client;

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

return (0, utils_1.removeKeysFromOptions)({ ...options }, [
'alias',
'exchange',

@@ -10,0 +9,0 @@ 'queueName',

import type { Options } from 'amqplib';
import type { ConfigInput } from './config';
import type { ExchangeOptions } from './exchange';
type CommonOptions = {
/**
* Config key or object.
*/
alias?: string | ConfigInput;
/**
* Exchange

@@ -11,0 +6,0 @@ *

{
"name": "amqp-extension",
"version": "3.1.1",
"version": "3.2.0",
"description": "An amqp extension with functions and utility functions to consume and publish queue messages.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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