jsonexport
Advanced tools
Comparing version 2.0.6 to 2.0.7
var fs = require('fs'); | ||
var util = require('util'); | ||
var Benchmark = require('benchmark'); | ||
var suite = new Benchmark.Suite; | ||
var json2csv = require('json2csv'); | ||
var json2csvstream = new require('json2csv-stream')(); | ||
var suite = new Benchmark.Suite(); | ||
var jsonexport = require('../lib/index'); | ||
@@ -23,5 +21,5 @@ // start benchmarking | ||
deferred.resolve(); | ||
}) | ||
}) | ||
}) | ||
}); | ||
}); | ||
}); | ||
} | ||
@@ -50,48 +48,2 @@ }) | ||
}) | ||
.add('json2csv', { | ||
'defer': true, | ||
'fn': function(deferred) { | ||
// var data = require('./data.json'); | ||
fs.readFile('data.json', function(err, data) { | ||
data = JSON.parse(data.toString()); | ||
if (err) console.log(err); | ||
json2csv({ | ||
data: data, | ||
fields: ['car', 'price', 'color'] | ||
}, function(err, csv) { | ||
if (err) console.log(err); | ||
fs.writeFile('out-no-streams.csv', csv, function(err) { | ||
if (err) console.log(err); | ||
deferred.resolve(); | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
.add('json2csv-stream', { | ||
'defer': true, | ||
'fn': function(deferred) { | ||
var reader = fs.createReadStream('data.json'); | ||
var writer = fs.createWriteStream('out.csv'); | ||
reader.on('error', function(err) { | ||
console.log(err); | ||
}); | ||
writer.on('error', function(err) { | ||
console.log(err); | ||
}); | ||
json2csvstream.on('end', function() { | ||
// Wait until reader is over and then close reader and finish deferred test | ||
writer.end(); | ||
deferred.resolve(); | ||
}); | ||
reader.pipe(json2csvstream).pipe(writer, { | ||
end: false | ||
}); | ||
} | ||
}) | ||
// add listeners | ||
@@ -98,0 +50,0 @@ .on('cycle', function(event) { |
## Change log | ||
---------------------- | ||
- v2.0.7 - removed underscore as a dependency (dydx) | ||
- v2.0.4 - rename option | ||
@@ -4,0 +5,0 @@ - v2.0.0 - stream support + new line fix + remove orderHeaders option + new headers option |
var os = require('os'); | ||
var _ = require('underscore'); | ||
const helper = require('./helper'); | ||
module.exports = function joinRows(rows, join) { | ||
if (!rows || !_.isArray(rows)) { | ||
if (!rows || !helper.isArray(rows)) { | ||
throw new TypeError('Invalid params "rows" for joinRows.' + | ||
@@ -7,0 +7,0 @@ ' Must be an array of string.'); |
@@ -6,5 +6,6 @@ /* jshint node:true */ | ||
*/ | ||
const _ = require('underscore'); | ||
//const _ = require('underscore'); | ||
const Parser = require('./parser/json'); | ||
const Stream = require('./core/stream'); | ||
const helper = require('./core/helper'); | ||
@@ -21,3 +22,3 @@ /** | ||
module.exports = function(json, userOptions, callback) { | ||
if (_.isFunction(userOptions)) { | ||
if (helper.isFunction(userOptions)) { | ||
callback = userOptions; | ||
@@ -28,4 +29,4 @@ userOptions = {}; | ||
let parser = new Parser(userOptions); | ||
if (!callback || !_.isFunction(callback)) return new Stream(parser); | ||
if (!callback || !helper.isFunction(callback)) return new Stream(parser); | ||
parser.parse(json, callback); | ||
}; |
@@ -8,6 +8,6 @@ /* jshint node:true */ | ||
var os = require('os'); | ||
var _ = require('underscore'); | ||
var Transform = require('stream').Transform; | ||
var joinRows = require('../core/join-rows'); | ||
const helper = require('../core/helper'); | ||
@@ -34,4 +34,4 @@ class Parser { | ||
parse(json, done, stream) { | ||
if (_.isArray(json)) return done(null, this._parseArray(json, stream)); | ||
else if (_.isObject(json)) return done(null, this._parseObject(json)); | ||
if (helper.isArray(json)) return done(null, this._parseArray(json, stream)); | ||
else if (helper.isObject(json)) return done(null, this._parseObject(json)); | ||
return done(new Error('Unable to parse the JSON object, its not an Array or Object.')); | ||
@@ -43,3 +43,3 @@ } | ||
if (this._options.rename && this._options.rename.length > 0) | ||
headers = headers.map((header) => this._options.rename[this._options.headers.indexOf(header)] || header) | ||
headers = headers.map((header) => this._options.rename[this._options.headers.indexOf(header)] || header); | ||
return headers.join(this._options.rowDelimiter); | ||
@@ -169,3 +169,3 @@ } | ||
//Check if element is a String | ||
if (_.isString(element)) { | ||
if (helper.isString(element)) { | ||
result = [{ | ||
@@ -177,3 +177,3 @@ item: item, | ||
//Check if element is a Number | ||
else if (_.isNumber(element)) { | ||
else if (helper.isNumber(element)) { | ||
result = [{ | ||
@@ -185,3 +185,3 @@ item: item, | ||
//Check if element is a Boolean | ||
else if (_.isBoolean(element)) { | ||
else if (helper.isBoolean(element)) { | ||
result = [{ | ||
@@ -193,3 +193,3 @@ item: item, | ||
//Check if element is a Date | ||
else if (_.isDate(element)) { | ||
else if (helper.isDate(element)) { | ||
result = [{ | ||
@@ -201,3 +201,3 @@ item: item, | ||
//Check if element is an Array | ||
else if (_.isArray(element)) { | ||
else if (helper.isArray(element)) { | ||
var resultArray = this._handleArray(element, item); | ||
@@ -207,3 +207,3 @@ result = this._setHeaders(resultArray, item); | ||
//Check if element is a Object | ||
else if (_.isObject(element)) { | ||
else if (helper.isObject(element)) { | ||
var resultObject = this._handleObject(element, item); | ||
@@ -341,3 +341,4 @@ result = this._setHeaders(resultObject, item); | ||
}; | ||
return _.extend(defaultOptions, userOptions); | ||
return Object.assign({}, defaultOptions, userOptions); | ||
} | ||
@@ -344,0 +345,0 @@ } |
{ | ||
"name": "jsonexport", | ||
"version": "2.0.4", | ||
"version": "2.0.6", | ||
"lockfileVersion": 1, | ||
"dependencies": { | ||
"assertion-error": { | ||
"version": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", | ||
"version": "1.0.2", | ||
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", | ||
"integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", | ||
"dev": true | ||
}, | ||
"async": { | ||
"version": "0.2.10", | ||
"resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", | ||
"integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", | ||
"dev": true | ||
}, | ||
"balanced-match": { | ||
"version": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", | ||
"version": "0.4.2", | ||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", | ||
"integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", | ||
@@ -26,14 +22,7 @@ "dev": true | ||
"integrity": "sha1-CfPeMckWQl1JjMLuVloOvzwqVik=", | ||
"dev": true, | ||
"dependencies": { | ||
"lodash": { | ||
"version": "4.17.4", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", | ||
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", | ||
"dev": true | ||
} | ||
} | ||
"dev": true | ||
}, | ||
"brace-expansion": { | ||
"version": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", | ||
"version": "1.1.7", | ||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", | ||
"integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=", | ||
@@ -43,3 +32,4 @@ "dev": true | ||
"browser-stdout": { | ||
"version": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", | ||
"version": "1.3.0", | ||
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", | ||
"integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", | ||
@@ -49,28 +39,6 @@ "dev": true | ||
"chai": { | ||
"version": "4.0.1", | ||
"resolved": "https://registry.npmjs.org/chai/-/chai-4.0.1.tgz", | ||
"integrity": "sha1-nkHoCOF6fxCAdyHirFpYnVuwkII=", | ||
"dev": true, | ||
"dependencies": { | ||
"deep-eql": { | ||
"version": "2.0.2", | ||
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-2.0.2.tgz", | ||
"integrity": "sha1-sbrAblbwp2d3aG1Qyf63XC7XZ5o=", | ||
"dev": true, | ||
"dependencies": { | ||
"type-detect": { | ||
"version": "3.0.0", | ||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-3.0.0.tgz", | ||
"integrity": "sha1-RtDMhVOrt7E6NSsNbeov1Y8tm1U=", | ||
"dev": true | ||
} | ||
} | ||
}, | ||
"type-detect": { | ||
"version": "4.0.3", | ||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.3.tgz", | ||
"integrity": "sha1-Dj8mcLRAmbC0bChNE2p+9Jx0wuo=", | ||
"dev": true | ||
} | ||
} | ||
"version": "4.0.2", | ||
"resolved": "https://registry.npmjs.org/chai/-/chai-4.0.2.tgz", | ||
"integrity": "sha1-L3MnxN5vOF3XeHmZ4qsCaXoyuDs=", | ||
"dev": true | ||
}, | ||
@@ -84,20 +52,10 @@ "check-error": { | ||
"cli": { | ||
"version": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", | ||
"version": "1.0.1", | ||
"resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", | ||
"integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=", | ||
"dev": true | ||
}, | ||
"cli-table": { | ||
"version": "0.3.1", | ||
"resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.1.tgz", | ||
"integrity": "sha1-9TsFJmqLGguTSz0IIebi3FkUriM=", | ||
"dev": true | ||
}, | ||
"colors": { | ||
"version": "1.0.3", | ||
"resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", | ||
"integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", | ||
"dev": true | ||
}, | ||
"commander": { | ||
"version": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", | ||
"version": "2.9.0", | ||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", | ||
"integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", | ||
@@ -107,3 +65,4 @@ "dev": true | ||
"concat-map": { | ||
"version": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", | ||
"version": "0.0.1", | ||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", | ||
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", | ||
@@ -113,3 +72,4 @@ "dev": true | ||
"console-browserify": { | ||
"version": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", | ||
"version": "1.1.0", | ||
"resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", | ||
"integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", | ||
@@ -119,3 +79,4 @@ "dev": true | ||
"core-util-is": { | ||
"version": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", | ||
"version": "1.0.2", | ||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", | ||
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", | ||
@@ -125,3 +86,4 @@ "dev": true | ||
"date-now": { | ||
"version": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", | ||
"version": "0.1.4", | ||
"resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", | ||
"integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", | ||
@@ -131,8 +93,24 @@ "dev": true | ||
"debug": { | ||
"version": "https://registry.npmjs.org/debug/-/debug-2.6.0.tgz", | ||
"version": "2.6.0", | ||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.0.tgz", | ||
"integrity": "sha1-vFlryr52F/Edn6FTYe3tVgi4SZs=", | ||
"dev": true | ||
}, | ||
"deep-eql": { | ||
"version": "2.0.2", | ||
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-2.0.2.tgz", | ||
"integrity": "sha1-sbrAblbwp2d3aG1Qyf63XC7XZ5o=", | ||
"dev": true, | ||
"dependencies": { | ||
"type-detect": { | ||
"version": "3.0.0", | ||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-3.0.0.tgz", | ||
"integrity": "sha1-RtDMhVOrt7E6NSsNbeov1Y8tm1U=", | ||
"dev": true | ||
} | ||
} | ||
}, | ||
"diff": { | ||
"version": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", | ||
"version": "3.2.0", | ||
"resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", | ||
"integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", | ||
@@ -142,3 +120,4 @@ "dev": true | ||
"dom-serializer": { | ||
"version": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", | ||
"version": "0.1.0", | ||
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", | ||
"integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", | ||
@@ -148,3 +127,4 @@ "dev": true, | ||
"domelementtype": { | ||
"version": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", | ||
"version": "1.1.3", | ||
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", | ||
"integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", | ||
@@ -154,3 +134,4 @@ "dev": true | ||
"entities": { | ||
"version": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", | ||
"version": "1.1.1", | ||
"resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", | ||
"integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", | ||
@@ -162,3 +143,4 @@ "dev": true | ||
"domelementtype": { | ||
"version": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", | ||
"version": "1.3.0", | ||
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", | ||
"integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", | ||
@@ -168,3 +150,4 @@ "dev": true | ||
"domhandler": { | ||
"version": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", | ||
"version": "2.3.0", | ||
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", | ||
"integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", | ||
@@ -174,3 +157,4 @@ "dev": true | ||
"domutils": { | ||
"version": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", | ||
"version": "1.5.1", | ||
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", | ||
"integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", | ||
@@ -180,3 +164,4 @@ "dev": true | ||
"entities": { | ||
"version": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", | ||
"integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", | ||
@@ -186,3 +171,4 @@ "dev": true | ||
"escape-string-regexp": { | ||
"version": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", | ||
"version": "1.0.5", | ||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", | ||
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", | ||
@@ -192,14 +178,10 @@ "dev": true | ||
"exit": { | ||
"version": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", | ||
"version": "0.1.2", | ||
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", | ||
"integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", | ||
"dev": true | ||
}, | ||
"flat": { | ||
"version": "2.0.1", | ||
"resolved": "https://registry.npmjs.org/flat/-/flat-2.0.1.tgz", | ||
"integrity": "sha1-cOKRiKdL4MPIlAnu0fqVd5B64y8=", | ||
"dev": true | ||
}, | ||
"fs.realpath": { | ||
"version": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", | ||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", | ||
@@ -215,8 +197,10 @@ "dev": true | ||
"glob": { | ||
"version": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", | ||
"integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", | ||
"version": "7.1.2", | ||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", | ||
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", | ||
"dev": true | ||
}, | ||
"graceful-readlink": { | ||
"version": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", | ||
"version": "1.0.1", | ||
"resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", | ||
"integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", | ||
@@ -226,3 +210,4 @@ "dev": true | ||
"growl": { | ||
"version": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", | ||
"version": "1.9.2", | ||
"resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", | ||
"integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", | ||
@@ -232,3 +217,4 @@ "dev": true | ||
"has-flag": { | ||
"version": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", | ||
"integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", | ||
@@ -238,3 +224,4 @@ "dev": true | ||
"htmlparser2": { | ||
"version": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", | ||
"version": "3.8.3", | ||
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", | ||
"integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", | ||
@@ -244,3 +231,4 @@ "dev": true | ||
"inflight": { | ||
"version": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", | ||
"version": "1.0.6", | ||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", | ||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", | ||
@@ -250,14 +238,10 @@ "dev": true | ||
"inherits": { | ||
"version": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", | ||
"version": "2.0.3", | ||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", | ||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", | ||
"dev": true | ||
}, | ||
"is-buffer": { | ||
"version": "1.1.5", | ||
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", | ||
"integrity": "sha1-Hzsm72E7IUuIy8ojzGwB2Hlh7sw=", | ||
"dev": true | ||
}, | ||
"isarray": { | ||
"version": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", | ||
"version": "0.0.1", | ||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", | ||
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", | ||
@@ -267,24 +251,12 @@ "dev": true | ||
"jshint": { | ||
"version": "https://registry.npmjs.org/jshint/-/jshint-2.9.4.tgz", | ||
"version": "2.9.4", | ||
"resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.4.tgz", | ||
"integrity": "sha1-XjupeEjVKQJz21FK7kf+JM9ZKTQ=", | ||
"dev": true | ||
}, | ||
"json2csv": { | ||
"version": "3.7.3", | ||
"resolved": "https://registry.npmjs.org/json2csv/-/json2csv-3.7.3.tgz", | ||
"integrity": "sha1-2s/fp/sMGxsWOGjcdfOQLQIzVOw=", | ||
"dev": true | ||
}, | ||
"json2csv-stream": { | ||
"version": "0.1.4", | ||
"resolved": "https://registry.npmjs.org/json2csv-stream/-/json2csv-stream-0.1.4.tgz", | ||
"integrity": "sha1-TQuhnzK6AOaaYJgeId7EMpxuDmc=", | ||
"dev": true, | ||
"dependencies": { | ||
"readable-stream": { | ||
"version": "1.0.34", | ||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", | ||
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", | ||
"dev": true, | ||
"optional": true | ||
"lodash": { | ||
"version": "3.7.0", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz", | ||
"integrity": "sha1-Nni9irmVBXwHreg27S7wh9qBHUU=", | ||
"dev": true | ||
} | ||
@@ -294,3 +266,4 @@ } | ||
"json3": { | ||
"version": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", | ||
"version": "3.3.2", | ||
"resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", | ||
"integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", | ||
@@ -300,8 +273,10 @@ "dev": true | ||
"lodash": { | ||
"version": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz", | ||
"integrity": "sha1-Nni9irmVBXwHreg27S7wh9qBHUU=", | ||
"version": "4.17.4", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", | ||
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", | ||
"dev": true | ||
}, | ||
"lodash._baseassign": { | ||
"version": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", | ||
"version": "3.2.0", | ||
"resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", | ||
"integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", | ||
@@ -311,3 +286,4 @@ "dev": true | ||
"lodash._basecopy": { | ||
"version": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", | ||
"version": "3.0.1", | ||
"resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", | ||
"integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", | ||
@@ -317,3 +293,4 @@ "dev": true | ||
"lodash._basecreate": { | ||
"version": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", | ||
"version": "3.0.3", | ||
"resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", | ||
"integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", | ||
@@ -323,3 +300,4 @@ "dev": true | ||
"lodash._getnative": { | ||
"version": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", | ||
"version": "3.9.1", | ||
"resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", | ||
"integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", | ||
@@ -329,31 +307,16 @@ "dev": true | ||
"lodash._isiterateecall": { | ||
"version": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", | ||
"version": "3.0.9", | ||
"resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", | ||
"integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", | ||
"dev": true | ||
}, | ||
"lodash.clonedeep": { | ||
"version": "4.5.0", | ||
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", | ||
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", | ||
"dev": true | ||
}, | ||
"lodash.create": { | ||
"version": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", | ||
"version": "3.1.1", | ||
"resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", | ||
"integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", | ||
"dev": true | ||
}, | ||
"lodash.flatten": { | ||
"version": "4.4.0", | ||
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", | ||
"integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", | ||
"dev": true | ||
}, | ||
"lodash.get": { | ||
"version": "4.4.2", | ||
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", | ||
"integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", | ||
"dev": true | ||
}, | ||
"lodash.isarguments": { | ||
"version": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", | ||
"version": "3.1.0", | ||
"resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", | ||
"integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", | ||
@@ -363,3 +326,4 @@ "dev": true | ||
"lodash.isarray": { | ||
"version": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", | ||
"version": "3.0.4", | ||
"resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", | ||
"integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", | ||
@@ -369,25 +333,16 @@ "dev": true | ||
"lodash.keys": { | ||
"version": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", | ||
"version": "3.1.2", | ||
"resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", | ||
"integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", | ||
"dev": true | ||
}, | ||
"lodash.set": { | ||
"version": "4.3.2", | ||
"resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", | ||
"integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=", | ||
"dev": true | ||
}, | ||
"lodash.uniq": { | ||
"version": "4.5.0", | ||
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", | ||
"integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", | ||
"dev": true | ||
}, | ||
"minimatch": { | ||
"version": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", | ||
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", | ||
"version": "3.0.4", | ||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", | ||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", | ||
"dev": true | ||
}, | ||
"minimist": { | ||
"version": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", | ||
"version": "0.0.8", | ||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", | ||
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", | ||
@@ -397,3 +352,4 @@ "dev": true | ||
"mkdirp": { | ||
"version": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", | ||
"version": "0.5.1", | ||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", | ||
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", | ||
@@ -403,3 +359,4 @@ "dev": true | ||
"mocha": { | ||
"version": "https://registry.npmjs.org/mocha/-/mocha-3.4.2.tgz", | ||
"version": "3.4.2", | ||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-3.4.2.tgz", | ||
"integrity": "sha1-0O9NMyEm2/GNDWQMmzgt1IvpdZQ=", | ||
@@ -409,3 +366,4 @@ "dev": true, | ||
"glob": { | ||
"version": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", | ||
"version": "7.1.1", | ||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", | ||
"integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", | ||
@@ -417,3 +375,4 @@ "dev": true | ||
"ms": { | ||
"version": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", | ||
"version": "0.7.2", | ||
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", | ||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", | ||
@@ -423,3 +382,4 @@ "dev": true | ||
"once": { | ||
"version": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", | ||
"version": "1.4.0", | ||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", | ||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", | ||
@@ -429,3 +389,4 @@ "dev": true | ||
"path-is-absolute": { | ||
"version": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", | ||
"version": "1.0.1", | ||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", | ||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", | ||
@@ -447,3 +408,4 @@ "dev": true | ||
"readable-stream": { | ||
"version": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", | ||
"version": "1.1.14", | ||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", | ||
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", | ||
@@ -453,3 +415,4 @@ "dev": true | ||
"shelljs": { | ||
"version": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", | ||
"version": "0.3.0", | ||
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", | ||
"integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", | ||
@@ -459,3 +422,4 @@ "dev": true | ||
"string_decoder": { | ||
"version": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", | ||
"version": "0.10.31", | ||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", | ||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", | ||
@@ -465,3 +429,4 @@ "dev": true | ||
"strip-json-comments": { | ||
"version": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", | ||
"version": "1.0.4", | ||
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", | ||
"integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", | ||
@@ -471,12 +436,16 @@ "dev": true | ||
"supports-color": { | ||
"version": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", | ||
"version": "3.1.2", | ||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", | ||
"integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", | ||
"dev": true | ||
}, | ||
"underscore": { | ||
"version": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", | ||
"integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" | ||
"type-detect": { | ||
"version": "4.0.3", | ||
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.3.tgz", | ||
"integrity": "sha1-Dj8mcLRAmbC0bChNE2p+9Jx0wuo=", | ||
"dev": true | ||
}, | ||
"wrappy": { | ||
"version": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", | ||
"version": "1.0.2", | ||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", | ||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", | ||
@@ -483,0 +452,0 @@ "dev": true |
{ | ||
"name": "jsonexport", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Makes easy to convert JSON to CSV", | ||
@@ -41,5 +41,2 @@ "main": "./lib", | ||
"homepage": "https://github.com/kauegimenes/jsonexport", | ||
"dependencies": { | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
@@ -46,0 +43,0 @@ "benchmark": "^2.1.4", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
23
1
0
10570640
2423
- Removedunderscore@^1.8.3
- Removedunderscore@1.13.7(transitive)