New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

polotno-node

Package Overview
Dependencies
Maintainers
1
Versions
127
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.24 to 2.9.25

dist/assets/index-K6bexdEY.js

4

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

@@ -29,3 +29,3 @@ "main": "index.js",

"pngjs": "^7.0.0",
"polotno": "^2.7.1",
"polotno": "^2.8.3",
"react": "^18.3.1",

@@ -32,0 +32,0 @@ "react-dom": "^18.3.1",

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

// loop through the images and add each to the animation
const framesNumber = Math.floor((duration / 1000) * fps);
const framesNumber = Math.floor((duration / 1000) * fps) || 1;
const frames = Array.from(Array(framesNumber).keys());

@@ -241,8 +241,13 @@

for (const page of json.pages) {
const pageDuration = page.duration || 5000;
for (const el of page.children) {
if (el.type === 'video') {
const elStartTime = el.startTime * el.duration;
const startTime = el.startTime || 0;
const endTime = el.endTime || 1;
const dur = el.duration || 5000;
const elStartTime = startTime * dur;
const elDuration = Math.min(
page.duration,
el.duration * (el.endTime - el.startTime)
pageDuration,
dur * (endTime - startTime)
);

@@ -256,7 +261,7 @@ const elEndTime = elStartTime + elDuration;

outputStartTime: pageStartTime,
outputEndTime: pageStartTime + page.duration,
outputEndTime: pageStartTime + pageDuration,
});
}
}
pageStartTime += page.duration;
pageStartTime += pageDuration;
}

@@ -266,3 +271,2 @@

console.time('ffmpeg');
await new Promise((resolve, reject) => {

@@ -314,5 +318,4 @@ const ffmpegCmd = ffmpeg()

} finally {
console.timeEnd('ffmpeg');
fs.rmSync(tempFolder.name, { recursive: true });
}
};

Sorry, the diff of this file is not supported yet

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