@euterpe.js/music-library
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@euterpe.js/music-library", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A simple music library, acting as a Local DB as JS Object. Contains everything a person would need to store their music data for website playback.", |
@@ -47,3 +47,3 @@ export { RefTo, Ref, Song, Collection, DB, Artist, Platforms, CollectionType, from_json }; | ||
id?: ID; | ||
metadata?: Map<string, any>; | ||
metadata?: any[]; | ||
} | ||
@@ -62,3 +62,3 @@ declare class Song { | ||
fft_data?: number[]; | ||
metadata: Map<string, any>; | ||
metadata: any[]; | ||
/** | ||
@@ -77,3 +77,3 @@ * The ID is always there, don't worry :) | ||
id?: ID; | ||
metadata?: Map<string, any>; | ||
metadata?: any[]; | ||
} | ||
@@ -86,3 +86,3 @@ declare class Artist { | ||
links?: [Platforms, URL][]; | ||
metadata: Map<string, any>; | ||
metadata: any[]; | ||
/** | ||
@@ -101,3 +101,3 @@ * The ID is always there, don't worry :) | ||
id?: ID; | ||
metadata?: Map<string, any>; | ||
metadata?: any[]; | ||
name?: string; | ||
@@ -114,3 +114,3 @@ type?: CollectionType; | ||
publish_date?: Date; | ||
metadata: Map<string, any>; | ||
metadata: any[]; | ||
/** | ||
@@ -117,0 +117,0 @@ * The ID is always there, don't worry :) |
@@ -66,3 +66,3 @@ export { RefTo, Ref, Song, Collection, DB, Artist, Platforms, CollectionType, from_json }; | ||
this.id = data.id; | ||
this.metadata = data.metadata || new Map; | ||
this.metadata = data.metadata || []; | ||
} | ||
@@ -79,3 +79,3 @@ } | ||
this.id = data.id; | ||
this.metadata = data.metadata || new Map; | ||
this.metadata = data.metadata || []; | ||
} | ||
@@ -92,3 +92,3 @@ } | ||
this.name = data.name; | ||
this.metadata = data.metadata ? data.metadata : new Map; | ||
this.metadata = data.metadata ? data.metadata : []; | ||
} | ||
@@ -95,0 +95,0 @@ } |
Sorry, the diff of this file is not supported yet
28114