Socket
Socket
Sign inDemoInstall

nf-photo-collage

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nf-photo-collage - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

14

index.js

@@ -82,6 +82,2 @@ "use strict";

let maxImages = options.width * options.height;
if ((options.header || {}).image) {
maxImages += 1;
sources.unshift(options.header.image);
}

@@ -96,13 +92,5 @@ return Promise

if ((options.header || {}).image) { // only for header
if (!i) { // first time
ctx.drawImage(img, 0, 0, canvasWidth, options.header.height);
return;
}
i -= 1;
}
const x = (i % options.width) * (options.imageWidth + options.spacing);
const y = Math.floor(i / options.width) * (options.imageHeight + options.spacing);
ctx.drawImage(img, x, y + headerHeight, options.imageWidth, options.imageHeight);
ctx.drawImage(img, x, y, options.imageWidth, options.imageHeight);
})

@@ -109,0 +97,0 @@ .then(() => {})

2

package.json
{
"name": "nf-photo-collage",
"version": "1.2.1",
"version": "1.2.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

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