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 = {
14
14
WRAP : ''
15
15
} ,
16
16
EOL : '\n' ,
17
- PARSE_CSV_NUMBERS : false
17
+ PARSE_CSV_NUMBERS : false ,
18
+ KEYS : null
18
19
} ;
19
20
20
21
/**
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
8
8
// Retrieve the headings for all documents and return it. This checks that all documents have the same schema.
9
9
var generateHeading = function ( data ) {
10
10
return new Promise ( function ( resolve , reject ) {
11
+ if ( options . KEYS ) { resolve ( options . KEYS ) ; }
11
12
var keys = _ . map ( _ . keys ( data ) , function ( key , indx ) { // for each key
12
13
if ( _ . isObject ( data [ key ] ) ) {
13
14
// 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