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 1.0.0 to 1.1.0

dist/client.f7f82675.js

4

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

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

"parcel-bundler": "^1.12.4",
"polotno": "^1.2.0",
"polotno": "^1.4.0",
"react": "^18.2.0",

@@ -21,0 +21,0 @@ "react-dom": "^18.2.0"

@@ -53,3 +53,6 @@ # Polotno-node

for (const page of json.pages) {
const url = await instance.jsonToDataURL(json, { pageId: page.id });
const url = await instance.jsonToDataURL(
{ ...json, pages: [page] }, // for optimization, we can modify JSON to include only one page
{ pageId: page.id }
);
// do something with url

@@ -74,5 +77,6 @@ }

for (const page of json.pages) {
const imageBase64 = await instance.jsonToImageBase64(json, {
pageId: page.id,
});
const imageBase64 = await instance.jsonToImageBase64(
{ ...json, pages: [page] }, // for optimization, we can modify JSON to include only one page
{ pageId: page.id }
);
// do something with base64

@@ -79,0 +83,0 @@ }

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