Skip to content

Commit 6af5d3e

Browse files
committed
Auto-generated commit
1 parent 2772a0a commit 6af5d3e

File tree

22 files changed

+232
-82
lines changed

22 files changed

+232
-82
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,8 @@ indent_size = 2
179179
[*.gypi]
180180
indent_style = space
181181
indent_size = 2
182+
183+
# Set properties for citation files:
184+
[*.{cff,cff.txt}]
185+
indent_style = space
186+
indent_size = 2

.github/.keepalive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-08-01T00:48:40.224Z
1+
2023-10-01T00:43:45.190Z

.github/workflows/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141

4242
# Checkout the repository:
4343
- name: 'Checkout repository'
44-
uses: actions/checkout@v3
44+
# Pin action to full length commit SHA corresponding to v4.1.0
45+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
4546

4647
# Install Node.js:
4748
- name: 'Install Node.js'
48-
uses: actions/setup-node@v3
49+
# Pin action to full length commit SHA corresponding to v3.8.1
50+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
4951
with:
5052
node-version: 16
5153
timeout-minutes: 5

.github/workflows/cancel.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444

4545
# Cancel existing workflow runs:
4646
- name: 'Cancel existing workflow runs'
47-
uses: styfle/cancel-workflow-action@0.11.0
47+
# Pin action to full length commit SHA corresponding to v0.11.0
48+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5
4849
with:
4950
workflow_id: >-
5051
benchmark.yml,

.github/workflows/close_pull_requests.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,29 @@ on:
2626

2727
# Workflow jobs:
2828
jobs:
29+
30+
# Define job to close all pull requests:
2931
run:
32+
33+
# Define the type of virtual host machine on which to run the job:
3034
runs-on: ubuntu-latest
35+
36+
# Define the sequence of job steps...
3137
steps:
32-
- uses: superbrothers/close-pull-request@v3
33-
with:
34-
comment: |
35-
Thank you for submitting a pull request. :raised_hands:
36-
37-
We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib).
38-
39-
We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/function) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions.
40-
41-
Thank you again, and we look forward to receiving your contribution! :smiley:
42-
43-
Best,
44-
The stdlib team
38+
39+
# Close pull request
40+
- name: 'Close pull request'
41+
# Pin action to full length commit SHA corresponding to v3.1.2
42+
uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448
43+
with:
44+
comment: |
45+
Thank you for submitting a pull request. :raised_hands:
46+
47+
We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib).
48+
49+
We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/function) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions.
50+
51+
Thank you again, and we look forward to receiving your contribution! :smiley:
52+
53+
Best,
54+
The stdlib team

.github/workflows/examples.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ jobs:
3939
# Define the sequence of job steps...
4040
steps:
4141

42-
# Checkout the repository:
43-
- name: 'Checkout the repository'
44-
uses: actions/checkout@v3
42+
# Checkout repository:
43+
- name: 'Checkout repository'
44+
# Pin action to full length commit SHA corresponding to v4.1.0
45+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
4546

4647
# Install Node.js:
4748
- name: 'Install Node.js'
48-
uses: actions/setup-node@v3
49+
# Pin action to full length commit SHA corresponding to v3.8.1
50+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
4951
with:
5052
node-version: 16
5153
timeout-minutes: 5

.github/workflows/npm_downloads.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ jobs:
4545
steps:
4646
# Checkout the repository:
4747
- name: 'Checkout repository'
48-
uses: actions/checkout@v3
48+
# Pin action to full length commit SHA corresponding to v4.1.0
49+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
4950
timeout-minutes: 10
5051

5152
# Install Node.js:
5253
- name: 'Install Node.js'
53-
uses: actions/setup-node@v3
54+
# Pin action to full length commit SHA corresponding to v3.8.1
55+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
5456
with:
5557
node-version: 16
5658
timeout-minutes: 5
@@ -84,7 +86,8 @@ jobs:
8486
8587
# Upload the download data:
8688
- name: 'Upload data'
87-
uses: actions/upload-artifact@v3
89+
# Pin action to full length commit SHA corresponding to v3.1.3
90+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
8891
with:
8992
# Define a name for the uploaded artifact (ensuring a unique name for each job):
9093
name: npm_downloads
@@ -99,7 +102,8 @@ jobs:
99102

