music-metadata
Advanced tools
Comparing version 0.6.1 to 0.6.2
'use strict'; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var equal = require("deep-equal"); | ||
@@ -13,0 +8,0 @@ var strtok = require("strtok2"); |
@@ -72,3 +72,3 @@ import { HeaderType } from './tagmap'; | ||
gapless?: string; | ||
barcode?: string; | ||
barcode?: number; | ||
isrc?: string; | ||
@@ -127,7 +127,7 @@ asin?: string; | ||
} | ||
export interface IResult { | ||
export interface IAudioMetadata { | ||
common: ICommonTagsResult; | ||
format: IFormat; | ||
} | ||
export declare type ICallbackType = (error?: Error, result?: IResult) => void; | ||
export declare type ICallbackType = (error?: Error, metadata?: IAudioMetadata) => void; | ||
export interface IOptions { | ||
@@ -134,0 +134,0 @@ path?: string; |
@@ -242,2 +242,5 @@ /* jshint maxlen: 300 */ | ||
break; | ||
case 'barcode': | ||
comTags.barcode = typeof value === 'string' ? parseInt(value, 10) : value; | ||
break; | ||
case 'picture': | ||
@@ -244,0 +247,0 @@ value = this.cleanupPicture(value); |
{ | ||
"name": "music-metadata", | ||
"description": "Streaming music metadata parser for node and the browser.", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Borewit", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1106126
16311