Comparing version 2.0.3 to 2.0.4
@@ -73,3 +73,2 @@ const URL = require('url'); | ||
} | ||
if (!obj.requestOptions) obj.requestOptions = {}; | ||
// Set required parameter: query | ||
@@ -83,5 +82,7 @@ obj.query = { list: plistId }; | ||
// Default requestOptions | ||
if (!options.requestOptions) options.requestOptions = {}; | ||
// Unlink requestOptions | ||
obj.requestOptions = JSON.parse(JSON.stringify(options.requestOptions)); | ||
obj.requestOptions = Object.assign({}, options.requestOptions); | ||
// Unlink requestOptions#headers | ||
if (obj.requestOptions.headers) { | ||
obj.requestOptions.headers = JSON.parse(JSON.stringify(obj.requestOptions.headers)); | ||
} | ||
return obj; | ||
@@ -88,0 +89,0 @@ }; |
{ | ||
"name": "ytpl", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Anonymous YouTube playlist resolver.", | ||
"keywords": [ | ||
"youtube", | ||
"playlist" | ||
"yt", | ||
"video", | ||
"videos", | ||
"api", | ||
"playlist", | ||
"pl", | ||
"scrape", | ||
"pagination", | ||
"promise" | ||
], | ||
"homepage": "https://github.com/TimeForANinja/node-ytpl#readme", | ||
"bugs": { | ||
@@ -30,6 +39,6 @@ "url": "https://github.com/TimeForANinja/node-ytpl/issues" | ||
"mocha": "mocha -- -t 16000 test/*-test.js", | ||
"mocha:coverage": "mocha -- -t 16000 test/*-test.js --exclude test/e2e-test.js", | ||
"nyc": "nyc --reporter=lcov npm run-script mocha", | ||
"nyc:coverage": "nyc --reporter=lcov npm run-script mocha:coverage", | ||
"test": "npm run-script nyc", | ||
"mocha:coverage": "mocha -- -t 16000 test/*-test.js --exclude test/e2e-test.js", | ||
"nyc:coverage": "nyc --reporter=lcov npm run-script mocha:coverage", | ||
"test:coverage": "npm run-script nyc:coverage && codecov" | ||
@@ -36,0 +45,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
27579
544
0