Skip to content

Commit f07a95d

Browse files
committed
Auto-generated commit
1 parent 0b84832 commit f07a95d

File tree

5 files changed

+19
-45
lines changed

5 files changed

+19
-45
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023-11-01T06:20:00.899Z

.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>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"dependencies": {
4040
"@stdlib/array-base-filled-by": "^0.1.0",
4141
"@stdlib/array-typed-real-float-ctors": "^0.1.0",
42-
"@stdlib/array-typed-real-float-dtypes": "^0.1.0",
42+
"@stdlib/array-typed-real-float-dtypes": "^0.1.1",
4343
"@stdlib/assert-has-own-property": "^0.1.1",
4444
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
4545
"@stdlib/assert-is-plain-object": "^0.1.1",
@@ -55,9 +55,9 @@
5555
"@stdlib/utils-noop": "^0.1.1"
5656
},
5757
"devDependencies": {
58-
"@stdlib/array-float32": "^0.1.0",
59-
"@stdlib/array-float64": "^0.1.0",
60-
"@stdlib/array-uint32": "^0.1.0",
58+
"@stdlib/array-float32": "^0.1.1",
59+
"@stdlib/array-float64": "^0.1.1",
60+
"@stdlib/array-uint32": "^0.1.1",
6161
"@stdlib/assert-is-uint32array": "^0.1.1",
6262
"@stdlib/bench": "^0.1.0",
6363
"@stdlib/console-log-each": "^0.1.0",

test/dist/test.js

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

2323
var tape = require( 'tape' );
24-
var isUint32Array = require( '@stdlib/assert-is-uint32array' );
25-
var random = require( './../../dist' );
24+
var main = require( './../../dist' );
2625

2726

2827
// TESTS //
2928

30-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3130
t.ok( true, __filename );
32-
t.strictEqual( typeof random, 'function', 'main export is a function' );
33-
t.end();
34-
});
35-
36-
tape( 'attached to the main export is a `factory` method', function test( t ) {
37-
t.strictEqual( typeof random.factory, 'function', 'has method' );
38-
t.end();
39-
});
40-
41-
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
42-
t.equal( typeof random.PRNG, 'function', 'has property' );
43-
t.end();
44-
});
45-
46-
tape( 'attached to the main export is the generator seed', function test( t ) {
47-
t.equal( isUint32Array( random.seed ), true, 'has property' );
48-
t.end();
49-
});
50-
51-
tape( 'attached to the main export is the generator seed length', function test( t ) {
52-
t.equal( typeof random.seedLength, 'number', 'has property' );
53-
t.end();
54-
});
55-
56-
tape( 'attached to the main export is the generator state', function test( t ) {
57-
t.equal( isUint32Array( random.state ), true, 'has property' );
58-
t.end();
59-
});
60-
61-
tape( 'attached to the main export is the generator state length', function test( t ) {
62-
t.equal( typeof random.stateLength, 'number', 'has property' );
63-
t.end();
64-
});
65-
66-
tape( 'attached to the main export is the generator state size', function test( t ) {
67-
t.equal( typeof random.byteLength, 'number', 'has property' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
6832
t.end();
6933
});

0 commit comments

Comments
 (0)