whoops 4.1.2 → 4.1.4

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,23 @@
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.4",
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": "Jorrit Schippers",
15
+ "email": "jorrit@ncode.nl"
16
+ },
17
+ {
18
+ "name": "Prasad Nayak",
19
+ "email": "prasadnayak1006@gmail.com"
20
+ }
21
+ ],
12
22
  "repository": {
13
23
  "type": "git",
14
24
  "url": "git+https://github.com/kikobeats/whoops.git"
@@ -53,11 +63,11 @@
53
63
  ],
54
64
  "scripts": {
55
65
  "clean": "rm -rf node_modules",
56
- "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
66
+ "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
57
67
  "coveralls": "nyc report --reporter=text-lcov | coveralls",
58
68
  "lint": "standard",
59
69
  "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
60
- "prerelease": "npm run update:check && npm run contributors",
70
+ "prerelease": "npm run update:check",
61
71
  "pretest": "npm run lint",
62
72
  "release": "standard-version -a",
63
73
  "release:github": "conventional-github-releaser -p angular",
@@ -73,7 +83,7 @@
73
83
  ]
74
84
  },
75
85
  "nano-staged": {
76
- "*.js": [
86
+ "*.js,!*.min.js,": [
77
87
  "prettier-standard"
78
88
  ],
79
89
  "*.md": [
@@ -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