diff --git a/frontend/gulp/start.js b/frontend/gulp/start.js index eda9f0dba..e2f65660b 100644 --- a/frontend/gulp/start.js +++ b/frontend/gulp/start.js @@ -30,7 +30,7 @@ function getLatest(cb) { } }); - var url = 'http://services.sonarr.tv/v1/update/' + branch + '?os=osx'; + var url = 'http://services.lidarr.audio/v1/update/' + branch + '?os=osx'; console.log('Checking for latest version:', url); @@ -80,7 +80,7 @@ gulp.task('getSonarr', function() { console.log('Cleaning old binaries'); del.sync(['./_output/*', '!./_output/UI/']); console.log('copying binaries to target'); - gulp.src(dirName + '/NzbDrone/*.*') + gulp.src(dirName + '/Lidarr/*.*') .pipe(gulp.dest('./_output/')); }); }); @@ -88,7 +88,7 @@ gulp.task('getSonarr', function() { }); gulp.task('startSonarr', function() { - var ls = spawn('mono', ['--debug', './_output/NzbDrone.exe']); + var ls = spawn('mono', ['--debug', './_output/Lidarr.exe']); ls.stdout.on('data', function(data) { process.stdout.write(data); diff --git a/frontend/src/Store/Middleware/middlewares.js b/frontend/src/Store/Middleware/middlewares.js index e4901c5ee..8c191c952 100644 --- a/frontend/src/Store/Middleware/middlewares.js +++ b/frontend/src/Store/Middleware/middlewares.js @@ -1,5 +1,7 @@ import { applyMiddleware, compose } from 'redux'; -import ravenMiddleware from 'redux-raven-middleware'; +import Raven from 'raven-js'; +import createRavenMiddleware from 'raven-for-redux'; +// import ravenMiddleware from 'redux-raven-middleware'; import thunk from 'redux-thunk'; import { routerMiddleware } from 'react-router-redux'; import persistState from './persistState'; @@ -13,13 +15,15 @@ export default function(history) { isProduction } = window.Sonarr; - const dsn = isProduction ? 'https://c3a5b33e08de4e18b7d0505e942dbc95:e35e6d535b034995a6896022c6bfed04@sentry.io/216290' : - 'https://c3a5b33e08de4e18b7d0505e942dbc95:e35e6d535b034995a6896022c6bfed04@sentry.io/216290'; + const dsn = isProduction ? 'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290' : + 'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290'; + + Raven.config(dsn).install(); const middlewares = []; if (analytics) { - middlewares.push(ravenMiddleware(dsn, { + middlewares.push(createRavenMiddleware(Raven, { environment: isProduction ? 'production' : 'development', release, tags: { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 8e12daea1..b2797228b 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -3603,10 +3603,15 @@ "from": "randomatic@>=1.1.3 <2.0.0", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.5.tgz" }, + "raven-for-redux": { + "version": "1.0.0", + "from": "raven-for-redux@latest", + "resolved": "https://registry.npmjs.org/raven-for-redux/-/raven-for-redux-1.0.0.tgz" + }, "raven-js": { - "version": "3.9.2", + "version": "3.17.0", "from": "raven-js@>=3.1.1 <4.0.0", - "resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.9.2.tgz" + "resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.17.0.tgz" }, "raw-body": { "version": "2.1.6", @@ -3947,11 +3952,6 @@ "from": "redux-localstorage@0.4.1", "resolved": "https://registry.npmjs.org/redux-localstorage/-/redux-localstorage-0.4.1.tgz" }, - "redux-raven-middleware": { - "version": "1.2.0", - "from": "redux-raven-middleware@latest", - "resolved": "https://registry.npmjs.org/redux-raven-middleware/-/redux-raven-middleware-1.2.0.tgz" - }, "redux-thunk": { "version": "2.2.0", "from": "redux-thunk@2.2.0", diff --git a/package.json b/package.json index a81722ce8..b98759107 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,8 @@ "postcss-simple-vars": "3.0.0", "prop-types": "15.5.10", "query-string": "https://registry.npmjs.org/query-string/-/query-string-4.2.2.tgz", + "raven-js": "3.17.0", + "raven-for-redux": "1.0.0", "react": "15.6.1", "react-addons-shallow-compare": "15.6.0", "react-async-script": "0.9.1", @@ -86,7 +88,6 @@ "redux-actions": "2.0.3", "redux-batched-actions": "0.2.0", "redux-localstorage": "0.4.1", - "redux-raven-middleware": "1.2.0", "redux-thunk": "2.2.0", "require-nocache": "1.0.0", "reselect": "3.0.1",