100103
# Send data to events server:
101104
- name: 'Post data'
102-
uses: distributhor/workflow-webhook@v3
105+
# Pin action to full length commit SHA corresponding to v3.0.3:
106+
uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629
103107
env:
104108
webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }}
105109
webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }}

.github/workflows/productionize.yml

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ jobs:
6161
steps:
6262
# Checkout main branch of repository:
6363
- name: 'Checkout main branch'
64-
uses: actions/checkout@v3
64+
# Pin action to full length commit SHA corresponding to v4.1.0
65+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
6566
with:
6667
ref: main
6768

6869
# Install Node.js:
6970
- name: 'Install Node.js'
70-
uses: actions/setup-node@v3
71+
# Pin action to full length commit SHA corresponding to v3.8.1
72+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
7173
with:
7274
node-version: 16
7375
timeout-minutes: 5
@@ -82,21 +84,6 @@ jobs:
8284
id: transform-error-messages
8385
uses: stdlib-js/transform-errors-action@main
8486

85-
# Format error messages:
86-
- name: 'Replace double quotes with single quotes in rewritten format string error messages'
87-
run: |
88-
find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \;
89-
90-
# Format string literal error messages:
91-
- name: 'Replace double quotes with single quotes in rewritten string literal error messages'
92-
run: |
93-
find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \;
94-
95-
# Format code:
96-
- name: 'Replace double quotes with single quotes in inserted `require` calls'
97-
run: |
98-
find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \;
99-
10087
# Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
10188
- name: 'Update dependencies in package.json'
10289
run: |
@@ -147,15 +134,17 @@ jobs:
147134
# Checkout the repository:
148135
- name: 'Checkout repository'
149136
if: ${{ github.event.inputs.require-passing-tests == 'true' }}
150-
uses: actions/checkout@v3
137+
# Pin action to full length commit SHA corresponding to v4.1.0
138+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
151139
with:
152140
# Use the `production` branch:
153141
ref: production
154142

155143
# Install Node.js:
156144
- name: 'Install Node.js'
157145
if: ${{ github.event.inputs.require-passing-tests == 'true' }}
158-
uses: actions/setup-node@v3
146+
# Pin action to full length commit SHA corresponding to v3.8.1
147+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
159148
with:
160149
node-version: 16
161150
timeout-minutes: 5
@@ -199,7 +188,8 @@ jobs:
199188
steps:
200189
# Checkout the repository:
201190
- name: 'Checkout repository'
202-
uses: actions/checkout@v3
191+
# Pin action to full length commit SHA corresponding to v4.1.0
192+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
203193

204194
# Configure git:
205195
- name: 'Configure git'
@@ -266,7 +256,8 @@ jobs:
266256
267257
# Install Node.js:
268258
- name: 'Install Node.js'
269-
uses: actions/setup-node@v3
259+
# Pin action to full length commit SHA corresponding to v3.8.1
260+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
270261
with:
271262
node-version: 16
272263
timeout-minutes: 5
@@ -349,7 +340,8 @@ jobs:
349340
350341
# Send status to Slack channel if job fails:
351342
- name: 'Send status to Slack channel in case of failure'
352-
uses: act10ns/slack@v2
343+
# Pin action to full length commit SHA corresponding to v2.0.0
344+
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f
353345
with:
354346
status: ${{ job.status }}
355347
steps: ${{ toJson(steps) }}
@@ -372,7 +364,8 @@ jobs:
372364
steps:
373365
# Checkout the repository:
374366
- name: 'Checkout repository'
375-
uses: actions/checkout@v3
367+
# Pin action to full length commit SHA corresponding to v4.1.0
368+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
376369

377370
# Configure git:
378371
- name: 'Configure git'
@@ -431,7 +424,8 @@ jobs:
431424
432425
# Install Node.js
433426
- name: 'Install Node.js'
434-
uses: actions/setup-node@v3
427+
# Pin action to full length commit SHA corresponding to v3.8.1
428+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
435429
with:
436430
node-version: 16
437431
timeout-minutes: 5
@@ -520,7 +514,8 @@ jobs:
520514
521515
# Send status to Slack channel if job fails:
522516
- name: 'Send status to Slack channel in case of failure'
523-
uses: act10ns/slack@v2
517+
# Pin action to full length commit SHA corresponding to v2.0.0
518+
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f
524519
with:
525520
status: ${{ job.status }}
526521
steps: ${{ toJson(steps) }}
@@ -543,7 +538,8 @@ jobs:
543538
steps:
544539
# Checkout the repository:
545540
- name: 'Checkout repository'
546-
uses: actions/checkout@v3
541+
# Pin action to full length commit SHA corresponding to v4.1.0
542+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
547543

