Skip to content

Commit 5567ca4

Browse files
committed
Auto-generated commit
1 parent ba70944 commit 5567ca4

File tree

4 files changed

+53
-16
lines changed

4 files changed

+53
-16
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2024-09-26)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`f477e26`](https://github.com/stdlib-js/stdlib/commit/f477e26a03e5e365f2e7c4035959a2fb789698a3) - **chore:** move functions to parent scope _(by Philipp Burckhardt)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Philipp Burckhardt
30+
31+
</section>
32+
33+
<!-- /.contributors -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.2.2">
640

741
## 0.2.2 (2024-07-27)

CONTRIBUTORS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aayush Khanna <[email protected]>
56
Adarsh Palaskar <[email protected]>
67
Aditya Sapra <[email protected]>
78
AgPriyanshu18 <[email protected]>
@@ -20,23 +21,27 @@ Christopher Dambamuromo <[email protected]>
2021
2122
Daniel Killenberger <[email protected]>
2223
Daniel Yu <[email protected]>
24+
DebashisMaharana <[email protected]>
2325
Dominik Moritz <[email protected]>
2426
Dorrin Sotoudeh <[email protected]>
2527
EuniceSim142 <[email protected]>
2628
Frank Kovacs <[email protected]>
2729
Golden Kumar <[email protected]>
2830
Gunj Joshi <[email protected]>
31+
2932
Harshita Kalani <[email protected]>
3033
Hridyanshu <[email protected]>
3134
Jaimin Godhani <[email protected]>
3235
James Gelok <[email protected]>
3336
Jaysukh Makvana <[email protected]>
37+
Jenish Thapa <[email protected]>
3438
Jithin KS <[email protected]>
3539
Joel Mathew Koshy <[email protected]>
3640
Joey Reed <[email protected]>
3741
Jordan Gallivan <[email protected]>
3842
Joris Labie <[email protected]>
3943
Justin Dennison <[email protected]>
44+
Kaif Mohd <[email protected]>
4045
Karthik Prakash <[email protected]>
4146
4247
Krishnendu Das <[email protected]>
@@ -86,13 +91,17 @@ Stephannie Jiménez Gacha <[email protected]>
8691
Suraj kumar <[email protected]>
8792
Tirtadwipa Manunggal <[email protected]>
8893
Tudor Pagu <[email protected]>
94+
Tufailahmed Bargir <[email protected]>
8995
Utkarsh <http://[email protected]>
9096
Utkarsh Raj <[email protected]>
97+
Vaibhav Patel <[email protected]>
9198
Varad Gupta <[email protected]>
9299
Xiaochuan Ye <[email protected]>
93100
Yernar Yergaziyev <[email protected]>
94101
95102
nishant-s7 <[email protected]>
103+
olenkabilonizhka <[email protected]>
96104
orimiles5 <[email protected]>
97105
98106
107+

test/test.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ var detect = require( './../lib' );
3030
var hasSharedArrayBuffer = ( typeof SharedArrayBuffer === 'function' ); // eslint-disable-line stdlib/require-globals
3131

3232

33+
// FUNCTIONS //
34+
35+
function isBufferMock() {
36+
return true;
37+
}
38+
39+
3340
// TESTS //
3441

3542
tape( 'main export is a function', function test( t ) {
@@ -78,15 +85,11 @@ tape( 'if `SharedArrayBuffer` is supported, detection result is `true`', functio
7885

7986
mocked = proxyquire( './../lib/main.js', {
8087
'./sharedarraybuffer.js': Mock,
81-
'@stdlib/assert-is-sharedarraybuffer': isBuffer
88+
'@stdlib/assert-is-sharedarraybuffer': isBufferMock
8289
});
8390
t.strictEqual( mocked(), true, 'detection result is `true` (mocked)' );
8491

8592
t.end();
86-
87-
function isBuffer() {
88-
return true;
89-
}
9093
});
9194

9295
tape( 'if `SharedArrayBuffer` is not supported, detection result is `false` (no SharedArrayBuffer global function)', function test( t ) {
@@ -141,14 +144,10 @@ tape( 'if `SharedArrayBuffer` is not supported, detected result is `false` (no s
141144
}
142145
mocked = proxyquire( './../lib/main.js', {
143146
'./sharedarraybuffer.js': Mock,
144-
'@stdlib/assert-is-sharedarraybuffer': isBuffer
147+
'@stdlib/assert-is-sharedarraybuffer': isBufferMock
145148
});
146149
t.strictEqual( mocked(), false, 'detection result is `false`' );
147150
t.end();
148-
149-
function isBuffer() {
150-
return true;
151-
}
152151
});
153152

154153
tape( 'if `SharedArrayBuffer` is not supported, detected result is `false` (no byteLength property)', function test( t ) {
@@ -183,12 +182,8 @@ tape( 'if `SharedArrayBuffer` is not supported, detected result is `false` (no b
183182
}
184183
mocked = proxyquire( './../lib/main.js', {
185184
'./sharedarraybuffer.js': Mock,
186-
'@stdlib/assert-is-sharedarraybuffer': isBuffer
185+
'@stdlib/assert-is-sharedarraybuffer': isBufferMock
187186
});
188187
t.strictEqual( mocked(), false, 'detection result is `false`' );
189188
t.end();
190-
191-
function isBuffer() {
192-
return true;
193-
}
194189
});

0 commit comments

Comments
 (0)