Socket
Socket
Sign inDemoInstall

smsbip

Package Overview
Dependencies
49
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

39

index.js

@@ -13,3 +13,3 @@ // smsbip - Infobip SMS API wrapper for NodeJS

this.urls = {
base: 'http://api.infobip.com',
base: 'https://api.infobip.com',
balance: '/account/1/balance',

@@ -20,3 +20,5 @@ numberContext: '/number/1/query',

sendOne: '/sms/1/text/single',
sendOneBinary: '/sms/1/binary/single',
sendMulti: '/sms/1/text/multi',
sendMultiBinary: '/sms/1/binary/multi',
sendAdvanced: '/sms/1/text/advanced'

@@ -67,2 +69,30 @@ }

// Alias to sendOne
sendSingle(_from, _to, _text) {
return this.sendOne(_from, _to, _text);
}
sendOneBinary(_from, _to, _hex, _dataCoding, _esmClass) {
if (!_dataCoding) _dataCoding = 0;
if (!_esmClass) _esmClass = 0;
return this._post({
url: this.urls.base + this.urls.sendOneBinary,
json: {
from: _from,
to: _to,
binary: {
hex: _hex,
dataCoding: _dataCoding,
esmClass: _esmClass
}
}
});
}
// Alias to sendOneBinary
sendSingleBinary(_from, _to, _hex, _dataCoding, _esmClass) {
return this.sendOneBinary(_from, _to, _hex, _dataCoding, _esmClass);
}
sendMulti(_messages) {

@@ -75,2 +105,9 @@ return this._post({

sendMultiBinary(_messages) {
return this._post({
url: this.urls.base + this.urls.sendMultiBinary,
json: _messages
});
}
sendAdvanced(_messages) {

@@ -77,0 +114,0 @@ return this._post({

6

package.json
{
"name": "smsbip",
"version": "0.0.4",
"version": "0.0.5",
"description": "Infobip SMS API wrapper for NodeJS",

@@ -24,6 +24,6 @@ "main": "index.js",

"dependencies": {
"bluebird": "^3.4.7",
"request": "^2.79.0",
"bluebird": "^3.5.0",
"request": "^2.81.0",
"underscore": "^1.8.3"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc