simple-youtube-api
Advanced tools
Comparing version 5.0.1 to 5.0.2
{ | ||
"name": "simple-youtube-api", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "A module to simplify the YouTube API.", | ||
"sideEffects": false, | ||
"main": "src/index.js", | ||
"unpkg": "dist/sya.min.js", | ||
"scripts": { | ||
"docs": "jsdoc -c jsdoc.json", | ||
"test": "mocha" | ||
"test": "mocha", | ||
"build": "webpack" | ||
}, | ||
"dependencies": { | ||
"iso8601-duration": "^1.0.0", | ||
"node-fetch": "^1.7.2" | ||
"cross-fetch": "^2.1.1", | ||
"iso8601-duration": "^1.0.0" | ||
}, | ||
@@ -17,4 +20,7 @@ "devDependencies": { | ||
"jsdoc": "^3.4.0", | ||
"lodash.defaultsdeep": "^4.6.0", | ||
"minami": "^1.1.0", | ||
"mocha": "^3.3.0" | ||
"mocha": "^3.5.3", | ||
"webpack": "^4.6.0", | ||
"webpack-cli": "^2.1.2" | ||
}, | ||
@@ -21,0 +27,0 @@ "repository": { |
# Simple YouTube API | ||
[](https://discord.gg/A97Qftr) | ||
[](https://travis-ci.org/HyperCoder2975/simple-youtube-api) | ||
This library is designed to greatly simplify interacting with the basic functions of the YouTube API. | ||
@@ -3,0 +7,0 @@ It deals with viewing/searching videos, playlists, and channels. |
@@ -152,3 +152,2 @@ const Request = require('./Request'); | ||
search(query, limit = 5, options = {}) { | ||
options = Object.assign(options, { part: Constants.PARTS.Search, q: query, maxResults: limit }); | ||
return this.request.getPaginated(Constants.ENDPOINTS.Search, limit, Object.assign(options, { q: query, part: Constants.PARTS.Search })) | ||
@@ -155,0 +154,0 @@ .then(result => result.map(item => { |
@@ -1,2 +0,2 @@ | ||
const fetch = require('node-fetch'); | ||
const fetch = require('cross-fetch'); | ||
const Constants = require('./util/Constants'); | ||
@@ -3,0 +3,0 @@ |
@@ -0,0 +0,0 @@ const { parseURL } = require('../util'); |
@@ -0,0 +0,0 @@ exports.PARTS = { |
@@ -0,0 +0,0 @@ const { parse } = require('url'); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
160052
1257
15
0
7
15
+ Addedcross-fetch@^2.1.1
+ Addedcross-fetch@2.2.6(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@2.0.4(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removednode-fetch@^1.7.2
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)