UNPKG

@sap_oss/wdio-qmate-service

Version:

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/wdio-qmate-service)](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[![Node.js CI](https://github.com/SAP/wdio-qmate-service/actions/workflows/node.js.yml/badge.svg)](http

29 lines 907 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateQmateUsage = updateQmateUsage; const undici_1 = require("undici"); const constants_1 = require("./constants"); async function updateQmateUsage(id, usageData) { const urlUsage = `${constants_1.STATS_SERVER_URL}/api/usage/qmate/${id}`; try { const response = await (0, undici_1.fetch)(urlUsage, { method: "PUT", headers: { "Content-Type": "application/json", }, body: JSON.stringify(usageData), dispatcher: new undici_1.Agent({ connect: { rejectUnauthorized: false, } }) }); if (!response.ok) { // Intentionally ignore } } catch (error) { // Intentionally ignore } } //# sourceMappingURL=updateUsage.js.map