Browse Source

1.0.3

master
ポール ウェッブ 10 months ago
parent
commit
b21ee1a4c7
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      README.md
  2. 3
    3
      cli.js
  3. 1
    1
      package.json

+ 1
- 1
README.md View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 [![INC](https://img.shields.io/badge/%F0%9F%92%A1-IdeasNeverCease/logger-51dcfb.svg?style=flat-square)](https://git.inc.sh/IdeasNeverCease/logger)
4 4
 
5
-> A logging module to unify logging across services.
5
+> A module to unify logging across services.
6 6
 
7 7
 
8 8
 

+ 3
- 3
cli.js View File

@@ -5,7 +5,7 @@
5 5
 
6 6
 //  P A C K A G E S
7 7
 
8
-const colors = require("colorette");
8
+const color = require("colorette");
9 9
 const { pretty } = require("pino");
10 10
 const program = require("commander");
11 11
 const pump = require("pump");
@@ -27,7 +27,7 @@ const transformer = through.obj((chunk, enc, cb) => {
27 27
 
28 28
   // Non-JSON logs
29 29
   if (!regex.test(chunk)) {
30
-    return cb(null, `${colors.green(herokuSyslog)}${message}\n`);
30
+    return cb(null, `${color.green(herokuSyslog)}${message}\n`);
31 31
   }
32 32
 
33 33
   // Parse JSON
@@ -37,7 +37,7 @@ const transformer = through.obj((chunk, enc, cb) => {
37 37
     parsed = JSON.parse(chunk.match(regex)[1]);
38 38
   } catch (e) {
39 39
     // Not a valid JSON line, log it as is
40
-    return cb(null, `${colors.green(herokuSyslog)}${message}\n`);
40
+    return cb(null, `${color.green(herokuSyslog)}${message}\n`);
41 41
   }
42 42
 
43 43
   // Cherry picked default properties

+ 1
- 1
package.json View File

@@ -51,5 +51,5 @@
51 51
     "test:dependencies": "updates -u ./",
52 52
     "test:lint": "standardx --verbose | snazzy"
53 53
   },
54
-  "version": "1.0.2"
54
+  "version": "1.0.3"
55 55
 }

Loading…
Cancel
Save