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.1 to 5.1.0

4

home-directory-browser.js

@@ -1,3 +0,3 @@

const homeDirectory = '';
const getHomeDirectory = () => '';
export default homeDirectory;
export default getHomeDirectory;
import os from 'node:os';
const homeDirectory = os.homedir().replace(/\\/g, '/');
const getHomeDirectory = () => os.homedir().replace(/\\/g, '/');
export default homeDirectory;
export default getHomeDirectory;
import escapeStringRegexp from 'escape-string-regexp';
import homeDirectory from '#home-directory';
import getHomeDirectory from '#home-directory';

@@ -9,2 +9,3 @@ const extractPathRegex = /\s+at.*[(\s](.*)\)?/;

const basePathRegex = basePath && new RegExp(`(file://)?${escapeStringRegexp(basePath.replace(/\\/g, '/'))}/?`, 'g');
const homeDirectory = pretty ? getHomeDirectory() : '';

@@ -11,0 +12,0 @@ if (typeof stack !== 'string') {

{
"name": "clean-stack",
"version": "5.0.1",
"version": "5.1.0",
"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