Skip to content

Commit

Permalink
fix FetchError bug
Browse files Browse the repository at this point in the history
  • Loading branch information
黑と白の印記 committed Jul 1, 2019
1 parent 7c49c88 commit 342ba45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function FetchError(message = 'Fetch2 warning!', data) {
this.name = 'FetchError'
this.message = message
this.stack = (new Error()).stack
this.info = Object.assign(data instanceof Array ? [] : {}, data)
this.info = data
}

FetchError.prototype = new Error
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@misaka.ink/fetch2",
"version": "1.3.0",
"version": "1.3.1",
"description": "Fetch-based front-end middleware development model",
"main": "dist/fetch2.js",
"scripts": {
Expand Down

0 comments on commit 342ba45

Please sign in to comment.