New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eris/exif

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eris/exif - npm Package Compare versions

Comparing version 0.2.1-alpha.8 to 0.2.1-alpha.9

4

dist/index.d.ts
import { JPEGDecoder } from './decoder/jpeg-decoder';
import { TIFFDecoder } from './decoder/tiff-decoder';
import { XMPDecoder } from './decoder/xmp-decoder';
import { TIFFEncoder } from './encoder/tiff-encoder';
import { XMPEncoder } from './encoder/xmp-encoder';
import { normalizeMetadata } from './metadata/normalize';

@@ -8,3 +10,3 @@ import { IDecoder, IBufferLike, INormalizedMetadata } from './utils/types';

export declare function parse(bufferOrDecoder: IBufferLike | IDecoder): INormalizedMetadata;
export { normalizeMetadata, TIFFDecoder, JPEGDecoder, TIFFEncoder };
export { normalizeMetadata, TIFFDecoder, JPEGDecoder, XMPDecoder, TIFFEncoder, XMPEncoder };
export { IGenericMetadata, INormalizedMetadata, IParsedLens, IFDTagName } from './utils/types';

@@ -8,7 +8,10 @@ "use strict";

const xmp_decoder_1 = require("./decoder/xmp-decoder");
exports.XMPDecoder = xmp_decoder_1.XMPDecoder;
const tiff_encoder_1 = require("./encoder/tiff-encoder");
exports.TIFFEncoder = tiff_encoder_1.TIFFEncoder;
const xmp_encoder_1 = require("./encoder/xmp-encoder");
exports.XMPEncoder = xmp_encoder_1.XMPEncoder;
const normalize_1 = require("./metadata/normalize");
exports.normalizeMetadata = normalize_1.normalizeMetadata;
function isTIFFDecoder(obj) {
function isDecoder(obj) {
return typeof obj.extractMetadata === 'function';

@@ -20,3 +23,3 @@ }

function createDecoder(bufferOrDecoder) {
if (isTIFFDecoder(bufferOrDecoder)) {
if (isDecoder(bufferOrDecoder)) {
return bufferOrDecoder;

@@ -23,0 +26,0 @@ }

@@ -5,6 +5,7 @@ import {JPEGDecoder} from './decoder/jpeg-decoder'

import {TIFFEncoder} from './encoder/tiff-encoder'
import {XMPEncoder} from './encoder/xmp-encoder'
import {normalizeMetadata} from './metadata/normalize'
import {IDecoder, IBufferLike, INormalizedMetadata} from './utils/types'
function isTIFFDecoder(obj: any): obj is IDecoder {
function isDecoder(obj: any): obj is IDecoder {
return typeof (obj as any).extractMetadata === 'function'

@@ -18,3 +19,3 @@ }

export function createDecoder(bufferOrDecoder: IBufferLike | IDecoder): IDecoder {
if (isTIFFDecoder(bufferOrDecoder)) {
if (isDecoder(bufferOrDecoder)) {
return bufferOrDecoder

@@ -36,4 +37,4 @@ } else if (isLikelyTIFF(bufferOrDecoder)) {

export {normalizeMetadata, TIFFDecoder, JPEGDecoder, TIFFEncoder}
export {normalizeMetadata, TIFFDecoder, JPEGDecoder, XMPDecoder, TIFFEncoder, XMPEncoder}
export {IGenericMetadata, INormalizedMetadata, IParsedLens, IFDTagName} from './utils/types'
{
"name": "@eris/exif",
"version": "0.2.1-alpha.8",
"version": "0.2.1-alpha.9",
"description": "Parses EXIF data.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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