Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 17, 2018
1 parent 70ec50a commit bf28967
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-prefix=~
unsafe-perm=true
18 changes: 3 additions & 15 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var execFile = require('child_process').execFile;
var fs = require('fs');
var path = require('path');
Expand Down Expand Up @@ -48,7 +50,6 @@ var subsRegex = /--write-sub|--write-srt|--srt-lang|--all-subs/;

function processData(data, options, stream) {

'use strict';
var item = (!data.length) ? data : data.shift();

// fix for pause/resume downloads
Expand Down Expand Up @@ -100,13 +101,7 @@ function processData(data, options, stream) {
* @param {!Object} options
*/
var ytdl = module.exports = function (videoUrl, args, options) {

'use strict';
var stream = streamify({
superCtor: http.ClientResponse,
readable: true,
writable: false
});
var stream = streamify({ superCtor: http.ClientResponse, readable: true, writable: false });

if (typeof videoUrl !== 'string') {
processData(videoUrl, options, stream);
Expand All @@ -132,7 +127,6 @@ var ytdl = module.exports = function (videoUrl, args, options) {
* @param {Function(!Error, String)} callback
*/
function call(urls, args1, args2, options, callback) {
'use strict';
var args = args1;
var passOver = false;
if (args2) {
Expand Down Expand Up @@ -242,7 +236,6 @@ function call(urls, args1, args2, options, callback) {
* @param {Function(!Error, String)} callback
*/
ytdl.exec = function exec(url, args, options, callback) {
'use strict';
return call(url, [], args, options, callback);
};

Expand All @@ -252,7 +245,6 @@ ytdl.exec = function exec(url, args, options, callback) {
* @returns {Object}
*/
function parseInfo(data) {
'use strict';
var info = JSON.parse(data);

// Add and process some entries to keep backwards compatibility
Expand Down Expand Up @@ -310,7 +302,6 @@ ytdl.getYtdlBinary = function getYtdlBinary() {
* @param {Function(!Error, Object)} callback
*/
ytdl.getInfo = function getInfo(url, args, options, callback) {
'use strict';
if (typeof options === 'function') {
callback = options;
options = {};
Expand Down Expand Up @@ -352,7 +343,6 @@ ytdl.getInfo = function getInfo(url, args, options, callback) {
* @param {Function(!Error, Object)} callback
*/
ytdl.getSubs = function getSubs(url, options, callback) {
'use strict';
if (typeof options === 'function') {
callback = options;
options = {};
Expand Down Expand Up @@ -392,7 +382,6 @@ ytdl.getSubs = function getSubs(url, options, callback) {
* @param {Function(!Error, Object)} callback
*/
ytdl.getThumbs = function getThumbs(url, options, callback) {
'use strict';
if (typeof options === 'function') {
callback = options;
options = {};
Expand Down Expand Up @@ -431,7 +420,6 @@ ytdl.getThumbs = function getThumbs(url, options, callback) {
* @param {Function(!Error, Object)} callback
*/
ytdl.getExtractors = function getExtractors(descriptions, options, callback) {
'use strict';
if (typeof options === 'function') {
callback = options;
options = {};
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"test": "vows ./test/*.js --spec"
},
"dependencies": {
"hh-mm-ss": "^1.2.0",
"mkdirp": "^0.5.1",
"request": "^2.83.0",
"streamify": "^0.2.9"
"hh-mm-ss": "~1.2.0",
"mkdirp": "~0.5.1",
"request": "~2.88.0",
"streamify": "~0.2.9"
},
"devDependencies": {
"vows": "*"
"vows": "latest"
},
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit bf28967

Please sign in to comment.