TagSpaces is an offline, open source, document manager with tagging support
fix indexer
sytolkf1ed0424421f
diff --git a/.erb/configs/webpack.config.base.ts b/.erb/configs/webpack.config.base.tsindex f016fe473..f1db4e3c3 100644--- a/.erb/configs/webpack.config.base.ts+++ b/.erb/configs/webpack.config.base.ts@@ -18,9 +18,10 @@ const configuration: webpack.Configuration = {// packages that is not included in the bundleexternals: [...Object.keys(externals || {}),- /*{+ {fsevents: "require('fsevents')",},+ /*{fswin: "require('fswin')",},*/diff --git a/package-lock.json b/package-lock.jsonindex 00098c3c2..60158783a 100644--- a/package-lock.json+++ b/package-lock.json@@ -19,9 +19,9 @@"@mui/lab": "^5.0.0-alpha.148","@mui/material": "^5.14.13","@mui/x-date-pickers": "^5.0.20",- "@tagspaces/tagspaces-common": "4.0.0",- "@tagspaces/tagspaces-md": "4.0.0",- "@tagspaces/tagspaces-platforms": "4.0.0",+ "@tagspaces/tagspaces-common": "4.0.1",+ "@tagspaces/tagspaces-md": "4.0.1",+ "@tagspaces/tagspaces-platforms": "4.0.1","aws-amplify": "^4.3.8","aws-sdk": "^2.1036.0","classnames": "^2.3.1",@@ -88,7 +88,7 @@"@playwright/test": "1.38.1","@pmmmwh/react-refresh-webpack-plugin": "^0.5.11","@svgr/webpack": "^8.1.0",- "@tagspaces/dynamic-packages-loading": "^4.0.0",+ "@tagspaces/dynamic-packages-loading": "^4.0.1","@teamsupercell/typings-for-css-modules-loader": "^2.5.2","@testing-library/jest-dom": "^6.1.3","@testing-library/react": "^14.0.0",@@ -12419,9 +12419,9 @@}},"node_modules/@tagspaces/dynamic-packages-loading": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@tagspaces/dynamic-packages-loading/-/dynamic-packages-loading-4.0.0.tgz",- "integrity": "sha512-1MaJUWLBMuVfEB9zHb3QZUvXA17SOs7T1BZg2zbeGuHwglzIHhb0umuJYOwp1kA4GHF1bqOtxFf3GTqCPnBWBw==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@tagspaces/dynamic-packages-loading/-/dynamic-packages-loading-4.0.1.tgz",+ "integrity": "sha512-W+6uXcnXR/zG4TblSxl99K/91l1JlhaurvndtWeVG9nwyk66CHaTCQJD0RIX0VNvjUKmBF9oEuF6oC1q/0bReQ==","dev": true,"dependencies": {"yargs": "^17.5.1"@@ -12435,9 +12435,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.0.0.tgz",- "integrity": "sha512-0bQesG6ETGehDZbcXsOVaZq9C7H1R/6/rGUKJnnV0U7k5KzRb7+Q3riJ5igdyY1EttQ19ItCaeqxCRDzO3+zrQ==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.0.1.tgz",+ "integrity": "sha512-2AcRCGYj961+WaKa4n+Id+zrXA7KINiVnCcH5HsF4fZkVJWVkFg+uiXxyo2MuIIhhiZNjm8MzTdqk8H94YZ21w==","dependencies": {"dotenv": "^16.0.2","micromatch": "^4.0.5",@@ -12464,9 +12464,9 @@}},"node_modules/@tagspaces/tagspaces-md": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-4.0.0.tgz",- "integrity": "sha512-7ThI4GdOEqai1HkJoG4QnX6kF2FMHfhy5Js/co/jMLn2z26TlbJu1MlO7FcFfVSBv9m9E3ulU39AxXnHpKoseA==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-4.0.1.tgz",+ "integrity": "sha512-n3qX0IAJRAwUfmcayIubNKroHbSxuJUAh/W9m73B48Wi1M1HqZr2gwkyNRtWwPQXhy+ki54uvcDADIVR8oFc7Q==","dependencies": {"@milkdown/core": "7.2.4","@milkdown/ctx": "7.2.4",@@ -12502,9 +12502,9 @@}},"node_modules/@tagspaces/tagspaces-platforms": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.0.0.tgz",- "integrity": "sha512-yuhNyrQRBAxiUMbWSmklXLhI1qC8+xz/QPIfi8qUsBty7arA4irxv4cDsLkKk/fqSpMCUsBuIGZDzH8L6x3d3A==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.0.1.tgz",+ "integrity": "sha512-gOCw+RLMWC1o3JMdBk6weuI6nVk+Cl5Zh6CnXGJFX0oNbjq0Wtc8bARM1NGBfxJuUxVjTBgCJJ3J6qaQjLgQew==","hasInstallScript": true},"node_modules/@teamsupercell/typings-for-css-modules-loader": {diff --git a/package.json b/package.jsonindex fc51cfe73..d1dd65b91 100644--- a/package.json+++ b/package.json@@ -162,9 +162,9 @@"@mui/lab": "^5.0.0-alpha.148","@mui/material": "^5.14.13","@mui/x-date-pickers": "^5.0.20",- "@tagspaces/tagspaces-common": "4.0.0",- "@tagspaces/tagspaces-md": "4.0.0",- "@tagspaces/tagspaces-platforms": "4.0.0",+ "@tagspaces/tagspaces-common": "4.0.1",+ "@tagspaces/tagspaces-md": "4.0.1",+ "@tagspaces/tagspaces-platforms": "4.0.1","aws-amplify": "^4.3.8","aws-sdk": "^2.1036.0","classnames": "^2.3.1",@@ -289,7 +289,7 @@"webpack-dev-server": "^4.15.1","webpack-merge": "^5.9.0","@playwright/test": "1.38.1",- "@tagspaces/dynamic-packages-loading": "^4.0.0",+ "@tagspaces/dynamic-packages-loading": "^4.0.1","@types/leaflet": "^1.9.4","@types/react-redux": "^7.1.24","@types/react-router-dom": "^5.3.3",diff --git a/release/app/package.json b/release/app/package.jsonindex c34eda3a6..df4e6f861 100644--- a/release/app/package.json+++ b/release/app/package.json@@ -21,11 +21,11 @@"@tagspaces/extensions": "1.0.90"},"nodeDependencies": {- "@tagspaces/tagspaces-common-node": "4.0.0",- "@tagspaces/tagspaces-ws": "4.0.0",+ "@tagspaces/tagspaces-common-node": "4.0.1",+ "@tagspaces/tagspaces-ws": "4.0.1","@tagspaces/extensions": "1.0.90","sharp": "0.31.3",- "@elife/pm2": "^3.6.1",- "chokidar": "^3.5.2"+ "@elife/pm2": "3.6.1",+ "chokidar": "3.5.3"}}diff --git a/src/main/mainEvents.ts b/src/main/mainEvents.tsindex f6e985293..ab7e06308 100644--- a/src/main/mainEvents.ts+++ b/src/main/mainEvents.ts@@ -74,8 +74,13 @@ export default function loadMainEvents() {watcher = chokidar.watch(locationPath, options);});*/ipcMain.handle('postRequest', async (event, payload, endpoint) => {- const result = await postRequest(payload, endpoint);- return result;+ try {+ const result = await postRequest(payload, endpoint);+ return result;+ } catch (e) {+ console.error(e);+ return false;+ }});ipcMain.handle('listDirectoryPromise',diff --git a/src/renderer/services/platform-facade.ts b/src/renderer/services/platform-facade.tsindex e36b8e8ce..d5dcbd06a 100644--- a/src/renderer/services/platform-facade.ts+++ b/src/renderer/services/platform-facade.ts@@ -207,7 +207,7 @@ export default class PlatformFacade {return window.electronIO.ipcRenderer.invoke('postRequest',payload,- '/thumb-gen',+ '/indexer',);}return Promise.reject(diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.tsindex ce97b0cd1..094c0bc2a 100644--- a/src/renderer/services/utils-io.ts+++ b/src/renderer/services/utils-io.ts@@ -513,9 +513,13 @@ export function createDirectoryIndex(dirPath,extractText,ignorePatterns,- ).then((succeeded) => {- if (succeeded) {+ ).then((result) => {+ if (result && result.success) {return loadIndex({ path: dirPath, locationID });+ } else if (result && result.error) {+ console.error('createDirectoryIndexInWorker failed:' + result.error);+ } else {+ console.error('createDirectoryIndexInWorker failed: unknown error');}return undefined; // todo create index not in worker});