File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tutorcruncher-socket" ,
3- "version" : " 1.3.1 " ,
3+ "version" : " 1.3.2 " ,
44 "description" : " TutorCruncher socket" ,
55 "author" : " Samuel Colvin <samuel@tutorcruncher.com>" ,
66 "private" : false ,
3434 ]
3535 },
3636 "dependencies" : {
37+ "babel-polyfill" : " ^6.26.0" ,
3738 "enzyme" : " ^3.3.0" ,
3839 "enzyme-adapter-react-16" : " ^1.1.1" ,
3940 "html-webpack-plugin" : " ^2.30.1" ,
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class EnquiryForm extends Component {
9494 return (
9595 < div className = "tcs-enquiry" >
9696 < IfElse v = { this . state . submitted } >
97- < div className = "tcs-submitted" v-if = "submitted" >
97+ < div className = "tcs-submitted" >
9898 < Markdown content = {
9999 get_text ( this . mode . includes ( 'modal' ) ? 'enquiry_modal_submitted_thanks' : 'enquiry_submitted_thanks' )
100100 } />
Original file line number Diff line number Diff line change 11import Raven from 'raven-js'
22import React from 'react'
33import ReactDOM from 'react-dom'
4+ import 'babel-polyfill'
45import './main.scss'
56import App from './components/App'
67import { BrowserRouter , HashRouter } from 'react-router-dom'
@@ -72,7 +73,7 @@ window.socket = async function (public_key, config) {
7273 }
7374
7475 let error = null
75- if ( config . mode && MODES . indexOf ( config . mode ) === - 1 ) {
76+ if ( config . mode && ! MODES . includes ( config . mode ) ) {
7677 error = `invalid mode "${ config . mode } ", options are: ${ MODES . join ( ', ' ) } `
7778 config . mode = 'grid'
7879 }
@@ -97,7 +98,7 @@ window.socket = async function (public_key, config) {
9798 if ( config . mode === 'enquiry' ) {
9899 config . router_mode = 'history'
99100 }
100- } else if ( ROUTER_MODES . indexOf ( config . router_mode ) === - 1 ) {
101+ } else if ( ! ROUTER_MODES . includes ( config . router_mode ) ) {
101102 error = `invalid router mode "${ config . router_mode } ", options are: ${ ROUTER_MODES . join ( ', ' ) } `
102103 config . router_mode = 'hash'
103104 }
Original file line number Diff line number Diff line change @@ -829,6 +829,14 @@ babel-plugin-transform-strict-mode@^6.24.1:
829829 babel-runtime "^6.22.0"
830830 babel-types "^6.24.1"
831831
832+ babel-polyfill@^6.26.0 :
833+ version "6.26.0"
834+ resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
835+ dependencies :
836+ babel-runtime "^6.26.0"
837+ core-js "^2.5.0"
838+ regenerator-runtime "^0.10.5"
839+
832840babel-preset-env@1.6.1 :
833841 version "1.6.1"
834842 resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48"
@@ -5849,6 +5857,10 @@ regenerate@^1.2.1:
58495857 version "1.3.3"
58505858 resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f"
58515859
5860+ regenerator-runtime@^0.10.5 :
5861+ version "0.10.5"
5862+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
5863+
58525864regenerator-runtime@^0.11.0 :
58535865 version "0.11.1"
58545866 resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
You can’t perform that action at this time.
0 commit comments