Skip to content

Commit b924317

Browse files
committed
Auto-generated commit
1 parent 9f54929 commit b924317

File tree

12 files changed

+55
-42
lines changed

12 files changed

+55
-42
lines changed

.github/workflows/productionize.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,6 @@ jobs:
8282
id: transform-error-messages
8383
uses: stdlib-js/transform-errors-action@main
8484

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-
10085
# Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
10186
- name: 'Update dependencies in package.json'
10287
run: |
@@ -349,7 +334,7 @@ jobs:
349334
350335
# Send status to Slack channel if job fails:
351336
- name: 'Send status to Slack channel in case of failure'
352-
uses: act10ns/slack@v1
337+
uses: act10ns/slack@v2
353338
with:
354339
status: ${{ job.status }}
355340
steps: ${{ toJson(steps) }}
@@ -520,7 +505,7 @@ jobs:
520505
521506
# Send status to Slack channel if job fails:
522507
- name: 'Send status to Slack channel in case of failure'
523-
uses: act10ns/slack@v1
508+
uses: act10ns/slack@v2
524509
with:
525510
status: ${{ job.status }}
526511
steps: ${{ toJson(steps) }}
@@ -697,7 +682,7 @@ jobs:
697682
698683
# Send status to Slack channel if job fails:
699684
- name: 'Send status to Slack channel in case of failure'
700-
uses: act10ns/slack@v1
685+
uses: act10ns/slack@v2
701686
with:
702687
status: ${{ job.status }}
703688
steps: ${{ toJson(steps) }}

