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

ali-ons

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-ons - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

History.md
2.0.2 / 2017-10-09
==================
* fix: persist consumer offset issue
2.0.1 / 2017-09-29

@@ -3,0 +8,0 @@ ==================

2

lib/consumer/mq_push_consumer.js

@@ -125,2 +125,3 @@ 'use strict';

this._isClosed = true;
yield this.persistConsumerOffset();
this._pullFromWhichNodeTable.clear();

@@ -131,3 +132,2 @@ this._subscriptions.clear();

yield this.persistConsumerOffset();
yield this._mqClient.unregisterConsumer(this.consumerGroup);

@@ -134,0 +134,0 @@ yield this._mqClient.close();

@@ -173,3 +173,3 @@ 'use strict';

e.message = 'readLocalOffset() failed' + e.message;
this.logger.error(e);
this.emit('error', e);
return null;

@@ -176,0 +176,0 @@ }

@@ -94,3 +94,3 @@ 'use strict';

err.message = `RemoteBrokerOffsetStore.readOffset failed, topic: ${messageQueue.topic}, group: ${this.groupName}, queueId: ${messageQueue.queueId}, type: ${type} ` + err.message;
this.logger.error(err);
this.emit('error', err);
}

@@ -119,5 +119,9 @@ return -1;

}
this.logger.info('[mq:RemoteBrokerOffsetStore] %s', info);
this.offsetTable = newTable;
const ret = yield gather(tasks);
this.logger.info('[mq:RemoteBrokerOffsetStore] ' + info + ' result:' + JSON.stringify(ret));
const errors = ret.filter(item => item.isError);
for (const err of errors) {
this.emit('error', err);
}
}

@@ -124,0 +128,0 @@

{
"name": "ali-ons",
"version": "2.0.1",
"version": "2.0.2",
"description": "Aliyun Open Notification Service Client",

@@ -58,3 +58,3 @@ "main": "./lib/index.js",

"egg-bin": "^4.3.3",
"eslint": "^4.7.2",
"eslint": "^4.8.0",
"eslint-config-egg": "^5.1.1",

@@ -61,0 +61,0 @@ "mm": "^2.2.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