![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
console-pro-trace
Advanced tools
tarce your function. calc the case time.
when you have cluster process. you can use mter to split the log view.
// test/demo1.ts
import { console, registerClassDebug, IS_IN_TRACE_MODE } from '../src/';
class A {
async say(word) {
console.log(word)
}
}
registerClassDebug(A, 'A');
const a = new A();
a.say('qaq');
The log is not output by default. You need to configure environment variables:TRACE
or CONSOLE_PRO_TRACE
.
for example:
# in unix
TRACE='*' node your-app.js
# in windows cmd
set TRACE="*"
node your-app.js
# in windows powershell
$env:TRACE="*"
node your-app.js
now, run the demo1.ts
:
TRACE=* ts-node test/demo1.ts
PS:the
console
instance is from console-pro.
TRACE
registerClassDebug(A, 'A');
registerClassDebug(B, 'B');
TRACE="A,B"
registerClassDebug(A, 'my/A');
registerClassDebug(B, 'my/B');
TRACE="my/*"
you can define static function getUnDebugMethodNames
for class to skip debug some function.
class A {
async say(word) {
console.log(word)
}
private _dosomething(cb){
setTimeout(cb, 1000)
}
static getUnDebugMethodNames(){
return ["_dosomething"]
}
}
import { console, registerInstanceDebug } from '../src/';
registerInstanceDebug({
async say(word) {
console.log(word)
}
_dosomething(cb){
setTimeout(cb, 1000)
}
getUnDebugMethodNames(){
return ["_dosomething"]
}
}, 'my/simple/instance');
FAQs
tarce your function. calc the case time.
The npm package console-pro-trace receives a total of 4 weekly downloads. As such, console-pro-trace popularity was classified as not popular.
We found that console-pro-trace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.