chore(deps) Update Tauri JS CLI (#1063)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
renovate[bot]
2020-12-04 22:59:56 -03:00
committed by GitHub
parent 26c497979f
commit 8388553670
6 changed files with 918 additions and 1656 deletions

View File

@@ -1,4 +1,5 @@
declare global {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Window {
__TAURI_INVOKE_HANDLER__: (command: string) => void
}

View File

@@ -71,66 +71,66 @@
"ms": "2.1.2",
"png2icons": "2.0.1",
"read-chunk": "3.2.0",
"semver": "7.3.2",
"sharp": "0.26.2",
"webpack-merge": "5.2.0",
"semver": "7.3.4",
"sharp": "0.26.3",
"webpack-merge": "5.4.0",
"webpack-shell-plugin": "0.5.0"
},
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/preset-env": "7.12.1",
"@babel/preset-typescript": "7.12.1",
"@rollup/plugin-babel": "5.2.1",
"@babel/core": "7.12.9",
"@babel/preset-env": "7.12.7",
"@babel/preset-typescript": "7.12.7",
"@rollup/plugin-babel": "5.2.2",
"@rollup/plugin-commonjs": "15.1.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "9.0.0",
"@rollup/plugin-sucrase": "3.1.0",
"@rollup/plugin-typescript": "6.0.0",
"@rollup/plugin-typescript": "6.1.0",
"@types/cross-spawn": "6.0.2",
"@types/fs-extra": "9.0.2",
"@types/fs-extra": "9.0.4",
"@types/http-proxy": "1.17.4",
"@types/imagemin": "7.0.0",
"@types/imagemin-optipng": "5.2.0",
"@types/inquirer": "7.3.1",
"@types/jsdom": "16.2.4",
"@types/lodash": "4.14.162",
"@types/jsdom": "16.2.5",
"@types/lodash": "4.14.165",
"@types/ms": "0.7.31",
"@types/semver": "7.3.4",
"@types/sharp": "0.26.0",
"@typescript-eslint/eslint-plugin": "4.4.1",
"@typescript-eslint/parser": "4.4.1",
"babel-jest": "26.5.2",
"copy-webpack-plugin": "6.2.1",
"@types/sharp": "0.26.1",
"@typescript-eslint/eslint-plugin": "4.9.0",
"@typescript-eslint/parser": "4.9.0",
"babel-jest": "26.6.3",
"copy-webpack-plugin": "6.3.2",
"dotenv": "8.2.0",
"eslint": "7.11.0",
"eslint-config-prettier": "6.13.0",
"eslint": "7.14.0",
"eslint-config-prettier": "6.15.0",
"eslint-config-standard-with-typescript": "19.0.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-lodash-template": "0.19.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-standard": "4.0.1",
"eslint-plugin-standard": "4.1.0",
"husky": "4.3.0",
"is-running": "2.1.0",
"jest": "26.5.3",
"jest": "26.6.3",
"jest-mock-process": "1.4.0",
"lint-staged": "10.4.2",
"lint-staged": "10.5.3",
"lockfile-lint": "4.3.7",
"prettier": "2.1.2",
"prettier": "2.2.1",
"promise": "8.1.0",
"raw-loader": "4.0.2",
"rimraf": "3.0.2",
"rollup": "2.32.0",
"rollup": "2.34.1",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.28.0",
"rollup-plugin-typescript2": "0.29.0",
"toml-loader": "1.0.0",
"ts-loader": "8.0.5",
"ts-loader": "8.0.11",
"tslib": "2.0.3",
"typescript": "4.0.3",
"typescript": "4.1.2",
"typescript-json-validator": "2.4.2",
"webpack": "5.1.3",
"webpack-cli": "4.0.0",
"webpack": "5.10.0",
"webpack-cli": "4.2.0",
"webpack-node-externals": "2.5.2"
},
"resolutions": {

View File

@@ -110,14 +110,12 @@ const hexToRgb = (
// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i
hex = hex.replace(shorthandRegex, function (
m: string,
r: string,
g: string,
b: string
) {
return r + r + g + g + b + b
})
hex = hex.replace(
shorthandRegex,
function (m: string, r: string, g: string, b: string) {
return r + r + g + g + b + b
}
)
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)
return result

View File

@@ -526,9 +526,9 @@ export const TauriConfigSchema = {
}
export type ValidateFunction<T> = ((data: unknown) => data is T) &
Pick<Ajv.ValidateFunction, 'errors'>
export const isTauriConfig = ajv.compile(TauriConfigSchema) as ValidateFunction<
TauriConfig
>
export const isTauriConfig = ajv.compile(
TauriConfigSchema
) as ValidateFunction<TauriConfig>
export default function validate(value: unknown): TauriConfig {
if (isTauriConfig(value)) {
return value

View File

@@ -1,5 +1,5 @@
declare module '@tauri-apps/tauri-inliner'
declare module 'imagemin-zopfli'
// eslint-disable-next-line @typescript-eslint/naming-convention
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars
declare const __non_webpack_require__: Function

File diff suppressed because it is too large Load Diff