🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

hydro-clean-stacks

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydro-clean-stacks

Remove hydro entires from error stacks

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

NPM
version Build Status Coverage Status

hydro-clean-stacks

Synopsis

Remove hydro & chai.js entires from error stacks

Usage

Config:

hydro.set({
  plugins: ['hydro-clean-stacks'],
});

Before:

Error: test
    at Object.<anonymous> (/Users/vesln/Code/hydro-clean-stacks/test/fixtures/1.js:2:9)
    at SyncTest.exec (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/test/sync.js:32:13)
    at /Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/test/base.js:105:10
    at EventEmitter.emit (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/node_modules/evts/lib/evts.js:46:26)
    at Base.run (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/test/base.js:101:11)
    at next (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/suite/index.js:58:52)
    at EventEmitter.emit (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/node_modules/evts/lib/evts.js:46:26)
    at Suite.run (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/suite/index.js:62:11)
    at next (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/lib/hydro/suite/index.js:58:52)
    at EventEmitter.emit (/Users/vesln/Code/hydro-clean-stacks/node_modules/hydro/node_modules/evts/lib/evts.js:46:26)

After:

Error: test
    at Object.<anonymous> (/Users/vesln/Code/hydro-clean-stacks/test/fixtures/1.js:2:9)

Disable clean stacks

hydro.set({
  plugins: ['hydro-clean-stacks'],
  cleanStacks: false,
});

Add a custom list with patterns to ignore

hydro.set({
  plugins: ['hydro-clean-stacks'],
  ignore: ['node_modules/simple-assert']
});

Installation

npm:

npm install hydro-clean-stacks

Tests

$ npm test

Coverage:

$ npm run coverage

License

The MIT License (see LICENSE)

Keywords

hydroplugin

FAQs

Package last updated on 07 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts