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

musicmetadata

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

musicmetadata - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

27

lib/browser.js

@@ -9,25 +9,7 @@ 'use strict'

module.exports = function (stream, opts, callback) {
var wrappedStream = wrapFileWithStream(stream)
if (typeof opts === 'function') {
callback = opts
opts = {}
}
if (opts.autoClose) {
return musicmetadata(wrappedStream.dest, opts, function () {
// Once we have our meta data we abort stream file reader
wrappedStream.abort()
callback.apply(null, arguments)
})
}
return musicmetadata(wrappedStream.dest, opts, callback)
return musicmetadata(wrapFileWithStream(stream), opts, callback)
}
function wrapFileWithStream (file) {
var
streamFileReader,
stream = through(function write (data) {
var stream = through(function write (data) {
if (data.length > 0) this.queue(data)

@@ -56,6 +38,3 @@ }, null, {autoDestroy: false})

streamFileReader = readStream(file)
streamFileReader.pipe(stream)
return streamFileReader
return readStream(file).pipe(stream)
}

@@ -62,0 +41,0 @@

2

package.json
{
"name": "musicmetadata",
"description": "Streaming music metadata parser for node and the browser.",
"version": "2.0.3",
"version": "2.0.4",
"author": "Lee Treveil",

@@ -6,0 +6,0 @@ "dependencies": {

Sorry, the diff of this file is too big to display

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