fix spotify options, bump version

This commit is contained in:
hazycora
2023-09-17 02:06:20 -04:00
parent 418f106f7c
commit 8da27c3a4c
3 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "lucida",
"version": "1.1.1",
"version": "1.1.2",
"description": "A modular downloader tool",
"main": "build/index.js",
"type": "module",
@@ -31,7 +31,7 @@
"dependencies": {
"dotenv": "^16.1.4",
"image-size": "^1.0.2",
"librespot": "^0.1.3",
"librespot": "^0.1.4",
"node-fetch": "^3.3.1",
"xmldom-qsa": "^1.1.3"
},

8
pnpm-lock.yaml generated
View File

@@ -12,8 +12,8 @@ dependencies:
specifier: ^1.0.2
version: 1.0.2
librespot:
specifier: ^0.1.3
version: 0.1.3
specifier: ^0.1.4
version: 0.1.4
node-fetch:
specifier: ^3.3.1
version: 3.3.1
@@ -815,8 +815,8 @@ packages:
type-check: 0.4.0
dev: true
/librespot@0.1.3:
resolution: {integrity: sha512-G9AGVUunh6zK8tTJE1kwod4gYge2nFJw8yyhCWBzK36HkZBXiHLMEKU1Yq8ANmXMPPPV7ffUFNOJFzJWqWFMwA==}
/librespot@0.1.4:
resolution: {integrity: sha512-Rxa5Ugr626pII81in7JZxzIudE3MY4IVLFw0kyVw/nN7CmHfLP2NhBFQrUdy8JXZNn9S+jMQOtOzJhG+c6zFxw==}
dependencies:
fast-xml-parser: 4.2.7
node-fetch: 2.7.0

View File

@@ -1,4 +1,4 @@
import Librespot from 'librespot'
import Librespot, { LibrespotOptions } from 'librespot'
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
@@ -6,7 +6,7 @@ import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
class Spotify implements StreamerWithLogin {
client: Librespot
hostnames = ['open.spotify.com']
constructor(options: never) {
constructor(options: LibrespotOptions) {
this.client = new Librespot(options)
}
login(username: string, password: string) {