Socket
Socket
Sign inDemoInstall

clean-stack

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 5.0.1

4

index.js

@@ -8,3 +8,3 @@ import escapeStringRegexp from 'escape-string-regexp';

export default function cleanStack(stack, {pretty = false, basePath} = {}) {
const basePathRegex = basePath && new RegExp(`(at | \\()(file://)?${escapeStringRegexp(basePath.replace(/\\/g, '/'))}/?`, 'g');
const basePathRegex = basePath && new RegExp(`(file://)?${escapeStringRegexp(basePath.replace(/\\/g, '/'))}/?`, 'g');

@@ -40,3 +40,3 @@ if (typeof stack !== 'string') {

if (basePathRegex) {
line = line.replace(basePathRegex, '$1');
line = line.replace(basePathRegex, '');
}

@@ -43,0 +43,0 @@

{
"name": "clean-stack",
"version": "5.0.0",
"version": "5.0.1",
"description": "Clean up error stack traces",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc