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

plivo

Package Overview
Dependencies
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plivo - npm Package Compare versions

Comparing version 4.1.6 to 4.1.7

3

CHANGELOG.md
# Change Log
## [4.1.7](https://github.com/plivo/plivo-node/releases/tag/v4.1.7)(2019-12-04)
- Add MMS support.
## [4.1.6](https://github.com/plivo/plivo-node/releases/tag/v4.1.6)(2019-11-14)

@@ -4,0 +7,0 @@ - Fix list APIs to return meta in response.

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

var clientKey = Symbol();
var action = 'Message/';

@@ -51,3 +52,3 @@ var idField = 'messageUuid';

_this.id = data[idField];
}
};

@@ -58,2 +59,19 @@ (0, _common.extend)(_this, data);

_createClass(Message, [{
key: 'listMedia',
value: function listMedia() {
return _get(Message.prototype.__proto__ || Object.getPrototypeOf(Message.prototype), 'executeAction', this).call(this, this.id + '/Media/', 'Get', {});
}
}, {
key: 'deleteMedia',
value: function deleteMedia() {
return _get(Message.prototype.__proto__ || Object.getPrototypeOf(Message.prototype), 'executeAction', this).call(this, this.id + '/Media/', 'Delete', {});
}
}, {
key: 'getMedia',
value: function getMedia(mediaID) {
return _get(Message.prototype.__proto__ || Object.getPrototypeOf(Message.prototype), 'executeAction', this).call(this, this.id + '/Media/' + mediaID + '/', 'Get', {});
}
}]);
return Message;

@@ -79,2 +97,3 @@ }(_base.PlivoResource);

(0, _common.extend)(_this2, data);
_this2[clientKey] = client;
return _this2;

@@ -90,5 +109,6 @@ }

* @param {object} optionalParams - Optional Params to send message
* @param {string} [optionalParams.type] - The type of message. Should be `sms` for a text message. Defaults to `sms`.
* @param {string} [optionalParams.type] - The type of message. Should be `sms` or `mms`. Defaults to `sms`.
* @param {string} [optionalParams.url] The URL to which with the status of the message is sent.
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {list} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.

@@ -113,6 +133,7 @@ * @promise {object} return {@link PlivoGenericMessage} object if success

* @param {object} optionalParams - Optional Params to send message
* @param {string} [optionalParams.type] - The type of message. Should be `sms` for a text message. Defaults to `sms`.
* @param {string} [optionalParams.type] - The type of message. Should be `sms` or `mms`. Defaults to `sms`.
* @param {string} [optionalParams.url] The URL to which with the status of the message is sent.
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
* @param {Array} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @promise {object} return {@link PlivoGenericMessage} object if success

@@ -125,3 +146,7 @@ * @fail {Error} return Error

value: function create(src, dst, text, optionalParams, powerpackUUID) {
var errors = (0, _common.validate)([{ field: 'dst', value: dst, validators: ['isRequired'] }, { field: 'text', value: text, validators: ['isRequired'] }]);
var errors = (0, _common.validate)([{
field: 'dst',
value: dst,
validators: ['isRequired']
}]);

@@ -169,3 +194,7 @@ if (errors) {

value: function get(id) {
var errors = (0, _common.validate)([{ field: 'id', value: id, validators: ['isRequired'] }]);
var errors = (0, _common.validate)([{
field: 'id',
value: id,
validators: ['isRequired']
}]);

@@ -178,2 +207,23 @@ if (errors) {

}
}, {
key: 'listMedia',
value: function listMedia(messageUUID) {
return new Message(this[clientKey], {
id: messageUUID
}).listMedia();
}
}, {
key: 'getMedia',
value: function getMedia(messageUUID, mediaID) {
return new Message(this[clientKey], {
id: messageUUID
}).getMedia(mediaID);
}
}, {
key: 'deleteMedia',
value: function deleteMedia(messageUUID) {
return new Message(this[clientKey], {
id: messageUUID
}).deleteMedia();
}
}]);

@@ -180,0 +230,0 @@

2

package.json
{
"name": "plivo",
"version": "4.1.6",
"version": "4.1.7",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/plivo/plivo-node",

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