Skip to content

Commit d12f34e

Browse files
committed
Remove wrapper and add note
1 parent f5d2c96 commit d12f34e

7 files changed

Lines changed: 21 additions & 53 deletions

File tree

lib/node_modules/@stdlib/console/log-each/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bench( pkg+'::no_collections', function benchmark( b ) {
3232
var i;
3333

3434
logEach = proxyquire( './../lib/main.js', {
35-
'./logger.js': logger
35+
'@stdlib/console/log': logger
3636
});
3737

3838
b.tic();
@@ -55,7 +55,7 @@ bench( pkg+'::collections:len=1', function benchmark( b ) {
5555
var i;
5656

5757
logEach = proxyquire( './../lib/main.js', {
58-
'./logger.js': logger
58+
'@stdlib/console/log': logger
5959
});
6060

6161
b.tic();

lib/node_modules/@stdlib/console/log-each/benchmark/benchmark.length.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function createBenchmark( len ) {
5151
var i;
5252

5353
logEach = proxyquire( './../lib/main.js', {
54-
'./logger.js': logger
54+
'@stdlib/console/log': logger
5555
});
5656

5757
b.tic();

lib/node_modules/@stdlib/console/log-each/docs/repl.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
{{alias}}( str[, ...args] )
33
Inserts array element values into a format string and prints the result.
44

5+
If an interpolated argument is not a collection, the argument is broadcasted
6+
for each iteration.
7+
58
Parameters
69
----------
710
str: String

lib/node_modules/@stdlib/console/log-each/docs/types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
/**
2222
* Inserts array element values into a format string and prints the result.
2323
*
24+
* ## Notes
25+
*
26+
* - If an interpolated argument is not a collection, the argument is broadcasted for each iteration.
27+
*
2428
* @param str - format string
2529
* @param args - collections or values
2630
* @throws {RangeError} provided collections must have the same length

lib/node_modules/@stdlib/console/log-each/lib/logger.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/node_modules/@stdlib/console/log-each/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2424
var isCollection = require( '@stdlib/assert/is-collection' );
2525
var format = require( '@stdlib/string/format' );
26-
var logger = require( './logger.js' );
26+
var logger = require( '@stdlib/console/log' );
2727

2828

2929
// MAIN //

lib/node_modules/@stdlib/console/log-each/test/test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tape( 'the function prints a formatted message for each element in an array', fu
120120
var j;
121121

122122
logEach = proxyquire( './../lib/main.js', {
123-
'./logger.js': logger
123+
'@stdlib/console/log': logger
124124
});
125125

126126
j = 0;
@@ -153,7 +153,7 @@ tape( 'the function prints a formatted message for each pair of array elements (
153153
var j;
154154

155155
logEach = proxyquire( './../lib/main.js', {
156-
'./logger.js': logger
156+
'@stdlib/console/log': logger
157157
});
158158

159159
j = 0;
@@ -186,7 +186,7 @@ tape( 'the function repeatedly prints a formatted message (three arrays)', funct
186186
var j;
187187

188188
logEach = proxyquire( './../lib/main.js', {
189-
'./logger.js': logger
189+
'@stdlib/console/log': logger
190190
});
191191

192192
j = 0;
@@ -221,7 +221,7 @@ tape( 'the function repeatedly prints a formatted message (four arrays)', functi
221221
var j;
222222

223223
logEach = proxyquire( './../lib/main.js', {
224-
'./logger.js': logger
224+
'@stdlib/console/log': logger
225225
});
226226

227227
j = 0;
@@ -258,7 +258,7 @@ tape( 'the function broadcasts non-array arguments (one array, one scalar)', fun
258258
var j;
259259

260260
logEach = proxyquire( './../lib/main.js', {
261-
'./logger.js': logger
261+
'@stdlib/console/log': logger
262262
});
263263

264264
j = 0;
@@ -291,7 +291,7 @@ tape( 'the function broadcasts non-array arguments (one scalar, one array)', fun
291291
var j;
292292

293293
logEach = proxyquire( './../lib/main.js', {
294-
'./logger.js': logger
294+
'@stdlib/console/log': logger
295295
});
296296

297297
j = 0;
@@ -324,7 +324,7 @@ tape( 'the function broadcasts non-array elements (two arrays, one scalar)', fun
324324
var j;
325325

326326
logEach = proxyquire( './../lib/main.js', {
327-
'./logger.js': logger
327+
'@stdlib/console/log': logger
328328
});
329329

330330
j = 0;
@@ -359,7 +359,7 @@ tape( 'the function broadcasts non-array arguments (one scalar, two arrays)', fu
359359
var j;
360360

361361
logEach = proxyquire( './../lib/main.js', {
362-
'./logger.js': logger
362+
'@stdlib/console/log': logger
363363
});
364364

365365
j = 0;
@@ -394,7 +394,7 @@ tape( 'the function prints a formatted message when provided only a scalar argum
394394
var j;
395395

396396
logEach = proxyquire( './../lib/main.js', {
397-
'./logger.js': logger
397+
'@stdlib/console/log': logger
398398
});
399399

400400
j = 0;
@@ -429,7 +429,7 @@ tape( 'the function prints a formatted message when only provided two scalar arg
429429
var j;
430430

431431
logEach = proxyquire( './../lib/main.js', {
432-
'./logger.js': logger
432+
'@stdlib/console/log': logger
433433
});
434434

435435
j = 0;

0 commit comments

Comments
 (0)