Socket
Socket
Sign inDemoInstall

helliomessaging-nodejs

Package Overview
Dependencies
14
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

__test__/index.test.js

33

package.json
{
"name": "helliomessaging-nodejs",
"version": "1.0.0",
"version": "1.0.1",
"description": "A Node.js package for integrating with Hellio Messaging API. This package provides functionalities for sending SMS, generating OTP, performing number lookup, checking delivery reports, checking sms and voice pricing and checking account balance.",
"keywords": [
"hellio messaging",
"sms",
"sms api",
"nodejs sms api",
"otp api",
"voice sms api",
"number lookup",
"sms delivery report",
"sms balance check",
"sms API integration",
"Node.js",
"sms package",
"sms library",
"sms gateway",
"messaging service",
"authentication api",
"verification api",
"carrier lookup",
"SMS notifications",
"messaging solution"
],
"main": "src/index.js",
"scripts": {
"build": "babel src -d dist",
"start": "node src/index.js"
"start": "node src/index.js",
"test": "jest"
},

@@ -15,4 +38,8 @@ "author": "Albert A. Ninyeh (VimKanzo)",

"crypto": "^1.0.1",
"moment": "^2.29.4"
"moment": "^2.29.4",
"sha1": "^1.1.1"
},
"devDependencies": {
"jest": "^29.5.0"
}
}

10

src/index.js

@@ -30,3 +30,3 @@ const axios = require("axios");

sendSMS(params) {
const endpoint = "/sms";
const endpoint = "/v2/sms";

@@ -82,3 +82,3 @@ const payload = {

numberLookup(params) {
const endpoint = "/hlr/request";
const endpoint = "/v1/hlr/request";

@@ -98,3 +98,3 @@ const payload = {

getRoutingPrice(params) {
const endpoint = "/route/pricing";
const endpoint = "/v1/route/pricing";

@@ -114,3 +114,3 @@ const queryParams = {

checkDeliveryReport(params) {
const endpoint = "/delivery-logs";
const endpoint = "v1/delivery-logs";

@@ -132,3 +132,3 @@ const queryParams = {

checkBalance() {
const endpoint = "/credit-balance";
const endpoint = "/v1/credit-balance";

@@ -135,0 +135,0 @@ return this.api

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