Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agentx

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentx - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

16

lib/agent.js

@@ -137,2 +137,10 @@ 'use strict';

var signature = message.signature;
// 如果server返回错误,不带签名,说明agent发注册消息的时候签名验证失败
if (!signature) {
if (type === 'error') {
console.log(params.error, 'process exit~~~~~');
process.exit(-3);
}
}
// 删除签名,重新计算

@@ -155,4 +163,4 @@ delete message.signature;

this.stopRegister();
debug("register failing, exit.");
process.exit(-1);
console.log('register failed, process exit.');
process.exit(-2);
} else if (params.result === 'HEARTBEAT_ACK') {

@@ -168,4 +176,4 @@ this.heartbeatMissCount = 0;

case 'error':
debug(params.error, 'process exit~');
process.exit(-2);
console.log(params.error, 'process exit~');
process.exit(-1);
break;

@@ -172,0 +180,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var MAX_LINES = 25; // 最多10行数据
var MAX_LINES = 100; // 最多100行数据
var buffered = [];

@@ -11,0 +11,0 @@ exports.logdir = ''; // 日志路径

{
"name": "agentx",
"version": "1.0.3",
"version": "1.0.4",
"description": "agentx is powered by alinode",

@@ -5,0 +5,0 @@ "scripts": {

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