Socket
Socket
Sign inDemoInstall

printit

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printit - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

8

main.js

@@ -43,3 +43,5 @@ // Generated by CoffeeScript 1.9.3

Logger.prototype.stringify = function(text) {
if (text instanceof Object) {
if (text instanceof Error) {
text = text.stack;
} else if (text instanceof Object) {
text = JSON.stringify(text);

@@ -52,7 +54,7 @@ }

var browserReg, fileAndLineInfos, filePath, firstLineStack, line, nodeReg, stacklist;
stacklist = (new Error()).stack.split('\n').slice(3);
stacklist = (new Error()).stack.split('\n').slice(4);
nodeReg = /at\s+(.*)\s+\((.*):(\d*):(\d*)\)/gi;
browserReg = /at\s+()(.*):(\d*):(\d*)/gi;
firstLineStack = stacklist[0];
fileAndLineInfos = nodeReg.exec(firstLineStack) || browserReg2.exec(firstLineStack);
fileAndLineInfos = nodeReg.exec(firstLineStack) || browserReg.exec(firstLineStack);
filePath = fileAndLineInfos[2].substr(process.cwd().length);

@@ -59,0 +61,0 @@ line = fileAndLineInfos[3];

@@ -16,3 +16,3 @@ {

],
"version": "0.1.9",
"version": "0.1.10",
"homepage": "https://github.com/frankrousseau/printit/",

@@ -19,0 +19,0 @@ "bugs": {

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