8000 Auto-generated commit · stdlib-js/random-exponential@464f5cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 464f5cb

Browse files
committed
Auto-generated commit
1 parent 7b8e65f commit 464f5cb

File tree

6 files changed

+20
-51
lines changed

6 files changed

+20
-51
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:18:34.101Z

.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: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@stdlib/array-base-filled-by": "^0.1.0",
4141
"@stdlib/array-base-zeros": "^0.1.1",
4242
"@stdlib/array-typed-real-float-ctors": "^0.1.0",
43-
"@stdlib/array-typed-real-float-dtypes": "^0.1.0",
43+
"@stdlib/array-typed-real-float-dtypes": "^0.1.1",
4444
"@stdlib/assert-has-own-property": "^0.1.1",
4545
"@stdlib/assert-is-array-like-object": "^0.1.0",
4646
"@stdlib/assert-is-ndarray-like": "^0.1.0",
@@ -69,10 +69,10 @@
6969
"@stdlib/bench": "^0.1.0",
7070
"@stdlib/console-log-each": "^0.1.0",
7171
"@stdlib/math-base-assert-is-nan": "^0.1.1",
72-
"@stdlib/math-base-special-cbrt": "^0.1.0",
73-
"@stdlib/math-base-special-floor": "^0.1.0",
72+
"@stdlib/math-base-special-cbrt": "^0.1.1",
73+
"@stdlib/math-base-special-floor": "^0.1.1",
7474
"@stdlib/math-base-special-pow": "^0.1.0",
75-
"@stdlib/math-base-special-sqrt": "^0.1.0",
75+
"@stdlib/math-base-special-sqrt": "^0.1.1",
7676
"@stdlib/ndarray-array": "^0.1.0",
7777
"@stdlib/ndarray-base-from-scalar": "^0.1.0",
7878
"@stdlib/ndarray-to-array": "^0.1.0",

test/dist/test.js

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -21,54 +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 an `assign` method', function test( t ) {
37-
t.strictEqual( typeof random.assign, 'function', 'has method' );
38-
t.end();
39-
});
40-
41-
tape( 'attached to the main export is a `factory` method', function test( t ) {
42-
t.strictEqual( typeof random.factory, 'function', 'has method' );
43-
t.end();
44-
});
45-
46-
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
48-
t.end();
49-
});
50-
51-
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
53-
t.end();
54-
});
55-
56-
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
58-
t.end();
59-
});
60-
61-
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
63-
t.end();
64-
});
65-
66-
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
68-
t.end();
69-
});
70-
71-
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
7332
t.end();
7433
});

0 commit comments

Comments
 (0)
0