Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "aux-xml", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Identify and Read Auxiliary XML Files (e.g., .jpg.aux.xml, .png.aux.xml, and .tif.aux.xml)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ const camelcase = require("camelcase"); | ||
module.exports = function readAuxXML (xml, { debug = false } = { debug: false }) { | ||
module.exports = function readAuxXML(xml, { debug = false } = { debug: false }) { | ||
if (debug) console.log("[aux-xml] starting readAuxXML"); | ||
@@ -10,0 +10,0 @@ |
const camelcase = require("camelcase"); | ||
const findTagByPath = require("xml-utils/find-tag-by-path"); | ||
const findTagsByName = require("xml-utils/find-tags-by-name"); | ||
const getAttribute = require("xml-utils/get-attribute"); | ||
@@ -34,2 +31,6 @@ module.exports = function writeAuxXML(data, { debug = false } = { debug: false }) { | ||
for (let i in data.bands) { | ||
if (i === "0") { | ||
throw new Error("[aux-xml] cannot write band with index 0. Aux XML files start at band 1."); | ||
} | ||
const band = data.bands[i]; | ||
@@ -36,0 +37,0 @@ if (typeof band === "object") { |
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
17183