Socket
Socket
Sign inDemoInstall

insight

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insight - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

7

lib/insight.js

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

var chalk = require('chalk');
var _ = require('lodash');
var assign = require('object-assign');
var debounce = require('lodash.debounce');
var inquirer = require('inquirer');

@@ -48,3 +49,3 @@ var providers = require('./providers');

// debounce in case of rapid .track() invocations
Insight.prototype._save = _.debounce(function () {
Insight.prototype._save = debounce(function () {
var cp = fork(path.join(__dirname, 'push.js'));

@@ -60,3 +61,3 @@ cp.send(this._getPayload());

return {
queue: _.extend({}, this._queue),
queue: assign({}, this._queue),
packageName: this.packageName,

@@ -63,0 +64,0 @@ packageVersion: this.packageVersion,

@@ -11,3 +11,2 @@ 'use strict';

module.exports = {
// Google Analytics — https://www.google.com/analytics/

@@ -30,7 +29,6 @@ google: function(id, path) {

return {
url: 'http://www.google-analytics.com/collect/__utm.gif',
url: 'http://www.google-analytics.com/collect',
qs: qs
};
},
// Yandex.Metrica — http://metrica.yandex.com

@@ -65,3 +63,2 @@ yandex: function(id, path) {

}
};
'use strict';
var request = require('request');
var async = require('async');
var _ = require('lodash');
var assign = require('object-assign');
var Insight = require('./insight');

@@ -15,3 +15,3 @@

_.extend(q, msg.queue);
assign(q, msg.queue);
config.del('queue');

@@ -33,3 +33,3 @@

var q2 = config.get('queue') || {};
_.extend(q2, q);
assign(q2, q);
config.set('queue', q2);

@@ -36,0 +36,0 @@ }

{
"name": "insight",
"version": "0.3.0",
"version": "0.3.1",
"description": "Understand how your tool is being used by anonymously reporting usage metrics to Google Analytics",

@@ -27,18 +27,19 @@ "keywords": [

"scripts": {
"test": "node node_modules/mocha/bin/mocha test/test-*.js"
"test": "mocha test/test-*.js"
},
"dependencies": {
"chalk": "~0.2.0",
"chalk": "~0.4.0",
"request": "~2.27.0",
"configstore": "~0.1.0",
"configstore": "~0.2.1",
"async": "~0.2.9",
"lodash": "~1.3.1",
"inquirer": "~0.2.4"
"inquirer": "~0.4.0",
"object-assign": "~0.1.2",
"lodash.debounce": "~2.4.1"
},
"devDependencies": {
"mocha": "~1.12.0",
"sinon": "~1.7.3"
"mocha": "*",
"sinon": "*"
},
"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},

@@ -45,0 +46,0 @@ "licenses": [

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