From db814de02173750e6d49faaff99794345f58d670 Mon Sep 17 00:00:00 2001 From: EUCLID Date: Fri, 10 Apr 2026 20:13:54 -0400 Subject: [PATCH] bump version --- package.json | 2 +- src/streamers/qobuz/main.ts | 3 ++- src/types.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 437238c..c375794 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "verdana", - "version": "1.0.2", + "version": "1.1.0", "description": "A modular music downloader tool", "main": "build/index.js", "type": "module", diff --git a/src/streamers/qobuz/main.ts b/src/streamers/qobuz/main.ts index aa17401..30cc7b6 100644 --- a/src/streamers/qobuz/main.ts +++ b/src/streamers/qobuz/main.ts @@ -1,6 +1,7 @@ import crypto from 'crypto' import { fetch, Dispatcher } from 'undici' import { + Id, ItemType, StreamerWithLogin, SearchResults, @@ -175,7 +176,7 @@ export default class Qobuz implements StreamerWithLogin { } } - async #getFileUrl(trackId: string, formatId: string | number): Promise { + async #getFileUrl(trackId: string, formatId: Id): Promise { if (!this.token) throw new Error('Not logged in.') const params: { [key: string]: string } = { diff --git a/src/types.ts b/src/types.ts index 29cf370..f6e780d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -type Id = string | number +export type Id = string | number export type ItemType = 'artist' | 'album' | 'track' | 'episode' | 'podcast' | 'playlist' export type Region = string