@cumulus/cmr-client
Advanced tools
Comparing version 1.16.0 to 1.16.1
{ | ||
"name": "@cumulus/cmr-client", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"engines": { | ||
@@ -34,3 +34,3 @@ "node": ">=8.10.0" | ||
"dependencies": { | ||
"@cumulus/logger": "1.16.0", | ||
"@cumulus/logger": "1.16.1", | ||
"got": "^9.6.0", | ||
@@ -49,3 +49,3 @@ "lodash.get": "^4.4.2", | ||
}, | ||
"gitHead": "00942fc9bfd7569506e0f8a2111297e1b3a85e43" | ||
"gitHead": "d89f54a4550a548eab4f39e3aeacfd7259859604" | ||
} |
11
Utils.js
'use strict'; | ||
const { promisify } = require('util'); | ||
const xml2js = require('xml2js'); | ||
exports.promisify = (fn) => (...args) => | ||
new Promise((resolve, reject) => { | ||
fn(...args, (err, obj) => { | ||
if (err) reject(err); | ||
resolve(obj); | ||
}); | ||
}); | ||
async function parseXMLString(xmlString) { | ||
const parseString = exports.promisify(xml2js.parseString); | ||
const parseString = promisify(xml2js.parseString); | ||
const xmlParseOptions = { | ||
@@ -16,0 +9,0 @@ ignoreAttrs: true, |
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
41335
643
+ Added@cumulus/logger@1.16.1(transitive)
- Removed@cumulus/logger@1.16.0(transitive)
Updated@cumulus/logger@1.16.1