Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

aggregate-metric-logger

Package Overview
Dependencies
29
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.2 to 1.7.0

2

package.json
{
"name": "aggregate-metric-logger",
"version": "1.6.2",
"version": "1.7.0",
"description": "aggregate metrics in memory for logging",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -132,4 +132,7 @@ 'use strict';

delete measurements[measurementId];
},
cancel(measurementId) {
delete measurements[measurementId];
}
};
};

@@ -163,2 +163,17 @@ 'use strict';

it('should not count a measurment if it is cancelled with cancel', () => {
const measurement1Id = metricLogger.start('utlegeles');
const measurement2Id = metricLogger.start('utlegeles');
clock.tick(50);
metricLogger.stop(measurement1Id);
clock.tick(20);
metricLogger.cancel(measurement2Id);
metricLogger.stop(measurement2Id);
clock.tick(60 * 1000);
expect(Logger.prototype.info).toBeCalledWith('utlegeles', expect.objectContaining({
count: 1
}));
});
it('should flush results at the closes minute:30', () => {

@@ -165,0 +180,0 @@ const measurementId = metricLogger.start('utlegeles');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc