Skip to content

Commit 1e4071b

Browse files
committed
Auto-generated commit
1 parent 05269cd commit 1e4071b

File tree

6 files changed

+17
-96
lines changed

6 files changed

+17
-96
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ jobs:
182182
fi
183183
# Trim leading and trailing whitespace:
184184
dep=$(echo "$dep" | xargs)
185-
version="^$(npm view $dep version)"
185+
version="$(npm view $dep version)"
186+
if [[ -z "$version" ]]; then
187+
continue
188+
fi
189+
version="^$version"
186190
jq -r --arg dep "$dep" --arg version "$version" '.dependencies[$dep] = $version' package.json > package.json.tmp
187191
mv package.json.tmp package.json
188192
done
@@ -192,7 +196,11 @@ jobs:
192196
fi
193197
# Trim leading and trailing whitespace:
194198
dep=$(echo "$dep" | xargs)
195-
version="^$(npm view $dep version)"
199+
version="$(npm view $dep version)"
200+
if [[ -z "$version" ]]; then
201+
continue
202+
fi
203+
version="^$version"
196204
jq -r --arg dep "$dep" --arg version "$version" '.devDependencies[$dep] = $version' package.json > package.json.tmp
197205
mv package.json.tmp package.json
198206
done

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
3737
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
3838
orimiles5 <97595296+orimiles5@users.noreply.github.com>
3939
rei2hu <reimu@reimu.ws>
40+
rgizz <gztown2216@yahoo.com>

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @param {ArrayLikeObject<Array<Collection>>} arrays - array-like object containing two input nested arrays and one output nested array
3131
* @param {NonNegativeIntegerArray} shape - array shape
32-
* @param {Callback} fcn - unary callback
32+
* @param {Callback} fcn - binary callback
3333
* @returns {void}
3434
*
3535
* @example

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@stdlib/bench": "^0.1.0",
4646
"@stdlib/math-base-assert-is-nan": "^0.1.1",
4747
"@stdlib/math-base-ops-add": "^0.1.0",
48-
"@stdlib/math-base-special-floor": "^0.1.0",
48+
"@stdlib/math-base-special-floor": "^0.1.1",
4949
"@stdlib/math-base-special-pow": "^0.1.0",
5050
"@stdlib/ndarray-base-numel": "^0.1.1",
5151
"@stdlib/random-base-discrete-uniform": "^0.1.0",

test/dist/test.js

Lines changed: 3 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -21,101 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var add = require( '@stdlib/math-base-ops-add' );
25-
var zeros2d = require( '@stdlib/array-base-zeros2d' );
26-
var binary2d = require( './../../dist' );
24+
var main = require( './../../dist' );
2725

2826

2927
// TESTS //
3028

31-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3230
t.ok( true, __filename );
33-
t.strictEqual( typeof binary2d, 'function', 'main export is a function' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
3432
t.end();
3533
});
36-
37-
tape( 'the function applies a provided callback to nested input arrays and assigns results to a nested output array', function test( t ) {
38-
var expected;
39-
var shape;
40-
var x;
41-
var y;
42-
var z;
43-
44-
shape = [ 2, 2 ];
45-
x = [
46-
[ 1.0, 2.0 ],
47-
[ 3.0, 4.0 ]
48-
];
49-
y = [
50-
[ 5.0, 6.0 ],
51-
[ 7.0, 8.0 ]
52-
];
53-
z = zeros2d( shape );
54-
55-
expected = [
56-
[ 6.0, 8.0 ],
57-
[ 10.0, 12.0 ]
58-
];
59-
binary2d( [ x, y, z ], shape, add );
60-
61-
t.deepEqual( z, expected, 'returns expected value' );
62-
t.end();
63-
});
64-
65-
tape( 'the function does not invoke a provided callback if provided a shape having a first element equal to zero', function test( t ) {
66-
var expected;
67-
var shape;
68-
var x;
69-
var y;
70-
var z;
71-
72-
shape = [ 2, 2 ];
73-
x = [
74-
[ 1.0, 2.0 ],
75-
[ 3.0, 4.0 ]
76-
];
77-
y = [
78-
[ 5.0, 6.0 ],
79-
[ 7.0, 8.0 ]
80-
];
81-
z = zeros2d( shape );
82-
83-
expected = zeros2d( shape );
84-
binary2d( [ x, y, z ], [ 0, 2 ], clbk );
85-
86-
t.deepEqual( z, expected, 'returns expected value' );
87-
t.end();
88-
89-
function clbk() {
90-
t.ok( false, 'should not invoke callback' );
91-
}
92-
});
93-
94-
tape( 'the function does not invoke a provided callback if provided a shape having a second element equal to zero', function test( t ) {
95-
var expected;
96-
var shape;
97-
var x;
98-
var y;
99-
var z;
100-
101-
shape = [ 2, 2 ];
102-
x = [
103-
[ 1.0, 2.0 ],
104-
[ 3.0, 4.0 ]
105-
];
106-
y = [
107-
[ 5.0, 6.0 ],
108-
[ 7.0, 8.0 ]
109-
];
110-
z = zeros2d( shape );
111-
112-
expected = zeros2d( shape );
113-
binary2d( [ x, y, z ], [ 2, 0 ], clbk );
114-
115-
t.deepEqual( z, expected, 'returns expected value' );
116-
t.end();
117-
118-
function clbk() {
119-
t.ok( false, 'should not invoke callback' );
120-
}
121-
});

0 commit comments

Comments
 (0)