ussd-builder
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -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", |
78557
10
1478