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

join-images

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

join-images - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

14

lib/main.js

@@ -5,9 +5,9 @@ "use strict";

const tslib_1 = require("tslib");
const alignImage_1 = (0, tslib_1.__importDefault)(require("./utils/alignImage"));
const calcMargin_1 = (0, tslib_1.__importDefault)(require("./utils/calcMargin"));
const sharp_1 = (0, tslib_1.__importDefault)(require("sharp"));
const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
const is_plain_obj_1 = (0, tslib_1.__importDefault)(require("is-plain-obj"));
const alignImage_1 = tslib_1.__importDefault(require("./utils/alignImage"));
const calcMargin_1 = tslib_1.__importDefault(require("./utils/calcMargin"));
const sharp_1 = tslib_1.__importDefault(require("sharp"));
const fs_1 = tslib_1.__importDefault(require("fs"));
const is_plain_obj_1 = tslib_1.__importDefault(require("is-plain-obj"));
function joinImages(images, { direction = 'vertical', color = { alpha: 0.5, b: 0, g: 0, r: 0 }, align = 'start', offset = 0, margin, } = {}) {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
if (!Array.isArray(images)) {

@@ -19,3 +19,3 @@ throw new TypeError('`images` must be an array that contains images');

}
const processImg = (img) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
const processImg = (img) => tslib_1.__awaiter(this, void 0, void 0, function* () {
let imageSrc = img;

@@ -22,0 +22,0 @@ let offsetX = 0;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./common"), exports);
tslib_1.__exportStar(require("./common"), exports);
//# sourceMappingURL=index.js.map
{
"name": "join-images",
"version": "1.1.2",
"version": "1.1.3",
"description": "Merge multiple images into a single image",

@@ -5,0 +5,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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