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

monitor-dog

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monitor-dog - npm Package Compare versions

Comparing version 1.5.0 to 1.5.2

.idea/workspace.xml

13

lib/monitor.js

@@ -37,4 +37,6 @@ 'use strict';

this.interval = opt.interval || process.env.MONITOR_INTERVAL;
this.client = new StatsD(this.host, this.port);
this.socketsMonitor = new SocketsMonitor(this);
if (this.host && this.port) {
this.client = new StatsD(this.host, this.port);
this.socketsMonitor = new SocketsMonitor(this);
}
}

@@ -80,2 +82,6 @@

Monitor.prototype[method] = function () {
if (!this.client) {
return;
}
var args = Array.prototype.slice.call(arguments);

@@ -117,2 +123,5 @@ if (this.prefix) {

Monitor.prototype.event = function (opt) {
if (!this.client) {
return;
}
if (!isObject(opt)) {

@@ -119,0 +128,0 @@ throw new Error('Missing required options');

2

package.json
{
"name": "monitor-dog",
"version": "1.5.0",
"version": "1.5.2",
"description": "A helpful wrapper for dogstatsd.",

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

@@ -135,3 +135,3 @@ # monitor-dog

```js
monitor.captureStream('some-name', yourStream);
monitor.captureStreamEvents('some-name', yourStream);
```

@@ -138,0 +138,0 @@

@@ -31,7 +31,2 @@ 'use strict';

describe('event', function() {
it('should throw an error when not given options', function(done) {
expect(monitor.event).throws();
done();
});
it('should throw an error if the title is missing', function(done) {

@@ -38,0 +33,0 @@ var error = null;

Sorry, the diff of this file is not supported yet

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