⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
node_modules
/
nyc
/
lib
/
instrumenters
/
Edit File: istanbul.js
'use strict' function InstrumenterIstanbul (options) { const { createInstrumenter } = require('istanbul-lib-instrument') const convertSourceMap = require('convert-source-map') const instrumenter = createInstrumenter({ autoWrap: true, coverageVariable: '__coverage__', embedSource: true, compact: options.compact, preserveComments: options.preserveComments, produceSourceMap: options.produceSourceMap, ignoreClassMethods: options.ignoreClassMethods, esModules: options.esModules, parserPlugins: options.parserPlugins }) return { instrumentSync (code, filename, { sourceMap, registerMap }) { var instrumented = instrumenter.instrumentSync(code, filename, sourceMap) if (instrumented !== code) { registerMap() } // the instrumenter can optionally produce source maps, // this is useful for features like remapping stack-traces. if (options.produceSourceMap) { var lastSourceMap = instrumenter.lastSourceMap() /* istanbul ignore else */ if (lastSourceMap) { instrumented += '\n' + convertSourceMap.fromObject(lastSourceMap).toComment() } } return instrumented }, lastFileCoverage () { return instrumenter.lastFileCoverage() } } } module.exports = InstrumenterIstanbul
Simpan