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 4.3.0 to 5.0.0

0

lib-esm/horizontalDifferencing.js

@@ -0,0 +0,0 @@ // Section 14: Differencing Predictor (p. 64)

7

lib-esm/ifd.js

@@ -10,2 +10,9 @@ import * as exif from './tags/exif';

export default class IFD {
kind;
data;
fields;
exif;
gps;
_hasMap;
_map;
constructor(kind) {

@@ -12,0 +19,0 @@ if (!kind) {

2

lib-esm/ifdValue.js

@@ -13,3 +13,3 @@ let types = new Map([

[11, [4, readFloat]],
[12, [8, readDouble]],
[12, [8, readDouble]], // DOUBLE
]);

@@ -16,0 +16,0 @@ export function getByteLength(type, count) {

@@ -0,0 +0,0 @@ import TIFFDecoder from './tiffDecoder';

@@ -18,2 +18,7 @@ import { IOBuffer } from 'iobuffer';

class LzwDecoder {
stripArray;
currentBit;
tableLength;
currentBitLength;
outData;
constructor(data) {

@@ -20,0 +25,0 @@ this.stripArray = new Uint8Array(data.buffer, data.byteOffset, data.byteLength);

@@ -0,0 +0,0 @@ const tagsById = {

@@ -0,0 +0,0 @@ const tagsById = {

@@ -0,0 +0,0 @@ const tagsById = {

@@ -13,2 +13,3 @@ import { IOBuffer } from 'iobuffer';

export default class TIFFDecoder extends IOBuffer {
_nextIFD;
constructor(data) {

@@ -15,0 +16,0 @@ super(data);

@@ -0,0 +0,0 @@ import Ifd from './ifd';

export {};
//# sourceMappingURL=types.js.map

@@ -0,0 +0,0 @@ import { inflate } from 'pako';

export declare function applyHorizontalDifferencing8Bit(data: Uint8Array, width: number, components: number): void;
export declare function applyHorizontalDifferencing16Bit(data: Uint16Array, width: number, components: number): void;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IFDKind, DataArray } from './types';

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

class IFD {
kind;
data;
fields;
exif;
gps;
_hasMap;
_map;
constructor(kind) {

@@ -33,0 +40,0 @@ if (!kind) {

import TIFFDecoder from './tiffDecoder';
export declare function getByteLength(type: number, count: number): number;
export declare function readData(decoder: TIFFDecoder, type: number, count: number): any;

@@ -16,3 +16,3 @@ "use strict";

[11, [4, readFloat]],
[12, [8, readDouble]],
[12, [8, readDouble]], // DOUBLE
]);

@@ -19,0 +19,0 @@ function getByteLength(type, count) {

@@ -0,0 +0,0 @@ import TiffIfd from './tiffIfd';

@@ -0,0 +0,0 @@ "use strict";

export declare function decompressLzw(stripData: DataView): DataView;

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

class LzwDecoder {
stripArray;
currentBit;
tableLength;
currentBitLength;
outData;
constructor(data) {

@@ -23,0 +28,0 @@ this.stripArray = new Uint8Array(data.buffer, data.byteOffset, data.byteLength);

declare const tagsById: Record<number, string>;
declare const tagsByName: Record<string, number>;
export { tagsById, tagsByName };

@@ -0,0 +0,0 @@ "use strict";

declare const tagsById: Record<number, string>;
declare const tagsByName: Record<string, number>;
export { tagsById, tagsByName };

@@ -0,0 +0,0 @@ "use strict";

declare const tagsById: Record<number, string>;
declare const tagsByName: Record<string, number>;
export { tagsById, tagsByName };

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IOBuffer } from 'iobuffer';

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

class TIFFDecoder extends iobuffer_1.IOBuffer {
_nextIFD;
constructor(data) {

@@ -20,0 +21,0 @@ super(data);

@@ -0,0 +0,0 @@ import Ifd from './ifd';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map
export declare function decompressZlib(stripData: DataView): DataView;

@@ -0,0 +0,0 @@ "use strict";

{
"name": "tiff",
"version": "4.3.0",
"version": "5.0.0",
"description": "TIFF image decoder written entirely in JavaScript",

@@ -14,7 +14,10 @@ "main": "lib/index.js",

"scripts": {
"check-types": "tsc --noEmit",
"clean": "rimraf lib lib-esm",
"eslint": "eslint src --ext ts",
"eslint-fix": "npm run eslint -- --fix",
"prepublishOnly": "npm run tsc",
"test": "npm run test-coverage && npm run eslint",
"prepack": "npm run tsc",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-coverage && npm run eslint && npm run prettier && npm run check-types",
"test-coverage": "jest --coverage",

@@ -41,16 +44,16 @@ "test-only": "jest",

"dependencies": {
"iobuffer": "^5.0.2",
"pako": "^2.0.2"
"iobuffer": "^5.0.3",
"pako": "^2.0.3"
},
"devDependencies": {
"@types/jest": "^26.0.16",
"@types/node": "^14.14.10",
"@types/jest": "^26.0.23",
"@types/node": "^16.0.0",
"@types/pako": "^1.0.1",
"eslint": "^7.14.0",
"eslint-config-cheminfo-typescript": "^8.0.5",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"eslint": "^7.30.0",
"eslint-config-cheminfo-typescript": "^8.0.9",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
"ts-jest": "^27.0.3",
"typescript": "^4.3.5"
},

@@ -57,0 +60,0 @@ "prettier": {

# tiff
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]
TIFF image decoder written entirely in JavaScript.
<h3 align="center">
<a href="https://www.zakodium.com">
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
</a>
<p>
Maintained by <a href="https://www.zakodium.com">Zakodium</a>
</p>
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]
</h3>
## Installation

@@ -10,0 +22,0 @@

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