whoops 4.1.1 → 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.
|
|
6
|
-
"main": "
|
|
5
|
+
"version": "4.1.3",
|
|
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"
|
|
@@ -49,13 +55,13 @@
|
|
|
49
55
|
"node": ">= 8"
|
|
50
56
|
},
|
|
51
57
|
"files": [
|
|
52
|
-
"
|
|
58
|
+
"src"
|
|
53
59
|
],
|
|
54
60
|
"scripts": {
|
|
55
61
|
"clean": "rm -rf node_modules",
|
|
56
62
|
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
57
63
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
58
|
-
"lint": "standard
|
|
64
|
+
"lint": "standard",
|
|
59
65
|
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
60
66
|
"prerelease": "npm run update:check && npm run contributors",
|
|
61
67
|
"pretest": "npm run lint",
|
|
@@ -88,6 +94,9 @@
|
|
|
88
94
|
"pre-commit": "npx nano-staged"
|
|
89
95
|
},
|
|
90
96
|
"standard": {
|
|
91
|
-
"
|
|
97
|
+
"globals": [
|
|
98
|
+
"describe",
|
|
99
|
+
"it"
|
|
100
|
+
]
|
|
92
101
|
}
|
|
93
102
|
}
|
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
/package/{lib → src}/helpers.js
RENAMED
|
File without changes
|
/package/{lib → src}/index.js
RENAMED
|
File without changes
|