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
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ function recurse( cache, pkg ) {
results.licenses = [];
} else {
debug( '%s has license information.', id );
results.licenses = new Array( licenses.length );
results.licenses = [];
for ( i = 0; i < licenses.length; i++ ) {
results.licenses[ i ] = {
results.licenses.push({
'src': fpath,
'name': licenses[ i ]
};
});
}
}
// Insert the package results into the results cache:
Expand Down
22 changes: 4 additions & 18 deletions lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var filledarray = require( '@stdlib/array/filled' );
var EPS = require( '@stdlib/constants/float64/eps' );
var pkg = require( './../package.json' ).name;
var reduceAsync = require( './../lib' );
Expand All @@ -31,7 +32,6 @@
bench( pkg, function benchmark( b ) {
var arr;
var acc;
var len;
var i;

function onItem( acc, v, i, clbk ) {
Expand All @@ -41,11 +41,7 @@
clbk( null, acc );
}
}
arr = new Array( 100 );
len = arr.length;
for ( i = 0; i < len; i++ ) {
arr[ i ] = EPS;
}
arr = filledarray( EPS, 100, 'generic' );
i = 0;
b.tic();

Expand All @@ -69,11 +65,10 @@
}
});

bench( pkg+':series=false', function benchmark( b ) {

Check warning on line 68 in lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var opts;
var arr;
var acc;
var len;
var i;

function onItem( acc, v, i, clbk ) {
Expand All @@ -86,11 +81,7 @@
opts = {
'series': false
};
arr = new Array( 100 );
len = arr.length;
for ( i = 0; i < len; i++ ) {
arr[ i ] = EPS;
}
arr = filledarray( EPS, 100, 'generic' );
i = 0;
b.tic();

Expand All @@ -114,10 +105,9 @@
}
});

bench( pkg+':limit=3', function benchmark( b ) {

Check warning on line 108 in lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var opts;
var arr;
var len;
var acc;
var i;

Expand All @@ -131,11 +121,7 @@
opts = {
'limit': 3
};
arr = new Array( 100 );
len = arr.length;
for ( i = 0; i < len; i++ ) {
arr[ i ] = EPS;
}
arr = filledarray( EPS, 100, 'generic' );
i = 0;
b.tic();

Expand Down