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

@alicloud/mns

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/mns - npm Package Compare versions

Comparing version 1.0.0-beta2 to 1.0.0-beta3

18

lib/client.js

@@ -124,4 +124,4 @@ 'use strict';

const contentType = 'text/xml';
const degist = kitx.md5(body, 'hex');
const md5 = Buffer.from(degist, 'utf8').toString('base64');
const digest = kitx.md5(body, 'hex');
const md5 = Buffer.from(digest, 'utf8').toString('base64');

@@ -204,3 +204,15 @@ const headers = Object.assign({

batchReceiveMessage() {}
async batchReceiveMessage(queueName, numOfMessages, waitSeconds) {
var url = `/queues/${queueName}/messages?numOfMessages=${numOfMessages}`;
if (waitSeconds) {
url += `&waitseconds=${waitSeconds}`;
}
const subType = 'Message';
// 31000 31s +1s max waitSeconds is 30s
var response = await this.get(url, 'Messages', {timeout: 31000});
response.body = response.body[subType];
return response;
}
peekMessage() {}

@@ -207,0 +219,0 @@ batchPeekMessage() {}

2

package.json
{
"name": "@alicloud/mns",
"version": "1.0.0-beta2",
"version": "1.0.0-beta3",
"description": "> 该 SDK 并未完全实现所有文档所提及的功能,如果您想使用的功能并未实现,请提[issue](https://github.com/aliyun/aliyun-mns-nodejs-sdk/issues/new)以增加优先级。",

@@ -5,0 +5,0 @@ "main": "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