One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
6955
/
root
/
usr
/
share
/
nodejs
/
coveralls
/
lib
/
Edit File:
sendToCoveralls.js
'use strict'; const fetch = require('node-fetch'); const index = require('..'); const sendToCoveralls = (obj, cb) => { let urlBase = 'https://coveralls.io'; if (process.env.COVERALLS_ENDPOINT) { urlBase = process.env.COVERALLS_ENDPOINT; } const str = JSON.stringify(obj); const url = `${urlBase}/api/v1/jobs`; if (index.options.stdout) { process.stdout.write(str); cb(null, { statusCode: 200 }, ''); } else { fetch(url, { method: "post", body: str, headers: { 'Content-Type': 'application/json' }, }).then(res => { cb(null, res, res.body); }).catch(err => { cb(err); }); } }; module.exports = sendToCoveralls;
Simpan