chore(deps) Update Tauri JS CLI (major) (#762)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
renovate[bot] 2020-07-09 22:05:56 -03:00 committed by GitHub
parent eda41ec826
commit 8dae73632f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 51 additions and 25 deletions

View File

@ -69,7 +69,7 @@
"png2icons": "2.0.1",
"read-chunk": "3.2.0",
"sharp": "0.25.4",
"webpack-merge": "4.2.2",
"webpack-merge": "5.0.9",
"webpack-shell-plugin": "0.5.0"
},
"devDependencies": {
@ -118,13 +118,13 @@
"rollup-plugin-terser": "6.1.0",
"rollup-plugin-typescript2": "0.27.1",
"toml-loader": "1.0.0",
"ts-loader": "7.0.5",
"ts-loader": "8.0.0",
"tslib": "2.0.0",
"typescript": "3.9.6",
"typescript-json-validator": "2.4.2",
"webpack": "4.43.0",
"webpack-cli": "3.3.12",
"webpack-node-externals": "1.7.2"
"webpack-node-externals": "2.3.0"
},
"resolutions": {
"**/lodash": ">=4.17.19"

View File

@ -1,5 +1,5 @@
import { TauriConfig } from 'types'
import merge from 'webpack-merge'
import { merge } from 'webpack-merge'
import Runner from '../runner'
import getTauriConfig from '../helpers/tauri-config'

View File

@ -1,5 +1,5 @@
import { TauriConfig } from 'types'
import merge from 'webpack-merge'
import { merge } from 'webpack-merge'
import Runner from '../runner'
import getTauriConfig from '../helpers/tauri-config'

View File

@ -1,6 +1,6 @@
import { existsSync, readFileSync } from 'fs-extra'
import { TauriConfig } from 'types'
import merge from 'webpack-merge'
import { merge } from 'webpack-merge'
import logger from '../helpers/logger'
import * as appPaths from './app-paths'
import nonWebpackRequire from '../helpers/non-webpack-require'

View File

@ -91,13 +91,13 @@ class Runner {
selfHandleResponse: true
})
proxy.on('proxyRes', function (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) {
proxy.on('proxyRes', (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) => {
if (req.url === '/') {
const body: Uint8Array[] = []
proxyRes.on('data', function (chunk: Uint8Array) {
proxyRes.on('data', (chunk: Uint8Array) => {
body.push(chunk)
})
proxyRes.on('end', function () {
proxyRes.on('end', () => {
const bodyStr = body.join('')
const indexDir = os.tmpdir()
writeFileSync(path.join(indexDir, 'index.html'), bodyStr)
@ -339,7 +339,7 @@ class Runner {
}
}
if ((!cfg.ctx.dev && cfg.tauri.embeddedServer.active) || !inlinerEnabled) {
if ((!cfg.ctx.dev && cfg.tauri.embeddedServer.active) ?? !inlinerEnabled) {
const html = rewriteHtml(originalHtml, domInterceptor)
resolve({ inlinedAssets, html })
} else {

View File

@ -2,7 +2,7 @@ import { CargoManifest } from './../types/cargo'
import { existsSync, removeSync, writeFileSync } from 'fs-extra'
import { join, normalize, resolve } from 'path'
import { TauriConfig } from 'types'
import merge from 'webpack-merge'
import { merge } from 'webpack-merge'
import copyTemplates from '../helpers/copy-templates'
import logger from '../helpers/logger'
import defaultConfig from './defaultConfig'

View File

@ -8,7 +8,11 @@
"all": true
},
"bundle": {
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"]
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"identifier": "fixture.app"
},
"window": {
"title": "Fixture"
}
}
}

View File

@ -3001,6 +3001,15 @@ cliui@^6.0.0:
strip-ansi "^6.0.0"
wrap-ansi "^6.2.0"
clone-deep@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
dependencies:
is-plain-object "^2.0.4"
kind-of "^6.0.2"
shallow-clone "^3.0.0"
clone-response@1.0.2, clone-response@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b"
@ -8558,6 +8567,13 @@ sha.js@^2.4.0, sha.js@^2.4.8:
inherits "^2.0.1"
safe-buffer "^5.0.1"
shallow-clone@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==
dependencies:
kind-of "^6.0.2"
sharp@0.25.4:
version "0.25.4"
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.25.4.tgz#1a8e542144a07ab7e9316ab89de80182b827c363"
@ -9468,10 +9484,10 @@ ts-interface-checker@^0.1.9:
resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.11.tgz#07e7eddb08212f83fef12c253d0cefa8c70fe1bc"
integrity sha512-Jx6cFBiuCQrRl3CgoIOamIE/toZ8jQJbIlsLGpkBiUpCEUyFcyZ2pvjP8kSXIcz8V5v/murgm/5EfIQapUmh6A==
ts-loader@7.0.5:
version "7.0.5"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-7.0.5.tgz#789338fb01cb5dc0a33c54e50558b34a73c9c4c5"
integrity sha512-zXypEIT6k3oTc+OZNx/cqElrsbBtYqDknf48OZos0NQ3RTt045fBIU8RRSu+suObBzYB355aIPGOe/3kj9h7Ig==
ts-loader@8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.0.tgz#faf4b1617dcc4a24c2925d92c5b19e9c6621064d"
integrity sha512-giEW167rtK1V6eX/DnXEtOgcawwoIp6hqznqYNNSmraUZOq36zMhwBq12JMlYhxf50BC58bscsTSKKtE42zAuw==
dependencies:
chalk "^2.3.0"
enhanced-resolve "^4.0.0"
@ -9923,17 +9939,18 @@ webpack-cli@3.3.12:
v8-compile-cache "^2.1.1"
yargs "^13.3.2"
webpack-merge@4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-4.2.2.tgz#a27c52ea783d1398afd2087f547d7b9d2f43634d"
integrity sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==
webpack-merge@5.0.9:
version "5.0.9"
resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.0.9.tgz#d5e0e0ae564ae704836d747893bdd2741544bf31"
integrity sha512-P4teh6O26xIDPugOGX61wPxaeP918QOMjmzhu54zTVcLtOS28ffPWtnv+ilt3wscwBUCL2WNMnh97XkrKqt9Fw==
dependencies:
lodash "^4.17.15"
clone-deep "^4.0.1"
wildcard "^2.0.0"
webpack-node-externals@1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/webpack-node-externals/-/webpack-node-externals-1.7.2.tgz#6e1ee79ac67c070402ba700ef033a9b8d52ac4e3"
integrity sha512-ajerHZ+BJKeCLviLUUmnyd5B4RavLF76uv3cs6KNuO8W+HuQaEs0y0L7o40NQxdPy5w0pcv8Ew7yPUAQG0UdCg==
webpack-node-externals@2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/webpack-node-externals/-/webpack-node-externals-2.3.0.tgz#c884c07103de080284e17c195fe87c68e2b9c668"
integrity sha512-d1scCn/L5hv73GMOlqSTO6ykLWOiUrZfn54xQYf7u0yGLlUSf5trq6HV/Gw8JIpH2NEyXS7bJec1gk9YR/Qdqw==
webpack-shell-plugin@0.5.0:
version "0.5.0"
@ -10036,6 +10053,11 @@ widest-line@^3.1.0:
dependencies:
string-width "^4.0.0"
wildcard@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.0.tgz#a77d20e5200c6faaac979e4b3aadc7b3dd7f8fec"
integrity sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==
with-open-file@^0.1.6:
version "0.1.7"
resolved "https://registry.yarnpkg.com/with-open-file/-/with-open-file-0.1.7.tgz#e2de8d974e8a8ae6e58886be4fe8e7465b58a729"