Comparing version 3.0.2 to 4.0.0
@@ -11,4 +11,2 @@ 'use strict' | ||
var isAbsolute = path.isAbsolute || require('path-is-absolute') | ||
var LINES_OF_CONTEXT = 5 | ||
@@ -25,3 +23,3 @@ var ESCAPED_REGEX_PATH_SEP = path.sep === '/' ? '/' : '\\\\' | ||
debug('reading %s', file) | ||
fs.readFile(file, {encoding: 'utf8'}, function (err, data) { | ||
fs.readFile(file, { encoding: 'utf8' }, function (err, data) { | ||
if (err) return cb(err) | ||
@@ -161,3 +159,3 @@ cb(null, data.split(/\r?\n/)) | ||
var filename = this.getFileName() || '' | ||
return (!isAbsolute(filename) && filename[0] !== '.') | ||
return (!path.isAbsolute(filename) && filename[0] !== '.') | ||
} | ||
@@ -164,0 +162,0 @@ |
{ | ||
"name": "stackman", | ||
"version": "3.0.2", | ||
"version": "4.0.0", | ||
"description": "Enhance an error stacktrace with code excerpts and other goodies", | ||
@@ -9,12 +9,11 @@ "main": "index.js", | ||
"async-cache": "^1.1.0", | ||
"debug": "^2.2.0", | ||
"error-callsites": "^1.0.1", | ||
"load-source-map": "^1.0.0", | ||
"path-is-absolute": "^1.0.1" | ||
"debug": "^4.1.1", | ||
"error-callsites": "^2.0.2", | ||
"load-source-map": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"longjohn": "=0.2.9", | ||
"semver": "^5.3.0", | ||
"standard": "^9.0.2", | ||
"tape": "^4.6.2" | ||
"longjohn": "^0.2.12", | ||
"semver": "^6.3.0", | ||
"standard": "^14.0.0", | ||
"tape": "^4.11.0" | ||
}, | ||
@@ -49,4 +48,4 @@ "scripts": { | ||
"coordinates": [ | ||
55.6773705, | ||
12.5526636 | ||
55.778276, | ||
12.593074 | ||
], | ||
@@ -53,0 +52,0 @@ "standard": { |
@@ -11,2 +11,3 @@ # Stackman | ||
[![npm](https://img.shields.io/npm/v/stackman.svg)](https://www.npmjs.com/package/stackman) | ||
[![Build status](https://travis-ci.org/watson/stackman.svg?branch=master)](https://travis-ci.org/watson/stackman) | ||
@@ -313,2 +314,2 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) | ||
MIT | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
314
1
21109
4
287
1
+ Addeddebug@4.3.7(transitive)
+ Addederror-callsites@2.0.4(transitive)
+ Addedms@2.1.3(transitive)
- Removedpath-is-absolute@^1.0.1
- Removeddebug@2.6.9(transitive)
- Removederror-callsites@1.0.1(transitive)
- Removedms@2.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
Updateddebug@^4.1.1
Updatederror-callsites@^2.0.2