Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5567ca4

Browse files
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 <96649223+aayush0325@users.noreply.github.com>
56
Adarsh Palaskar <adarshpalaskar99@gmail.com>
67
Aditya Sapra <adityaework@gmail.com>
78
AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
@@ -20,23 +21,27 @@ Christopher Dambamuromo <chridam@gmail.com>
2021
Dan Rose <danoftheroses@gmail.com>
2122
Daniel Killenberger <daniel.killenberger@gmail.com>
2223
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
24+
DebashisMaharana <145602692+DevMhrn@users.noreply.github.com>
2325
Dominik Moritz <domoritz@gmail.com>
2426
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
2527
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
2628
Frank Kovacs <fran70kk@gmail.com>
2729
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
2830
Gunj Joshi <gunjjoshi8372@gmail.com>
31+
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
2932
Harshita Kalani <harshitakalani02@gmail.com>
3033
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
3134
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
3235
James Gelok <jdgelok@gmail.com>
3336
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
37+
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
3438
Jithin KS <jithinks112@gmail.com>
3539
Joel Mathew Koshy <joelmathewkoshy@gmail.com>
3640
Joey Reed <joeyrreed@gmail.com>
3741
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
3842
Joris Labie <joris.labie1@gmail.com>
3943
Justin Dennison <justin1dennison@gmail.com>
44+
Kaif Mohd <mdkaifprofession@gmail.com>
4045
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
4146
Khaldon <kahmd1444@gmail.com>
4247
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
@@ -86,13 +91,17 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
8691
Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com>
8792
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
8893
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
94+
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
8995
Utkarsh <http://utkarsh11105@gmail.com>
9096
Utkarsh Raj <rajutkarsh2505@gmail.com>
97+
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
9198
Varad Gupta <varadgupta21@gmail.com>
9299
Xiaochuan Ye <tap91624@gmail.com>
93100
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
94101
naveen <stupiddint@gmail.com>
95102
nishant-s7 <97207366+nishant-s7@users.noreply.github.com>
103+
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
96104
orimiles5 <97595296+orimiles5@users.noreply.github.com>
97105
rainn <88160429+AmCodesLame@users.noreply.github.com>
98106
rei2hu <reimu@reimu.ws>
107+
yaswanth <116426380+yaswanthkosuru@users.noreply.github.com>

‎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)

AltStyle によって変換されたページ (->オリジナル) /