Skip to content

Commit 2ee5575

Browse files
committed
Auto-generated commit
1 parent 1b24ba4 commit 2ee5575

File tree

5 files changed

+25
-68
lines changed

5 files changed

+25
-68
lines changed

.github/.keepalive

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023-11-01T05:33:20.836Z

.github/workflows/publish.yml

+10-2
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

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ Stephannie Jiménez Gacha <[email protected]>
3737
Yernar Yergaziyev <[email protected]>
3838
orimiles5 <[email protected]>
3939
40+
Robert Gislason <[email protected]>

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"devDependencies": {
4343
"@stdlib/array-complex128": "^0.1.0",
4444
"@stdlib/array-complex64": "^0.1.0",
45-
"@stdlib/array-float32": "^0.1.0",
46-
"@stdlib/array-float64": "^0.1.0",
47-
"@stdlib/array-int16": "^0.1.0",
48-
"@stdlib/array-int32": "^0.1.0",
49-
"@stdlib/array-int8": "^0.1.0",
50-
"@stdlib/array-uint16": "^0.1.0",
51-
"@stdlib/array-uint32": "^0.1.0",
52-
"@stdlib/array-uint8": "^0.1.0",
53-
"@stdlib/array-uint8c": "^0.1.0",
45+
"@stdlib/array-float32": "^0.1.1",
46+
"@stdlib/array-float64": "^0.1.1",
47+
"@stdlib/array-int16": "^0.1.1",
48+
"@stdlib/array-int32": "^0.1.1",
49+
"@stdlib/array-int8": "^0.1.1",
50+
"@stdlib/array-uint16": "^0.1.1",
51+
"@stdlib/array-uint32": "^0.1.1",
52+
"@stdlib/array-uint8": "^0.1.1",
53+
"@stdlib/array-uint8c": "^0.1.1",
5454
"@stdlib/assert-is-boolean": "^0.1.1",
5555
"@stdlib/bench": "^0.1.0",
5656
"@stdlib/buffer-alloc-unsafe": "^0.1.0",

test/dist/test.js

+4-57
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2022 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,66 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var constructorName = require( '@stdlib/utils-constructor-name' );
25-
var Int8Array = require( '@stdlib/array-int8' );
26-
var Uint8Array = require( '@stdlib/array-uint8' );
27-
var Uint8ClampedArray = require( '@stdlib/array-uint8c' );
28-
var Int16Array = require( '@stdlib/array-int16' );
29-
var Uint16Array = require( '@stdlib/array-uint16' );
30-
var Int32Array = require( '@stdlib/array-int32' );
31-
var Uint32Array = require( '@stdlib/array-uint32' );
32-
var Float32Array = require( '@stdlib/array-float32' );
33-
var Float64Array = require( '@stdlib/array-float64' );
34-
var Complex128Array = require( '@stdlib/array-complex128' );
35-
var Complex64Array = require( '@stdlib/array-complex64' );
36-
var allocUnsafe = require( '@stdlib/buffer-alloc-unsafe' );
37-
var isAccessorArray = require( './../../dist' );
24+
var main = require( './../../dist' );
3825

3926

4027
// TESTS //
4128

42-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
4330
t.ok( true, __filename );
44-
t.strictEqual( typeof isAccessorArray, 'function', 'main export is a function' );
45-
t.end();
46-
});
47-
48-
tape( 'the function returns `true` if provided an array-like object which supports the accessor protocol', function test( t ) {
49-
var values;
50-
var i;
51-
52-
values = [
53-
new Complex128Array( 10 ),
54-
new Complex64Array( 10 )
55-
];
56-
57-
for ( i = 0; i < values.length; i++ ) {
58-
t.strictEqual( isAccessorArray( values[i] ), true, 'returns true when provided '+constructorName( values[i] ) );
59-
}
60-
t.end();
61-
});
62-
63-
tape( 'the function returns `false` if provided an array-like object which does not support the accessor protocol', function test( t ) {
64-
var values;
65-
var i;
66-
67-
values = [
68-
[],
69-
{ 'length': 10 }, // eslint-disable-line object-curly-newline
70-
new Float64Array( 10 ),
71-
new Float32Array( 10 ),
72-
new Int32Array( 10 ),
73-
new Uint32Array( 10 ),
74-
new Int16Array( 10 ),
75-
new Uint16Array( 10 ),
76-
new Int8Array( 10 ),
77-
new Uint8Array( 10 ),
78-
new Uint8ClampedArray( 10 ),
79-
allocUnsafe( 10 )
80-
];
81-
82-
for ( i = 0; i < values.length; i++ ) {
83-
t.strictEqual( isAccessorArray( values[i] ), false, 'returns false when provided '+constructorName( values[i] ) );
84-
}
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
8532
t.end();
8633
});

0 commit comments

Comments
 (0)