Skip to content

TagSpaces is an offline, open source, document manager with tagging support

upgrading to electron 7

Ilian Sapundshiev2594677efe00
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index edb056e2a..17a5dd062 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -234,36 +234,46 @@ class EntryContainer extends React.Component<Props, State> {
componentDidMount() {
window.addEventListener('toggle-resume', () => {
- // console.log('Play pause');
- if (AppConfig.isElectron && this.fileViewer) {
- // this.fileViewer.dispatchEvent(audioEvent);
- this.fileViewer.executeJavaScript(
- 'window.dispatchEvent(new Event("resume"));'
- );
- } else if (this.fileViewer) {
+ // if (AppConfig.isElectron && this.fileViewer) {
+ // this.fileViewer.executeJavaScript(
+ // 'window.dispatchEvent(new Event("resume"));'
+ // );
+ // } else
+ if (this.fileViewer) {
this.fileViewer.dispatchEvent(new Event('resume'));
}
});
- if (AppConfig.isElectron) {
- if (this.fileViewer) {
- this.fileViewer.addEventListener(
- 'console-message',
- this.logEventsFromExtensions
- );
- this.fileViewer.addEventListener(
- 'ipc-message',
- this.handleMessageProxy
- );
- }
- } else {
- window.addEventListener(
- 'message',
- e => {
- this.handleMessage(e);
- },
- false
- );
- }
+ // if (AppConfig.isElectron) {
+ // if (this.fileViewer) {
+ // this.fileViewer.addEventListener(
+ // 'console-message',
+ // this.logEventsFromExtensions
+ // );
+ // this.fileViewer.addEventListener(
+ // 'ipc-message',
+ // this.handleMessageProxy
+ // );
+ // }
+ // } else {
+
+ // if (this.fileViewer) {
+ // this.fileViewer.contentWindow.onbeforeunload = () => {
+ // console.log('Unloading');
+ // };
+ // }
+
+ window.addEventListener(
+ 'message',
+ e => {
+ if (typeof e.data === 'string') {
+ // console.log(e.data);
+ const dataObj = JSON.parse(e.data);
+ this.handleMessage(dataObj);
+ }
+ },
+ false
+ );
+ // }
}
componentWillReceiveProps(nextProps: Props) {
@@ -312,76 +322,43 @@ class EntryContainer extends React.Component<Props, State> {
}
}
- /* componentDidUpdate(prevProps, prevState) {
- if (!this.state.currentEntry || !this.state.currentEntry.path) {
- return;
- }
- if (prevState.currentEntry == null || this.state.currentEntry.path !== prevState.currentEntry.path) {
- if (AppConfig.isElectron) {
- if (this.fileViewer) {
- // this.fileViewer.addEventListener('console-message', e => {
- // console.log('Ext. Logging >>> ', e.message);
- // });
-
- window.addEventListener('toggle-resume', e => {
- const audioEvent = new CustomEvent('resume', { detail: e.detail });
- this.fileViewer.dispatchEvent(audioEvent);
- });
-
- this.fileViewer.addEventListener('ipc-message', event => {
- this.handleMessage(JSON.stringify(event.channel));
- });
- }
- } else {
- window.addEventListener(
- 'message',
- this.handleMessage,
- false
- );
- }
- }
- } */
-
componentWillUnmount() {
- if (AppConfig.isElectron) {
- if (this.fileViewer && this.fileViewer.removeEventListener) {
- this.fileViewer.removeEventListener(
- 'console-message',
- this.logEventsFromExtensions
- );
- this.fileViewer.removeEventListener(
- 'ipc-message',
- this.handleMessageProxy
- );
- }
- } else {
- window.removeEventListener('message', this.handleMessage);
- }
+ // if (AppConfig.isElectron) {
+ // if (this.fileViewer && this.fileViewer.removeEventListener) {
+ // this.fileViewer.removeEventListener(
+ // 'console-message',
+ // this.logEventsFromExtensions
+ // );
+ // this.fileViewer.removeEventListener(
+ // 'ipc-message',
+ // this.handleMessageProxy
+ // );
+ // }
+ // } else {
+ window.removeEventListener('message', this.handleMessage);
+ // }
}
fileViewer;
+
fileViewerContainer;
+
isPropertiesEditMode = false;
- logEventsFromExtensions = event => {
- console.log('Ext. Logging >>> ', event.message);
- };
+ // logEventsFromExtensions = event => {
+ // console.log('Ext. Logging >>> ', event.message);
+ // };
- handleMessageProxy = event => {
- this.handleMessage(JSON.stringify(event.channel));
- };
+ // handleMessageProxy = event => {
+ // this.handleMessage(JSON.stringify(event.channel));
+ // };
- handleMessage = (msg: any) => {
- let data;
+ handleMessage = (data: any) => {
let message;
let textFilePath;
let nextFilePath;
let nextFile;
- if (msg.data) {
- data = JSON.parse(msg.data);
- } else {
- data = JSON.parse(msg); // electron case
- }
+
switch (data.command) {
case 'showAlertDialog':
message = data.title ? data.title : '';
@@ -434,18 +411,19 @@ class EntryContainer extends React.Component<Props, State> {
'/' +
fileDirectory;
}
- if (AppConfig.isElectron && this.fileViewer) {
- this.fileViewer.executeJavaScript(
- 'setContent(' +
- JSON.stringify(content) +
- ',' +
- JSON.stringify(fileDirectory) +
- ',' +
- !this.state.currentEntry.editMode +
- ')',
- false
- );
- } else {
+ // if (AppConfig.isElectron && this.fileViewer) {
+ // this.fileViewer.executeJavaScript(
+ // 'setContent(' +
+ // JSON.stringify(content) +
+ // ',' +
+ // JSON.stringify(fileDirectory) +
+ // ',' +
+ // !this.state.currentEntry.editMode +
+ // ')',
+ // false
+ // );
+ // } else
+ if (this.fileViewer) {
this.fileViewer.contentWindow.setContent(
content,
fileDirectory,
@@ -469,7 +447,9 @@ class EntryContainer extends React.Component<Props, State> {
}
break;
default:
- console.log('Not recognized messaging command: ' + msg);
+ console.log(
+ 'Not recognized messaging command: ' + JSON.stringify(data)
+ );
break;
}
};
@@ -524,28 +504,21 @@ class EntryContainer extends React.Component<Props, State> {
},
this.props.closeAllFiles
);
- /* if (AppConfig.isElectron) {
- if (this.fileViewer) {
- this.fileViewer.removeEventListener('console-message');
- this.fileViewer.removeEventListener('ipc-message');
- }
- } else {
- window.removeEventListener('message', this.handleMessage);
- } */
};
startSavingFile = () => {
- if (AppConfig.isElectron) {
- if (this.fileViewer) {
- this.fileViewer.executeJavaScript(
- 'getContent()',
- false,
- textContent => {
- this.saveFile(textContent);
- }
- );
- }
- } else {
+ // if (AppConfig.isElectron) {
+ // if (this.fileViewer) {
+ // this.fileViewer.executeJavaScript(
+ // 'getContent()',
+ // false,
+ // textContent => {
+ // this.saveFile(textContent);
+ // }
+ // );
+ // }
+ // } else
+ if (this.fileViewer) {
const textContent = this.fileViewer.contentWindow.getContent();
this.saveFile(textContent);
}
@@ -878,20 +851,20 @@ class EntryContainer extends React.Component<Props, State> {
);
renderFileView = fileOpenerURL => {
- if (AppConfig.isElectron) {
- return (
- <webview
- id="webViewer"
- ref={fileViewer => {
- this.fileViewer = fileViewer;
- }}
- className={this.props.classes.fileOpener}
- src={fileOpenerURL}
- allowFullScreen
- preload="./node_modules/@tagspaces/legacy-ext/webview-preload.js"
- />
- );
- }
+ // if (AppConfig.isElectron) {
+ // return (
+ // <webview
+ // id="webViewer"
+ // ref={fileViewer => {
+ // this.fileViewer = fileViewer;
+ // }}
+ // className={this.props.classes.fileOpener}
+ // src={fileOpenerURL}
+ // allowFullScreen
+ // preload="./node_modules/@tagspaces/legacy-ext/webview-preload.js"
+ // />
+ // );
+ // }
return (
<iframe
ref={fileViewer => {
diff --git a/app/main.dev.ts b/app/main.dev.ts
index 40e85b065..29dac28ec 100644
--- a/app/main.dev.ts
+++ b/app/main.dev.ts
@@ -199,13 +199,15 @@ app.on('ready', async () => {
message: 'This process has crashed.',
buttons: ['Reload', 'Close']
};
- dialog.showMessageBox(mainWindow, options, index => {
- if (!mainWindow) {
- globalShortcut.unregisterAll();
- return;
- }
+
+ if (!mainWindow) {
+ globalShortcut.unregisterAll();
+ return;
+ }
+
+ dialog.showMessageBox(mainWindow, options).then(dialogResponse => {
mainWindow.hide();
- if (index === 0) {
+ if (dialogResponse.response === 0) {
reloadApp();
} else {
mainWindow.close();
diff --git a/package.json b/package.json
index 9f772fa0b..1ba4d42eb 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"lint-fix": "yarn --silent lint --fix; exit 0",
"lint-styles": "stylelint --ignore-path .eslintignore '**/*.*(css|scss)' --syntax scss",
"lint-styles-fix": "yarn --silent lint-styles --fix; exit 0",
- "postinstall": "electron-builder install-app-deps package.json && yarn build-dll && opencollective-postinstall",
+ "postinstall": "yarn build-dll && opencollective-postinstall",
"postlint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'",
"postlint-styles-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{css,scss}'",
"precommit": "lint-staged",
@@ -163,12 +163,12 @@
"css-loader": "^2.1.0",
"detect-port": "^1.3.0",
"devtron": "^1.4.0",
- "electron": "5.0.11",
- "electron-builder": "^21.2.0",
+ "electron": "7.1.8",
+ "electron-builder": "^22.2.0",
"electron-devtools-installer": "^2.2.4",
"enzyme": "^2.8.2",
"enzyme-to-json": "^1.5.1",
- "eslint": "^5.12.0",
+ "eslint": "^6.8.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-formatter-pretty": "^2.0.0",
diff --git a/yarn.lock b/yarn.lock
index 9c0d95b9a..09bcc0e25 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2663,7 +2663,12 @@
dependencies:
"@babel/types" "^7.3.0"
-"@types/debug@^4.1.4":
+"@types/color-name@^1.1.1":
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
+ integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
+
+"@types/debug@^4.1.4", "@types/debug@^4.1.5":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd"
integrity sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==
@@ -3263,6 +3268,11 @@ ansi-regex@^4.0.0, ansi-regex@^4.1.0:
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
+ansi-regex@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
+ integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
+
ansi-styles@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de"
@@ -3280,6 +3290,14 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
dependencies:
color-convert "^1.9.0"
+ansi-styles@^4.0.0, ansi-styles@^4.1.0:
+ version "4.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359"
+ integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==
+ dependencies:
+ "@types/color-name" "^1.1.1"
+ color-convert "^2.0.1"
+
[email protected], ansi-wrap@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf"
@@ -3326,7 +3344,40 @@ [email protected]:
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-3.4.3.tgz#58a74193eb882f029be6b7f0cd3f0c6805927a6b"
integrity sha512-qMhayIwi3juerQEVJMQ76trObEbfQT0nhUdxZz9a26/3NLT3pE6awmQ8S1cEnrGugaaM5gYqR8OElcDezfmEsg==
[email protected], app-builder-lib@~21.2.0:
+ version "3.5.1"
+ resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-3.5.1.tgz#68dcbe4eb8b7d80be22945ba7f7b72c812ea1eb4"
+ integrity sha512-71FeTdKU+L4/afnKYeCS9S9g6wa2AyiMLxGtYms6sPnnzUEd81wBhfvRb8/O/f4tLrU1MDbkjA8aGGiK9/ZT6A==
+
+ version "22.2.0"
+ resolved "https://registry.yarnpkg.com/app-builder-lib/-/app-builder-lib-22.2.0.tgz#2a5b657088f66f58785a01d6eb599e6c43dd5829"
+ integrity sha512-0npUnokV4+mkUV14x/W8wjRaG6AZzsTcr9m4t0BARmgBwwhhU10Rd41RM+P55FvJtaDPMq8LYtvddcQraVPZTA==
+ dependencies:
+ "7zip-bin" "~5.0.3"
+ "@develar/schema-utils" "~2.1.0"
+ async-exit-hook "^2.0.1"
+ bluebird-lst "^1.0.9"
+ builder-util "22.2.0"
+ builder-util-runtime "8.5.0"
+ chromium-pickle-js "^0.2.0"
+ debug "^4.1.1"
+ ejs "^3.0.1"
+ electron-publish "22.2.0"
+ fs-extra "^8.1.0"
+ hosted-git-info "^3.0.2"
+ is-ci "^2.0.0"
+ isbinaryfile "^4.0.2"
+ js-yaml "^3.13.1"
+ lazy-val "^1.0.4"
+ minimatch "^3.0.4"
+ normalize-package-data "^2.5.0"
+ read-config-file "5.0.1"
+ sanitize-filename "^1.6.3"
+ semver "^6.3.0"
+ temp-file "^3.3.6"
+
+app-builder-lib@~21.2.0:
version "21.2.0"
resolved "https://registry.yarnpkg.com/app-builder-lib/-/app-builder-lib-21.2.0.tgz#fa1d1604601431e2c3476857e9b9b61d33ad26cc"
integrity sha512-aOX/nv77/Bti6NymJDg7p9T067xD8m1ipIEJR7B4Mm1GsJWpMm9PZdXtCRiMNRjHtQS5KIljT0g17781y6qn5A==
@@ -4376,6 +4427,14 @@ [email protected]:
debug "^4.1.1"
sax "^1.2.4"
+ version "8.5.0"
+ resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-8.5.0.tgz#0c9faa782307867cc2ec70f25e63829ef1ea49c4"
+ integrity sha512-ft0npBXQc5gp1AVkY/WkUXDLKWweux/R1L+YQHjtspSp9nRHqoBP6qBTxb8ca6CtBKe+yZbZYGvCw1l0ZBkx/w==
+ dependencies:
+ debug "^4.1.1"
+ sax "^1.2.4"
+
[email protected], builder-util@~21.2.0:
version "21.2.0"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-21.2.0.tgz#aba721190e4e841009d9fb4b88f1130ed616522f"
@@ -4395,6 +4454,25 @@ [email protected], builder-util@~21.2.0:
stat-mode "^0.3.0"
temp-file "^3.3.4"
[email protected], builder-util@~22.2.0:
+ version "22.2.0"
+ resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-22.2.0.tgz#f9ac6a64d4fc3da16816a02e6f48f29fe8b0bb3d"
+ integrity sha512-kkhDjcFuY6qGHmRhOfmYnk+raxsPauddUu7Z+TUOqMOyBVFX8ODnDjIFWQ7yDz5+KNtS9MTObJl9MTAKSRPAVQ==
+ dependencies:
+ "7zip-bin" "~5.0.3"
+ "@types/debug" "^4.1.5"
+ app-builder-bin "3.5.1"
+ bluebird-lst "^1.0.9"
+ builder-util-runtime "8.5.0"
+ chalk "^3.0.0"
+ debug "^4.1.1"
+ fs-extra "^8.1.0"
+ is-ci "^2.0.0"
+ js-yaml "^3.13.1"
+ source-map-support "^0.5.16"
+ stat-mode "^1.0.0"
+ temp-file "^3.3.6"
+
builtin-modules@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -4679,6 +4757,14 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
+chalk@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
+ integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==
+ dependencies:
+ ansi-styles "^4.1.0"
+ supports-color "^7.1.0"
+
chalk@~0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174"
@@ -4919,6 +5005,15 @@ cliui@^5.0.0:
strip-ansi "^5.2.0"
wrap-ansi "^5.1.0"
+cliui@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
+ integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==
+ dependencies:
+ string-width "^4.2.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"
@@ -5005,12 +5100,19 @@ color-convert@^1.9.0, color-convert@^1.9.1:
dependencies:
color-name "1.1.3"
+color-convert@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
+ dependencies:
+ color-name "~1.1.4"
+
version "1.1.3"
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
-color-name@^1.0.0:
+color-name@^1.0.0, color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
@@ -6316,7 +6418,7 @@ dotenv@^5.0.1:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef"
integrity sha512-4As8uPrjfwb7VXC+WnLCbXK7y+Ueb2B3zgNCePYfhxS1PYeaO1YTeplffTEcbfLhvFNGLAz90VvJs9yomG7bow==
-dotenv@^8.0.0:
+dotenv@^8.0.0, dotenv@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
@@ -6369,29 +6471,34 @@ ejs@^2.6.1, ejs@^2.6.2:
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.6.2.tgz#3a32c63d1cd16d11266cd4703b14fec4e74ab4f6"
integrity sha512-PcW2a0tyTuPHz3tWyYqtK6r1fZ3gp+3Sop8Ph+ZYN81Ob5rwmbHEzaqs10N3BEsaGTkh/ooniXK+WwszGlc2+Q==
+ejs@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.0.1.tgz#30c8f6ee9948502cc32e85c37a3f8b39b5a614a5"
+ integrity sha512-cuIMtJwxvzumSAkqaaoGY/L6Fc/t6YvoP9/VIaK0V/CyqKLEQ8sqODmYfy/cjXEdZ9+OOL8TecbJu+1RsofGDw==
+
ejs@~2.5.6:
version "2.5.9"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.5.9.tgz#7ba254582a560d267437109a68354112475b0ce5"
integrity sha512-GJCAeDBKfREgkBtgrYSf9hQy9kTb3helv0zGdzqhM7iAkW8FA/ZF97VQDbwFiwIT8MQLLOe5VlPZOEvZAqtUAQ==
-electron-builder@^21.2.0:
- version "21.2.0"
- resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-21.2.0.tgz#b68ec4def713fc0b8602654ce842f972432f50c5"
- integrity sha512-x8EXrqFbAb2L3N22YlGar3dGh8vwptbB3ovo3OF6K7NTpcsmM2zEoJv7GhFyX73rNzSG2HaWpXwGAtOp2JWiEw==
+electron-builder@^22.2.0:
+ version "22.2.0"
+ resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-22.2.0.tgz#f7244b4c92bb5c7323db88f3fb9a22e0ca6cf8a0"
+ integrity sha512-VYplQwIJOwTLMWfh8nUKL0TdDdOpx1mma9dNbTShy1guySljffZvvD2T/EinBvX1s976Ymqzcq+b+uAUA5SfoA==
dependencies:
- app-builder-lib "21.2.0"
+ app-builder-lib "22.2.0"
bluebird-lst "^1.0.9"
- builder-util "21.2.0"
- builder-util-runtime "8.3.0"
- chalk "^2.4.2"
+ builder-util "22.2.0"
+ builder-util-runtime "8.5.0"
+ chalk "^3.0.0"
dmg-builder "21.2.0"
fs-extra "^8.1.0"
is-ci "^2.0.0"
lazy-val "^1.0.4"
- read-config-file "5.0.0"
- sanitize-filename "^1.6.2"
+ read-config-file "5.0.1"
+ sanitize-filename "^1.6.3"
update-notifier "^3.0.1"
- yargs "^13.3.0"
+ yargs "^15.0.2"
electron-chromedriver@^5.0.1:
version "5.0.1"
@@ -6467,6 +6574,19 @@ [email protected]:
lazy-val "^1.0.4"
mime "^2.4.4"
+ version "22.2.0"
+ resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-22.2.0.tgz#f391461c70a2c2d1f56babaf6372d09d9e0e6afc"
+ integrity sha512-B5LTO3zVTPyDfA5ayyBCIrCQ0hBdJ+o7dNOghFYH9/v4s0NDF0cvM1w6EpjRsw/eATeo4c0I1GUObEwTS/ztYw==
+ dependencies:
+ bluebird-lst "^1.0.9"
+ builder-util "~22.2.0"
+ builder-util-runtime "8.5.0"
+ chalk "^3.0.0"
+ fs-extra "^8.1.0"
+ lazy-val "^1.0.4"
+ mime "^2.4.4"
+
electron-to-chromium@^1.3.191:
version "1.3.232"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.232.tgz#3d812f5082b26b852bd4e98818cd86f10b6ff128"
@@ -7525,7 +7645,7 @@ find-up@^3.0.0:
dependencies:
locate-path "^3.0.0"
-find-up@^4.0.0:
+find-up@^4.0.0, find-up@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
@@ -8312,6 +8432,11 @@ has-flag@^3.0.0:
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0=
+has-flag@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
+ integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
+
has-symbols@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44"
@@ -8473,6 +8598,13 @@ hosted-git-info@^2.1.4, hosted-git-info@^2.4.2, hosted-git-info@^2.6.0, hosted-g
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546"
integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==
+hosted-git-info@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.2.tgz#8b7e3bd114b59b51786f8bade0f39ddc80275a97"
+ integrity sha512-ezZMWtHXm7Eb7Rq4Mwnx2vs79WUx2QmRg3+ZqeGroKzfDO+EprOcgRPYghsOP9JuYBfK18VojmRTGCg8Ma+ktw==
+ dependencies:
+ lru-cache "^5.1.1"
+
hosted-git-info@~2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"
@@ -10150,6 +10282,13 @@ json5@^2.1.0:
dependencies:
minimist "^1.2.0"
+json5@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz#81b6cb04e9ba496f1c7005d07b4368a2638f90b6"
+ integrity sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==
+ dependencies:
+ minimist "^1.2.0"
+
jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -14279,6 +14418,18 @@ [email protected]:
json5 "^2.1.0"
lazy-val "^1.0.4"
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/read-config-file/-/read-config-file-5.0.1.tgz#ead3df0d9822cc96006ca16322eaa79dac8591c2"
+ integrity sha512-75zp4PDbvtBlECoZK1KEkNlesr9OWdMWL8oi4xq+HXAM+kKHKU+Cx2ksFt+ie2BkrmkLBOKSfONDuz+WIKWoXA==
+ dependencies:
+ dotenv "^8.2.0"
+ dotenv-expand "^5.1.0"
+ fs-extra "^8.1.0"
+ js-yaml "^3.13.1"
+ json5 "^2.1.1"
+ lazy-val "^1.0.4"
+
read-installed@~4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/read-installed/-/read-installed-4.0.3.tgz#ff9b8b67f187d1e4c29b9feb31f6b223acd19067"
@@ -15108,7 +15259,7 @@ sane@^4.0.3:
minimist "^1.1.1"
walker "~1.0.5"
-sanitize-filename@^1.6.2:
+sanitize-filename@^1.6.2, sanitize-filename@^1.6.3:
version "1.6.3"
resolved "https://registry.yarnpkg.com/sanitize-filename/-/sanitize-filename-1.6.3.tgz#755ebd752045931977e30b2025d340d7c9090378"
integrity sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==
@@ -15848,6 +15999,11 @@ stat-mode@^0.3.0:
resolved "https://registry.yarnpkg.com/stat-mode/-/stat-mode-0.3.0.tgz#69283b081f851582b328d2a4ace5f591ce52f54b"
integrity sha512-QjMLR0A3WwFY2aZdV0okfFEJB5TRjkggXZjxP3A1RsWsNHNu3YPv8btmtc6iCFZ0Rul3FE93OYogvhOUClU+ng==
+stat-mode@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/stat-mode/-/stat-mode-1.0.0.tgz#68b55cb61ea639ff57136f36b216a291800d1465"
+ integrity sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==
+
state-toggle@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.2.tgz#75e93a61944116b4959d665c8db2d243631d6ddc"
@@ -15971,6 +16127,15 @@ string-width@^4.1.0:
is-fullwidth-code-point "^3.0.0"
strip-ansi "^5.2.0"
+string-width@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
+ integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.0"
+
string.prototype.trimleft@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74"
@@ -16058,6 +16223,13 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
dependencies:
ansi-regex "^4.1.0"
+strip-ansi@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532"
+ integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==
+ dependencies:
+ ansi-regex "^5.0.0"
+
strip-bom@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
@@ -16250,6 +16422,13 @@ supports-color@^5.0.0, supports-color@^5.3.0:
dependencies:
has-flag "^3.0.0"
+supports-color@^7.1.0:
+ version "7.1.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1"
+ integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==
+ dependencies:
+ has-flag "^4.0.0"
+
supports-color@~5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.0.1.tgz#1c5331f22250c84202805b2f17adf16699f3a39a"
@@ -16382,6 +16561,14 @@ temp-file@^3.3.4:
async-exit-hook "^2.0.1"
fs-extra "^8.1.0"
+temp-file@^3.3.6:
+ version "3.3.6"
+ resolved "https://registry.yarnpkg.com/temp-file/-/temp-file-3.3.6.tgz#bd7a1951338bf93b59380b498ec1804d5b76c449"
+ integrity sha512-7TPldi8QJqRlPIF/Y33mVvo8+xDfi6+aVTCK4CrCaLqCoaOnVtf3SA4hCU0T5nhYDdOC7erw7o2uWfvijlk4Ug==
+ dependencies:
+ async-exit-hook "^2.0.1"
+ fs-extra "^8.1.0"
+
temp-write@^3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-3.4.0.tgz#8cff630fb7e9da05f047c74ce4ce4d685457d492"
@@ -17706,6 +17893,15 @@ wrap-ansi@^5.1.0:
string-width "^3.0.0"
strip-ansi "^5.0.0"
+wrap-ansi@^6.2.0:
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53"
+ integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==
+ dependencies:
+ ansi-styles "^4.0.0"
+ string-width "^4.1.0"
+ strip-ansi "^6.0.0"
+
wrappy@1, wrappy@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
@@ -17884,6 +18080,14 @@ yargs-parser@^13.1.0, yargs-parser@^13.1.1:
camelcase "^5.0.0"
decamelize "^1.2.0"
+yargs-parser@^16.1.0:
+ version "16.1.0"
+ resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-16.1.0.tgz#73747d53ae187e7b8dbe333f95714c76ea00ecf1"
+ integrity sha512-H/V41UNZQPkUMIT5h5hiwg4QKIY1RPvoBV4XcjUbRM8Bk2oKqqyZ0DIEbTFZB0XjbtSPG8SAa/0DxCQmiRgzKg==
+ dependencies:
+ camelcase "^5.0.0"
+ decamelize "^1.2.0"
+
yargs-parser@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a"
@@ -17967,6 +18171,23 @@ yargs@^13.3.0:
y18n "^4.0.0"
yargs-parser "^13.1.1"
+yargs@^15.0.2:
+ version "15.1.0"
+ resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.1.0.tgz#e111381f5830e863a89550bd4b136bb6a5f37219"
+ integrity sha512-T39FNN1b6hCW4SOIk1XyTOWxtXdcen0t+XYrysQmChzSipvhBO8Bj0nK1ozAasdk24dNWuMZvr4k24nz+8HHLg==
+ dependencies:
+ cliui "^6.0.0"
+ decamelize "^1.2.0"
+ find-up "^4.1.0"
+ get-caller-file "^2.0.1"
+ require-directory "^2.1.1"
+ require-main-filename "^2.0.0"
+ set-blocking "^2.0.0"
+ string-width "^4.2.0"
+ which-module "^2.0.0"
+ y18n "^4.0.0"
+ yargs-parser "^16.1.0"
+
yargs@^7.0.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8"