fapshi 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ module.exports =class FAPSHI {
|
|
|
9
9
|
* @param {string} key : api key access
|
|
10
10
|
*/
|
|
11
11
|
constructor(user, key) {
|
|
12
|
-
if(!user
|
|
12
|
+
if(!user||!key) throw new Error("Mention your user name and api key ");
|
|
13
13
|
|
|
14
14
|
this.apiuser = user;
|
|
15
15
|
this.key = key;
|