Skip to content

Commit f85acb4

Browse files
committed
resolved issue #10
1 parent 39010bb commit f85acb4

File tree

3 files changed

+38
-34
lines changed

3 files changed

+38
-34
lines changed

bin/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async function start_truecallerjs(argv, authkey) {
325325
}
326326
process.exit();
327327
} else {
328-
if (`+${req_data.parsedPhoneNumber}` == pn.getNumber("e164")) {
328+
if ("parsedPhoneNumber" in req_data && `+${req_data.parsedPhoneNumber}` == pn.getNumber("e164")) {
329329
console.log(
330330
"\n\nPrevious request was found for this mobile number.\n"
331331
);
@@ -350,6 +350,7 @@ async function start_truecallerjs(argv, authkey) {
350350
var x = readlineSync.question(
351351
"Do you want to enter previous OTP (y/n): "
352352
);
353+
353354
}
354355
}
355356
} else {

package-lock.json

Lines changed: 35 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "truecallerjs",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "truecallerjs : A simple package to search phone number details.",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)