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

28 lines 865 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateQmateUsage = updateQmateUsage; const undici_1 = require("undici"); async function updateQmateUsage(id, usageData) { const urlUsage = `https://stats.qmate.proc.only.sap/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