Skip to content

Commit

Permalink
fix: use .arrayBuffer() instead of .buffer()
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed Jan 26, 2024
1 parent 620cf93 commit 144d083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2850,7 +2850,7 @@ async function tryFetch(url, retryTimes) {
let result;
for (let i = 0; i <= retryTimes; i++) {
result = await fetch(url)
.then((x) => x.buffer())
.then((x) => x.arrayBuffer())
.catch((err) => {
console.error(
`${
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function tryFetch(url, retryTimes) {
let result;
for (let i = 0; i <= retryTimes; i++) {
result = await fetch(url)
.then((x) => x.buffer())
.then((x) => x.arrayBuffer())
.catch((err) => {
console.error(
`${
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"github",
"actions"
],
"version": "1.4.0",
"version": "1.5.1",
"description": "An action used to filter out a URL and download files for further works.",
"main": "index.js",
"repository": "[email protected]:suisei-cn/actions-download-file.git",
Expand Down

0 comments on commit 144d083

Please sign in to comment.