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

akb

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akb - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

9

lib/components/controller/error.js

@@ -21,5 +21,12 @@ /**

err = new Error(JSON.stringify(err));
err.selfThrew = true;
}
logger.warn(err);
// 开发者自己抛的日志报警,捕获的错误打错误日志
if (err.selfThrew) {
logger.warn(err);
} else {
logger.error(err);
}
/* eslint-disable eqeqeq */

@@ -26,0 +33,0 @@ // ENOENT support

2

lib/components/monitor/transport.js

@@ -105,3 +105,3 @@ /**

body = new Buffer(body, 'binary').toString('base64');
body = Buffer.from(body, 'binary').toString('base64');
data.gzip = 1;

@@ -108,0 +108,0 @@ data.msg = body;

@@ -18,2 +18,4 @@ /**

let throwError = app.context.throw;
let methods = {

@@ -90,2 +92,12 @@

throw(...args) {
try {
throwError.apply(null, args);
} catch (e) {
// 标记是自己抛出的异常
e.selfThrew = true;
throw e;
}
},
onerror(err) {

@@ -92,0 +104,0 @@ if (null == err) {

{
"name": "akb",
"version": "1.0.6",
"version": "1.0.7",
"main": "./lib/akb.js",

@@ -24,4 +24,7 @@ "scripts": {

"devDependencies": {
"babel-core": "^6.14.0",
"babel-plugin-transform-async-to-generator": "^6.8.0",
"babel-polyfill": "^6.23.0",
"babel-preset-es2016": "^6.22.0",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.23.0",
"mocha": "^3.1.2",

@@ -28,0 +31,0 @@ "should": "^11.1.1",

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