@eris/exif
Advanced tools
Comparing version 0.4.3-alpha.8 to 0.4.3-alpha.9
@@ -171,4 +171,11 @@ "use strict"; | ||
const rdfDescription = match[0]; | ||
const isSelfClosing = rdfDescription.endsWith('/>'); | ||
const rdfDescriptionEndIndex = xmp.indexOf(rdfDescription) + rdfDescription.length - 1; | ||
const start = rdfDescriptionEndIndex + (tagName === 'DCSubjectBagOfWords' ? 1 : 0); | ||
let start = rdfDescriptionEndIndex + (tagName === 'DCSubjectBagOfWords' ? 1 : 0); | ||
if (isSelfClosing) { | ||
if (tagName === 'DCSubjectBagOfWords') { | ||
throw new Error('Keywords not supported in self-closing XMP tag'); | ||
} | ||
start -= 1; | ||
} | ||
return { start }; | ||
@@ -175,0 +182,0 @@ } |
@@ -219,4 +219,13 @@ import {IGenericMetadata, IBufferLike, XMPTagName} from '../utils/types' | ||
const rdfDescription = match[0] | ||
const isSelfClosing = rdfDescription.endsWith('/>') | ||
const rdfDescriptionEndIndex = xmp.indexOf(rdfDescription) + rdfDescription.length - 1 | ||
const start = rdfDescriptionEndIndex + (tagName === 'DCSubjectBagOfWords' ? 1 : 0) | ||
let start = rdfDescriptionEndIndex + (tagName === 'DCSubjectBagOfWords' ? 1 : 0) | ||
if (isSelfClosing) { | ||
if (tagName === 'DCSubjectBagOfWords') { | ||
throw new Error('Keywords not supported in self-closing XMP tag') | ||
} | ||
start -= 1 | ||
} | ||
return {start} | ||
@@ -223,0 +232,0 @@ } |
{ | ||
"name": "@eris/exif", | ||
"version": "0.4.3-alpha.8", | ||
"version": "0.4.3-alpha.9", | ||
"description": "Parses EXIF data.", | ||
@@ -41,3 +41,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "9f83ed914a5f52a4c1709430e62f523eb0c0391e" | ||
"gitHead": "67af48f240beb7fdead81eb2e7b2eb1034d66dd0" | ||
} |
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
295076
5339