Skip to content

Commit a662c35

Browse files
authored
Merge branch 'stdlib-js:develop' into ndarray-to-reversed
2 parents 26b075b + 53374b7 commit a662c35

File tree

164 files changed

+8064
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+8064
-184
lines changed

.github/workflows/scripts/lint_package_json_files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ files_to_process="$*"
4646
needs_changes=0
4747

4848
# Lint package.json files:
49-
files=$(echo "${files_to_process}" | tr ' ' '\n' | grep 'package\.json$' | grep -v 'datapackage\.json$' | tr '\n' ' ' | sed 's/ $//')
49+
files=$(echo "${files_to_process}" | tr ' ' '\n' | awk -F/ '$NF=="package.json"' | tr '\n' ' ' | sed 's/ $//')
5050
if [ -n "${files}" ]; then
5151
echo "Linting package.json files..."
5252
printf '%s' "${files}" | "${lint_package_json}" --split=" "

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var windowShim = require( './window.js' );
4848

4949
var debug = logger( 'jsdoc-doctest' );
5050
var ROOT_DIR = rootDir();
51-
var RE_ANNOTATION = /(?:\n|^)(?:var|let|const)? ?([a-zA-Z0-9._]+) ?=?[^;]*;\n\/\/ ?(returns|([A-Za-z][A-Za-z_0-9]*)? ?=>|throws) {0,1}([\s\S]*?)(\n|$)/g;
51+
var RE_ANNOTATION = /(?:\n|^)(?!function\s|class\s)(?:var|let|const)? ?([a-zA-Z0-9._]+) ?=?[^;]*;\n\/\/ ?(returns|([A-Za-z][A-Za-z_0-9]*)? ?=>|throws) {0,1}([\s\S]*?)(\n|$)/g;
5252
var RE_CONSOLE = /console\.(?:dir|error|log)/;
5353
var RE_MODULE_TAG = /\* @module[^\n]*\n/g;
5454
var NODE_SHEBANG = /#!\/usr\/bin\/env node/;

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/test/fixtures/valid.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable max-lines */
20+
1921
'use strict';
2022

2123
var valid = [];
@@ -1505,6 +1507,50 @@ test = {
15051507
};
15061508
valid.push( test );
15071509

1510+
test = {
1511+
'code': [
1512+
'\'use strict\';',
1513+
'',
1514+
'/**',
1515+
'* Test if a value is an array-like object containing only functions.',
1516+
'*',
1517+
'* @module @stdlib/assert/is-function-array',
1518+
'*',
1519+
'* @example',
1520+
'* var isFunctionArray = require( \'@stdlib/assert/is-function-array\' );',
1521+
'*',
1522+
'* function beep() {}',
1523+
'*',
1524+
'* function boop() {}',
1525+
'*',
1526+
'* var bool = isFunctionArray( [ beep, boop ] );',
1527+
'* // returns true',
1528+
'*',
1529+
'* bool = isFunctionArray( [ {}, beep ] );',
1530+
'* // returns false',
1531+
'*',
1532+
'* bool = isFunctionArray( [] );',
1533+
'* // returns false',
1534+
'*/',
1535+
'',
1536+
'// MODULES //',
1537+
'',
1538+
'var arrayfun = require( \'@stdlib/assert/tools/array-like-function\' );',
1539+
'var isFunction = require( \'@stdlib/assert/is-function\' );',
1540+
'',
1541+
'',
1542+
'// MAIN //',
1543+
'',
1544+
'var isFunctionArray = arrayfun( isFunction );',
1545+
'',
1546+
'',
1547+
'// EXPORTS //',
1548+
'',
1549+
'module.exports = isFunctionArray;'
1550+
].join( '\n' )
1551+
};
1552+
valid.push( test );
1553+
15081554

15091555
// EXPORTS //
15101556

lib/node_modules/@stdlib/array/bool/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import BooleanArray = require( './index' );
2424
/**
2525
* Callback function.
2626
*
27-
* @private
2827
* @param v - value
2928
* @returns input value
3029
*/

lib/node_modules/@stdlib/array/complex128/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import Complex128Array = require( './index' );
2727
/**
2828
* Callback function.
2929
*
30-
* @private
3130
* @param v - input value
3231
* @returns output value
3332
*/

lib/node_modules/@stdlib/array/complex64/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import Complex64Array = require( './index' );
2727
/**
2828
* Callback function.
2929
*
30-
* @private
3130
* @param v - input value
3231
* @returns output value
3332
*/

lib/node_modules/@stdlib/array/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ interface Namespace {
577577
* var zeros = require( '@stdlib/array/zeros' );
578578
*
579579
* var x = zeros( 2, 'float64' );
580-
* // returns <Float32Array>[ 0.0, 0.0 ]
580+
* // returns <Float64Array>[ 0.0, 0.0 ]
581581
*
582582
* var arr = ns.emptyLike( x, 'float32' );
583583
* // returns <Float32Array>

lib/node_modules/@stdlib/array/empty-like/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ declare function emptyLike( x: Array<any> ): Array<number>;
5959
* var zeros = require( '@stdlib/array/zeros' );
6060
*
6161
* var x = zeros( 2, 'float64' );
62-
* // returns <Float32Array>[ 0.0, 0.0 ]
62+
* // returns <Float64Array>[ 0.0, 0.0 ]
6363
*
6464
* var arr = emptyLike( x, 'float32' );
6565
* // returns <Float32Array>
@@ -83,7 +83,7 @@ declare function emptyLike<T extends TypedArray | ComplexTypedArray | BooleanTyp
8383
* var zeros = require( '@stdlib/array/zeros' );
8484
*
8585
* var x = zeros( 2, 'float64' );
86-
* // returns <Float32Array>[ 0.0, 0.0 ]
86+
* // returns <Float64Array>[ 0.0, 0.0 ]
8787
*
8888
* var arr = emptyLike( x, 'float32' );
8989
* // returns <Float32Array>

lib/node_modules/@stdlib/array/typed-complex/docs/types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ declare function complexarray<T extends keyof DataTypeMap = 'complex128'>( lengt
6666
* @returns complex number typed array
6767
*
6868
* @example
69+
* var Complex128Array = require( '@stdlib/array/complex128' );
70+
*
6971
* var arr = complexarray( new Complex128Array( 2 ) );
7072
* // returns <Complex128Array>
7173
*
7274
* @example
75+
* var Complex128Array = require( '@stdlib/array/complex128' );
76+
*
7377
* var arr = complexarray( new Complex128Array( 2 ), 'complex64' );
7478
* // returns <Complex64Array>
7579
*/

lib/node_modules/@stdlib/assert/is-constantcase/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var constantcase = require( '@stdlib/string/base/constantcase' );
4040
* // returns false
4141
*
4242
* bool = isConstantcase( 'BEEP-BOOP' );
43-
* // returns true
43+
* // returns false
4444
*
4545
* bool = isConstantcase( 'beep boop' );
4646
* // returns false

0 commit comments

Comments
 (0)