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

@jimp/core

Package Overview
Dependencies
Maintainers
2
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/core - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3--canary.34e8f3b.0

.turbo/turbo-lint.log

1

dist/commonjs/index.js

@@ -245,2 +245,3 @@ "use strict";

if (format.hasAlpha) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
outputImage = this;

@@ -247,0 +248,0 @@ }

4

dist/commonjs/utils/composite.js

@@ -38,3 +38,4 @@ "use strict";

}
let { mode = constants_js_1.BlendMode.SRC_OVER, opacitySource = 1.0, opacityDest = 1.0, } = options;
const { mode = constants_js_1.BlendMode.SRC_OVER } = options;
let { opacitySource = 1.0, opacityDest = 1.0 } = options;
if (typeof opacitySource !== "number" ||

@@ -48,3 +49,2 @@ opacitySource < 0 ||

}
// eslint-disable-next-line import/namespace
const blendmode = compositeModes[mode];

@@ -51,0 +51,0 @@ // round input

@@ -9,7 +9,2 @@ "use strict";

const exif_parser_1 = __importDefault(require("exif-parser"));
const EXIF_TAGS = {
ORIENTATION: 0x0112, // decimal: 274
IMAGE_WIDTH: 0x0100, // decimal: 256
IMAGE_HEIGHT: 0x0101, // decimal: 257
};
/**

@@ -106,3 +101,3 @@ * Obtains image orientation from EXIF metadata.

img.bitmap.height = height;
// @ts-ignore
// @ts-expect-error Accessing private property
img._exif.tags.Orientation = 1;

@@ -133,5 +128,5 @@ }

catch (error) {
/* meh */
console.error(error);
}
}
//# sourceMappingURL=image-bitmap.js.map

@@ -222,2 +222,3 @@ import { Edge } from "@jimp/types";

if (format.hasAlpha) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
outputImage = this;

@@ -224,0 +225,0 @@ }

@@ -12,3 +12,4 @@ import { Edge } from "@jimp/types";

}
let { mode = BlendMode.SRC_OVER, opacitySource = 1.0, opacityDest = 1.0, } = options;
const { mode = BlendMode.SRC_OVER } = options;
let { opacitySource = 1.0, opacityDest = 1.0 } = options;
if (typeof opacitySource !== "number" ||

@@ -22,3 +23,2 @@ opacitySource < 0 ||

}
// eslint-disable-next-line import/namespace
const blendmode = compositeModes[mode];

@@ -25,0 +25,0 @@ // round input

import EXIFParser from "exif-parser";
const EXIF_TAGS = {
ORIENTATION: 0x0112, // decimal: 274
IMAGE_WIDTH: 0x0100, // decimal: 256
IMAGE_HEIGHT: 0x0101, // decimal: 257
};
/**

@@ -98,3 +93,3 @@ * Obtains image orientation from EXIF metadata.

img.bitmap.height = height;
// @ts-ignore
// @ts-expect-error Accessing private property
img._exif.tags.Orientation = 1;

@@ -125,5 +120,5 @@ }

catch (error) {
/* meh */
console.error(error);
}
}
//# sourceMappingURL=image-bitmap.js.map
{
"name": "@jimp/core",
"version": "1.1.2",
"version": "1.1.3--canary.34e8f3b.0",
"repository": "jimp-dev/jimp",
"engines": {
"node": ">=18"
},
"scripts": {

@@ -15,5 +18,5 @@ "lint": "eslint .",

"dependencies": {
"@jimp/file-ops": "1.1.2",
"@jimp/types": "1.1.2",
"@jimp/utils": "1.1.2",
"@jimp/file-ops": "1.1.3--canary.34e8f3b.0",
"@jimp/types": "1.1.3--canary.34e8f3b.0",
"@jimp/utils": "1.1.3--canary.34e8f3b.0",
"await-to-js": "^3.0.0",

@@ -25,12 +28,12 @@ "exif-parser": "^0.1.12",

"devDependencies": {
"@jimp/config-eslint": "1.1.2",
"@jimp/config-typescript": "1.1.2",
"@jimp/test-utils": "1.1.2",
"@jimp/config-eslint": "1.1.3--canary.34e8f3b.0",
"@jimp/config-typescript": "1.1.3--canary.34e8f3b.0",
"@jimp/test-utils": "1.1.3--canary.34e8f3b.0",
"@types/file-type": "^10.9.1",
"@types/mime": "^3.0.4",
"@types/node": "^20.12.5",
"eslint": "^8.57.0",
"@types/node": "^18.19.48",
"eslint": "^9.9.1",
"tshy": "^3.0.2",
"typescript": "^5.5.4",
"vitest": "^1.4.0"
"vitest": "^2.0.5"
},

@@ -67,3 +70,3 @@ "tshy": {

"module": "./dist/esm/index.js",
"gitHead": "ba9de4df25a2f0e41f11a68c7aa50181a52115cb"
"gitHead": "34e8f3bbb3f0392953c609a6d4f6e4ec4acb092e"
}

@@ -389,2 +389,3 @@ import { Bitmap, Format, JimpClass, Edge } from "@jimp/types";

if (format.hasAlpha) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
outputImage = this;

@@ -391,0 +392,0 @@ } else {

@@ -5,3 +5,3 @@ import { Edge, JimpClass } from "@jimp/types";

import * as compositeModes from "./composite-modes.js";
import { limit255, scan } from "@jimp/utils";
import { limit255 } from "@jimp/utils";

@@ -27,7 +27,4 @@ export function composite<I extends JimpClass>(

let {
mode = BlendMode.SRC_OVER,
opacitySource = 1.0,
opacityDest = 1.0,
} = options;
const { mode = BlendMode.SRC_OVER } = options;
let { opacitySource = 1.0, opacityDest = 1.0 } = options;

@@ -46,3 +43,2 @@ if (

// eslint-disable-next-line import/namespace
const blendmode = compositeModes[mode];

@@ -49,0 +45,0 @@

import EXIFParser, { ExifData } from "exif-parser";
import { JimpClass } from "@jimp/types";
const EXIF_TAGS = {
ORIENTATION: 0x0112, // decimal: 274
IMAGE_WIDTH: 0x0100, // decimal: 256
IMAGE_HEIGHT: 0x0101, // decimal: 257
};
/**

@@ -123,3 +117,3 @@ * Obtains image orientation from EXIF metadata.

// @ts-ignore
// @ts-expect-error Accessing private property
img._exif.tags.Orientation = 1;

@@ -158,4 +152,4 @@ }

} catch (error) {
/* meh */
console.error(error);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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