Comparing version 0.5.1 to 0.5.2
@@ -19,3 +19,3 @@ 'use strict'; | ||
var tryGetFromStreamList = exports.tryGetFromStreamList = function tryGetFromStreamList(streamList) { | ||
var tryGetFromStreamList = exports.tryGetFromStreamList = async function tryGetFromStreamList(streamList) { | ||
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : './download'; | ||
@@ -27,3 +27,3 @@ var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vd'; | ||
var promiseList = (0, _pytils.mapx)(streamList, function (fileName, url) { | ||
var promiseList = (0, _pytils.mapx)(streamList, function (url, fileName) { | ||
return streamPromise(fileName, url); | ||
@@ -30,0 +30,0 @@ }); |
{ | ||
"name": "stream-web", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "stream video using crawls", | ||
@@ -23,3 +23,3 @@ "main": "dist/main.js", | ||
"dependencies": { | ||
"html-parse-regex": "^1.1.1", | ||
"html-parse-regex": "^1.1.2", | ||
"pytils": "^1.31.0" | ||
@@ -26,0 +26,0 @@ }, |
@@ -11,3 +11,3 @@ import { mkdir, getPathToFile, stream, cannotBeUndefined } from './utils' | ||
export const tryGetFromStreamList = (streamList, path = './download', prefix = 'vd', format = 'mp4') => { | ||
export const tryGetFromStreamList = async (streamList, path = './download', prefix = 'vd', format = 'mp4') => { | ||
const streamPromise = _streamPromise( | ||
@@ -18,3 +18,3 @@ getPathToFile(path, prefix, format)) | ||
streamList, | ||
(fileName, url) => streamPromise(fileName, url)) | ||
(url, fileName) => streamPromise(fileName, url)) | ||
@@ -21,0 +21,0 @@ Promise |
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
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
7303
0
Updatedhtml-parse-regex@^1.1.2