clean-stack
Advanced tools
Comparing version 1.1.1 to 1.2.0
10
index.js
@@ -15,3 +15,11 @@ 'use strict'; | ||
return !pathRegex.test(pathMatches[1]); | ||
const match = pathMatches[1]; | ||
// Electron | ||
if (match.includes('.app/Contents/Resources/electron.asar') || | ||
match.includes('.app/Contents/Resources/default_app.asar')) { | ||
return false; | ||
} | ||
return !pathRegex.test(match); | ||
}) | ||
@@ -18,0 +26,0 @@ .filter(x => x.trim() !== '') |
{ | ||
"name": "clean-stack", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Clean up error stack traces", | ||
@@ -27,3 +27,4 @@ "license": "MIT", | ||
"error", | ||
"err" | ||
"err", | ||
"electron" | ||
], | ||
@@ -30,0 +31,0 @@ "devDependencies": { |
@@ -7,3 +7,5 @@ # clean-stack [![Build Status](https://travis-ci.org/sindresorhus/clean-stack.svg?branch=master)](https://travis-ci.org/sindresorhus/clean-stack) | ||
Also works in Electron. | ||
## Install | ||
@@ -44,3 +46,4 @@ | ||
Check out [stack-utils](https://github.com/tapjs/stack-utils) if you want something more. | ||
- [extrack-stack](https://github.com/sindresorhus/extract-stack) - Extract the actual stack of an error | ||
- [stack-utils](https://github.com/tapjs/stack-utils) - Captures and cleans stack traces | ||
@@ -47,0 +50,0 @@ |
3623
22
52