diff --git a/package-lock.json b/package-lock.json index a3d647c..3a3a8cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "piped-api", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "piped-api", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "dependencies": { "axios": "^1.4.0" diff --git a/package.json b/package.json index 946e4b5..3c94280 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "piped-api", - "version": "1.2.0", + "version": "1.2.1", "description": "", "main": "dist/index.js", "type": "module", @@ -14,7 +14,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "tsc", "docs": "typedoc src/index.ts src/types.ts", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm i && npm run build" }, "keywords": [ "api", diff --git a/src/types.ts b/src/types.ts index 3f8ba2d..e8bf366 100644 --- a/src/types.ts +++ b/src/types.ts @@ -128,16 +128,22 @@ export interface NextPageChannel { } export interface Playlist { + url: string; bannerUrl: string; name: string; nextpage: string; relatedStreams: Video[]; - thumbnailUrl: string; - uploader: string; + thumbnailUrl?: string; + uploader?: string; uploaderAvatar: string; uploaderUrl: string; videos: number; + type?: string; + thumbnail?: string; + uploaderName?: string; + uploaderVerified?: boolean; + playlistType?: string; } export interface NextPagePlaylist {