Comparing version 0.3.0 to 0.3.1
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9603
174
7
+ Addedlodash.debounce@~2.4.1
+ Addedobject-assign@~0.1.2
+ Addedansi-regex@1.1.1(transitive)
+ Addedansi-styles@1.0.0(transitive)
+ Addedchalk@0.4.0(transitive)
+ Addedconfigstore@0.2.3(transitive)
+ Addedinquirer@0.4.1(transitive)
+ Addedjs-yaml@3.0.2(transitive)
+ Addedlodash._isnative@2.4.1(transitive)
+ Addedlodash._objecttypes@2.4.1(transitive)
+ Addedlodash.debounce@2.4.1(transitive)
+ Addedlodash.isfunction@2.4.1(transitive)
+ Addedlodash.isobject@2.4.1(transitive)
+ Addedlodash.now@2.4.1(transitive)
+ Addedmute-stream@0.0.4(transitive)
+ Addedobject-assign@0.1.2(transitive)
+ Addedreadline2@0.1.1(transitive)
+ Addedstrip-ansi@0.1.12.0.1(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addeduuid@1.4.2(transitive)
- Removedlodash@~1.3.1
- Removedansi-styles@0.2.0(transitive)
- Removedchalk@0.2.1(transitive)
- Removedconfigstore@0.1.7(transitive)
- Removedinquirer@0.2.5(transitive)
- Removedjs-yaml@2.1.3(transitive)
- Removedlodash@1.2.11.3.1(transitive)
- Removedmute-stream@0.0.3(transitive)
Updatedchalk@~0.4.0
Updatedconfigstore@~0.2.1
Updatedinquirer@~0.4.0