Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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/_tools/search/pkg-index/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ tape( 'the function returns an error to a provided callback if an error is encou
var pkgIndex;
var opts;

pkgIndex = proxyquire( './../lib/index.js', {
pkgIndex = proxyquire( './../lib/main.js', {
'@stdlib/_tools/pkgs/readmes': find
});

Expand All @@ -136,7 +136,7 @@ tape( 'the function returns an error to a provided callback if an error is encou
var pkgIndex;
var opts;

pkgIndex = proxyquire( './../lib/index.js', {
pkgIndex = proxyquire( './../lib/main.js', {
'@stdlib/_tools/pkgs/readmes': find,
'@stdlib/fs/read-file-list': readFileList
});
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/fs/read-file-list/lib/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var debug = logger( 'read-file-list:sync' );
* @param {(string|null)} [options.encoding] - file encoding
* @param {string} [options.flag] - file status flag
* @throws {TypeError} must provide an array of strings
* @returns {ObjectArray} file contents
* @returns {(ObjectArray|Error)} file contents or an error
*
* @example
* var list = [ __filename ];
Expand All @@ -68,7 +68,7 @@ function readFileListSync( list, options ) {
opts = {};
}
len = list.length;
results = new Array( len );
results = [];

debug( 'Reading %d files...', len );
for ( i = 0; i < len; i++ ) {
Expand All @@ -79,10 +79,10 @@ function readFileListSync( list, options ) {
return file;
}
debug( 'Successfully read file: %s (%d of %d).', list[ i ], i, len );
results[ i ] = {
results.push({
'file': list[ i ],
'data': file
};
});
}
debug( 'Finished reading files.' );
return results;
Expand Down
Loading