Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade dependencies #972

Merged
merged 1 commit into from Jul 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1,314 changes: 509 additions & 805 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -47,9 +47,9 @@
"homepage": "https://github.com/ipfs-shipyard/ipfs-desktop",
"devDependencies": {
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/plugin-transform-runtime": "^7.5.0",
"@babel/preset-env": "^7.5.0",
"@babel/preset-env": "^7.5.4",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.4.4",
"@svgr/cli": "^4.3.1",
Expand All @@ -58,32 +58,32 @@
"delay": "^4.3.0",
"dirty-chai": "^2.0.1",
"electron": "^5.0.6",
"electron-builder": "^20.44.4",
"electron-builder": "^21.0.15",
"mocha": "^6.1.4",
"npm-run-all": "^4.1.5",
"pre-commit": "^1.2.2",
"request": "^2.88.0",
"request-progress": "^3.0.0",
"shx": "^0.3.2",
"spectron": "^7.0.0",
"standard": "^12.0.1",
"standard": "^13.0.2",
"tar": "^4.4.10",
"tmp": "0.1.0"
},
"dependencies": {
"@babel/runtime": "^7.5.1",
"@babel/runtime": "^7.5.4",
"auto-launch": "^5.0.5",
"electron-serve": "^0.3.0",
"electron-store": "^4.0.0",
"electron-updater": "^4.0.14",
"electron-updater": "^4.1.2",
"fix-path": "^2.1.0",
"fs-extra": "^8.1.0",
"go-ipfs-dep": "0.4.21",
"i18next": "^17.0.6",
"i18next-electron-language-detector": "0.0.10",
"i18next-icu": "^1.1.2",
"i18next-node-fs-backend": "^2.1.3",
"ipfsd-ctl": "^0.44.0",
"ipfsd-ctl": "^0.44.1",
"is-ipfs": "^0.6.1",
"recursive-readdir": "^2.2.2",
"stream-to-pull-stream": "^1.7.3",
Expand Down
2 changes: 1 addition & 1 deletion src/dialogs/dialog.js
Expand Up @@ -9,7 +9,7 @@ export default function ({ title, message, type = 'info', buttons = [
i18n.t('ok'),
i18n.t('cancel')
], ...opts }) {
let options = {
const options = {
type: type,
buttons: buttons,
noLink: true,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -19,7 +19,7 @@ if (!app.requestSingleInstanceLock()) {
process.exit(0)
}

let ctx = {}
const ctx = {}

app.on('will-finish-launching', () => {
earlySetup(ctx)
Expand Down
2 changes: 1 addition & 1 deletion src/late/auto-launch.js
Expand Up @@ -8,7 +8,7 @@ const autoLauncher = new AutoLaunch({
})

export default function (ctx) {
let activate = async (value, oldValue) => {
const activate = async (value, oldValue) => {
if (process.env.NODE_ENV === 'development') {
logger.info('[launch on startup] unavailable during development')
return
Expand Down
2 changes: 1 addition & 1 deletion src/late/download-hash.js
Expand Up @@ -107,7 +107,7 @@ function handler (ctx) {
}

export default function (ctx) {
let activate = (value, oldValue) => {
const activate = (value, oldValue) => {
if (value === oldValue) return

if (value === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/late/i18n.js
Expand Up @@ -41,7 +41,7 @@ export default async function () {
.init({
lng: store.get('language'),
fallbackLng: {
'default': ['en']
default: ['en']
},
backend: {
loadPath: join(__dirname, '../../assets/locales/{{lng}}.json')
Expand Down
2 changes: 1 addition & 1 deletion src/late/register-daemon.js
Expand Up @@ -44,7 +44,7 @@ export default async function (ctx) {
return
}

let config = store.get('ipfsConfig')
const config = store.get('ipfsConfig')
logger.info('[ipfsd] starting daemon')
updateStatus(STATUS.STARTING_STARTED)

Expand Down
8 changes: 4 additions & 4 deletions src/late/take-screenshot.js
Expand Up @@ -41,7 +41,7 @@ function onError (e) {
}

function handleScreenshot (ctx) {
let { getIpfsd, launchWebUI } = ctx
const { getIpfsd, launchWebUI } = ctx

return async (_, output) => {
const ipfsd = await getIpfsd()
Expand Down Expand Up @@ -75,7 +75,7 @@ function handleScreenshot (ctx) {
logger.info('[screenshot] started: writing screenshots to %s', baseName)
let lastImage = null

for (let { name, image } of output) {
for (const { name, image } of output) {
const img = nativeImage.createFromDataURL(image)
const path = isDir ? `${baseName}${name}.png` : baseName
await ipfs.files.write(path, img.toPNG(), { create: true })
Expand All @@ -91,9 +91,9 @@ function handleScreenshot (ctx) {
}

export default function (ctx) {
let { webui } = ctx
const { webui } = ctx

let activate = (value, oldValue) => {
const activate = (value, oldValue) => {
if (value === oldValue) return

if (value === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/late/webui/preload.js
Expand Up @@ -60,7 +60,7 @@ window.ipfsDesktop = {
return resolve()
}

let files = []
const files = []

const prefix = path.dirname(res[0])

Expand Down
2 changes: 1 addition & 1 deletion src/utils/add-to-ipfs.js
Expand Up @@ -9,7 +9,7 @@ async function copyFile (launch, ipfs, hash, name, folder = false) {
const base = basename(name, ext)

while (true) {
let newName = (i === 0 ? base : `${base} (${i})`) + ext
const newName = (i === 0 ? base : `${base} (${i})`) + ext

try {
await ipfs.files.stat(`/${newName}`)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/daemon.js
Expand Up @@ -29,7 +29,7 @@ async function cleanup (addr, path) {
}

logger.info(`[daemon] cleanup: ipfs repo fsck ${path}`)
let exec = findExecutable('go', app.getAppPath())
const exec = findExecutable('go', app.getAppPath())

try {
execFileSync(exec, ['repo', 'fsck'], {
Expand Down Expand Up @@ -68,7 +68,7 @@ async function spawn ({ type, path, keysize }) {
// Set default mininum and maximum of connections to mantain
// by default. This only applies to repositories created by
// IPFS Desktop. Existing ones shall remain intact.
let config = readConfigFile(ipfsd)
const config = readConfigFile(ipfsd)
// Ensure strict CORS checking. See: https://github.com/ipfs/js-ipfsd-ctl/issues/333
config.API = { HTTPHeaders: {} }
config.Swarm = config.Swarm || {}
Expand Down