From a05a5c662031440ffb8d49cbdee2b513d6a5c55b Mon Sep 17 00:00:00 2001 From: Afonja Tejumade Date: Mon, 16 Oct 2017 21:17:44 +0100 Subject: [PATCH] ToDo: make sure argInEndpoint is string or int Currently you can pass any data type into the endpoint placeholder.. This commit is to make sure only String or Number is allowed. --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 529eaf0..1deb03c 100644 --- a/index.js +++ b/index.js @@ -92,7 +92,7 @@ Paystack.prototype = { // Confirm user passed the argument to method // and replace in endpoint - var match, index; + var match, index, argType; for (var i=0;i