New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

whatap

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatap - npm Package Compare versions

Comparing version 0.4.95 to 0.4.96

lib/observers/websocket-observer.js

6

lib/conf/config-default.js

@@ -68,3 +68,3 @@ /**

"profile_zip_enabled": bool('profile_zip_enabled', false),
"profile_zip_queue_size": num('profile_zip_queue_size', 1000),
"profile_zip_queue_size": num('profile_zip_queue_size', 500),
"profile_zip_max_buffer_size": num('profile_zip_max_buffer_size', 1024*1024),

@@ -111,3 +111,3 @@ "profile_zip_min_size": num('profile_zip_min_size', 100),

"trace_sampling_enabled": bool("trace_sampling_enabled", false),
"trace_sampling_enabled": bool("trace_sampling_enabled", true),
"trace_sampling_tps": bool("trace_sampling_tps", 1000),

@@ -159,2 +159,4 @@

"ignore_sql_error_code_set": str('ignore_sql_error_code_set', ''),
"ignore_nextjs_build_file_enabled": bool('ignore_nextjs_build_file_enabled', true),
"ignore_nextjs_build_file_path": str('ignore_nextjs_build_file_path', '/_next/'),

@@ -161,0 +163,0 @@ //2017.05.02 AUTO ONAME

@@ -22,2 +22,3 @@ /**

SocketioObserver = require('../observers/socket.io-observer').SocketIOObserver,
WebsocketObserver = require('../observers/websocket-observer').WebsocketObserver,
ProcessObserver = require('../observers/process-observer').ProcessObserver,

@@ -257,2 +258,3 @@ FileObserver = require('../observers/file-observer').FileObserver,

observes.push(SocketioObserver);
observes.push(WebsocketObserver);
observes.push(ExpressObserver);

@@ -259,0 +261,0 @@ observes.push(FileObserver);

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

var profile_http_parameter_keys = conf.getProperty('profile_http_parameter_keys', '');
var ignore_nextjs_build_file_enabled = conf.getProperty('ignore_nextjs_build_file_enabled', true);
var ignore_nextjs_build_file_path = conf.getProperty('ignore_nextjs_build_file_path', '/_next/');
conf.on('trace_http_client_ip_header_key', function(newProperty) {

@@ -120,2 +122,8 @@ configIpHeaderKey = newProperty;

})
conf.on('ignore_nextjs_build_file_enabled', function (newProps) {
ignore_nextjs_build_file_enabled = newProps;
})
conf.on('ignore_nextjs_build_file_path', function (newProps) {
ignore_nextjs_build_file_path = newProps;
})
var staticConents = function (newProps) {

@@ -236,4 +244,7 @@ var x=new Set();

/*url이 없으면 추적하지 않는다*/
if(req.url == null) { return null; }
if(!req.url) { return null; }
if(ignore_http_method && ignore_http_method.toUpperCase().split(',').includes(req.method)) { return null; }
if (ignore_nextjs_build_file_enabled && ignore_nextjs_build_file_path && ignore_nextjs_build_file_path.split(',').some(path => req.url.startsWith(path))) {
return null;
}

@@ -744,2 +755,3 @@ var ctx = TraceContextManager.start();

if (ctx == null || ( args[0].host == null && args[0].hostname == null)) { return; }
var is_ignore_error = false;

@@ -764,3 +776,3 @@ ret.on('response', function(response){

if (transaction_status_error_enable && step.error.isZero()) {
if (transaction_status_error_enable && step.error.isZero() && !is_ignore_error) {
step.error = StatError.addError(err.code, err.message, ctx.service_hash,

@@ -815,12 +827,13 @@ TextTypes.HTTPC_URL, step.url);

if (TraceContextManager.resume(ctx._id) == null) { return; }
if (step.error.isZero()) {
var msgObj = { 'class': 'Timeout', 'msg': 'Timeout' };
step.error = StatError.addError('Timeout','Timeout', ctx.service_hash);
if (transaction_status_error_enable && ctx.error.isZero()) {
ctx.error = step.error;
ctx.statusCode = 'Timeout';
ctx.statusMessage = 'Timeout';
}
}
endHttpc(ctx, step);
is_ignore_error = true;
// if (step.error.isZero()) {
// var msgObj = { 'class': 'Timeout', 'msg': 'Timeout' };
// step.error = StatError.addError('Timeout','Timeout', ctx.service_hash);
// if (transaction_status_error_enable && ctx.error.isZero()) {
// ctx.error = step.error;
// ctx.statusCode = 'Timeout';
// ctx.statusMessage = 'Timeout';
// }
// }
// endHttpc(ctx, step);
});

@@ -827,0 +840,0 @@ }

@@ -31,3 +31,3 @@ /**

})
var trace_sampling_enabled = conf.getProperty('trace_sampling_enabled', false);
var trace_sampling_enabled = conf.getProperty('trace_sampling_enabled', true);
conf.on('trace_sampling_enabled', function (newProps) {

@@ -34,0 +34,0 @@ trace_sampling_enabled = newProps;

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

service.service = ctx.service_hash;
DataTextAgent.SERVICE.add(ctx.service_hash, ctx.service_name);
service.cpuTime = ResourceProfile.getCPUTime() - ctx.start_cpu;

@@ -165,0 +167,0 @@ service.malloc = ResourceProfile.getUsedHeapSize() - ctx.start_malloc;

@@ -53,3 +53,4 @@

} catch (e) {
self.key = self.getKey();
// self.key = self.getKey();
self.key = 'WHATAP';
var printWriter = fs.createWriteStream(file, {flags : 'w'});

@@ -56,0 +57,0 @@ printWriter.write(self.key);

{
"name": "whatap",
"homepage": "http://www.whatap.io",
"version": "0.4.95",
"releaseDate": "20240429",
"version": "0.4.96",
"releaseDate": "20240530",
"description": "Monitoring and Profiling Service",

@@ -7,0 +7,0 @@ "main": "index.js",

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