Comparing version 0.5.0 to 0.5.1
'use strict'; | ||
var _stream = require('./stream'); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.tryGetFromStreamList = undefined; | ||
(0, _stream.tryGetFromStreamList)({ | ||
'bla': 'http://bla' | ||
}); | ||
var _utils = require('./utils'); | ||
var _pytils = require('pytils'); | ||
var _streamPromise = function _streamPromise(getPathFrom) { | ||
return function (fileName, url) { | ||
(0, _utils.cannotBeUndefined)({ fileName: fileName, url: url }); | ||
return (0, _utils.stream)(url, getPathFrom(fileName)); | ||
}; | ||
}; | ||
var tryGetFromStreamList = exports.tryGetFromStreamList = function tryGetFromStreamList(streamList) { | ||
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : './download'; | ||
var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vd'; | ||
var format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'mp4'; | ||
var streamPromise = _streamPromise((0, _utils.getPathToFile)(path, prefix, format)); | ||
var promiseList = (0, _pytils.mapx)(streamList, function (fileName, url) { | ||
return streamPromise(fileName, url); | ||
}); | ||
Promise.all(promiseList).then(function (res) { | ||
return console.log('End all download\'s', res); | ||
}); | ||
}; |
{ | ||
"name": "stream-web", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "stream video using crawls", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
7291
9
153