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

tiff

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiff - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

lib-esm/hacks.js

3

lib-esm/tiffDecoder.js
import { IOBuffer } from 'iobuffer';
import { guessStripByteCounts } from './hacks';
import { applyHorizontalDifferencing8Bit, applyHorizontalDifferencing16Bit, } from './horizontalDifferencing';

@@ -172,3 +173,3 @@ import IFD from './ifd';

const stripOffsets = ifd.stripOffsets;
const stripByteCounts = ifd.stripByteCounts;
const stripByteCounts = ifd.stripByteCounts || guessStripByteCounts(ifd);
let remainingPixels = size;

@@ -175,0 +176,0 @@ let pixel = 0;

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

const iobuffer_1 = require("iobuffer");
const hacks_1 = require("./hacks");
const horizontalDifferencing_1 = require("./horizontalDifferencing");

@@ -178,3 +179,3 @@ const ifd_1 = __importDefault(require("./ifd"));

const stripOffsets = ifd.stripOffsets;
const stripByteCounts = ifd.stripByteCounts;
const stripByteCounts = ifd.stripByteCounts || (0, hacks_1.guessStripByteCounts)(ifd);
let remainingPixels = size;

@@ -181,0 +182,0 @@ let pixel = 0;

{
"name": "tiff",
"version": "5.0.2",
"version": "5.0.3",
"description": "TIFF image decoder written entirely in JavaScript",

@@ -50,3 +50,3 @@ "main": "lib/index.js",

"eslint": "^8.1.0",
"eslint-config-cheminfo-typescript": "^10.1.1",
"eslint-config-cheminfo-typescript": "^10.2.2",
"jest": "^27.3.1",

@@ -53,0 +53,0 @@ "prettier": "^2.4.1",

import { IOBuffer } from 'iobuffer';
import { guessStripByteCounts } from './hacks';
import {

@@ -205,3 +206,3 @@ applyHorizontalDifferencing8Bit,

const stripOffsets = ifd.stripOffsets;
const stripByteCounts = ifd.stripByteCounts;
const stripByteCounts = ifd.stripByteCounts || guessStripByteCounts(ifd);

@@ -208,0 +209,0 @@ let remainingPixels = size;

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