Socket
Socket
Sign inDemoInstall

insight

Package Overview
Dependencies
Maintainers
5
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.1 to 0.4.0

.npmignore

32

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

@@ -14,4 +14,2 @@ "keywords": [

],
"homepage": "https://github.com/yeoman/insight",
"bugs": "https://github.com/yeoman/insight/issues",
"author": {

@@ -23,17 +21,15 @@ "name": "Sindre Sorhus",

"main": "lib/insight.js",
"repository": {
"type": "git",
"url": "git://github.com/yeoman/insight.git"
},
"repository": "yeoman/insight",
"scripts": {
"test": "mocha test/test-*.js"
"test": "mocha --reporter spec test/test-*.js"
},
"dependencies": {
"chalk": "~0.4.0",
"request": "~2.27.0",
"configstore": "~0.2.1",
"async": "~0.2.9",
"inquirer": "~0.4.0",
"object-assign": "~0.1.2",
"lodash.debounce": "~2.4.1"
"async": "^0.9.0",
"chalk": "^0.5.0",
"configstore": "^0.3.1",
"inquirer": "^0.5.1",
"lodash.debounce": "^2.4.1",
"object-assign": "^0.3.1",
"os-name": "^0.1.2",
"request": "2.27.0"
},

@@ -47,7 +43,3 @@ "devDependencies": {

},
"licenses": [
{
"type": "BSD"
}
]
"license": "BSD"
}

@@ -1,2 +0,2 @@

# Insight [![Build Status](https://secure.travis-ci.org/yeoman/insight.png?branch=master)](http://travis-ci.org/yeoman/insight)
# Insight [![Build Status](https://secure.travis-ci.org/yeoman/insight.svg?branch=master)](http://travis-ci.org/yeoman/insight)

@@ -13,5 +13,16 @@ Understand how your tool is being used by anonymously reporting usage metrics to [Google Analytics](http://www.google.com/analytics/)

![analytics screenshot](https://raw.github.com/yeoman/insight/master/screenshot.png)
![analytics screenshot](screenshot.png)
## Provider Setup
### Google Analytics (GA)
Currently Insight should to be used with GA set up as web tracking due to use of URLs. Future plan include refactoring to work with GA set up for app-based tracking and the [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1/).
For debugging, Insight can track OS version, node version and version of the app that implements Insight. Please set up custom dimensions per below screenshot. This is a temporary solution until Insight is refactored into app-based tracking.
![GA custom dimensions screenshot](screenshot-ga-custom-dimensions.png)
## Example usage

@@ -66,4 +77,4 @@

## Documentation
## API

@@ -132,5 +143,5 @@ ### Insight(settings)

![askPermission screenshot](https://raw.github.com/yeoman/insight/master/screenshot-askpermission.png)
![askPermission screenshot](screenshot-askpermission.png)
Optionally supply your own `message` and `callback`. The callback will be called with the arguments `error` and `optOut` when the prompt is done, and is useful for when you want to continue the execution while the prompt is running.
Optionally supply your own `message` and `callback`. If `message` is `null`, default message will be used. The callback will be called with the arguments `error` and `optOut` when the prompt is done, and is useful for when you want to continue the execution while the prompt is running.

@@ -137,0 +148,0 @@

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