Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/log

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/log - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

2

package.json
{
"name": "@jsenv/log",
"version": "1.5.1",
"version": "1.5.2",
"description": "Nice and dynamic logs in the terminal",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,15 +23,16 @@ export const startSpinner = ({

log.write(render())
interval = setInterval(() => {
frameIndex = frameIndex === frames.length - 1 ? 0 : frameIndex + 1
log.dynamicWrite(({ outputFromOutside }) => {
if (outputFromOutside && stopOnWriteFromOutside) {
stop()
return ""
}
return render()
})
}, 1000 / fps)
if (!keepProcessAlive) {
interval.unref()
if (process.stdout.isTTY) {
interval = setInterval(() => {
frameIndex = frameIndex === frames.length - 1 ? 0 : frameIndex + 1
log.dynamicWrite(({ outputFromOutside }) => {
if (outputFromOutside && stopOnWriteFromOutside) {
stop()
return ""
}
return render()
})
}, 1000 / fps)
if (!keepProcessAlive) {
interval.unref()
}
}

@@ -38,0 +39,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc