@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 +4 -5
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +4 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -18558,19 +18558,18 @@ const sendHeartBeatSignal = async (ciBuildId) => {
|
|
|
18558
18558
|
}
|
|
18559
18559
|
};
|
|
18560
18560
|
|
|
18561
|
-
const setAuthHeaders = (projectKey) => {
|
|
18562
|
-
var _a;
|
|
18561
|
+
const setAuthHeaders = ({ projectKey, apiKey, }) => {
|
|
18563
18562
|
axios.defaults.headers = {
|
|
18564
18563
|
...axios.defaults.headers,
|
|
18565
18564
|
[HEADERS_KEYS.projectKey]: projectKey,
|
|
18566
|
-
[HEADERS_KEYS.apiKey]:
|
|
18565
|
+
[HEADERS_KEYS.apiKey]: apiKey !== null && apiKey !== void 0 ? apiKey : "",
|
|
18567
18566
|
[HEADERS_KEYS.accept]: "application/json",
|
|
18568
18567
|
[HEADERS_KEYS.contentType]: "application/json",
|
|
18569
18568
|
};
|
|
18570
18569
|
};
|
|
18571
|
-
function initializeAxios({ projectKey, baseURL, }) {
|
|
18570
|
+
function initializeAxios({ projectKey, baseURL, apiKey, }) {
|
|
18572
18571
|
axios.defaults.baseURL = baseURL !== null && baseURL !== void 0 ? baseURL : "https://connect.neetoplaydash.net";
|
|
18573
|
-
setAuthHeaders(projectKey);
|
|
18572
|
+
setAuthHeaders({ projectKey, apiKey });
|
|
18574
18573
|
}
|
|
18575
18574
|
|
|
18576
18575
|
const create = (ciBuildId, payload) => axios.post(`${API_BASE_URL}/reporter/runs/${ciBuildId}/test_entities`, {
|