Comparing version 0.1.0 to 1.0.0
12
index.js
@@ -35,6 +35,12 @@ var combiner = require('stream-combiner') | ||
function write(data, _, next) { | ||
function safeparse(data) { | ||
try { | ||
data = JSON.parse(data) | ||
} catch(e) { | ||
} catch(e) { } | ||
return data | ||
} | ||
function write(data, _, next) { | ||
data = safeparse(data) | ||
if (typeof data !== 'object') { | ||
this.push(data) | ||
@@ -47,3 +53,3 @@ this.push('\n') | ||
var line = [] | ||
var name = data.name.replace(/\:[-:a-z0-9]{8,}$/g, '') | ||
var name = data.name ? data.name.replace(/\:[-:a-z0-9]{8,}$/g, '') : '' | ||
@@ -50,0 +56,0 @@ var nameColor = poolIndex[name] || ( |
{ | ||
"name": "bistre", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5574
124
0