Skip to content

Commit fcd1f33

Browse files
committed
Auto-generated commit
1 parent 12819ce commit fcd1f33

6 files changed

Lines changed: 26 additions & 194 deletions

File tree

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023-11-01T05:52:53.006Z

.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+
Robert Gislason <gztown2216@yahoo.com>

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
5050
"@stdlib/assert-is-nonnegative-integer-array": "^0.1.0",
5151
"@stdlib/assert-is-plain-object": "^0.1.1",
52-
"@stdlib/complex-float32": "^0.1.0",
53-
"@stdlib/complex-float64": "^0.1.0",
52+
"@stdlib/complex-float32": "^0.1.1",
53+
"@stdlib/complex-float64": "^0.1.1",
5454
"@stdlib/ndarray-base-assert-is-buffer-length-compatible": "^0.1.0",
5555
"@stdlib/ndarray-base-assert-is-data-type": "^0.1.0",
5656
"@stdlib/ndarray-base-assert-is-index-mode": "^0.1.1",
@@ -62,7 +62,7 @@
6262
"@stdlib/ndarray-base-iteration-order": "^0.1.1",
6363
"@stdlib/ndarray-base-minmax-view-buffer-index": "^0.1.1",
6464
"@stdlib/ndarray-base-numel": "^0.1.1",
65-
"@stdlib/ndarray-base-strides2order": "^0.1.0",
65+
"@stdlib/ndarray-base-strides2order": "^0.1.1",
6666
"@stdlib/ndarray-defaults": "^0.1.1",
6767
"@stdlib/ndarray-dtypes": "^0.1.0",
6868
"@stdlib/ndarray-index-modes": "^0.1.1",
@@ -76,14 +76,14 @@
7676
"devDependencies": {
7777
"@stdlib/array-complex128": "^0.1.0",
7878
"@stdlib/array-complex64": "^0.1.0",
79-
"@stdlib/array-float32": "^0.1.0",
80-
"@stdlib/array-float64": "^0.1.0",
79+
"@stdlib/array-float32": "^0.1.1",
80+
"@stdlib/array-float64": "^0.1.1",
8181
"@stdlib/assert-has-property": "^0.1.1",
8282
"@stdlib/assert-instance-of": "^0.1.1",
8383
"@stdlib/assert-is-positive-integer": "^0.1.0",
8484
"@stdlib/bench": "^0.1.0",
85-
"@stdlib/complex-imagf": "^0.1.0",
86-
"@stdlib/complex-realf": "^0.1.0",
85+
"@stdlib/complex-imagf": "^0.1.1",
86+
"@stdlib/complex-realf": "^0.1.1",
8787
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
8888
"istanbul": "^0.4.1",
8989
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"

test/dist/test.js

Lines changed: 4 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2023 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -21,191 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var instanceOf = require( '@stdlib/assert-instance-of' );
25-
var Complex64Array = require( '@stdlib/array-complex64' );
26-
var ndarray = 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 ndarray, 'function', 'main export is a function' );
34-
t.end();
35-
});
36-
37-
tape( 'the function is an ndarray constructor', function test( t ) {
38-
var strides;
39-
var buffer;
40-
var offset;
41-
var dtype;
42-
var order;
43-
var shape;
44-
var arr;
45-
46-
dtype = 'generic';
47-
buffer = [ 1.0, 2.0, 3.0, 4.0 ];
48-
shape = [ 2, 2 ];
49-
order = 'row-major';
50-
strides = [ 2, 1 ];
51-
offset = 0;
52-
53-
arr = new ndarray( dtype, buffer, shape, strides, offset, order );
54-
55-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
56-
t.end();
57-
});
58-
59-
tape( 'the function is an ndarray constructor (complex dtype)', function test( t ) {
60-
var strides;
61-
var buffer;
62-
var offset;
63-
var dtype;
64-
var order;
65-
var shape;
66-
var arr;
67-
68-
dtype = 'complex64';
69-
buffer = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
70-
shape = [ 2, 2 ];
71-
order = 'row-major';
72-
strides = [ 2, 1 ];
73-
offset = 0;
74-
75-
arr = new ndarray( dtype, buffer, shape, strides, offset, order );
76-
77-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
78-
t.end();
79-
});
80-
81-
tape( 'the function is an ndarray constructor (0d)', function test( t ) {
82-
var strides;
83-
var buffer;
84-
var offset;
85-
var dtype;
86-
var order;
87-
var shape;
88-
var arr;
89-
90-
dtype = 'generic';
91-
buffer = [ 1.0 ];
92-
shape = [];
93-
order = 'row-major';
94-
strides = [ 0 ];
95-
offset = 0;
96-
97-
arr = new ndarray( dtype, buffer, shape, strides, offset, order );
98-
99-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
100-
t.end();
101-
});
102-
103-
tape( 'the function is an ndarray constructor (0d; complex dtype)', function test( t ) {
104-
var strides;
105-
var buffer;
106-
var offset;
107-
var dtype;
108-
var order;
109-
var shape;
110-
var arr;
111-
112-
dtype = 'complex64';
113-
buffer = new Complex64Array( [ 1.0, 1.0 ] );
114-
shape = [];
115-
order = 'row-major';
116-
strides = [ 0 ];
117-
offset = 0;
118-
119-
arr = new ndarray( dtype, buffer, shape, strides, offset, order );
120-
121-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
122-
t.end();
123-
});
124-
125-
tape( 'the function is an ndarray constructor (options)', function test( t ) {
126-
var strides;
127-
var buffer;
128-
var offset;
129-
var dtype;
130-
var order;
131-
var shape;
132-
var arr;
133-
134-
dtype = 'generic';
135-
buffer = [ 1.0, 2.0, 3.0, 4.0 ];
136-
shape = [ 2, 2 ];
137-
order = 'row-major';
138-
strides = [ 2, 1 ];
139-
offset = 0;
140-
141-
arr = new ndarray( dtype, buffer, shape, strides, offset, order, {} );
142-
143-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
144-
t.end();
145-
});
146-
147-
tape( 'the function is an ndarray constructor (0d; options)', function test( t ) {
148-
var strides;
149-
var buffer;
150-
var offset;
151-
var dtype;
152-
var order;
153-
var shape;
154-
var arr;
155-
156-
dtype = 'generic';
157-
buffer = [ 1.0 ];
158-
shape = [];
159-
order = 'row-major';
160-
strides = [ 0 ];
161-
offset = 0;
162-
163-
arr = new ndarray( dtype, buffer, shape, strides, offset, order, {} );
164-
165-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
166-
t.end();
167-
});
168-
169-
tape( 'the constructor does not require the `new` keyword', function test( t ) {
170-
var strides;
171-
var buffer;
172-
var offset;
173-
var dtype;
174-
var order;
175-
var shape;
176-
var arr;
177-
178-
dtype = 'generic';
179-
buffer = [ 1.0, 2.0, 3.0, 4.0 ];
180-
shape = [ 2, 2 ];
181-
order = 'row-major';
182-
strides = [ 2, 1 ];
183-
offset = 0;
184-
185-
arr = ndarray( dtype, buffer, shape, strides, offset, order );
186-
187-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
188-
t.end();
189-
});
190-
191-
tape( 'the constructor does not require the `new` keyword (options)', function test( t ) {
192-
var strides;
193-
var buffer;
194-
var offset;
195-
var dtype;
196-
var order;
197-
var shape;
198-
var arr;
199-
200-
dtype = 'generic';
201-
buffer = [ 1.0, 2.0, 3.0, 4.0 ];
202-
shape = [ 2, 2 ];
203-
order = 'row-major';
204-
strides = [ 2, 1 ];
205-
offset = 0;
206-
207-
arr = ndarray( dtype, buffer, shape, strides, offset, order, {} );
208-
209-
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns an instance' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
21032
t.end();
21133
});

0 commit comments

Comments
 (0)