Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stacktracey

Package Overview
Dependencies
Maintainers
2
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stacktracey - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

8

package.json
{
"name": "stacktracey",
"version": "1.0.28",
"version": "1.0.29",
"description": "Parses call stacks, reads sources and meta-information.",

@@ -32,9 +32,7 @@ "main": "stacktracey",

"chai": "^3.5.0",
"install": "^0.8.1",
"mocha": "^2.4.5",
"npm": "^3.10.6"
"mocha": "^2.4.5"
},
"dependencies": {
"get-source": "^1.0.5"
"get-source": "*"
}
}

@@ -121,3 +121,3 @@ # StackTracey

```javascript
s = new StackTracey ().slice (1).filter (x => !x.isThirdParty) // current stack shifted by 1 and cleaned from library class
s = new StackTracey ().slice (1).filter (x => !x.isThirdParty) // current stack shifted by 1 and cleaned from library calls

@@ -124,0 +124,0 @@ s instanceof StackTracey // true

@@ -174,3 +174,3 @@ "use strict";

StackTracey.prototype[name] = function (...args) {
return new StackTracey (Array.prototype[name].apply (this, args))
return new StackTracey ([...this][name] (...args))
}

@@ -177,0 +177,0 @@ })

@@ -110,2 +110,15 @@ "use strict";

it ('Array.filter works', () => {
const stack = new StackTracey ([
{ file: 'yo.js', line: 10 },
{ file: 'lol.js', line: 10 },
])
const filtered = stack.filter (x => x.file === 'lol.js')
filtered.length.should.equal (1)
filtered[0].should.deep.equal ({ file: 'lol.js', line: 10 })
})
it ('shortens path correctly', () => {

@@ -112,0 +125,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc