From 6a336d2da506c85173cd25dbf6cadf5becd51f9c Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Sat, 1 Oct 2016 16:39:44 -0700 Subject: [PATCH] Use WebTorrent 0.97.2 from cdnjs Closes #44. --- package.json | 14 +++++++++++--- src/client.js | 1 + src/components/App.js | 1 + src/stores/DownloadStore.js | 6 +++--- src/stores/UploadStore.js | 4 ++-- src/wt.js | 5 +++-- 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c05cf30..874ded7 100644 --- a/package.json +++ b/package.json @@ -34,10 +34,12 @@ "dependencies": { "alt": "^0.14.4", "babel-cli": "^6.6.5", + "babel-core": "^6.14.0", "babel-loader": "^6.2.4", "babel-plugin-add-module-exports": "^0.1.2", "babel-plugin-transform-react-jsx": "^6.7.4", - "babel-preset-es2015": "^6.6.0", + "babel-polyfill": "^6.16.0", + "babel-preset-es2015": "^6.14.0", "babel-preset-stage-0": "^6.5.0", "classnames": "^1.2.0", "express": "^4.12.0", @@ -56,12 +58,18 @@ "stylus": "^0.50.0", "twilio": "^2.9.1", "webpack": "^1.12.14", - "webrtcsupport": "^2.1.2", - "webtorrent": "^0.90.3", + "webrtcsupport": "^2.2.0", "winston": "^1.0.1", "xkcd-password": "^1.2.0" }, "devDependencies": { + "babel-cli": "^6.16.0", + "babel-core": "^6.17.0", + "babel-loader": "^6.2.5", + "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-transform-react-jsx": "^6.8.0", + "babel-preset-es2015": "^6.16.0", + "babel-preset-stage-0": "^6.16.0", "json-loader": "^0.5.4", "nodemon": "^1.4.1", "webpack-dev-middleware": "^1.6.1" diff --git a/src/client.js b/src/client.js index 7a50e80..365d75a 100644 --- a/src/client.js +++ b/src/client.js @@ -1,3 +1,4 @@ +import 'babel-polyfill' import React from 'react' import ReactRouter from 'react-router' import routes from './routes' diff --git a/src/components/App.js b/src/components/App.js index fbda4cd..bd0ee1c 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -44,6 +44,7 @@ export default class App extends React.Component { +