@eris/exif
Advanced tools
Comparing version 0.4.3-alpha.5 to 0.4.3-alpha.6
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Cr3Decoder = void 0; | ||
const reader_1 = require("../utils/reader"); | ||
@@ -4,0 +5,0 @@ const types_1 = require("../utils/types"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FujiDecoder = exports.FUJI_MAGIC_STRING = void 0; | ||
const reader_1 = require("../utils/reader"); | ||
@@ -4,0 +5,0 @@ const jpeg_decoder_1 = require("./jpeg-decoder"); |
@@ -10,4 +10,4 @@ /// <reference types="node" /> | ||
constructor(startOffset: number, tag: number, dataType: number, length: number, dataReader: IReader); | ||
readonly lengthInBytes: number; | ||
readonly friendlyTagName: IFDTagName; | ||
get lengthInBytes(): number; | ||
get friendlyTagName(): IFDTagName; | ||
getValue(reader?: IReader): string | number | IBufferLike; | ||
@@ -14,0 +14,0 @@ getReader(reader?: IReader): IReader; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IFDEntry = void 0; | ||
const tags_1 = require("../utils/tags"); | ||
@@ -4,0 +5,0 @@ const types_1 = require("../utils/types"); |
@@ -10,6 +10,6 @@ import { IFDEntry } from './ifd-entry'; | ||
constructor(offset: IIFDOffset, entries: IFDEntry[], nextIFDOffset: number); | ||
readonly isEXIF: boolean; | ||
readonly isThumbnail: boolean; | ||
get isEXIF(): boolean; | ||
get isThumbnail(): boolean; | ||
getSubIFDOffsets(reader: IReader): number[]; | ||
static read(reader: IReader, offset: IIFDOffset): IFD; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IFD = void 0; | ||
const ifd_entry_1 = require("./ifd-entry"); | ||
@@ -4,0 +5,0 @@ const types_1 = require("../utils/types"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JPEGDecoder = void 0; | ||
const tiff_decoder_1 = require("../decoder/tiff-decoder"); | ||
@@ -4,0 +5,0 @@ const types_1 = require("../utils/types"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TIFFDecoder = void 0; | ||
const ifd_1 = require("../decoder/ifd"); | ||
@@ -4,0 +5,0 @@ const tags_1 = require("../utils/tags"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XMPDecoder = void 0; | ||
const tags_1 = require("../utils/tags"); | ||
@@ -4,0 +5,0 @@ const EXIF_ATTR_GLOBAL_REGEX = /(xmp|exif|tiff):([0-9a-z]+?)="(.*?)"/gim; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TIFFEncoder = void 0; | ||
const types_1 = require("../utils/types"); | ||
@@ -4,0 +5,0 @@ const writer_1 = require("../utils/writer"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XMPEncoder = void 0; | ||
const tags_1 = require("../utils/tags"); | ||
@@ -11,3 +12,3 @@ const log_1 = require("../utils/log"); | ||
})(XMPMatchType || (XMPMatchType = {})); | ||
const writableTags = Object.assign({}, tags_1.xmpTags, { DateTimeOriginal: true }); | ||
const writableTags = Object.assign(Object.assign({}, tags_1.xmpTags), { DateTimeOriginal: true }); | ||
const log = log_1.createLogger('xmp-encoder'); | ||
@@ -14,0 +15,0 @@ const XMP_BASE_RDF_DESCRIPTION = ` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XMPEncoder = exports.TIFFEncoder = exports.XMPDecoder = exports.JPEGDecoder = exports.FujiDecoder = exports.TIFFDecoder = exports.normalizeMetadata = exports.parse = exports.createDecoder = exports.isParseable = void 0; | ||
const jpeg_decoder_1 = require("./decoder/jpeg-decoder"); | ||
exports.JPEGDecoder = jpeg_decoder_1.JPEGDecoder; | ||
Object.defineProperty(exports, "JPEGDecoder", { enumerable: true, get: function () { return jpeg_decoder_1.JPEGDecoder; } }); | ||
const fuji_decoder_1 = require("./decoder/fuji-decoder"); | ||
exports.FujiDecoder = fuji_decoder_1.FujiDecoder; | ||
Object.defineProperty(exports, "FujiDecoder", { enumerable: true, get: function () { return fuji_decoder_1.FujiDecoder; } }); | ||
const cr3_decoder_1 = require("./decoder/cr3-decoder"); | ||
const tiff_decoder_1 = require("./decoder/tiff-decoder"); | ||
exports.TIFFDecoder = tiff_decoder_1.TIFFDecoder; | ||
Object.defineProperty(exports, "TIFFDecoder", { enumerable: true, get: function () { return tiff_decoder_1.TIFFDecoder; } }); | ||
const xmp_decoder_1 = require("./decoder/xmp-decoder"); | ||
exports.XMPDecoder = xmp_decoder_1.XMPDecoder; | ||
Object.defineProperty(exports, "XMPDecoder", { enumerable: true, get: function () { return xmp_decoder_1.XMPDecoder; } }); | ||
const tiff_encoder_1 = require("./encoder/tiff-encoder"); | ||
exports.TIFFEncoder = tiff_encoder_1.TIFFEncoder; | ||
Object.defineProperty(exports, "TIFFEncoder", { enumerable: true, get: function () { return tiff_encoder_1.TIFFEncoder; } }); | ||
const xmp_encoder_1 = require("./encoder/xmp-encoder"); | ||
exports.XMPEncoder = xmp_encoder_1.XMPEncoder; | ||
Object.defineProperty(exports, "XMPEncoder", { enumerable: true, get: function () { return xmp_encoder_1.XMPEncoder; } }); | ||
const normalize_1 = require("./metadata/normalize"); | ||
exports.normalizeMetadata = normalize_1.normalizeMetadata; | ||
Object.defineProperty(exports, "normalizeMetadata", { enumerable: true, get: function () { return normalize_1.normalizeMetadata; } }); | ||
function isDecoder(obj) { | ||
@@ -19,0 +20,0 @@ return typeof obj.extractMetadata === 'function'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseDate = void 0; | ||
const isColonDate = (s) => /^\d+:\d+:\d+ \d+:\d+:\d+$/.test(s); | ||
@@ -4,0 +5,0 @@ const isISODateWithTz = (s) => /^\d{4}-\d{2}-\d{2}T[0-9.:]+(-|\+)\d{2}:\d{2}/.test(s); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseKeywords = void 0; | ||
function parseKeywords(data) { | ||
@@ -4,0 +5,0 @@ if (typeof data.DCSubjectBagOfWords !== 'string') |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseLens = void 0; | ||
const patterns = { | ||
@@ -4,0 +5,0 @@ make: /^(\w+)/, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizeMetadata = void 0; | ||
const date_parser_1 = require("./date-parser"); | ||
@@ -47,3 +48,5 @@ const keywords_parser_1 = require("./keywords-parser"); | ||
const output = { _raw: results }; | ||
for (const key of Object.keys(properties)) { | ||
// tslint:disable-next-line | ||
for (const key_ of Object.keys(properties)) { | ||
const key = key_; | ||
const candidates = properties[key]; | ||
@@ -50,0 +53,0 @@ let value = undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createLogger = void 0; | ||
const debug = require('debug'); // tslint:disable-line | ||
@@ -4,0 +5,0 @@ function createLogger(namespace) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Reader = void 0; | ||
const types_1 = require("../utils/types"); | ||
@@ -4,0 +5,0 @@ class Reader { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getFriendlyName = exports.panasonicConversionTags = exports.xmpTags = exports.tagsByCode = exports.tags = void 0; | ||
// From https://raw.githubusercontent.com/hMatoba/piexifjs/master/piexif.js | ||
@@ -4,0 +5,0 @@ // and exif-parser on npm |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getDataTypeSize = exports.IFDDataType = exports.IFDGroup = exports.IFDTag = exports.LITTLE_ENDIAN_MARKER = exports.BIG_ENDIAN_MARKER = exports.Endian = void 0; | ||
var Endian; | ||
@@ -4,0 +5,0 @@ (function (Endian) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Writer = void 0; | ||
const types_1 = require("../utils/types"); | ||
@@ -4,0 +5,0 @@ class Writer { |
@@ -63,4 +63,6 @@ import {parseDate} from './date-parser' | ||
for (const key of Object.keys(properties)) { | ||
const candidates = properties[key as NormalizedKey] | ||
// tslint:disable-next-line | ||
for (const key_ of Object.keys(properties)) { | ||
const key = key_ as NormalizedKey | ||
const candidates = properties[key] | ||
let value = undefined | ||
@@ -74,3 +76,3 @@ for (const candidate of candidates) { | ||
output[key as keyof INormalizedMetadata] = value | ||
output[key] = value | ||
} | ||
@@ -77,0 +79,0 @@ |
{ | ||
"name": "@eris/exif", | ||
"version": "0.4.3-alpha.5", | ||
"version": "0.4.3-alpha.6", | ||
"description": "Parses EXIF data.", | ||
@@ -41,3 +41,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "bec52906733034920beafa58fdb3459f3e494d53" | ||
"gitHead": "98e79831aa0fc9c610e2ef9a44455f21b3d999cc" | ||
} |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294395
5324