polotno-node
Advanced tools
Comparing version 2.9.25 to 2.9.26
{ | ||
"name": "polotno-node", | ||
"version": "2.9.25", | ||
"version": "2.9.26", | ||
"description": "Polotno workflow from NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,3 +59,3 @@ const fs = require('fs'); | ||
const videoToDataURL = async (url, tempFolder) => { | ||
const convertVideo = async (url, tempFolder) => { | ||
const shortUrl = url.slice(0, 50) + '...'; | ||
@@ -79,10 +79,2 @@ console.log('Downloading video: ' + shortUrl); | ||
const urlCache = {}; | ||
const cachedVideoToDataURL = async (url, tempFolder) => { | ||
if (!urlCache[url]) { | ||
urlCache[url] = videoToDataURL(url, tempFolder); | ||
} | ||
return urlCache[url]; | ||
}; | ||
module.exports.jsonToVideo = async function jsonToVideo( | ||
@@ -113,3 +105,3 @@ inst, | ||
videoEls.map(async (el) => { | ||
const { dataURL, file, mp4File } = await cachedVideoToDataURL( | ||
const { dataURL, file, mp4File } = await convertVideo( | ||
el.src, | ||
@@ -116,0 +108,0 @@ tempFolder |
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
0
1236752
5573