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

apistore-sms

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apistore-sms - npm Package Compare versions

Comparing version 0.7.30 to 0.7.31

12

lib/smsAgent.js

@@ -16,2 +16,3 @@ /*

*/
var fs = require('fs');
var _ = require('lodash');

@@ -21,3 +22,2 @@ var r = require('request-promise');

var APISTORE_SMS_HOST = 'http://api.openapi.io/ppurio/1/message';

@@ -136,6 +136,10 @@

// form.file should be a stream.
// form.file should be a stream or a filepath.
// ex) form.file = fs.createReadStream('./example.jpg')
if (form.file)
newForm[ 'file' ] = form.file;
if (form.file) {
if (typeof form.file === 'string')
newForm[ 'file' ] = fs.createReadStream(form.file);
else
newForm[ 'file' ] = form.file;
}

@@ -142,0 +146,0 @@ if (form.from) newForm[ 'send_phone' ] = form.from;

{
"name": "apistore-sms",
"version": "0.7.30",
"version": "0.7.31",
"description": "Send SMS with Node.js via API Store SMS service.",

@@ -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