diff --git a/CHANGELOG.md b/CHANGELOG.md index d4e539c..2bf1cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.3.3 (October 30, 2020) + +* Upgrade to sailor 2.6.18 +* Annual audit of the component code to check if it exposes a sensitive data in the logs + ## 1.3.2 (June 6, 2020) * Remove update docs on deploy script diff --git a/lib/actions/attachmentToJson.js b/lib/actions/attachmentToJson.js index 27c5900..fa3429c 100644 --- a/lib/actions/attachmentToJson.js +++ b/lib/actions/attachmentToJson.js @@ -13,12 +13,12 @@ function checkFileName(self, fileName, pattern) { } if (!pattern.test(fileName)) { - self.logger.debug('%s does not match pattern: \'%s\'', fileName, pattern); + self.logger.debug('Filename does not match pattern'); return false; } if (fileName.split('.').pop() !== 'xml') { - self.logger.debug('%s is not .xml file: ', fileName); + self.logger.debug('Provided fileName is not .xml file'); return false; } @@ -40,14 +40,14 @@ module.exports.process = async function processAction(msg, cfg) { const fileName = key; // get file size based attachment object may not be define or be accurate let fileSize = attachment.size; - self.logger.info('Processing attachment=%s', fileName); + self.logger.info('Processing attachment'); if (checkFileName(self, fileName, pattern)) { if (fileSize === undefined || fileSize < MAX_FILE_SIZE) { // eslint-disable-next-line no-await-in-loop const response = await new AttachmentProcessor().getAttachment(attachment.url, 'arraybuffer'); - this.logger.debug(`For filename ${fileName} Response status: ${response.status} Response headers: ${JSON.stringify(response.headers)}`); + this.logger.debug(`For provided filename response status: ${response.status}`); if (response.status >= 400) { throw new Error(`Error in making request to ${attachment.url} @@ -61,12 +61,11 @@ module.exports.process = async function processAction(msg, cfg) { throw new Error(`Empty attachment received for file ${fileName}`); } - this.logger.debug(`For filename ${fileName} Response Body string: ${responseBodyString}`); fileSize = sizeof(responseBodyString); if (fileSize < MAX_FILE_SIZE) { const returnMsg = await xml2Json.process(this, responseBodyString); - this.logger.debug(`For filename ${fileName} Result of XML Conversion: ${JSON.stringify(returnMsg)}`); + this.logger.debug('Attachment to XML finished'); foundXML = true; await self.emit('data', messages.newMessageWithBody(returnMsg.body)); } else { @@ -80,6 +79,6 @@ module.exports.process = async function processAction(msg, cfg) { } } if (!foundXML) { - self.logger.info(`No XML files that match the pattern found with in attachments. Pattern: ${pattern}`); + self.logger.info('No XML files that match the pattern found within attachments'); } }; diff --git a/lib/actions/jsonToXml.js b/lib/actions/jsonToXml.js index 4347ef7..feda72f 100644 --- a/lib/actions/jsonToXml.js +++ b/lib/actions/jsonToXml.js @@ -52,7 +52,7 @@ module.exports.process = async function process(msg, cfg) { const attachmentProcessor = new AttachmentProcessor(); const uploadResult = await attachmentProcessor.uploadAttachment(xmlString); const attachmentUrl = uploadResult.config.url; - this.logger.info(`Successfully created attachment at ${attachmentUrl}`); + this.logger.info('Attachment created successfully'); const outboundMessage = messages.newEmptyMessage(); outboundMessage.attachments = { diff --git a/lib/actions/jsonToXmlOld.js b/lib/actions/jsonToXmlOld.js index 07ad506..2e60f14 100644 --- a/lib/actions/jsonToXmlOld.js +++ b/lib/actions/jsonToXmlOld.js @@ -1,4 +1,3 @@ -/* eslint no-invalid-this: 0 no-console: 0 */ const eioUtils = require('elasticio-node').messages; const xml2js = require('xml2js'); const _ = require('lodash'); @@ -41,8 +40,9 @@ function validateJsonPropNames(value, key) { * @param msg incoming message object that contains ``body`` with payload * @param cfg configuration that is account information and configuration field values */ +// eslint-disable-next-line no-unused-vars function processAction(msg, cfg) { - this.logger.debug('Action started, message=%j cfg=%j', msg, cfg); + this.logger.debug('Action started...'); const options = { trim: false, normalize: false, @@ -60,7 +60,7 @@ function processAction(msg, cfg) { validateJsonPropNames(jsonToTransform); const result = builder.buildObject(jsonToTransform); - this.logger.debug('Successfully converted body to XML result=%s', result); + this.logger.debug('Successfully converted body to XML'); return eioUtils.newMessageWithBody({ xmlString: result, }); diff --git a/lib/actions/parse.js b/lib/actions/parse.js index 9f54d30..510ad25 100644 --- a/lib/actions/parse.js +++ b/lib/actions/parse.js @@ -1,4 +1,3 @@ -/* eslint no-invalid-this: 0 no-console: 0 */ const elasticio = require('elasticio-node'); const { messages } = elasticio; @@ -18,7 +17,7 @@ let unmarshaller; */ module.exports.process = function processAction(msg, cfg) { co(function* gen() { - this.logger.debug('Action started cfg=%j', cfg); + this.logger.debug('Action started...'); // We need to make sure we execute initialization only once yield lock.acquireAsync(); try { @@ -31,9 +30,10 @@ module.exports.process = function processAction(msg, cfg) { -compact \ -logLevel DEBUG \ "${cfg.schemaUri}"`; - this.logger.debug('Starting JAVA process cmd=%s', cmd); + this.logger.debug('Starting JAVA process...'); + // eslint-disable-next-line no-unused-vars const out = yield exec(cmd); - this.logger.debug('%s\nGeneration completed', out); + this.logger.debug('Generation completed'); this.logger.debug('Loading mappings from ./mappings/index.js'); // eslint-disable-next-line global-require, import/no-unresolved const mappings = require('../../mappings'); @@ -50,18 +50,17 @@ module.exports.process = function processAction(msg, cfg) { if (msg.body.xml && typeof msg.body.xml === 'string') { this.logger.info('Found input data in incoming message length of XML is length=%s', msg.body.xml.length); const result = unmarshaller.unmarshalString(msg.body.xml); - this.logger.debug('Parsed XML to JSON json=%j', result); + this.logger.debug('XML parsed to JSON'); this.emit('data', messages.newMessageWithBody(result)); } else if (msg.attachments && Object.keys(msg.attachments).length > 0) { - this.logger.info('Found attachments in the message keys=%s', Object.keys(msg.attachments)); + this.logger.info(`Found attachments in the message keys=${Object.keys(msg.attachments).length}`); this.emit('data', msg); } else { - this.logger.debug('No data XML payload found in the incoming message or it\'s attachments, ' - + 'no processing will be done msg=%j', msg); + this.logger.debug('No data XML payload found in the incoming message or it\'s attachments'); } this.emit('end'); }.bind(this)).catch((err) => { - this.logger.info('Error occurred', err.stack || err); + this.logger.info('Error in parsing occurred'); this.emit('error', err); this.emit('end'); }); diff --git a/lib/actions/xmlToJson.js b/lib/actions/xmlToJson.js index 1ab1b49..12d1360 100644 --- a/lib/actions/xmlToJson.js +++ b/lib/actions/xmlToJson.js @@ -1,4 +1,3 @@ -/* eslint no-invalid-this: 0 no-console: 0 */ const xml2Json = require('../xml2Json.js'); /** @@ -7,8 +6,8 @@ const xml2Json = require('../xml2Json.js'); * @param msg incoming message object that contains ``body`` with payload * @param cfg configuration that is account information and configuration field values */ +// eslint-disable-next-line no-unused-vars module.exports.process = function processAction(msg, cfg) { - this.logger.trace('Action started, message=%j cfg=%j', msg, cfg); if (!msg.body || !msg.body.xmlString) { this.emit('error', 'Missing XML String as input'); this.emit('end'); diff --git a/lib/xml2Json.js b/lib/xml2Json.js index 0fa79f6..b1e2270 100644 --- a/lib/xml2Json.js +++ b/lib/xml2Json.js @@ -25,7 +25,7 @@ module.exports.process = async function xml2Json(self, xmlString) { return new Promise(((resolve, reject) => { parser.parseString(xmlString, (err, data) => { if (err) { - self.logger.info('Error occurred', err.stack || err); + self.logger.info('Error in xml2Json occurred'); reject(new Error(invalidXmlMessage)); } else { self.logger.info('Successfully converted XML to JSON'); diff --git a/package-lock.json b/package-lock.json index 32f83a6..7262190 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "xml", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -133,65 +133,43 @@ "to-fast-properties": "^2.0.0" } }, + "@elastic.io/bunyan-logger": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@elastic.io/bunyan-logger/-/bunyan-logger-1.0.5.tgz", + "integrity": "sha512-FcoaG7nTA2H/VuE+0TC1ZKxwEMv3eTVJ42HwrzOY3x3UIpJ9RorG+Sk7G6SBoNuEiBRslGA6Iy9ddE4J3lR2og==", + "requires": { + "bunyan": "1.8.12" + } + }, "@elastic.io/component-commons-library": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@elastic.io/component-commons-library/-/component-commons-library-1.1.2.tgz", - "integrity": "sha512-+oY05m3mR2xh9cmPxvBvrdaHoO+0Axkp/qHj1iED5UqLu6+zvt3FgKNHYQZcoTfrpd2LN3ytm2R2M8qBeRKl1A==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@elastic.io/component-commons-library/-/component-commons-library-1.1.5.tgz", + "integrity": "sha512-yTJySfCiRT+b5wO3SOc36G+iay1jBlgqM0FAHeVOXab4MqvjUm7V348f4a4fpPLbhCS30rooxaoAADIM7gOivg==", "requires": { "@elastic.io/jsonata-moment": "1.1.4", "@elastic.io/ntlm-client": "1.0.0", - "@types/node": "8.10.51", - "axios": "0.18.1", - "bunyan": "1.8.12", + "@types/node": "14.14.3", + "axios": "0.21.0", + "bunyan": "1.8.14", "bunyan-format": "0.2.1", "bunyan-serializers": "0.0.2", "elasticio-node": "0.0.9", - "elasticio-rest-node": "1.2.3", + "elasticio-rest-node": "1.2.6", "remove-leading-slash": "1.0.1", - "remove-trailing-slash": "0.1.0", - "request": "2.88.0", - "typescript": "3.4.4" + "remove-trailing-slash": "0.1.1", + "request": "2.88.2", + "typescript": "4.0.3" }, "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "bunyan": { + "version": "1.8.14", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.14.tgz", + "integrity": "sha512-LlahJUxXzZLuw/hetUQJmRgZ1LF6+cr5TPpRj6jf327AsiIq2jhYEH4oqUUkVKTor+9w2BT3oxVwhzE5lw9tcg==", "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" + "dtrace-provider": "~0.8", + "moment": "^2.19.3", + "mv": "~2", + "safe-json-stringify": "~1" } } } @@ -224,6 +202,34 @@ "request": "2.88.2" } }, + "@elastic.io/object-storage-client": { + "version": "0.0.2-dev", + "resolved": "https://registry.npmjs.org/@elastic.io/object-storage-client/-/object-storage-client-0.0.2-dev.tgz", + "integrity": "sha512-jVra0BMYg5jktFtOFPaYmnW3LUTBUjoIAHlI3igPwEEOMeYtyAGKo2Mz7c9kNdoRsPLsYmGiyR7mH0nl6dlYvA==", + "requires": { + "@elastic.io/bunyan-logger": "1.0.5", + "axios": "0.19.0", + "get-stream": "5.1.0", + "jsonwebtoken": "8.5.1", + "uuid": "3.3.2" + }, + "dependencies": { + "axios": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", + "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" + } + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + } + } + }, "@sinonjs/commons": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.7.2.tgz", @@ -276,9 +282,9 @@ "dev": true }, "@types/node": { - "version": "8.10.51", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.51.tgz", - "integrity": "sha512-cArrlJp3Yv6IyFT/DYe+rlO8o3SIHraALbBW/+CcCYW/a9QucpLI+n2p4sRxAvl2O35TiecpX2heSZtJjvEO+Q==" + "version": "14.14.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.3.tgz", + "integrity": "sha512-33/L34xS7HVUx23e0wOT2V1qPF1IrHgQccdJVm9uXGTB9vFBrrzBtkQymT8VskeKOxjz55MSqMv0xuLq+u98WQ==" }, "accounting": { "version": "0.4.1", @@ -458,12 +464,18 @@ "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==" }, "axios": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.1.tgz", - "integrity": "sha512-0BfJq4NSfQXd+SkFdrvFbG7addhYSBA2mQwISr46pD6E5iqkWg02RAs8vyTT/j0RTnoYmeXauBuSv1qKwR179g==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.0.tgz", + "integrity": "sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==", "requires": { - "follow-redirects": "1.5.10", - "is-buffer": "^2.0.2" + "follow-redirects": "^1.10.0" + }, + "dependencies": { + "follow-redirects": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", + "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==" + } } }, "balanced-match": { @@ -536,6 +548,11 @@ "ieee754": "^1.1.4" } }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, "buffer-more-ints": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-0.0.2.tgz", @@ -876,6 +893,14 @@ "safer-buffer": "^2.1.0" } }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, "elasticio-node": { "version": "0.0.9", "resolved": "https://registry.npmjs.org/elasticio-node/-/elasticio-node-0.0.9.tgz", @@ -898,35 +923,51 @@ } }, "elasticio-rest-node": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/elasticio-rest-node/-/elasticio-rest-node-1.2.3.tgz", - "integrity": "sha512-9OBmI/gKnIXOq8RJFO1VHHyaVn8oImSHdGE7EAZy9A6N7yBU0Y9qbtv6sA/VK7+NQprkFLvTxH3lHyy+BCgqkg==", - "requires": { - "lodash": "^3.10.1", - "natives": "^1.1.6", - "q": "^1.4.1", - "requestretry": "^3.1.0" + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/elasticio-rest-node/-/elasticio-rest-node-1.2.6.tgz", + "integrity": "sha512-j9bdO1L9LmimBTQ6su7bakA5DqVbqdMtgXotX7+oCoPMLFClVTESRaokwDrK9MA15x5ZKrh/E4JNVqNxp83MdQ==", + "requires": { + "lodash": "4.17.15", + "q": "1.5.1", + "request": "2.88.2", + "requestretry": "4.1.0" }, "dependencies": { "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=" + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" + }, + "requestretry": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-4.1.0.tgz", + "integrity": "sha512-q3IT2vz5vkcMT6xgwB/BWzsmnu7N/27l9fW86U48gt9Mwrce5rSEyFvpAW7Il1/B78/NBUlYBvcCY1RzWUWy7w==", + "requires": { + "extend": "^3.0.2", + "lodash": "^4.17.10", + "when": "^3.7.7" + } } } }, "elasticio-sailor-nodejs": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/elasticio-sailor-nodejs/-/elasticio-sailor-nodejs-2.6.7.tgz", - "integrity": "sha512-S0Tnc4OOndyYfgoxMlhbVmWwU0MlPe38sN3vJrQ5/gmsiqkPCXQiH2lPi41w25nJSXToXY6min2k5yOHlUCqyA==", + "version": "2.6.18", + "resolved": "https://registry.npmjs.org/elasticio-sailor-nodejs/-/elasticio-sailor-nodejs-2.6.18.tgz", + "integrity": "sha512-ZtGI3p/jzmpRz4A9GWhj6yocXRJq4ixz2j4a898XKVUynJxL68tAeqWdcui3UxD6O9gvTDOdxkrVg289UxjZkw==", "requires": { + "@elastic.io/object-storage-client": "0.0.2-dev", "amqplib": "0.5.1", "bunyan": "1.8.10", "co": "4.6.0", "debug": "3.1.0", "elasticio-rest-node": "1.2.5", "event-to-promise": "0.8.0", - "lodash": "4.17.4", + "lodash": "4.17.15", "p-throttle": "2.1.0", "q": "1.4.1", "request-promise-native": "1.0.5", @@ -956,11 +997,6 @@ "requestretry": "4.1.0" }, "dependencies": { - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" - }, "q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", @@ -979,9 +1015,9 @@ } }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, "uuid": { "version": "3.0.1", @@ -996,6 +1032,14 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -1554,6 +1598,14 @@ "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", "dev": true }, + "get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", + "requires": { + "pump": "^3.0.0" + } + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -1975,6 +2027,35 @@ "resolved": "https://registry.npmjs.org/jsonix-schema-compiler/-/jsonix-schema-compiler-2.3.9.tgz", "integrity": "sha1-N18mXKDjc44D0lRKhbkxW7nkXjo=" }, + "jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "requires": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "dependencies": { + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + } + } + }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -1992,6 +2073,25 @@ "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", "dev": true }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -2025,9 +2125,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "lodash.get": { "version": "4.4.2", @@ -2035,6 +2135,41 @@ "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", "dev": true }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" + }, "log-symbols": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", @@ -2247,11 +2382,6 @@ "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", "optional": true }, - "natives": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.6.tgz", - "integrity": "sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==" - }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -3760,6 +3890,15 @@ "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -3834,9 +3973,9 @@ "integrity": "sha1-355tA6LbvjYbOXqRL92b3HQOkKg=" }, "remove-trailing-slash": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-slash/-/remove-trailing-slash-0.1.0.tgz", - "integrity": "sha1-FJjl3wmEwn5Jt26/Boh8otARUNI=" + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/remove-trailing-slash/-/remove-trailing-slash-0.1.1.tgz", + "integrity": "sha512-o4S4Qh6L2jpnCy83ysZDau+VORNvnFw07CKSAymkd6ICNVEPisMyzlc00KlvvicsxKck94SEwhDnMNdICzO+tA==" }, "request": { "version": "2.88.2", @@ -4378,9 +4517,9 @@ "dev": true }, "typescript": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.4.tgz", - "integrity": "sha512-xt5RsIRCEaf6+j9AyOBgvVuAec0i92rgCaS3S+UVf5Z/vF2Hvtsw08wtUTJqp4djwznoAgjSxeCcU4r+CcDBJA==" + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", + "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==" }, "uri-js": { "version": "4.2.2", diff --git a/package.json b/package.json index dd686ff..8c353d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xml", - "version": "1.3.2", + "version": "1.3.3", "description": "Integration component to work with XML files", "homepage": "http://www.elastic.io", "author": { @@ -9,7 +9,7 @@ "url": "https://elastic.io" }, "engines": { - "node": ">=12.13.0" + "node": "14" }, "files": [ "lib" @@ -27,15 +27,15 @@ "test": "NODE_ENV=test mocha --recursive spec" }, "dependencies": { - "@elastic.io/component-commons-library": "1.1.2", + "@elastic.io/component-commons-library": "1.1.5", "await-lock": "1.1.3", "bluebird": "3.5.3", "co": "4.6.0", "elasticio-node": "0.0.9", - "elasticio-sailor-nodejs": "2.6.7", + "elasticio-sailor-nodejs": "2.6.18", "jsonix": "2.4.1", "jsonix-schema-compiler": "2.3.9", - "lodash": "4.17.15", + "lodash": "4.17.20", "object-sizeof": "1.3.0", "promised-exec": "1.0.1", "request": "2.88.2",