Skip to content

Commit 60e6384

Browse files
committed
Auto-generated commit
1 parent aa8444f commit 60e6384

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

.github/.keepalive

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

.github/workflows/npm_downloads.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
echo "::set-output name=data::$data"
7676
timeout-minutes: 5
7777

78+
# Print summary of download data:
79+
- name: 'Print summary'
80+
run: |
81+
echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY
82+
echo "|------|------------|" >> $GITHUB_STEP_SUMMARY
83+
cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY
84+
7885
# Upload the download data:
7986
- name: 'Upload data'
8087
uses: actions/upload-artifact@v2

.github/workflows/productionize.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
runs-on: 'ubuntu-latest'
118118

119119
# Indicate that this job depends on the prior job finishing:
120-
needs: test
120+
needs: productionize
121121

122122
# Run this job regardless of the outcome of the prior job:
123123
if: always()

.github/workflows/test_coverage.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ jobs:
9090
coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'`
9191
echo "::set-output name=coverage::$coverage"
9292
93+
# Format coverage as Markdown table row:
94+
table=`echo $coverage | sed -e 's/,/|/g; s/"/ /g; s/\[/|/; s/\]/|/'`
95+
echo "::set-output name=table::$table"
96+
97+
# Print coverage report to GitHub Actions log:
98+
- name: 'Print coverage report to GitHub Actions log'
99+
run: |
100+
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
101+
echo "" >> $GITHUB_STEP_SUMMARY
102+
echo "| Statements | Branches | Functions | Lines | " >> $GITHUB_STEP_SUMMARY
103+
echo "| ---------- | -------- | --------- | ----- | " >> $GITHUB_STEP_SUMMARY
104+
echo "${{ steps.extract-coverage.outputs.table }}" >> $GITHUB_STEP_SUMMARY
105+
echo "" >> $GITHUB_STEP_SUMMARY
106+
93107
# Send Slack notification if job fails:
94108
- name: 'Send status to Slack channel in case of failure'
95109
uses: act10ns/slack@v1

lib/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ function iterator2arrayviewRight( iterator, out ) {
109109
end = arguments[ 3 ];
110110
fcn = arguments[ 4 ];
111111
if ( !isFunction( fcn ) ) {
112-
throw new TypeError( format( 'invalid argument. Fifth argument must be a callback function. Value: `%s`.', fcn ) );
112+
throw new TypeError( format( 'invalid argument. Fifth argument must be a function. Value: `%s`.', fcn ) );
113113
}
114114
}
115115
} else { // nargs > 5
116116
begin = arguments[ 2 ];
117117
end = arguments[ 3 ];
118118
fcn = arguments[ 4 ];
119119
if ( !isFunction( fcn ) ) {
120-
throw new TypeError( format( 'invalid argument. Fifth argument must be a callback function. Value: `%s`.', fcn ) );
120+
throw new TypeError( format( 'invalid argument. Fifth argument must be a function. Value: `%s`.', fcn ) );
121121
}
122122
thisArg = arguments[ 5 ];
123123
}
124124
if ( !isInteger( begin ) ) {
125-
throw new TypeError( format( 'invalid argument. Third argument must be either an integer (starting index) or a callback function. Value: `%s`.', begin ) );
125+
throw new TypeError( format( 'invalid argument. Third argument must be either an integer (starting index) or a function. Value: `%s`.', begin ) );
126126
}
127127
if ( !isInteger( end ) ) {
128-
throw new TypeError( format( 'invalid argument. Fourth argument must be either an integer (ending index) or a callback function. Value: `%s`.', end ) );
128+
throw new TypeError( format( 'invalid argument. Fourth argument must be either an integer (ending index) or a function. Value: `%s`.', end ) );
129129
}
130130
if ( end < 0 ) {
131131
end = out.length + end;

0 commit comments

Comments
 (0)