vdj 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ export default abstract class Song {
11
11
  readonly title?: string;
12
12
  readonly playlistID?: string | number;
13
13
  constructor(service: IService);
14
- toggleLoop(): boolean;
14
+ abstract getSongInfo(): Promise<SongInfo>;
15
15
  abstract stream(): Promise<ReadableStream> | ReadableStream | null;
16
+ toggleLoop(): boolean;
16
17
  }
package/dist/core/song.js CHANGED
@@ -9,5 +9,6 @@ class Song {
9
9
  toggleLoop() {
10
10
  return this.loop = !this.loop;
11
11
  }
12
+ ;
12
13
  }
13
14
  exports.default = Song;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vdj",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/core/song.ts CHANGED
@@ -17,9 +17,11 @@ export default abstract class Song {
17
17
  Object.defineProperty(this, 'service', { value: service });
18
18
  }
19
19
 
20
- public toggleLoop(): boolean {
21
- return this.loop = !this.loop;
22
- }
20
+ public abstract getSongInfo(): Promise<SongInfo>;
23
21
 
24
22
  public abstract stream(): Promise<ReadableStream> | ReadableStream | null;
23
+
24
+ public toggleLoop(): boolean {
25
+ return this.loop = !this.loop;
26
+ };
25
27
  }