548544
# Configure git:
549545
- name: 'Configure git'
@@ -610,7 +606,8 @@ jobs:
610606
611607
# Install Node.js:
612608
- name: 'Install Node.js'
613-
uses: actions/setup-node@v3
609+
# Pin action to full length commit SHA corresponding to v3.8.1
610+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
614611
with:
615612
node-version: 16
616613
timeout-minutes: 5
@@ -697,7 +694,8 @@ jobs:
697694
698695
# Send status to Slack channel if job fails:
699696
- name: 'Send status to Slack channel in case of failure'
700-
uses: act10ns/slack@v2
697+
# Pin action to full length commit SHA corresponding to v2.0.0
698+
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f
701699
with:
702700
status: ${{ job.status }}
703701
steps: ${{ toJson(steps) }}
@@ -721,7 +719,8 @@ jobs:
721719

722720
# Checkout the repository:
723721
- name: 'Checkout repository'
724-
uses: actions/checkout@v3
722+
# Pin action to full length commit SHA corresponding to v4.1.0
723+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
725724
with:
726725
fetch-depth: 2
727726

.github/workflows/publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ jobs:
6161

6262
# Checkout the repository:
6363
- name: 'Checkout repository'
64-
uses: actions/checkout@v3
64+
# Pin action to full length commit SHA corresponding to v4.1.0
65+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
6566

6667
# Install Node.js:
6768
- name: 'Install Node.js'
68-
uses: actions/setup-node@v3
69+
# Pin action to full length commit SHA corresponding to v3.8.1
70+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
6971
with:
7072
node-version: 16
7173
timeout-minutes: 5
@@ -197,7 +199,8 @@ jobs:
197199
198200
# Publish package to npm:
199201
- name: 'Publish package to npm'
200-
uses: JS-DevTools/npm-publish@v2
202+
# Pin action to full length commit SHA corresponding to v2.2.2
203+
uses: JS-DevTools/npm-publish@fe72237be0920f7a0cafd6a966c9b929c9466e9b
201204
with:
202205
token: ${{ secrets.NPM_TOKEN }}
203206
access: public
@@ -209,7 +212,8 @@ jobs:
209212
210213
# Send status to Slack channel if job fails:
211214
- name: 'Send status to Slack channel in case of failure'
212-
uses: act10ns/slack@v2
215+
# Pin action to full length commit SHA corresponding to v2.0.0
216+
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f
213217
with:
214218
status: ${{ job.status }}
215219
steps: ${{ toJson(steps) }}
@@ -230,7 +234,8 @@ jobs:
230234

231235
# Cancel any running or queued workflow runs:
232236
- name: 'Cancel running or queued workflow runs'
233-
uses: styfle/cancel-workflow-action@0.11.0
237+
# Pin action to full length commit SHA corresponding to v0.11.0
238+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5
234239
with:
235240
workflow_id: >-
236241
benchmark.yml,

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ jobs:
5858

5959
# Checkout the repository:
6060
- name: 'Checkout repository'
61-
uses: actions/checkout@v3
61+
# Pin action to full length commit SHA corresponding to v4.1.0
62+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
6263

6364
# Install Node.js:
6465
- name: 'Install Node.js'
65-
uses: actions/setup-node@v3
66+
# Pin action to full length commit SHA corresponding to v3.8.1
67+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
6668
with:
6769
node-version: 16
6870
timeout-minutes: 5
@@ -89,7 +91,8 @@ jobs:
8991
9092
# Send status to Slack channel if job fails:
9193
- name: 'Send status to Slack channel in case of failure'
92-
uses: act10ns/slack@v2
94+
# Pin action to full length commit SHA corresponding to v2.0.0
95+
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f
9396
with:
9497
status: ${{ job.status }}
9598
steps: ${{ toJson(steps) }}

0 commit comments

Comments
 (0)