node-youtube-music
Advanced tools
Comparing version 0.2.6 to 0.2.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const src_1 = require("../src"); | ||
const main = () => src_1.default.search('sitting waiting wishing', { lang: 'fr-FR', country: 'FR' }); | ||
const main = () => src_1.default.search('DJOKO', { lang: 'en-GB', country: 'FR' }); | ||
main().then((results) => console.log(results)); |
@@ -15,2 +15,25 @@ import search from './search'; | ||
}) => import("./models").MusicVideo[]; | ||
parseYoutubeMusicSuggestionsBody: (body: { | ||
contents: { | ||
singleColumnMusicWatchNextResultsRenderer: { | ||
tabbedRenderer: { | ||
watchNextTabbedResultsRenderer: { | ||
tabs: { | ||
tabRenderer: { | ||
content: { | ||
musicQueueRenderer: { | ||
content: { | ||
playlistPanelRenderer: { | ||
contents: []; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}) => import("./models").MusicVideo[]; | ||
search: typeof search; | ||
@@ -17,0 +40,0 @@ getSuggestions: typeof getSuggestions; |
@@ -7,4 +7,5 @@ "use strict"; | ||
parseYoutubeMusicSearchBody: search_1.parseYoutubeMusicSearchBody, | ||
parseYoutubeMusicSuggestionsBody: suggestions_1.parseYoutubeMusicSuggestionsBody, | ||
search: search_1.default, | ||
getSuggestions: suggestions_1.default, | ||
}; |
import ytMusic from '../src'; | ||
const main = () => | ||
ytMusic.search('sitting waiting wishing', { lang: 'fr-FR', country: 'FR' }); | ||
const main = () => ytMusic.search('DJOKO', { lang: 'en-GB', country: 'FR' }); | ||
main().then((results) => console.log(results)); |
{ | ||
"name": "node-youtube-music", | ||
"description": "Unofficial YouTube Music API for Node.js", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"repository": "https://github.com/baptisteArno/node-youtube-music", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"author": "Baptiste Arnaud <contact@baptiste-arnaud.fr>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.11.1", | ||
"@typescript-eslint/parser": "^4.11.1", | ||
"eslint": "^7.17.0", | ||
"@types/jest": "^26.0.21", | ||
"@typescript-eslint/eslint-plugin": "^4.18.0", | ||
"@typescript-eslint/parser": "^4.18.0", | ||
"eslint": "^7.22.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^4.1.3" | ||
"ts-jest": "^26.5.4", | ||
"typescript": "^4.2.3" | ||
}, | ||
@@ -29,5 +33,4 @@ "scripts": { | ||
"dependencies": { | ||
"got": "^11.8.1", | ||
"node-youtube-music": "^0.1.3" | ||
"got": "^11.8.2" | ||
} | ||
} |
34958
1
869
11
- Removednode-youtube-music@^0.1.3
- Removednode-youtube-music@0.1.8(transitive)
Updatedgot@^11.8.2