Skip to content

Commit dfc58f3

Browse files
committed
chore(utils/async/map-values): fix example file paths to avoid ENOENT
1 parent 6006497 commit dfc58f3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

lib/node_modules/@stdlib/utils/async/map-values/lib/factory.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var limit = require( './limit.js' );
5050
* @returns {Function} function which maps values from one object to a new object having the same keys
5151
*
5252
* @example
53+
* var join = require( 'path' ).join;
5354
* var stat = require( 'fs' ).stat;
5455
*
5556
* function getStats( file, next ) {
@@ -72,8 +73,8 @@ var limit = require( './limit.js' );
7273
*
7374
* // Create a dictionary of file names:
7475
* var files = {
75-
* 'file1': './beep.js',
76-
* 'file2': './boop.js'
76+
* 'file1': join( __dirname, '..', 'README.md' ),
77+
* 'file2': join( __dirname, '..', 'package.json' )
7778
* };
7879
*
7980
* // Define a callback which handles errors:

lib/node_modules/@stdlib/utils/async/map-values/lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
* @example
2727
* var stat = require( 'fs' ).stat;
28+
* var join = require( 'path' ).join;
2829
* var mapValuesAsync = require( '@stdlib/utils/async/map-values' );
2930
*
3031
* function getStats( file, next ) {
@@ -48,8 +49,8 @@
4849
*
4950
* // Create a dictionary of file names:
5051
* var files = {
51-
* 'file1': './beep.js',
52-
* 'file2': './boop.js'
52+
* 'file1': join( __dirname, '..', 'README.md' ),
53+
* 'file2': join( __dirname, '..', 'package.json' )
5354
* };
5455
*
5556
* var opts = {

lib/node_modules/@stdlib/utils/async/map-values/lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var factory = require( './factory.js' );
5050
* @returns {void}
5151
*
5252
* @example
53+
* var join = require( 'path' ).join;
5354
* var stat = require( 'fs' ).stat;
5455
*
5556
* function getStats( file, next ) {
@@ -73,8 +74,8 @@ var factory = require( './factory.js' );
7374
*
7475
* // Create a dictionary of file names:
7576
* var files = {
76-
* 'file1': './beep.js',
77-
* 'file2': './boop.js'
77+
* 'file1': join( __dirname, '..', 'README.md' ),
78+
* 'file2': join( __dirname, '..', 'package.json' )
7879
* };
7980
*
8081
* var opts = {

0 commit comments

Comments
 (0)