Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/datasets/sotu/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

// VARIABLES //

var debug = logger( 'sotu:build' );

Check warning on line 43 in lib/node_modules/@stdlib/datasets/sotu/scripts/build.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "sotu"
var RE_TRAILING_NEWLINE = /\r?\n$/;
var RAW_EXTNAME = '.txt';
var NUM_FILES = 0;
Expand Down Expand Up @@ -492,7 +492,7 @@
}
if ( count === total ) {
debug( 'Finished analyzing directory contents.' );
datapackage( out.sort() );

Check warning on line 495 in lib/node_modules/@stdlib/datasets/sotu/scripts/build.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

File has too many lines (361). Maximum allowed is 300
}
}
}
Expand Down Expand Up @@ -521,7 +521,7 @@

re = /[_.]/g;

arr = new Array( files.length );
arr = [];
for ( i = 0; i < files.length; i++ ) {
ext = extname( files[ i ] );
parts = files[ i ].match( RE );
Expand All @@ -544,7 +544,7 @@
obj.format = 'json';
obj.mediatype = 'application/json';
}
arr[ i ] = obj;
arr.push(obj);
}
pkg.resources = arr;
pkg = JSON.stringify( pkg, null, ' ' );
Expand Down
Loading