Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polotno-node

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polotno-node - npm Package Compare versions

Comparing version 2.9.25 to 2.9.26

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc