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
122
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.12 to 2.9.13

2

package.json
{
"name": "polotno-node",
"version": "2.9.12",
"version": "2.9.13",
"description": "Polotno workflow from NodeJS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -53,2 +53,3 @@ const fs = require('fs');

const videoToDataURL = async (url, tempFolder) => {
console.log('Downloading video: ' + url.slice(0, 50) + '...');
const filename = Math.random().toString(36).substring(7);

@@ -60,2 +61,3 @@ const destination = path.join(tempFolder.name, filename + '.mp4');

const dataURL = await fileToDataUrl(webmFile);
console.log('Downloading video finished: ' + url.slice(0, 50) + '...');
return {

@@ -75,6 +77,2 @@ dataURL,

function printProgress(progress) {
console.log('Rendering frame: ' + progress + '%');
}
module.exports.jsonToVideo = async function jsonToVideo(inst, json, attrs) {

@@ -175,2 +173,3 @@ const tempFolder = tmp.dirSync();

}
const startTime = Date.now();
const dataURL = await page.evaluate(

@@ -202,4 +201,5 @@ async (json, attrs, currentTime) => {

if (attrs.onProgress) {
const frameTime = Date.now() - startTime;
const progress = finishedFramesNumber / framesNumber;
attrs.onProgress(progress);
attrs.onProgress(progress, frameTime);
}

@@ -206,0 +206,0 @@ }

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