Socket
Socket
Sign inDemoInstall

analytics-node

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics-node - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/index.js
var assert = require('assert');
var clone = require('clone');
var debug = require('debug')('analytics-node');

@@ -166,2 +167,3 @@ var noop = function(){};

fn = fn || noop;
message = clone(message);
message.type = type;

@@ -168,0 +170,0 @@ if (!message.timestamp) message.timestamp = new Date();

3

package.json
{
"name": "analytics-node",
"repository": "git://github.com/segmentio/analytics-node",
"version": "1.0.0",
"version": "1.0.1",
"description": "The hassle-free way to integrate analytics into any node application.",

@@ -16,2 +16,3 @@ "keywords": [

"dependencies": {
"clone": "~0.1.17",
"component-type": "~1.0.0",

@@ -18,0 +19,0 @@ "join-component": "~1.0.0",

@@ -73,2 +73,8 @@

it('should not modify the original message', function(){
var message = { event: 'test' };
a.enqueue('type', message, noop);
assert(!message.hasOwnProperty('timestamp'));
});
it('should flush the queue if it hits the max length', function(done){

@@ -75,0 +81,0 @@ a.flushAt = 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