You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string} [opts.baseURL=process.env['WARP_HR_BASE_URL'] ?? https://api.joinwarp.com] - Override the default base URL for the API.
152
152
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
153
153
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
@@ -158,12 +158,12 @@ export class WarpHr {
158
158
*/
159
159
constructor({
160
160
baseURL =readEnv('WARP_HR_BASE_URL'),
161
-
apiKey =readEnv('WARP_HR_API_KEY'),
161
+
apiKey =readEnv('WARP_API_KEY'),
162
162
...opts
163
163
}: ClientOptions={}){
164
164
if(apiKey===undefined){
165
165
thrownewErrors.WarpHrError(
166
-
"The WARP_HR_API_KEY environment variable is missing or empty; either provide it, or instantiate the WarpHr client with an apiKey option, like new WarpHr({ apiKey: 'My API Key' }).",
166
+
"The WARP_API_KEY environment variable is missing or empty; either provide it, or instantiate the WarpHr client with an apiKey option, like new WarpHr({ apiKey: 'My API Key' }).",
0 commit comments