New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ussd-builder

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ussd-builder - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

lib/ussd-menu-old.js

13

lib/ussd-menu.js

@@ -50,3 +50,3 @@ 'use strict';

USERID: this.args.userId,
MSISDN: this.args.MSISDN,
MSISDN: this.args.phoneNumber,
};

@@ -75,3 +75,3 @@ } else {

USERID: this.args.userId,
MSISDN: this.args.MSISDN,
MSISDN: this.args.phoneNumber,
};

@@ -348,4 +348,2 @@ } else {

// args.Type = args.MSGTYPE === true ? "Initiation" : "Response";
// args.text = args.USERDATA.length > 0? args.USERDATA : '',
// args.serviceCode = "*920#"
args.Text = '',

@@ -375,2 +373,3 @@ args.ServiceCode = '*';

if (text === `*${serviceCode}#`) {
console.log(text, serviceCode)
return '';

@@ -380,2 +379,3 @@ } else {

const routeStart = serviceCode.length + 2;
console.log(routeStart)
return text.slice(routeStart, -1);

@@ -386,3 +386,5 @@ }

parseNaloInitiationText(naloArgs) {
const { ServiceCode: serviceCode, Message: text } = naloArgs;
console.log(naloArgs);
const { ServiceCode: serviceCode, USERDATA: text } = naloArgs;
console.log(serviceCode, text);
if (text === `*${serviceCode}#`) {

@@ -393,2 +395,3 @@ return '';

const routeStart = serviceCode.length + 2;
console.log(routeStart)
return text.slice(routeStart, -1);

@@ -395,0 +398,0 @@ }

{
"name": "ussd-builder",
"version": "1.1.9",
"version": "1.1.10",
"description": "Easily compose USSD menus using states, compatible with Africastalking, Hubtel, Emergent & Nalo Ussd API",

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