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

statful-client

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statful-client - npm Package Compare versions

Comparing version 4.1.4 to 4.1.5

18

lib/client.js

@@ -77,6 +77,10 @@ 'use strict';

if (e.code === "ECONNRESET") {
logger.error('A timeout occurred on a request to host: ' + options.hostname +
' port: ' + options.port + ' and path: ' + options.path);
if (logger) {
logger.error('A timeout occurred on a request to host: ' + options.hostname +
' port: ' + options.port + ' and path: ' + options.path);
}
} else {
logger.error('An error occurred: ' + e.message);
if (logger) {
logger.error('An error occurred: ' + e.message);
}
}

@@ -539,2 +543,6 @@ });

Client.prototype.aggregatedPutRaw = function (metricLine, agg, aggFreq) {
addToBuffer(this, [metricLine], true, agg, aggFreq);
};
/**

@@ -613,2 +621,6 @@ * Sends an aggregated timing metric

Client.prototype.putRaw = function (metricLine) {
addToBuffer(this, [metricLine], false, null, null);
};
/**

@@ -615,0 +627,0 @@ * Sends a timing metric

2

package.json

@@ -13,3 +13,3 @@ {

},
"version": "4.1.4",
"version": "4.1.5",
"engines": {

@@ -16,0 +16,0 @@ "node": ">=0.8"

@@ -223,3 +223,3 @@ Statful Client for NodeJS

// Aggregated Metrics
- staful.aggregatedCounter('myCounter', 1, 'avg', 60, {agg: ['sum']});
- staful.aggregatedCounter('myCounter', 1, 'avg', 60, { tags: { host: 'localhost' } });
- staful.aggregatedGauge('myGauge', 10, 'avg', 60, { tags: { host: 'localhost' } });

@@ -226,0 +226,0 @@ - staful.aggregatedTimer('myCounter', 200, 'avg', 60, {namespace: 'sandbox'});

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

var httpsServer = require('./tools/https-server');
var logger = require('bunyan').createLogger({name: 'tests'});
var logger = require('bunyan').createLogger({name: 'tests', level: 50});

@@ -21,4 +21,4 @@ var expect = require('chai').expect;

beforeEach(function(){
httpPort = Math.floor(Math.random() * 20000) + 10001;
udpPort = Math.floor(Math.random() * 10000) + 1000;
httpPort = Math.floor(Math.random() * 10000) + 11025;
udpPort = Math.floor(Math.random() * 10000) + 1024;
apiConf = {

@@ -25,0 +25,0 @@ host: '127.0.0.1',

@@ -14,4 +14,4 @@ 'use strict';

describe('When sending counter metrics', function () {
var httpPort = Math.floor(Math.random() * 20000) + 10001;
var udpPort = Math.floor(Math.random() * 10000) + 1000;
var httpPort = Math.floor(Math.random() * 10000) + 11025;
var udpPort = Math.floor(Math.random() * 10000) + 1024;
var apiConf = {

@@ -18,0 +18,0 @@ host: '127.0.0.1',

@@ -14,4 +14,4 @@ 'use strict';

describe('When sending gauge metrics', function () {
var httpPort = Math.floor(Math.random() * 20000) + 10001;
var udpPort = Math.floor(Math.random() * 10000) + 1000;
var httpPort = Math.floor(Math.random() * 10000) + 11025;
var udpPort = Math.floor(Math.random() * 10000) + 1024;
var apiConf = {

@@ -18,0 +18,0 @@ host: '127.0.0.1',

@@ -14,4 +14,4 @@ 'use strict';

describe('When sending timer metrics', function () {
var httpPort = Math.floor(Math.random() * 20000) + 10001;
var udpPort = Math.floor(Math.random() * 10000) + 1000;
var httpPort = Math.floor(Math.random() * 10000) + 11025;
var udpPort = Math.floor(Math.random() * 10000) + 1024;
var apiConf = {

@@ -18,0 +18,0 @@ host: '127.0.0.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