whoops 4.1.2 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,13 +2,19 @@
2
2
  "name": "whoops",
3
3
  "description": "It makes simple throw qualified errors.",
4
4
  "homepage": "https://github.com/Kikobeats/whoops",
5
- "version": "4.1.2",
5
+ "version": "4.1.3",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "josefrancisco.verdu@gmail.com",
9
9
  "name": "Kiko Beats",
10
10
  "url": "https://github.com/Kikobeats"
11
11
  },
12
+ "contributors": [
13
+ {
14
+ "name": "Prasad Nayak",
15
+ "email": "prasadnayak1006@gmail.com"
16
+ }
17
+ ],
12
18
  "repository": {
13
19
  "type": "git",
14
20
  "url": "git+https://github.com/kikobeats/whoops.git"
@@ -12,7 +12,7 @@ function createExtendError (ErrorClass, classProps) {
12
12
  const errorProps = isString(props) ? { message: props } : props
13
13
  addErrorProps(error, classProps, errorProps)
14
14
 
15
- error.stack = cleanStack(error.stack)
15
+ error.stack = typeof error.stack === 'string' ? cleanStack(error.stack) : undefined
16
16
  return error
17
17
  }
18
18