Comparing version 0.8.3 to 0.8.4
@@ -10,3 +10,3 @@ 'use strict'; | ||
var inquirer = require('inquirer'); | ||
var uuid = require('node-uuid'); | ||
var uuid = require('uuid'); | ||
var providers = require('./providers'); | ||
@@ -13,0 +13,0 @@ |
@@ -38,4 +38,4 @@ 'use strict'; | ||
process.exit(); | ||
process.exit(); // eslint-disable-line xo/no-process-exit | ||
}); | ||
}); |
{ | ||
"name": "insight", | ||
"version": "0.8.3", | ||
"description": "Understand how your tool is being used by anonymously reporting usage metrics to an analtyics vendor, e.g. Google Analytics.", | ||
"keywords": [ | ||
"package", | ||
"stats", | ||
"google", | ||
"analytics", | ||
"track", | ||
"metrics" | ||
], | ||
"version": "0.8.4", | ||
"description": "Understand how your tool is being used by anonymously reporting usage metrics to Google Analytics or Yandex.Metrica", | ||
"license": "BSD-2-Clause", | ||
"repository": "yeoman/insight", | ||
"author": { | ||
@@ -19,3 +13,5 @@ "name": "Sindre Sorhus", | ||
"main": "lib", | ||
"repository": "yeoman/insight", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
@@ -27,2 +23,13 @@ "test": "xo && mocha --timeout 20000 --reporter spec test/test.js" | ||
], | ||
"keywords": [ | ||
"package", | ||
"stats", | ||
"google", | ||
"analytics", | ||
"track", | ||
"metrics", | ||
"stats", | ||
"yandex", | ||
"metrica" | ||
], | ||
"dependencies": { | ||
@@ -34,7 +41,7 @@ "async": "^1.4.2", | ||
"lodash.debounce": "^3.0.1", | ||
"node-uuid": "^1.4.7", | ||
"object-assign": "^4.0.1", | ||
"os-name": "^1.0.0", | ||
"request": "^2.74.0", | ||
"tough-cookie": "^2.0.0" | ||
"tough-cookie": "^2.0.0", | ||
"uuid": "^3.0.0" | ||
}, | ||
@@ -45,8 +52,4 @@ "devDependencies": { | ||
"sinon": "*", | ||
"xo": "*" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"license": "BSD-2-Clause" | ||
"xo": "^0.16.0" | ||
} | ||
} |
# Insight [![Build Status](https://secure.travis-ci.org/yeoman/insight.svg?branch=master)](http://travis-ci.org/yeoman/insight) | ||
> Understand how your tool is being used by anonymously reporting usage metrics to [Google Analytics](http://www.google.com/analytics/) | ||
or [Yandex.Metrica](http://metrica.yandex.com/) | ||
> Understand how your tool is being used by anonymously reporting usage metrics to [Google Analytics](https://www.google.com/analytics/) or [Yandex.Metrica](https://metrica.yandex.com) | ||
@@ -54,9 +53,9 @@ | ||
```js | ||
var Insight = require('insight'); | ||
var pkg = require('./package.json'); | ||
const Insight = require('insight'); | ||
const pkg = require('./package.json'); | ||
var insight = new Insight({ | ||
const insight = new Insight({ | ||
// Google Analytics tracking code | ||
trackingCode: 'UA-XXXXXXXX-X', | ||
pkg: pkg | ||
pkg | ||
}); | ||
@@ -84,4 +83,4 @@ | ||
```js | ||
var Insight = require('insight'); | ||
var pkg = require('./package.json'); | ||
const Insight = require('insight'); | ||
const pkg = require('./package.json'); | ||
@@ -92,3 +91,3 @@ var insight = new Insight({ | ||
trackingProvider: 'yandex', | ||
pkg: pkg | ||
pkg | ||
}); | ||
@@ -108,7 +107,7 @@ | ||
### Insight(settings) | ||
### Insight(options) | ||
#### trackingCode | ||
**Required** | ||
**Required**<br> | ||
Type: `string` | ||
@@ -120,5 +119,5 @@ | ||
Type: `string` | ||
Default: `'google'` | ||
Values: `'google'`, `'yandex'` | ||
Type: `string`<br> | ||
Default: `google`<br> | ||
Values: `google`, `yandex` | ||
@@ -131,3 +130,3 @@ Tracking provider to use. | ||
**Required** | ||
**Required**<br> | ||
Type: `string` | ||
@@ -137,3 +136,3 @@ | ||
Type: `string` | ||
Type: `string`<br> | ||
Default: `'undefined'` | ||
@@ -143,8 +142,6 @@ | ||
Type: `object` | ||
Type: `object`<br> | ||
Default: An instance of [`configstore`](https://github.com/yeoman/configstore) | ||
If you want to use your own configuration mechanism instead of the default | ||
`configstore`-based one, you can provide an object that has to implement two | ||
synchronous methods: | ||
If you want to use your own configuration mechanism instead of the default `configstore`-based one, you can provide an object that has to implement two synchronous methods: | ||
@@ -154,3 +151,2 @@ - `get(key)` | ||
### Instance methods | ||
@@ -178,3 +174,3 @@ | ||
**Required** | ||
**Required**<br> | ||
Type: `string` | ||
@@ -186,3 +182,3 @@ | ||
**Required** | ||
**Required**<br> | ||
Type: `string` | ||
@@ -204,3 +200,2 @@ | ||
#### .askPermission([message, callback]) | ||
@@ -214,3 +209,2 @@ | ||
#### .optOut | ||
@@ -217,0 +211,0 @@ |
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
14363
205
+ Addeduuid@^3.0.0
- Removednode-uuid@^1.4.7
- Removednode-uuid@1.4.8(transitive)