Coder Social home page Coder Social logo

smsglobal / smsglobal-node Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 0.0 72 KB

The SMSGlobal Node library provides convenient access to the SMSGlobal rest API from node applications.

License: MIT License

JavaScript 100.00%
sms smsglobal nodejs node node-module node-library nodejs-library

smsglobal-node's People

Contributors

dilantha avatar sahilsaggar avatar spcheema avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

smsglobal-node's Issues

NodeJS + Error: 'data should NOT have additional properties'

I try to integrate SMSGlobal Gateway in my NodeJS application. I use the example code I am getting error.
see below my code .

const SMSGLOBAL_API_KEY = '1233123123213123';
const SMSGLOBAL_API_SECRET = '123123123123123';
const smsglobal = require('smsglobal')(SMSGLOBAL_API_KEY, SMSGLOBAL_API_SECRET);
const util = require('util');

// Send sms
var payload = {
origin: 'SMSGlobal',
destiantion: '97150888888',
message: 'Test sms from node sdk',
};

smsglobal.sms.send(payload, function(error, response) {

if (response) {
console.log('Response:', response.data ? response.data : response);
}

if (error) {
console.log('Error:', util.inspect(error, {showHidden: false, depth: null, colors: true}));
}

});

Axios version used has vulnerabilities

Please release a version with axios updated

axios  0.8.1 - 0.27.2
Severity: moderate
Axios Cross-Site Request Forgery Vulnerability - https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
No fix available
node_modules/smsglobal/node_modules/axios
  smsglobal  *
  Depends on vulnerable versions of axios
  node_modules/smsglobal

Warning when attempting to install

npm audit report

axios 0.8.1 - 1.5.1
Severity: moderate
Axios Cross-Site Request Forgery Vulnerability - GHSA-wf5p-g6vw-rhxx
No fix available
node_modules/smsglobal/node_modules/axios
smsglobal *
Depends on vulnerable versions of axios
node_modules/smsglobal

Update axios lib - security fix

while running npm audit the result is:
found 1 high severity vulnerability

                       === npm audit security report ===                        
                                                                                
┌──────────────────────────────────────────────────────────────────────────────┐
│                                Manual Review                                 │
│            Some vulnerabilities require your attention to resolve            │
│                                                                              │
│         Visit https://go.npm.me/audit-guide for additional guidance          │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Server-Side Request Forgery                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ axios                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=0.21.1                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ smsglobal                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ smsglobal > axios                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1594                            │
└───────────────┴──────────────────────────────────────────────────────────────┘

found 1 high severity vulnerability in scanned packages
1 vulnerability requires manual review. See the full report for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.