Comparing version 12.0.0 to 12.0.1
@@ -17,3 +17,3 @@ "use strict"; | ||
class Hercai { | ||
constructor(apiKey) { | ||
constructor(apiKey="") { | ||
if(apiKey == undefined || apiKey == null || apiKey == "" || typeof apiKey !== "string")this.apiKey = ""; | ||
@@ -43,6 +43,4 @@ this.apiKey = apiKey; | ||
"content-type": "application/json", | ||
"Authorization": this.apiKey | ||
}, | ||
data:{ | ||
key:this.apiKey | ||
}, | ||
}) | ||
@@ -73,6 +71,4 @@ return api.data; | ||
"content-type": "application/json", | ||
"Authorization": this.apiKey, | ||
}, | ||
data:{ | ||
key:this.apiKey | ||
}, | ||
}) | ||
@@ -79,0 +75,0 @@ return api.data; |
{ | ||
"name": "hercai", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "A powerful library for interacting with the Herc.ai API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ export = Hercai; | ||
declare class Hercai { | ||
constructor(apiKey?:string); | ||
constructor(apiKey?:string|""); | ||
/** | ||
@@ -13,0 +13,0 @@ * The Question You Want to Ask Artificial Intelligence. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48638
149