@bigbinary/neeto-playwright-reporter 1.3.5 → 1.3.6

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.cjs.js CHANGED
@@ -18577,19 +18577,18 @@ const sendHeartBeatSignal = async (ciBuildId) => {
18577
18577
  }
18578
18578
  };
18579
18579
 
18580
- const setAuthHeaders = (projectKey) => {
18581
- var _a;
18580
+ const setAuthHeaders = ({ projectKey, apiKey, }) => {
18582
18581
  axios.defaults.headers = {
18583
18582
  ...axios.defaults.headers,
18584
18583
  [HEADERS_KEYS.projectKey]: projectKey,
18585
- [HEADERS_KEYS.apiKey]: (_a = process.env.API_KEY) !== null && _a !== void 0 ? _a : "",
18584
+ [HEADERS_KEYS.apiKey]: apiKey !== null && apiKey !== void 0 ? apiKey : "",
18586
18585
  [HEADERS_KEYS.accept]: "application/json",
18587
18586
  [HEADERS_KEYS.contentType]: "application/json",
18588
18587
  };
18589
18588
  };
18590
- function initializeAxios({ projectKey, baseURL, }) {
18589
+ function initializeAxios({ projectKey, baseURL, apiKey, }) {
18591
18590
  axios.defaults.baseURL = baseURL !== null && baseURL !== void 0 ? baseURL : "https://connect.neetoplaydash.net";
18592
- setAuthHeaders(projectKey);
18591
+ setAuthHeaders({ projectKey, apiKey });
18593
18592
  }
18594
18593
 
18595
18594
  const create = (ciBuildId, payload) => axios.post(`${API_BASE_URL}/reporter/runs/${ciBuildId}/test_entities`, {