+4
-6
| var util = require('util') | ||
| , fs = require('fs') | ||
| , tty = require('tty') | ||
| , moment = require('moment') | ||
| , disable_colours = process.env.NODE_DISABLE_COLORS | ||
@@ -53,6 +51,6 @@ , log = exports; | ||
| var args = Array.prototype.slice.call(arguments, 1) | ||
| , date = moment().format('YYYY-MM-DD HH:mm:ss'); | ||
| , date = new Date().toISOString().replace('T', ' ').replace('Z', ''); | ||
| msg = util.format.apply(util, args); | ||
| if (!disable_colours) { | ||
| type = util.format(levels[type].color, levels[type].alias) | ||
| type = util.format(levels[type].color, levels[type].alias); | ||
| } else { | ||
@@ -78,7 +76,7 @@ type = levels[type].alias; | ||
| stream.write('\n'); | ||
| } | ||
| }; | ||
| log.write = function (msg) { | ||
| stream.write(msg); | ||
| } | ||
| }; | ||
@@ -85,0 +83,0 @@ /** |
+2
-4
| { | ||
| "name": "sslog", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "A simple logger", | ||
@@ -15,7 +15,5 @@ "main": "log.js", | ||
| ], | ||
| "dependencies": { | ||
| "moment": "*" | ||
| }, | ||
| "dependencies": {}, | ||
| "author": "Sydney Stockholm <opensource@sydneystockholm.com>", | ||
| "license": "MIT" | ||
| } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
-100%1
-50%0
-100%5160
-1.02%91
-2.15%1
Infinity%- Removed
- Removed