smsglobal / smsglobal-node Goto Github PK
View Code? Open in Web Editor NEWThe SMSGlobal Node library provides convenient access to the SMSGlobal rest API from node applications.
License: MIT License
The SMSGlobal Node library provides convenient access to the SMSGlobal rest API from node applications.
License: MIT License
Error: connect ETIMEDOUT 103.214.210.57:443\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)\n at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:130:17)",
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}));
}
});
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
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.