From df1f2d1b91c9fa6e872b43f9cd57a06967746e18 Mon Sep 17 00:00:00 2001 From: James Butler Date: Wed, 10 Feb 2016 23:44:15 +0000 Subject: [PATCH 1/2] bump travis test matrix to include recent node versions --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 18ae2d8..91b317c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: node_js node_js: - - "0.11" - "0.10" + - "0.12" + - "4" + - "5" From 178caa7b7c9676343a842d73f696e54ebb21cd7c Mon Sep 17 00:00:00 2001 From: James Butler Date: Wed, 10 Feb 2016 23:44:54 +0000 Subject: [PATCH 2/2] autofill version string from package.json --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0f46634..c32247c 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,8 @@ var https = require('https'); var stackTrace = require('stack-trace'); var os = require('os'); +var pkg = require('./package') + var formatFrames = function (frames, project_root) { var result = []; for (var i in frames) { @@ -37,7 +39,7 @@ var DEFAULT_ENDPOINTS = [ 'collector5.yellerapp.com', ]; -var VERSION = "yeller_node: 0.0.7"; +var VERSION = "yeller_node: " + pkg.version; var YellerClient = function (options) { this.token = options.token;