Comparing version 0.1.0 to 0.1.1
@@ -45,7 +45,4 @@ 'use strict'; | ||
this.error = function (error, data) { | ||
if ((typeof error === 'undefined' ? 'undefined' : _typeof(error)) !== 'object') { | ||
_this._captureMessage('error', error); | ||
} else { | ||
_this._captureException(error, {}); | ||
} | ||
if ((typeof error === 'undefined' ? 'undefined' : _typeof(error)) !== 'object') error = new Error(error); | ||
_this._captureException(error, data); | ||
}; | ||
@@ -52,0 +49,0 @@ |
{ | ||
"name": "ta-monitor", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Front end analytics and error monitoring tool", | ||
@@ -5,0 +5,0 @@ "main": "dist/ta-monitor.js", |
4800
100