Comparing version 1.2.2 to 1.2.3
@@ -55,4 +55,6 @@ 'use strict'; | ||
} else if (this.expect(line, 'at ')) { | ||
this.current.stack += this.current.extra + line + '\n'; | ||
this.current.extra = ''; | ||
if (this.current) { | ||
this.current.stack += this.current.extra + line + '\n'; | ||
this.current.extra = ''; | ||
} | ||
} else if (line === '') { // 空行 | ||
@@ -59,0 +61,0 @@ this.pushLog(); // 保存最近解析到的log |
@@ -34,2 +34,7 @@ 'use strict'; | ||
// 如果文件大小小于上次读取的地方,说明是一个新文件 | ||
if (stats.size < start) { | ||
start = 0; | ||
} | ||
var readable = fs.createReadStream(filepath, { | ||
@@ -105,3 +110,4 @@ start: start, | ||
if (exports.logs.length < 1) { | ||
callback(new Error("Not specific logdir in agentx config file")); | ||
// no error log specificed, ignore | ||
callback(null, null); | ||
return; | ||
@@ -108,0 +114,0 @@ } |
{ | ||
"name": "agentx", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "agentx is powered by alinode", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"dependencies": { | ||
"ws": "^0.7.2", | ||
"ws": "^0.8.0", | ||
"nounou": "1.0.1", | ||
@@ -17,0 +17,0 @@ "debug": "*", |
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
24288
799
+ Addedbufferutil@1.2.1(transitive)
+ Addednan@2.22.02.4.0(transitive)
+ Addedutf-8-validate@1.2.2(transitive)
+ Addedws@0.8.1(transitive)
- Removedbufferutil@1.1.0(transitive)
- Removednan@1.8.4(transitive)
- Removedutf-8-validate@1.1.0(transitive)
- Removedws@0.7.2(transitive)
Updatedws@^0.8.0