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

sonic-boom

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonic-boom - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

9

index.js

@@ -22,2 +22,3 @@ 'use strict'

sonic._writing = true
sonic._asyncDrainScheduled = false
sonic.file = file

@@ -168,5 +169,13 @@

}
this.on('newListener', function (name) {
if (name === 'drain') {
this._asyncDrainScheduled = false
}
})
}
function emitDrain (sonic) {
const hasListeners = sonic.listenerCount('drain') > 0
if (!hasListeners) return
sonic._asyncDrainScheduled = false

@@ -173,0 +182,0 @@ sonic.emit('drain')

2

package.json
{
"name": "sonic-boom",
"version": "1.0.2",
"version": "1.1.0",
"description": "Extremely fast utf8 only stream implementation",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -76,4 +76,2 @@ 'use strict'

t.ok(stream.write('hello world\n'))
stream.once('drain', () => {

@@ -95,2 +93,4 @@ fs.readFile(dest, 'utf8', (err, data) => {

t.ok(stream.write('hello world\n'))
stream.on('finish', () => {

@@ -97,0 +97,0 @@ t.pass('finish emitted')

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