File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ var defaultOptions = {
1414 WRAP : ''
1515 } ,
1616 EOL : '\n' ,
17- PARSE_CSV_NUMBERS : false
17+ PARSE_CSV_NUMBERS : false ,
18+ KEYS : null
1819} ;
1920
2021/**
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var options = {}; // Initialize the options - this will be populated when the js
88// Retrieve the headings for all documents and return it. This checks that all documents have the same schema.
99var generateHeading = function ( data ) {
1010 return new Promise ( function ( resolve , reject ) {
11+ if ( options . KEYS ) { resolve ( options . KEYS ) ; }
1112 var keys = _ . map ( _ . keys ( data ) , function ( key , indx ) { // for each key
1213 if ( _ . isObject ( data [ key ] ) ) {
1314 // if the data at the key is a document, then we retrieve the subHeading starting with an empty string heading and the doc
You can’t perform that action at this time.
0 commit comments