.github/workflows/publish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ jobs:
110110
exit 0
111111
fi
112112
rm -rf ./bin/cli
113-
rm test/test.cli.js
114-
rm etc/cli_opts.json
115-
rm docs/usage.txt
113+
rm -f test/test.cli.js
114+
rm -f etc/cli_opts.json
115+
rm -f docs/usage.txt
116116
117117
# For all dependencies, check in all *.js files if they are still used; if not, remove them:
118118
jq -r '.dependencies | keys[]' ./package.json | while read -r dep; do
@@ -149,6 +149,12 @@ jobs:
149149
# Add link definition for CLI package to README.md:
150150
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"links\">/<section class=\"links\">\n\n[$escapedPkg]: https:\/\/www.npmjs.com\/package\/$escapedPkg/"
151151
152+
# Replace GitHub MathJax equations with SVGs:
153+
- name: 'Replace GitHub MathJax equations with SVGs'
154+
run: |
155+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g'
156+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'
157+
152158
# Replace GitHub links to individual packages with npm links:
153159
- name: 'Replace all GitHub links to individual packages with npm links'
154160
run: |
@@ -162,8 +168,8 @@ jobs:
162168
# Remove unnecessary files:
163169
- name: 'Remove unnecessary files'
164170
run: |
165-
rm docs/repl.txt
166-
rm docs/types/test.ts
171+
rm -f docs/repl.txt
172+
rm -f docs/types/test.ts
167173
168174
# Replace all stdlib GitHub dependencies with the respective npm packages:
169175
- name: 'Replace all stdlib GitHub dependencies with the respective npm packages'
@@ -191,7 +197,7 @@ jobs:
191197
192198
# Publish package to npm:
193199
- name: 'Publish package to npm'
194-
uses: JS-DevTools/npm-publish@v1
200+
uses: JS-DevTools/npm-publish@v2
195201
with:
196202
token: ${{ secrets.NPM_TOKEN }}
197203
access: public
@@ -203,7 +209,7 @@ jobs:
203209
204210
# Send status to Slack channel if job fails:
205211
- name: 'Send status to Slack channel in case of failure'
206-
uses: act10ns/slack@v1
212+
uses: act10ns/slack@v2
207213
with:
208214
status: ${{ job.status }}
209215
steps: ${{ toJson(steps) }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
9090
# Send status to Slack channel if job fails:
9191
- name: 'Send status to Slack channel in case of failure'
92-
uses: act10ns/slack@v1
92+
uses: act10ns/slack@v2
9393
with:
9494
status: ${{ job.status }}
9595
steps: ${{ toJson(steps) }}

.github/workflows/test_bundles.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
8989
# Send notification to Slack channel if job fails:
9090
- name: 'Send status to Slack channel in case of failure'
91-
uses: act10ns/slack@v1
91+
uses: act10ns/slack@v2
9292
with:
9393
status: ${{ job.status }}
9494
steps: ${{ toJson(steps) }}
@@ -130,7 +130,7 @@ jobs:
130130
131131
# Send notification to Slack channel if job fails:
132132
- name: 'Send status to Slack channel in case of failure'
133-
uses: act10ns/slack@v1
133+
uses: act10ns/slack@v2
134134
with:
135135
status: ${{ job.status }}
136136
steps: ${{ toJson(steps) }}
@@ -172,7 +172,7 @@ jobs:
172172
173173
# Send notification to Slack channel if job fails:
174174
- name: 'Send status to Slack channel in case of failure'
175-
uses: act10ns/slack@v1
175+
uses: act10ns/slack@v2
176176
with:
177177
status: ${{ job.status }}
178178
steps: ${{ toJson(steps) }}

.github/workflows/test_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
107107
# Send Slack notification if job fails:
108108
- name: 'Send status to Slack channel in case of failure'
109-
uses: act10ns/slack@v1
109+
uses: act10ns/slack@v2
110110
with:
111111
status: ${{ job.status }}
112112
steps: ${{ toJson(steps) }}

.github/workflows/test_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
# Send Slack notification if job fails:
7777
- name: 'Send notification to Slack in case of failure'
78-
uses: act10ns/slack@v1
78+
uses: act10ns/slack@v2
7979
with:
8080
status: ${{ job.status }}
8181
steps: ${{ toJson(steps) }}

CONTRIBUTORS

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,37 @@
33
# Contributors listed in alphabetical order.
44

55
Ali Salesi <ali_sal1381@yahoo.com>
6+
Amit Jimiwal <amitjimiwal45@gmail.com>
67
Athan Reines <kgryte@gmail.com>
78
Brendan Graetz <bguiz@users.noreply.github.com>
89
Bruno Fenzl <brunofenzl@gmail.com>
910
Christopher Dambamuromo <chridam@gmail.com>
11+
Dan Rose <danoftheroses@gmail.com>
1012
Dominik Moritz <domoritz@gmail.com>
13+
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
1114
Frank Kovacs <fran70kk@gmail.com>
12-
Harshita Kalani <95532771+HarshitaKalani@users.noreply.github.com>
13-
James <jdgelok@gmail.com>
15+
Harshita Kalani <harshitakalani02@gmail.com>
16+
James Gelok <jdgelok@gmail.com>
1417
Jithin KS <jithinks112@gmail.com>
1518
Joey Reed <joeyrreed@gmail.com>
16-
Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
19+
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
1720
Joris Labie <joris.labie1@gmail.com>
1821
Justin Dennison <justin1dennison@gmail.com>
19-
Marcus <mfantham@users.noreply.github.com>
22+
Marcus Fantham <mfantham@users.noreply.github.com>
2023
Matt Cochrane <matthew.cochrane.eng@gmail.com>
2124
Milan Raj <rajsite@users.noreply.github.com>
2225
Momtchil Momtchev <momtchil@momtchev.com>
26+
Naresh Jagadeesan <naresh.naresh000@gmail.com>
27+
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
2328
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
2429
Philipp Burckhardt <pburckhardt@outlook.com>
25-
Pranav <85227306+Pranavchiku@users.noreply.github.com>
30+
Pranav Goswami <goswami.4@iitj.ac.in>
2631
Ricky Reusser <rsreusser@gmail.com>
32+
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
2733
Ryan Seal <splrk@users.noreply.github.com>
2834
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
2935
Shraddheya Shendre <shendreshraddheya@gmail.com>
3036
Stephannie Jiménez Gacha <steff456@hotmail.com>
31-
dorrin-sot <59933477+dorrin-sot@users.noreply.github.com>
32-
rei2hu <rei2hu@users.noreply.github.com>
37+
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
38+
orimiles5 <97595296+orimiles5@users.noreply.github.com>
39+
rei2hu <reimu@reimu.ws>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
201201
[npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-to-accessor-array.svg
202202
[npm-url]: https://npmjs.org/package/@stdlib/array-base-to-accessor-array
203203

204-
[test-image]: https://github.com/stdlib-js/array-base-to-accessor-array/actions/workflows/test.yml/badge.svg?branch=v0.0.1
205-
[test-url]: https://github.com/stdlib-js/array-base-to-accessor-array/actions/workflows/test.yml?query=branch:v0.0.1
204+
[test-image]: https://github.com/stdlib-js/array-base-to-accessor-array/actions/workflows/test.yml/badge.svg?branch=main
205+
[test-url]: https://github.com/stdlib-js/array-base-to-accessor-array/actions/workflows/test.yml?query=branch:main
206206

207207
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-to-accessor-array/main.svg
208208
[coverage-url]: https://codecov.io/github/stdlib-js/array-base-to-accessor-array?branch=main
@@ -215,7 +215,7 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
215215
-->
216216

217217
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
218-
[chat-url]: https://gitter.im/stdlib-js/stdlib/
218+
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
219219

220220
[stdlib]: https://github.com/stdlib-js/stdlib
221221

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// <reference path="../docs/types/index.d.ts" />
2+
import toAccessorArray from '../docs/types/index';
3+
export = toAccessorArray;

dist/index.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)