Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import bowser from 'bowser'
import Issues from '../components/Issues'
import BrowserWarning from './BrowserWarning'
import Validate from '../components/Validate'
import validate from 'bids-validator'
import validatorPackageJson from 'bids-validator/package.json'
const version = validatorPackageJson.version
// component setup -----------------------------------------------------------
const initState = () => ({
dirName: '',
list: {},
nameError: null,
projectId: '',
refs: {},
errors: [],
warnings: [],
summary: null,
status: '',
uploadStatus: '',
options: {
ignoreWarnings: false,