Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

popyt

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popyt - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

.ionide/symbolCache.db

42

out/index.js

@@ -99,2 +99,3 @@ "use strict";

* Get a [[Video]] object from the URL, ID, or Title of a video.
* Meant mostly for getting by URL or ID.
* @param videoResolvable The URL, ID, or Title of the video.

@@ -110,2 +111,3 @@ */

* Get a [[Channel]] object from the Username, URL or ID of a channel.
* Meant mostly for getting by URL or ID.
* @param channelResolvable The Username, URL or ID of the channel.

@@ -121,2 +123,3 @@ */

* Get a [[Playlist]] object from the URL, ID, or Title of a playlist.
* Meant mostly for getting by URL or ID.
* @param playlistResolvable The URL, ID, or Title of the playlist.

@@ -138,41 +141,2 @@ */

/**
* Get a video object from the url of a video.
* @deprecated Use getVideo() instead
* @param url The url of the video.
*/
/* istanbul ignore next */
getVideoByUrl(url) {
const id = util_1.Parser.parseUrl(url);
if (!id.video) {
return Promise.reject('Not a valid video url');
}
return services_1.GenericService.getItemById(this, entities_1.Video, id.video);
}
/**
* Get a channel object from the url of a channel.
* @deprecated Use getChannel() instead
* @param url The url of the channel.
*/
/* istanbul ignore next */
getChannelByUrl(url) {
const id = util_1.Parser.parseUrl(url);
if (!id.channel) {
return Promise.reject('Not a valid channel url');
}
return services_1.GenericService.getItemById(this, entities_1.Channel, id.channel);
}
/**
* Get a playlist object from the url of a playlist.
* @deprecated Use getPlaylist() instead
* @param url The url of the playlist.
*/
/* istanbul ignore next */
getPlaylistByUrl(url) {
const id = util_1.Parser.parseUrl(url);
if (!id.playlist) {
return Promise.reject('Not a valid playlist url');
}
return services_1.GenericService.getItemById(this, entities_1.Playlist, id.playlist);
}
/**
* Get `maxResults` videos in a [[Playlist]]. Used mostly internally with `Playlist#fetchVideos`.

@@ -179,0 +143,0 @@ * @param playlistResolvable The URL, ID, or Title of the playlist.

@@ -157,3 +157,7 @@ "use strict";

if (type === __1.Channel && idFromUrl && !idFromUrl.startsWith('UC')) {
id = yield youtube._request.api('search', { q: idFromUrl, type: type.endpoint, part: 'id' }, youtube.token, youtube._tokenType).then(r => r.items[0] ? r.items[0].id.channelId : undefined);
id = yield youtube._request.api('search', {
q: encodeURIComponent(idFromUrl),
type: type.endpoint,
part: 'id'
}, youtube.token, youtube._tokenType).then(r => r.items[0] ? r.items[0].id.channelId : undefined);
}

@@ -167,3 +171,3 @@ id = idFromUrl;

id = yield youtube._request.api('search', {
q: input,
q: encodeURIComponent(input),
type: type.endpoint,

@@ -175,3 +179,3 @@ part: 'id', maxResults: 1

id = yield youtube._request.api('search', {
q: input,
q: encodeURIComponent(input),
type: type.endpoint,

@@ -184,3 +188,3 @@ part: 'id',

id = yield youtube._request.api('search', {
q: input,
q: encodeURIComponent(input),
type: type.endpoint,

@@ -187,0 +191,0 @@ part: 'id',

{
"name": "popyt",
"version": "2.2.0",
"version": "3.0.0",
"description": "A very easy to use promise-based Youtube Data v3 API.",
"homepage": "https://bbothell.me/popyt",
"main": "out/index.js",

@@ -28,8 +29,8 @@ "types": "typings/index.d.ts",

"@istanbuljs/nyc-config-typescript": "1.0.1",
"@types/chai": "4.2.9",
"@types/chai": "4.2.10",
"@types/gulp": "4.0.6",
"@types/gulp-sourcemaps": "0.0.32",
"@types/merge2": "1.3.0",
"@types/mocha": "7.0.1",
"@types/node": "13.7.2",
"@types/mocha": "7.0.2",
"@types/node": "13.7.7",
"chai": "4.2.0",

@@ -44,3 +45,3 @@ "coveralls": "3.0.9",

"merge2": "1.3.0",
"mocha": "7.0.1",
"mocha": "7.1.0",
"nyc": "15.0.0",

@@ -51,4 +52,4 @@ "source-map-support": "0.5.16",

"tslint-config-standard": "9.0.0",
"typedoc": "0.16.10",
"typescript": "3.7.5"
"typedoc": "0.16.11",
"typescript": "3.8.3"
},

@@ -55,0 +56,0 @@ "repository": {

@@ -95,2 +95,3 @@ import { Video, Channel, Playlist, YTComment } from './entities';

* Get a [[Video]] object from the URL, ID, or Title of a video.
* Meant mostly for getting by URL or ID.
* @param videoResolvable The URL, ID, or Title of the video.

@@ -101,2 +102,3 @@ */

* Get a [[Channel]] object from the Username, URL or ID of a channel.
* Meant mostly for getting by URL or ID.
* @param channelResolvable The Username, URL or ID of the channel.

@@ -107,2 +109,3 @@ */

* Get a [[Playlist]] object from the URL, ID, or Title of a playlist.
* Meant mostly for getting by URL or ID.
* @param playlistResolvable The URL, ID, or Title of the playlist.

@@ -117,20 +120,2 @@ */

/**
* Get a video object from the url of a video.
* @deprecated Use getVideo() instead
* @param url The url of the video.
*/
getVideoByUrl(url: string): Promise<Video>;
/**
* Get a channel object from the url of a channel.
* @deprecated Use getChannel() instead
* @param url The url of the channel.
*/
getChannelByUrl(url: string): Promise<Channel>;
/**
* Get a playlist object from the url of a playlist.
* @deprecated Use getPlaylist() instead
* @param url The url of the playlist.
*/
getPlaylistByUrl(url: string): Promise<Playlist>;
/**
* Get `maxResults` videos in a [[Playlist]]. Used mostly internally with `Playlist#fetchVideos`.

@@ -137,0 +122,0 @@ * @param playlistResolvable The URL, ID, or Title of the playlist.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc