From 2cd8a1e7a26121f485ecb8be7611b89fa685db5c Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Sun, 11 Jun 2017 01:20:44 -0400 Subject: [PATCH] Added stats-reporter --- .npmrc | 1 + README.md | 2 ++ lib/index.js | 2 ++ package.json | 9 +++++---- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/README.md b/README.md index 0fa2a94..7aeb297 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ This module is designed to be a completely self-contained manager for Instead of being just a simple API wrapper, it's designed to take most of the work out of implementing trade offers in your application. +This reports anonymous usage statistics to the author. [See here](https://github.com/DoctorMcKay/node-stats-reporter) for more information. + **You absolutely need Node.js v4.0.0 or later or this won't work.** Install it from [npm](https://www.npmjs.com/package/steam-tradeoffer-manager) or check out the diff --git a/lib/index.js b/lib/index.js index b3be87a..d937ed3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,7 @@ "use strict"; +require('@doctormckay/stats-reporter').setup(require('../package.json')); + const SteamCommunity = require('steamcommunity'); const Helpers = require('./helpers.js'); diff --git a/package.json b/package.json index 2878c19..b81e68f 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,12 @@ }, "homepage": "https://github.com/DoctorMcKay/node-steam-tradeoffer-manager", "dependencies": { - "steamcommunity": "^3.30.0", - "steamid": "^1.1.0", - "async": "^2.0.0", + "@doctormckay/stats-reporter": "^1.0.2", + "async": "^2.4.1", + "deep-equal": "^1.0.1", "languages": "^0.1.3", - "deep-equal": "^1.0.1" + "steamcommunity": "^3.30.7", + "steamid": "^1.1.0" }, "engines": { "node": ">=4.0.0"