New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@knit/nice-errors

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knit/nice-errors - npm Package Compare versions

Comparing version
0.8.1
to
0.8.2
+10
-15
index.js

@@ -1,7 +0,11 @@

/* @flow weak */
"use strict";
const chalk = require("chalk");
const log = require("@knit/logger");
const { serializeError } = require("serialize-error");
const {
serializeError
} = require("serialize-error");
exports.niceStackTrace = stack => {

@@ -11,3 +15,2 @@ const stackLines = stack.split("\n");

const stackLineRx = /^.*?at ((.*) )?\(?(.*?)(:(.*?):(.*?))?\)?$/;
stackLines.forEach(line => {

@@ -17,15 +20,7 @@ const match = stackLineRx.exec(line);

if (match && match.length >= 5) {
console.log(
" ",
chalk.yellow(
[match[3].split("/").pop(), match[5]].filter(Boolean).join(":")
),
chalk.white(match[2])
);
console.log(" ", chalk.yellow([match[3].split("/").pop(), match[5]].filter(Boolean).join(":")), chalk.white(match[2]));
}
if (match && match.length >= 6) {
console.log(
" ",
chalk.grey([match[3], match[5], match[6]].filter(Boolean).join(":"))
);
console.log(" ", chalk.grey([match[3], match[5], match[6]].filter(Boolean).join(":")));
}

@@ -45,2 +40,2 @@ });

err.stack && exports.niceStackTrace(err.stack);
};
};
+24
-2
{
"homepage": "https://github.com/knitjs/knit#readme",
"license": "MIT",
"author": {
"name": "Shane Wilson"
},
"bugs": {
"url": "https://github.com/knitjs/knit/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knitjs/knit.git"
},
"engines": {
"node": ">=10",
"npm": ">=5"
},
"private": false,
"name": "@knit/nice-errors",
"description": "Nice cli errors",
"version": "0.8.1"
"description": "Nicer cli errors",
"version": "0.8.2",
"dependencies": {
"@knit/logger": "0.8.2",
"chalk": "3.0.0-beta.1",
"serialize-error": "^5.0.0"
}
}