Comparing version 0.1.3 to 0.2.0
@@ -22,3 +22,3 @@ 'use strict'; | ||
this.packageVersion = options.packageVersion || this.packageFile.version; | ||
this.config = new Configstore('insight-' + this.packageName, { | ||
this.config = options.config || new Configstore('insight-' + this.packageName, { | ||
clientId: options.clientId || Math.floor(Date.now() * Math.random()) | ||
@@ -25,0 +25,0 @@ }); |
{ | ||
"name": "insight", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Understand how your tool is being used by anonymously reporting usage metrics to Google Analytics", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"chalk": "~0.2.0", | ||
"request": "~2.26.0", | ||
"request": "~2.27.0", | ||
"configstore": "~0.1.0", | ||
@@ -39,3 +39,4 @@ "async": "~0.2.9", | ||
"devDependencies": { | ||
"mocha": "~1.12.0" | ||
"mocha": "~1.12.0", | ||
"sinon": "~1.7.3" | ||
}, | ||
@@ -42,0 +43,0 @@ "engines": { |
@@ -107,3 +107,15 @@ # Insight [![Build Status](https://secure.travis-ci.org/yeoman/insight.png?branch=master)](http://travis-ci.org/yeoman/insight) | ||
#### config | ||
Type: `object` | ||
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: | ||
- `get(key)` | ||
- `set(key, value)` | ||
### Instance methods | ||
@@ -110,0 +122,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9719
147
1
2
+ Addedrequest@2.27.0(transitive)
- Removedrequest@2.26.0(transitive)
Updatedrequest@~2.27.0