TagSpaces is an offline, open source, document manager with tagging support
platform-facade.ts refactoring (#2017)
Stanimir24e5a08a14f6
diff --git a/package-lock.json b/package-lock.jsonindex d062a4f82..fa522464c 100644--- a/package-lock.json+++ b/package-lock.json@@ -21,9 +21,9 @@"@mui/x-date-pickers": "^5.0.20","@tagspaces/tagspaces-common": "4.0.3","@tagspaces/tagspaces-common-aws": "4.0.6",+ "@tagspaces/tagspaces-common-cordova": "4.0.6","@tagspaces/tagspaces-indexer": "4.0.7","@tagspaces/tagspaces-md": "4.0.3",- "@tagspaces/tagspaces-platforms": "4.0.7","aws-amplify": "^4.3.8","aws-sdk": "^2.1036.0","classnames": "^2.3.1",@@ -12715,6 +12715,14 @@"node": ">=4.0"}},+ "node_modules/@tagspaces/tagspaces-common-cordova": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.0.6.tgz",+ "integrity": "sha512-B3De/m4CIZ+Y50H1n2aFcxH/Ors+Cuuj4q143SOzpeoQyuB3ENHq0IGQbjQGbRM8tNJjZdN70eVSRwqxpuCHOg==",+ "dependencies": {+ "@tagspaces/tagspaces-common": "^4.0.3"+ }+ },"node_modules/@tagspaces/tagspaces-common/node_modules/dotenv": {"version": "16.3.1","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",@@ -12780,12 +12788,6 @@"react-dom": "*"}},- "node_modules/@tagspaces/tagspaces-platforms": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.0.7.tgz",- "integrity": "sha512-SOc3oWbZzEsXBmFlLOjw2Kb0kr6XVSuiVMMuBAoW9l5qI8ZF6cUvHkcELmS1sX3D4hJS3/w7SO4GDLvOwg0yUQ==",- "hasInstallScript": true- },"node_modules/@teamsupercell/typings-for-css-modules-loader": {"version": "2.5.2","resolved": "https://registry.npmjs.org/@teamsupercell/typings-for-css-modules-loader/-/typings-for-css-modules-loader-2.5.2.tgz",diff --git a/package.json b/package.jsonindex e7de67fe6..e190fec74 100644--- a/package.json+++ b/package.json@@ -50,7 +50,7 @@"prebuild": "rimraf release/app/dist && npm run prepare-node && npm run generate-extensions","bump-version": "cd release/app && yarn version && cd .. && npm run version-meta","clean": "npx rimraf node_modules && npx rimraf src/renderer/dist",- "clean-maps": "rimraf release/app/dist/**/*.map && rimraf web/dist/*.map",+ "clean-maps": "rimraf --glob release/app/dist/**/*.map && rimraf --glob web/dist/*.map","clean-pro": "npm run clean-maps","cordova-add-android": "cd cordova && cordova platform add [email protected] && cd ..","cordova-add-ios": "cd cordova && cordova platform add ios && cd ..",@@ -65,12 +65,12 @@"generate-extensions": "node scripts/generateExtensionsConfig.js","install-ext-node-check": "npx cross-env PD_PLATFORM=node node scripts/checkWSinstalled.js","install-ext-web-check": "npx cross-env PD_PLATFORM=web node scripts/checkWSinstalled.js",- "install-ext-node": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p node && npm run generate-extensions",- "install-ext-node-linux": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p node --platform=linux --arch=x64 && npm run generate-extensions",- "install-ext-node-mac": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p node --platform=darwin --arch=x64 && npm run generate-extensions",- "install-ext-node-mac-arm64": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p node --platform=darwin --arch=arm64 && npm run generate-extensions",- "install-ext-node-win": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p node --platform=win32 --arch=x64 && npm run generate-extensions",- "install-ext-web": "rimraf release/app/node_modules && npx @tagspaces/dynamic-packages-loading ./release/app -p web && npm run generate-extensions",+ "install-ext-node": "rimraf release/app/node_modules && npm install --prefix ./release/app && npm run generate-extensions",+ "install-ext-node-linux": "rimraf release/app/node_modules && npm install --prefix ./release/app --platform=linux --arch=x64 && npm run generate-extensions",+ "install-ext-node-mac": "rimraf release/app/node_modules && npm install --prefix ./release/app --platform=darwin --arch=x64 && npm run generate-extensions",+ "install-ext-node-mac-arm64": "rimraf release/app/node_modules && npm install --prefix ./release/app --platform=darwin --arch=arm64 && npm run generate-extensions",+ "install-ext-node-win": "rimraf release/app/node_modules && npm install --prefix ./release/app --platform=win32 --arch=x64 && npm run generate-extensions",+ "install-ext-web": "rimraf release/app/node_modules && npm install --prefix ./release/app && npm run generate-extensions","lint-fix": "npm run --silent lint --fix; exit 0","postlint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'","lint-styles": "stylelint --ignore-path .eslintignore '**/*.*(css|scss)' --syntax scss",@@ -157,7 +157,7 @@"@mui/x-date-pickers": "^5.0.20","@tagspaces/tagspaces-common": "4.0.3","@tagspaces/tagspaces-common-aws": "4.0.6",- "@tagspaces/tagspaces-platforms": "4.0.7",+ "@tagspaces/tagspaces-common-cordova": "4.0.6","@tagspaces/tagspaces-indexer": "4.0.7","@tagspaces/tagspaces-md": "4.0.3","aws-amplify": "^4.3.8",diff --git a/release/app/package-lock.json b/release/app/package-lock.jsonindex a81cdc8d6..3b99206e8 100644--- a/release/app/package-lock.json+++ b/release/app/package-lock.json@@ -1,14 +1,1549 @@{"name": "tagspaces",- "version": "5.6.2",+ "version": "5.7.0","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "tagspaces",- "version": "5.6.2",+ "version": "5.7.0","hasInstallScript": true,- "license": "AGPL-3.0"+ "license": "AGPL-3.0",+ "dependencies": {+ "@elife/pm2": "3.6.1",+ "@tagspaces/extensions": "1.0.90",+ "@tagspaces/tagspaces-common-node": "4.0.6",+ "@tagspaces/tagspaces-ws": "4.0.7",+ "chokidar": "3.5.3",+ "sharp": "0.31.3"+ }+ },+ "node_modules/@elife/pm2": {+ "version": "3.6.1",+ "resolved": "https://registry.npmjs.org/@elife/pm2/-/pm2-3.6.1.tgz",+ "integrity": "sha512-JJed7e+0/o22FC4jY6xysH2t56DSbCH2lX6Wi8J2RREd0X6l6yflH8DR+jo48/i58Fi7oujndyRE+mjLkQ+YoA==",+ "dependencies": {+ "strip-ansi": "^6.0.0"+ }+ },+ "node_modules/@tagspaces/extensions": {+ "version": "1.0.90",+ "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.90.tgz",+ "integrity": "sha512-SALUmmijemOCcNrsU11FAb7baiHMyC71CM3bVEVokzpSPCy/82I5CJIQVPn0IkM+rR7wtSB9PvPfFMmDpzbgoQ==",+ "engines": {+ "npm": ">= 6.14.15",+ "yarn": "please-use-npm"+ }+ },+ "node_modules/@tagspaces/tagspaces-common": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.0.3.tgz",+ "integrity": "sha512-jI6ISiyOT3wVh6WN2kb2lADaBXO8HUw5mPGeYxYU59shDMiki4tOtQLhpXlOZUS40Z7WofbG1Qq1xRm/eGyVFw==",+ "dependencies": {+ "dotenv": "^16.0.2",+ "picomatch": "^3.0.1",+ "uuid": "^8.3.2"+ }+ },+ "node_modules/@tagspaces/tagspaces-common-node": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.0.6.tgz",+ "integrity": "sha512-RNUORFTSQmXR0jjUHRrqonegNGQS9WcOQYOdPU1DtPdky1TJm2AERDzT3H4r3KLdIiT1AiqBmigAHa3UtiPI4A==",+ "dependencies": {+ "@tagspaces/tagspaces-common": "^4.0.3",+ "fs-extra": "^10.0.0",+ "jszip": "^3.10.1",+ "jszip-utils": "^0.1.0",+ "klaw": "^4.1.0",+ "marked": "^3.0.8"+ }+ },+ "node_modules/@tagspaces/tagspaces-ws": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.0.7.tgz",+ "integrity": "sha512-N1k2wjI4/5JpLefNiwHVkrnfJ5uvrKiwVRKDcq2s/9aPyq9WrRLzZ2nhFJYZclCd7XO6+Sb1odOy1uYBFwHUHQ==",+ "peerDependencies": {+ "sharp": ">=0.29.3"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/anymatch/node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/binary-extensions": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "dependencies": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ }+ },+ "node_modules/bl/node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "dependencies": {+ "fill-range": "^7.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },+ "node_modules/chokidar": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",+ "funding": [+ {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ ],+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chownr": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="+ },+ "node_modules/color": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",+ "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",+ "dependencies": {+ "color-convert": "^2.0.1",+ "color-string": "^1.9.0"+ },+ "engines": {+ "node": ">=12.5.0"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="+ },+ "node_modules/color-string": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",+ "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",+ "dependencies": {+ "color-name": "^1.0.0",+ "simple-swizzle": "^0.2.2"+ }+ },+ "node_modules/core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="+ },+ "node_modules/decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "dependencies": {+ "mimic-response": "^3.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/deep-extend": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz",+ "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dotenv": {+ "version": "16.3.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",+ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/motdotla/dotenv?sponsor=1"+ }+ },+ "node_modules/end-of-stream": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/expand-template": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fs-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="+ },+ "node_modules/fs-extra": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "hasInstallScript": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/github-from-package": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="+ },+ "node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ },+ "node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="+ },+ "node_modules/is-arrayish": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",+ "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="+ },+ "node_modules/jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/jszip": {+ "version": "3.10.1",+ "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",+ "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",+ "dependencies": {+ "lie": "~3.3.0",+ "pako": "~1.0.2",+ "readable-stream": "~2.3.6",+ "setimmediate": "^1.0.5"+ }+ },+ "node_modules/jszip-utils": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/jszip-utils/-/jszip-utils-0.1.0.tgz",+ "integrity": "sha512-tBNe0o3HAf8vo0BrOYnLPnXNo5A3KsRMnkBFYjh20Y3GPYGfgyoclEMgvVchx0nnL+mherPi74yLPIusHUQpZg=="+ },+ "node_modules/klaw": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/klaw/-/klaw-4.1.0.tgz",+ "integrity": "sha512-1zGZ9MF9H22UnkpVeuaGKOjfA2t6WrfdrJmGjy16ykcjnKQDmHVX+KI477rpbGevz/5FD4MC3xf1oxylBgcaQw==",+ "engines": {+ "node": ">=14.14.0"+ }+ },+ "node_modules/lie": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",+ "dependencies": {+ "immediate": "~3.0.5"+ }+ },+ "node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/marked": {+ "version": "3.0.8",+ "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.8.tgz",+ "integrity": "sha512-0gVrAjo5m0VZSJb4rpL59K1unJAMb/hm8HRXqasD8VeC8m91ytDPMritgFSlKonfdt+rRYYpP/JfLxgIX8yoSw==",+ "bin": {+ "marked": "bin/marked"+ },+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/mkdirp-classic": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="+ },+ "node_modules/napi-build-utils": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",+ "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="+ },+ "node_modules/node-abi": {+ "version": "3.52.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.52.0.tgz",+ "integrity": "sha512-JJ98b02z16ILv7859irtXn4oUaFWADtvkzy2c0IAatNVX2Mc9Yoh8z6hZInn3QwvMEYhHuQloYi+TTQy67SIdQ==",+ "dependencies": {+ "semver": "^7.3.5"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/node-addon-api": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",+ "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA=="+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="+ },+ "node_modules/picomatch": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz",+ "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/prebuild-install": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",+ "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",+ "dependencies": {+ "detect-libc": "^2.0.0",+ "expand-template": "^2.0.3",+ "github-from-package": "0.0.0",+ "minimist": "^1.2.3",+ "mkdirp-classic": "^0.5.3",+ "napi-build-utils": "^1.0.1",+ "node-abi": "^3.3.0",+ "pump": "^3.0.0",+ "rc": "^1.2.7",+ "simple-get": "^4.0.0",+ "tar-fs": "^2.0.0",+ "tunnel-agent": "^0.6.0"+ },+ "bin": {+ "prebuild-install": "bin.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="+ },+ "node_modules/pump": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",+ "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/rc": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",+ "dependencies": {+ "deep-extend": "^0.6.0",+ "ini": "~1.3.0",+ "minimist": "^1.2.0",+ "strip-json-comments": "~2.0.1"+ },+ "bin": {+ "rc": "cli.js"+ }+ },+ "node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "dependencies": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/readdirp/node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ },+ "node_modules/semver": {+ "version": "7.5.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",+ "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/setimmediate": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",+ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="+ },+ "node_modules/sharp": {+ "version": "0.31.3",+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.31.3.tgz",+ "integrity": "sha512-XcR4+FCLBFKw1bdB+GEhnUNXNXvnt0tDo4WsBsraKymuo/IAuPuCBVAL2wIkUw2r/dwFW5Q5+g66Kwl2dgDFVg==",+ "hasInstallScript": true,+ "dependencies": {+ "color": "^4.2.3",+ "detect-libc": "^2.0.1",+ "node-addon-api": "^5.0.0",+ "prebuild-install": "^7.1.1",+ "semver": "^7.3.8",+ "simple-get": "^4.0.1",+ "tar-fs": "^2.1.1",+ "tunnel-agent": "^0.6.0"+ },+ "engines": {+ "node": ">=14.15.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/simple-get": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "dependencies": {+ "decompress-response": "^6.0.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"+ }+ },+ "node_modules/simple-swizzle": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",+ "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",+ "dependencies": {+ "is-arrayish": "^0.3.1"+ }+ },+ "node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/tar-fs": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",+ "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",+ "dependencies": {+ "chownr": "^1.1.1",+ "mkdirp-classic": "^0.5.2",+ "pump": "^3.0.0",+ "tar-stream": "^2.1.4"+ }+ },+ "node_modules/tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "dependencies": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tar-stream/node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/tunnel-agent": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",+ "dependencies": {+ "safe-buffer": "^5.0.1"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="+ },+ "node_modules/uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="+ }+ },+ "dependencies": {+ "@elife/pm2": {+ "version": "3.6.1",+ "resolved": "https://registry.npmjs.org/@elife/pm2/-/pm2-3.6.1.tgz",+ "integrity": "sha512-JJed7e+0/o22FC4jY6xysH2t56DSbCH2lX6Wi8J2RREd0X6l6yflH8DR+jo48/i58Fi7oujndyRE+mjLkQ+YoA==",+ "requires": {+ "strip-ansi": "^6.0.0"+ }+ },+ "@tagspaces/extensions": {+ "version": "1.0.90",+ "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.90.tgz",+ "integrity": "sha512-SALUmmijemOCcNrsU11FAb7baiHMyC71CM3bVEVokzpSPCy/82I5CJIQVPn0IkM+rR7wtSB9PvPfFMmDpzbgoQ=="+ },+ "@tagspaces/tagspaces-common": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.0.3.tgz",+ "integrity": "sha512-jI6ISiyOT3wVh6WN2kb2lADaBXO8HUw5mPGeYxYU59shDMiki4tOtQLhpXlOZUS40Z7WofbG1Qq1xRm/eGyVFw==",+ "requires": {+ "dotenv": "^16.0.2",+ "picomatch": "^3.0.1",+ "uuid": "^8.3.2"+ }+ },+ "@tagspaces/tagspaces-common-node": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.0.6.tgz",+ "integrity": "sha512-RNUORFTSQmXR0jjUHRrqonegNGQS9WcOQYOdPU1DtPdky1TJm2AERDzT3H4r3KLdIiT1AiqBmigAHa3UtiPI4A==",+ "requires": {+ "@tagspaces/tagspaces-common": "^4.0.3",+ "fs-extra": "^10.0.0",+ "jszip": "^3.10.1",+ "jszip-utils": "^0.1.0",+ "klaw": "^4.1.0",+ "marked": "^3.0.8"+ }+ },+ "@tagspaces/tagspaces-ws": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.0.7.tgz",+ "integrity": "sha512-N1k2wjI4/5JpLefNiwHVkrnfJ5uvrKiwVRKDcq2s/9aPyq9WrRLzZ2nhFJYZclCd7XO6+Sb1odOy1uYBFwHUHQ==",+ "requires": {}+ },+ "ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="+ },+ "anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "requires": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "dependencies": {+ "picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="+ }+ }+ },+ "base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="+ },+ "binary-extensions": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="+ },+ "bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "requires": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ },+ "dependencies": {+ "readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "requires": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ }+ }+ }+ },+ "braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "requires": {+ "fill-range": "^7.0.1"+ }+ },+ "buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "requires": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },+ "chokidar": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",+ "requires": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "fsevents": "~2.3.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ }+ },+ "chownr": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="+ },+ "color": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",+ "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",+ "requires": {+ "color-convert": "^2.0.1",+ "color-string": "^1.9.0"+ }+ },+ "color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "requires": {+ "color-name": "~1.1.4"+ }+ },+ "color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="+ },+ "color-string": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",+ "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",+ "requires": {+ "color-name": "^1.0.0",+ "simple-swizzle": "^0.2.2"+ }+ },+ "core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="+ },+ "decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "requires": {+ "mimic-response": "^3.1.0"+ }+ },+ "deep-extend": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="+ },+ "detect-libc": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz",+ "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw=="+ },+ "dotenv": {+ "version": "16.3.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",+ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ=="+ },+ "end-of-stream": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",+ "requires": {+ "once": "^1.4.0"+ }+ },+ "expand-template": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg=="+ },+ "fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "requires": {+ "to-regex-range": "^5.0.1"+ }+ },+ "fs-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="+ },+ "fs-extra": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "requires": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ }+ },+ "fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "optional": true+ },+ "github-from-package": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="+ },+ "glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "requires": {+ "is-glob": "^4.0.1"+ }+ },+ "graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="+ },+ "ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="+ },+ "immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="+ },+ "inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ },+ "ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="+ },+ "is-arrayish": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",+ "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="+ },+ "is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "requires": {+ "binary-extensions": "^2.0.0"+ }+ },+ "is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="+ },+ "is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "requires": {+ "is-extglob": "^2.1.1"+ }+ },+ "is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="+ },+ "isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="+ },+ "jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "requires": {+ "graceful-fs": "^4.1.6",+ "universalify": "^2.0.0"+ }+ },+ "jszip": {+ "version": "3.10.1",+ "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz",+ "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==",+ "requires": {+ "lie": "~3.3.0",+ "pako": "~1.0.2",+ "readable-stream": "~2.3.6",+ "setimmediate": "^1.0.5"+ }+ },+ "jszip-utils": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/jszip-utils/-/jszip-utils-0.1.0.tgz",+ "integrity": "sha512-tBNe0o3HAf8vo0BrOYnLPnXNo5A3KsRMnkBFYjh20Y3GPYGfgyoclEMgvVchx0nnL+mherPi74yLPIusHUQpZg=="+ },+ "klaw": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/klaw/-/klaw-4.1.0.tgz",+ "integrity": "sha512-1zGZ9MF9H22UnkpVeuaGKOjfA2t6WrfdrJmGjy16ykcjnKQDmHVX+KI477rpbGevz/5FD4MC3xf1oxylBgcaQw=="+ },+ "lie": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",+ "requires": {+ "immediate": "~3.0.5"+ }+ },+ "lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "requires": {+ "yallist": "^4.0.0"+ }+ },+ "marked": {+ "version": "3.0.8",+ "resolved": "https://registry.npmjs.org/marked/-/marked-3.0.8.tgz",+ "integrity": "sha512-0gVrAjo5m0VZSJb4rpL59K1unJAMb/hm8HRXqasD8VeC8m91ytDPMritgFSlKonfdt+rRYYpP/JfLxgIX8yoSw=="+ },+ "mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="+ },+ "minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="+ },+ "mkdirp-classic": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="+ },+ "napi-build-utils": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",+ "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="+ },+ "node-abi": {+ "version": "3.52.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.52.0.tgz",+ "integrity": "sha512-JJ98b02z16ILv7859irtXn4oUaFWADtvkzy2c0IAatNVX2Mc9Yoh8z6hZInn3QwvMEYhHuQloYi+TTQy67SIdQ==",+ "requires": {+ "semver": "^7.3.5"+ }+ },+ "node-addon-api": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",+ "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA=="+ },+ "normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="+ },+ "once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "requires": {+ "wrappy": "1"+ }+ },+ "pako": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="+ },+ "picomatch": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz",+ "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag=="+ },+ "prebuild-install": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",+ "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",+ "requires": {+ "detect-libc": "^2.0.0",+ "expand-template": "^2.0.3",+ "github-from-package": "0.0.0",+ "minimist": "^1.2.3",+ "mkdirp-classic": "^0.5.3",+ "napi-build-utils": "^1.0.1",+ "node-abi": "^3.3.0",+ "pump": "^3.0.0",+ "rc": "^1.2.7",+ "simple-get": "^4.0.0",+ "tar-fs": "^2.0.0",+ "tunnel-agent": "^0.6.0"+ }+ },+ "process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="+ },+ "pump": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",+ "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",+ "requires": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "rc": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",+ "requires": {+ "deep-extend": "^0.6.0",+ "ini": "~1.3.0",+ "minimist": "^1.2.0",+ "strip-json-comments": "~2.0.1"+ }+ },+ "readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "requires": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "requires": {+ "picomatch": "^2.2.1"+ },+ "dependencies": {+ "picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="+ }+ }+ },+ "safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ },+ "semver": {+ "version": "7.5.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",+ "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",+ "requires": {+ "lru-cache": "^6.0.0"+ }+ },+ "setimmediate": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",+ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="+ },+ "sharp": {+ "version": "0.31.3",+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.31.3.tgz",+ "integrity": "sha512-XcR4+FCLBFKw1bdB+GEhnUNXNXvnt0tDo4WsBsraKymuo/IAuPuCBVAL2wIkUw2r/dwFW5Q5+g66Kwl2dgDFVg==",+ "requires": {+ "color": "^4.2.3",+ "detect-libc": "^2.0.1",+ "node-addon-api": "^5.0.0",+ "prebuild-install": "^7.1.1",+ "semver": "^7.3.8",+ "simple-get": "^4.0.1",+ "tar-fs": "^2.1.1",+ "tunnel-agent": "^0.6.0"+ }+ },+ "simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="+ },+ "simple-get": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",+ "requires": {+ "decompress-response": "^6.0.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"+ }+ },+ "simple-swizzle": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",+ "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",+ "requires": {+ "is-arrayish": "^0.3.1"+ }+ },+ "string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "requires": {+ "safe-buffer": "~5.1.0"+ }+ },+ "strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "requires": {+ "ansi-regex": "^5.0.1"+ }+ },+ "strip-json-comments": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="+ },+ "tar-fs": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",+ "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",+ "requires": {+ "chownr": "^1.1.1",+ "mkdirp-classic": "^0.5.2",+ "pump": "^3.0.0",+ "tar-stream": "^2.1.4"+ }+ },+ "tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "requires": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "dependencies": {+ "readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "requires": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ }+ }+ }+ },+ "to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "requires": {+ "is-number": "^7.0.0"+ }+ },+ "tunnel-agent": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",+ "requires": {+ "safe-buffer": "^5.0.1"+ }+ },+ "universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw=="+ },+ "util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="+ },+ "uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="+ },+ "wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ },+ "yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="}}}diff --git a/release/app/package.json b/release/app/package.jsonindex 0481d2703..39963c706 100644--- a/release/app/package.json+++ b/release/app/package.json@@ -16,12 +16,7 @@"postinstall": "npm run rebuild && npm run link-modules","link-modules": "node -r ts-node/register ../../.erb/scripts/link-modules.ts"},- "dependencies": {},- "webDependencies": {- "@tagspaces/extensions": "1.0.90"- },- "nodeDependencies": {- "@tagspaces/tagspaces-common": "4.0.3",+ "dependencies": {"@tagspaces/tagspaces-common-node": "4.0.6","@tagspaces/tagspaces-ws": "4.0.7","@tagspaces/extensions": "1.0.90",diff --git a/scripts/checkWSinstalled.js b/scripts/checkWSinstalled.jsindex e28a4f16d..226ea7ee6 100644--- a/scripts/checkWSinstalled.js+++ b/scripts/checkWSinstalled.js@@ -75,13 +75,13 @@ if (platform === 'node') {!dirExist(dir) ||!isInstalled('@tagspaces/extensions',- packageJson.nodeDependencies['@tagspaces/extensions'],+ packageJson.dependencies['@tagspaces/extensions'],) ||!isInstalled('@tagspaces/tagspaces-ws',- packageJson.nodeDependencies['@tagspaces/tagspaces-ws'],+ packageJson.dependencies['@tagspaces/tagspaces-ws'],) ||- !isInstalled('sharp', packageJson.nodeDependencies['sharp'])+ !isInstalled('sharp', packageJson.dependencies['sharp'])) {installCmd = 'npm run-script install-ext-node';}@@ -90,7 +90,7 @@ if (platform === 'node') {!dirExist(dir) ||!isInstalled('@tagspaces/extensions',- packageJson.webDependencies['@tagspaces/extensions'],+ packageJson.dependencies['@tagspaces/extensions'],) ||isInstalled('@tagspaces/tagspaces-ws')) {diff --git a/scripts/postinstall.js b/scripts/postinstall.jsindex e6f6579a5..434a90b29 100644--- a/scripts/postinstall.js+++ b/scripts/postinstall.js@@ -35,7 +35,7 @@ function isInstalled(npmPackage) {}}-if (!process.env.PD_PLATFORM) {+/*if (!process.env.PD_PLATFORM) {console.log('PD_PLATFORM environment variable is not set');shell.exit(1);}@@ -80,20 +80,20 @@ if (process.env.PD_PLATFORM === 'electron') {install = true;}}-shell.exec('npm -v');+shell.exec('npm -v');*//*** If the installed tagspaces-platforms changed (with deleted node_modules) npm install will not update it -> change version or delete the tagspaces-platforms folder* @type {string}*/-if (install) {+/*if (install) {const cmd ='npm run-script --prefix ./node_modules/@tagspaces/tagspaces-platforms install';// 'npm install @tagspaces/tagspaces-platforms@' + // --force --foreground-scripts- /*stripFromStart(+ /!*stripFromStart(packageJson.dependencies['@tagspaces/tagspaces-platforms'],'^'- );*/+ );*!/if (!fs.existsSync('./node_modules/@tagspaces/tagspaces-platforms')) {shell.exec('npm install');}@@ -105,7 +105,7 @@ if (install) {}// fix: npm postinstall and install scripts not runs automatically after 'npm install' with npm v8// if (process.platform === 'win32') {- /*const projectDir = pathLib.join(__dirname, '..');+ const projectDir = pathLib.join(__dirname, '..');const platformDir = pathLib.join(projectDir,'node_modules',@@ -123,6 +123,6 @@ if (install) {if (shell.exec(cmd2).code !== 0) {shell.echo('Error: PostInstall ' + process.env.PD_PLATFORM + ' platform');shell.exit(1);- }*/+ }// }-}+}*/diff --git a/src/main/chokidarWatcher.ts b/src/main/chokidarWatcher.tsindex f0c93dca8..680870528 100644--- a/src/main/chokidarWatcher.ts+++ b/src/main/chokidarWatcher.ts@@ -1,6 +1,5 @@import { BrowserWindow } from 'electron';import Chokidar = require('chokidar');-import prcs from 'process';let watcher;@@ -30,7 +29,7 @@ export function watchFolder(depth,) {console.log('Start watching: ' + path);- if (prcs.env.NODE_ENV === 'development') {+ if (process.env.NODE_ENV === 'development') {// TODO chokidar do not work in package https://github.com/electron/forge/issues/2594stopWatching();watcher = Chokidar.watch(path, {diff --git a/src/main/main.ts b/src/main/main.tsindex 87b0963f0..21940b0a9 100644--- a/src/main/main.ts+++ b/src/main/main.ts@@ -13,7 +13,6 @@ import { app, BrowserWindow, shell, ipcMain, globalShortcut } from 'electron';import { autoUpdater } from 'electron-updater';import log from 'electron-log';import pm2 from '@elife/pm2';-import prcs from 'process';import propertiesReader from 'properties-reader';import { resolveHtmlPath, stringifyMaxDepth } from './util';import windowStateKeeper from 'electron-window-state';@@ -35,7 +34,7 @@ class AppUpdater {}}-let isMacLike = prcs.platform === 'darwin';+let isMacLike = process.platform === 'darwin';let mainWindow: BrowserWindow | null = null;/*let usedWsPort = undefined;@@ -44,24 +43,24 @@ function getUsedWsPort() {return usedWsPort;}*/-if (prcs.env.NODE_ENV === 'production') {+if (process.env.NODE_ENV === 'production') {const sourceMapSupport = require('source-map-support');sourceMapSupport.install();}const isDebug =- prcs.env.NODE_ENV === 'development' || prcs.env.DEBUG_PROD === 'true';+ process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true';if (isDebug) {require('electron-debug')();}-const testMode = prcs.env.NODE_ENV === 'test';+const testMode = process.env.NODE_ENV === 'test';let startupFilePath;let portableMode;-prcs.argv.forEach((arg, count) => {+process.argv.forEach((arg, count) => {console.log('Opening file: ' + arg);if (arg.toLowerCase() === '-d' ||@@ -71,7 +70,7 @@ prcs.argv.forEach((arg, count) => {) {// debugMode = true;} else if (arg.toLowerCase() === '-p' || arg.toLowerCase() === '--portable') {- app.setPath('userData', prcs.cwd() + '/tsprofile'); // making the app portable+ app.setPath('userData', process.cwd() + '/tsprofile'); // making the app portableportableMode = true;} else if (testMode || isDebug) {// ignoring the spectron testing@@ -97,7 +96,7 @@ prcs.argv.forEach((arg, count) => {const installExtensions = async () => {const installer = require('electron-devtools-installer');- const forceDownload = !!prcs.env.UPGRADE_EXTENSIONS;+ const forceDownload = !!process.env.UPGRADE_EXTENSIONS;const extensions = ['REACT_DEVELOPER_TOOLS'];return installer@@ -281,11 +280,12 @@ function createNewWindowInstance(url?) {width: mainWindowState.width,height: mainWindowState.height,webPreferences: {- //webSecurity: app.isPackaged, // todo https://www.electronjs.org/docs/latest/tutorial/security#6-do-not-disable-websecurityspellcheck: true,- //nodeIntegration: true,webviewTag: true,- //contextIsolation: false,+ preload:+ app.isPackaged || !isDebug+ ? path.join(__dirname, 'preload.js')+ : path.join(__dirname, '../../.erb/dll/preload.js'),},});@@ -362,7 +362,7 @@ function startWS() {let script;let envPath;if (app.isPackaged) {- filepath = prcs.resourcesPath; // path.join(__dirname, '../../..');+ filepath = process.resourcesPath; // path.join(__dirname, '../../..');script = 'app.asar/node_modules/@tagspaces/tagspaces-ws/build/index.js'; //app.asar/envPath = path.join(filepath, 'app.asar/.env');} else {@@ -495,7 +495,7 @@ const createWindow = async (i18n) => {}//console.log('prosess:' + stringifyMaxDepth(process, 3));- if (prcs.env.START_MINIMIZED) {+ if (process.env.START_MINIMIZED) {mainWindow.minimize();} else {mainWindow.show();@@ -696,7 +696,7 @@ appipcMain.on('relaunch-app', reloadApp);- prcs.on('uncaughtException', (error) => {+ process.on('uncaughtException', (error) => {if (error.stack) {console.error('error:', error.stack);throw new Error(error.stack);diff --git a/src/main/mainEvents.ts b/src/main/mainEvents.tsindex ef8b9eca3..ab735b663 100644--- a/src/main/mainEvents.ts+++ b/src/main/mainEvents.ts@@ -11,7 +11,6 @@ import {moveDirectoryPromise,loadTextFilePromise,getFileContentPromise,- getLocalFileContentPromise,saveFilePromise,saveTextFilePromise,saveBinaryFilePromise,@@ -22,7 +21,6 @@ import {} from '@tagspaces/tagspaces-common-node/io-node';import fs from 'fs-extra';import path from 'path';-import prcs from 'process';import {getOnProgress,isWorkerAvailable,@@ -55,7 +53,7 @@ export default function loadMainEvents() {picturesFolder: app.getPath('pictures'),videosFolder: app.getPath('videos'),};- if (prcs.platform === 'darwin') {+ if (process.platform === 'darwin') {paths.iCloudFolder =app.getPath('home') + '/Library/Mobile Documents/com~apple~CloudDocs';}@@ -199,13 +197,6 @@ export default function loadMainEvents() {const result = await getFileContentPromise(filePath, type);return result;});- ipcMain.handle(- 'getLocalFileContentPromise',- async (event, filePath, type) => {- const result = await getLocalFileContentPromise(filePath, type);- return result;- },- );ipcMain.handle('saveFilePromise',async (event, param, content, overwrite) => {diff --git a/src/main/preload.ts b/src/main/preload.tsindex d4e0df6bf..3a47a6cd2 100644--- a/src/main/preload.ts+++ b/src/main/preload.ts@@ -29,7 +29,6 @@ export type Channels =| 'moveDirectoryPromise'| 'loadTextFilePromise'| 'getFileContentPromise'- | 'getLocalFileContentPromise'| 'saveFilePromise'| 'saveTextFilePromise'| 'saveBinaryFilePromise'diff --git a/src/main/util.ts b/src/main/util.tsindex f10ac50fb..acf3a3f3c 100644--- a/src/main/util.ts+++ b/src/main/util.ts@@ -7,12 +7,11 @@ import fs from 'fs';import chalk from 'chalk';import { execSync } from 'child_process';import http from 'http';-import prcs from 'process';import settings from './settings';export function resolveHtmlPath(htmlFileName: string) {- if (prcs.env.NODE_ENV === 'development') {- const port = prcs.env.PORT || 1212;+ if (process.env.NODE_ENV === 'development') {+ const port = process.env.PORT || 1212;const url = new URL(`http://localhost:${port}`);url.pathname = htmlFileName;return url.href;diff --git a/src/renderer/services/platform-facade.ts b/src/renderer/services/platform-facade.tsindex 5e82cc7c5..b47e2f1ec 100644--- a/src/renderer/services/platform-facade.ts+++ b/src/renderer/services/platform-facade.ts@@ -16,72 +16,66 @@**/-import {- platformHaveObjectStoreSupport,- platformHaveWebDavSupport,- platformIsMinio,- platformGetDirSeparator,- platformEnableObjectStoreSupport,- platformDisableObjectStoreSupport,- platformEnableWebdavSupport,- platformDisableWebdavSupport,- platformQuitApp,- platformGetDevicePaths,- platformGetURLforPath,- platformListDirectoryPromise,- platformListMetaDirectoryPromise,- platformListObjectStoreDir,- platformSaveFilePromise,- platformGetPropertiesPromise,- platformLoadTextFilePromise,- platformGetFileContentPromise,- platformSaveTextFilePromise,- platformSaveBinaryFilePromise,- platformCreateDirectoryPromise,- platformCopyFilePromise,- platformRenameFilePromise,- platformRenameDirectoryPromise,- platformMoveDirectoryPromise,- platformCopyDirectoryPromise,- platformDeleteFilePromise,- platformDeleteDirectoryPromise,- platformSelectDirectoryDialog,- platformShareFiles,- platformCreateIndex,- platformCheckFileExist,- platformCheckDirExist,-} from '@tagspaces/tagspaces-platforms/platform-io';+import * as cordovaIO from '@tagspaces/tagspaces-common-cordova';import AppConfig from '-/AppConfig';import { TS } from '-/tagspaces.namespace';import { Pro } from '-/pro';+let objectStoreAPI, webDavAPI;+export default class PlatformFacade {- static enableObjectStoreSupport = (objectStoreConfig: any): Promise<any> =>- platformEnableObjectStoreSupport(objectStoreConfig);+ static enableObjectStoreSupport = (objectStoreConfig: any): Promise<any> => {+ // DisableWebdavSupport+ webDavAPI = undefined;+ return new Promise((resolve, reject) => {+ if (+ objectStoreAPI !== undefined &&+ objectStoreAPI.config().bucketName === objectStoreConfig.bucketName &&+ objectStoreAPI.config().secretAccessKey ===+ objectStoreConfig.secretAccessKey &&+ objectStoreAPI.config().region === objectStoreConfig.region &&+ objectStoreAPI.config().endpointURL === objectStoreConfig.endpointURL &&+ objectStoreAPI.config().accessKeyId === objectStoreConfig.accessKeyId+ ) {+ resolve(true);+ } else {+ objectStoreAPI = require('@tagspaces/tagspaces-common-aws/io-objectstore');+ objectStoreAPI.configure(objectStoreConfig);+ resolve(true);+ }+ });+ };- static disableObjectStoreSupport = (): void =>- platformDisableObjectStoreSupport();+ static disableObjectStoreSupport = (): void => (objectStoreAPI = undefined);static enableWebdavSupport = (webDavConfig: any): void => {- platformEnableWebdavSupport(webDavConfig);+ objectStoreAPI = undefined;+ if (+ webDavAPI === undefined ||+ webDavAPI.username !== webDavConfig.username ||+ webDavAPI.password !== webDavConfig.password ||+ webDavAPI.port !== webDavConfig.port+ ) {+ //webDavAPI = require("@tagspaces/tagspaces-common-webdav/io-webdav");+ //webDavAPI.configure(webDavConfig);+ }};- static disableWebdavSupport = (): void => platformDisableWebdavSupport();+ static disableWebdavSupport = (): void => (webDavAPI = undefined);- static haveObjectStoreSupport = (): boolean =>- platformHaveObjectStoreSupport();+ static haveObjectStoreSupport = (): boolean => objectStoreAPI !== undefined;- static haveWebDavSupport = (): boolean => platformHaveWebDavSupport();+ static haveWebDavSupport = (): boolean => webDavAPI !== undefined;- static isMinio = (): boolean => platformIsMinio();+ static isMinio = (): boolean =>+ objectStoreAPI !== undefined && objectStoreAPI.config().endpointURL;- static getDirSeparator = (): string => platformGetDirSeparator();-- /**- * todo rethink this use node path module- * @param location- */- // static getLocationPath = (location: TS.Location): string => platformGetLocationPath(location);+ static getDirSeparator = (): string => {+ // TODO rethink usage for S3 on Win+ return objectStoreAPI !== undefined || webDavAPI !== undefined+ ? '/'+ : AppConfig.dirSeparator;+ };static setLanguage = (language: string): void => {if (AppConfig.isElectron) {@@ -125,9 +119,9 @@ export default class PlatformFacade {static quitApp = (): void => {if (AppConfig.isElectron) {window.electronIO.ipcRenderer.sendMessage('quitApp');- } else {+ } /*else {platformQuitApp();- }+ }*/};/*static watchDirectory = (dirPath: string, listener): void =>@@ -142,8 +136,12 @@ export default class PlatformFacade {static getDevicePaths = (): Promise<any> => {if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('getDevicePaths');+ } else if (AppConfig.isCordova) {+ return cordovaIO.getDevicePaths();+ } else {+ console.log('getDevicePaths not supported');+ return Promise.resolve(undefined);}- return platformGetDevicePaths();};/**@@ -151,8 +149,21 @@ export default class PlatformFacade {* @param path* @param expirationInSeconds*/- static getURLforPath = (path: string, expirationInSeconds?: number): string =>- platformGetURLforPath(path, expirationInSeconds);+ static getURLforPath = (+ path: string,+ expirationInSeconds?: number,+ ): string => {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.getURLforPath(param, expirationInSeconds);+ } else if (webDavAPI) {+ return webDavAPI.getURLforPath(path);+ }+ return undefined;+ };/*** needs to run in init this function always return false first time@@ -160,8 +171,8 @@ export default class PlatformFacade {static isWorkerAvailable = (): Promise<boolean> => {if (AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()+ objectStoreAPI === undefined &&+ webDavAPI === undefined) {return window.electronIO.ipcRenderer.invoke('isWorkerAvailable');}@@ -171,8 +182,8 @@ export default class PlatformFacade {static readMacOSTags = (filename: string): Promise<TS.Tag[]> => {if (AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()+ objectStoreAPI === undefined &&+ webDavAPI === undefined) {return window.electronIO.ipcRenderer.invoke('readMacOSTags', filename);}@@ -183,8 +194,8 @@ export default class PlatformFacade {if (AppConfig.isElectron &&Pro &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()+ objectStoreAPI === undefined &&+ webDavAPI === undefined) {window.electronIO.ipcRenderer.sendMessage('watchFolder',@@ -194,15 +205,6 @@ export default class PlatformFacade {}};- /*static watchForEvents = (listener) => {- if (AppConfig.isElectron) {- window.electronIO.ipcRenderer.sendMessage(- 'watchForEvents',- listener- );- }- };*/-/*static tiffJs = () => {return platformTiffJs();};*/@@ -214,8 +216,8 @@ export default class PlatformFacade {): Promise<any> => {if (AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()+ objectStoreAPI === undefined &&+ webDavAPI === undefined) {const payload = JSON.stringify({directoryPath,@@ -238,8 +240,8 @@ export default class PlatformFacade {): Promise<any> => {if (AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()+ objectStoreAPI === undefined &&+ webDavAPI === undefined) {const payload = JSON.stringify(tmbGenerationList);return window.electronIO.ipcRenderer.invoke(@@ -264,11 +266,20 @@ export default class PlatformFacade {ignorePatterns: Array<string> = [],resultsLimit: any = {},): Promise<Array<any>> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.listDirectoryPromise(+ param,+ mode,+ ignorePatterns,+ resultsLimit,+ );+ } else if (webDavAPI) {+ return webDavAPI.listDirectoryPromise(path, mode, ignorePatterns);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('listDirectoryPromise',path,@@ -276,81 +287,131 @@ export default class PlatformFacade {ignorePatterns,resultsLimit,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.listDirectoryPromise(path, mode, ignorePatterns);}- return platformListDirectoryPromise(- path, // cleanTrailingDirSeparator(path),- mode,- ignorePatterns,- resultsLimit,- );++ return Promise.reject(new Error('listDirectoryPromise not implemented!'));};static listMetaDirectoryPromise = (path: string): Promise<Array<any>> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.listMetaDirectoryPromise(param);+ } else if (webDavAPI) {+ return webDavAPI.listMetaDirectoryPromise(path);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('listMetaDirectoryPromise',path,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.listMetaDirectoryPromise(path);}- return platformListMetaDirectoryPromise(path);++ return Promise.reject(+ new Error('listMetaDirectoryPromise not implemented!'),+ );};static listObjectStoreDir = (param: Object,mode = ['extractThumbPath'],ignorePatterns: Array<string> = [],- ): Promise<Array<any>> =>- platformListObjectStoreDir(param, mode, ignorePatterns);+ ): Promise<Array<any>> => {+ if (objectStoreAPI) {+ return objectStoreAPI.listDirectoryPromise(+ { ...param, bucketName: objectStoreAPI.config().bucketName },+ mode,+ ignorePatterns,+ );+ } else {+ return Promise.reject(+ new Error('platformListObjectStoreDir: no objectStoreAPI'),+ );+ }+ };static getPropertiesPromise = (path: string): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.getPropertiesPromise(param);+ } else if (webDavAPI) {+ return webDavAPI.getPropertiesPromise(path);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('getPropertiesPromise', path);+ } else if (AppConfig.isCordova) {+ return cordovaIO.getPropertiesPromise(path);}- return platformGetPropertiesPromise(path);+ return Promise.reject(new Error('getPropertiesPromise: not implemented'));};static checkDirExist = (dir: string): Promise<boolean> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI+ .getPropertiesPromise({+ path: dir,+ bucketName: objectStoreAPI.config().bucketName,+ })+ .then((stats) => stats && !stats.isFile);+ } else if (webDavAPI) {+ return webDavAPI+ .getPropertiesPromise(dir)+ .then((stats) => stats && !stats.isFile);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('checkDirExist', dir);+ } else if (AppConfig.isCordova) {+ // In cordova this check is too expensive for dirs like /.ts+ return cordovaIO.checkDirExist(dir);}- return platformCheckDirExist(dir);+ return Promise.reject(new Error('checkDirExist: not implemented'));};static checkFileExist = (file: string): Promise<boolean> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI+ .getPropertiesPromise({+ path: file,+ bucketName: objectStoreAPI.config().bucketName,+ })+ .then((stats) => stats && stats.isFile);+ } else if (webDavAPI) {+ return webDavAPI+ .getPropertiesPromise(file)+ .then((stats) => stats && stats.isFile);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('checkFileExist', file);+ } else if (AppConfig.isCordova) {+ return cordovaIO.checkFileExist(file);}- return platformCheckFileExist(file);++ return Promise.reject(new Error('checkFileExist: not implemented'));};static createDirectoryPromise = (dirPath: string): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: dirPath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.createDirectoryPromise(param);+ } else if (webDavAPI) {+ return webDavAPI.createDirectoryPromise(dirPath);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('createDirectoryPromise',dirPath,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.createDirectoryPromise(dirPath);}- return platformCreateDirectoryPromise(dirPath);+ return Promise.reject(new Error('createDirectoryPromise: not implemented'));};/**@@ -361,18 +422,24 @@ export default class PlatformFacade {sourceFilePath: string,targetFilePath: string,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: sourceFilePath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.copyFilePromise(param, targetFilePath);+ } else if (webDavAPI) {+ return webDavAPI.copyFilePromise(sourceFilePath, targetFilePath);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('copyFilePromiseOverwrite',sourceFilePath,targetFilePath,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.copyFilePromise(sourceFilePath, targetFilePath);}- return platformCopyFilePromise(sourceFilePath, targetFilePath);+ return Promise.reject(new Error('createDirectoryPromise: not implemented'));};static renameFilePromise = (@@ -380,45 +447,54 @@ export default class PlatformFacade {newFilePath: string,onProgress = undefined,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: filePath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.renameFilePromise(param, newFilePath, onProgress);+ // .then(result => result);+ } else if (webDavAPI) {+ return webDavAPI.renameFilePromise(filePath, newFilePath, onProgress);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('renameFilePromise',filePath,newFilePath,onProgress,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.renameFilePromise(filePath, newFilePath, onProgress);}- return platformRenameFilePromise(filePath, newFilePath, onProgress);+ return Promise.reject(new Error('renameFilePromise: not implemented'));};static renameDirectoryPromise = (dirPath: string,newDirName: string,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: dirPath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.renameDirectoryPromise(param, newDirName);+ } else if (webDavAPI) {+ return webDavAPI.renameDirectoryPromise(dirPath, newDirName);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('renameDirectoryPromise',dirPath,newDirName,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.renameDirectoryPromise(dirPath, newDirName);}- return platformRenameDirectoryPromise(dirPath, newDirName);+ return Promise.reject(new Error('renameDirectoryPromise: not implemented'));};static uploadAbort = (path?: string): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (AppConfig.isElectron && !objectStoreAPI && !webDavAPI) {return window.electronIO.ipcRenderer.invoke('uploadAbort', path);}return Promise.resolve(false);@@ -429,19 +505,29 @@ export default class PlatformFacade {newDirPath: string,onProgress = undefined,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const params = {+ ...param,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.copyDirectoryPromise(+ params,+ newDirPath,+ onProgress,+ );+ } else if (webDavAPI) {+ return webDavAPI.copyDirectoryPromise(param, newDirPath, onProgress);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('copyDirectoryPromise',param,newDirPath,onProgress !== undefined,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.copyDirectoryPromise(param, newDirPath, onProgress);}- return platformCopyDirectoryPromise(param, newDirPath, onProgress);+ return Promise.reject(new Error('copyDirectoryPromise: not implemented'));};static moveDirectoryPromise = (@@ -449,19 +535,28 @@ export default class PlatformFacade {newDirPath: string,onProgress = undefined,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI.moveDirectoryPromise(+ {+ ...param,+ bucketName: objectStoreAPI.config().bucketName,+ },+ newDirPath,+ onProgress,+ );+ } else if (webDavAPI) {+ return webDavAPI.moveDirectoryPromise(param, newDirPath, onProgress);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('moveDirectoryPromise',param,newDirPath,onProgress !== undefined,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.moveDirectoryPromise(param, newDirPath, onProgress);}- return platformMoveDirectoryPromise(param, newDirPath, onProgress);+ return Promise.reject(new Error('moveDirectoryPromise: not implemented'));};static loadTextFilePromise = (@@ -472,36 +567,48 @@ export default class PlatformFacade {try {path = decodeURIComponent(filePath);} catch (ex) {}- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: filePath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.loadTextFilePromise(param, isPreview);+ } else if (webDavAPI) {+ return webDavAPI.loadTextFilePromise(filePath, isPreview);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('loadTextFilePromise',path,isPreview,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.loadTextFilePromise(filePath, isPreview);}- return platformLoadTextFilePromise(path, isPreview);+ return Promise.reject(new Error('loadTextFilePromise: not implemented'));};static getFileContentPromise = (filePath: string,type?: string,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path: filePath,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.getFileContentPromise(param, type);+ } else if (webDavAPI) {+ return webDavAPI.getFileContentPromise(filePath, type);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('getFileContentPromise',filePath,type,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.getFileContentPromise(filePath, type);}- return platformGetFileContentPromise(filePath, type);+ return Promise.reject(new Error('getFileContentPromise: not implemented'));};static getLocalFileContentPromise = (@@ -509,7 +616,7 @@ export default class PlatformFacade {type?: string,): Promise<any> => {return window.electronIO.ipcRenderer.invoke(- 'getLocalFileContentPromise',+ 'getFileContentPromise',filePath,type,);@@ -520,19 +627,28 @@ export default class PlatformFacade {content: any,overwrite: boolean,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI.saveFilePromise(+ {+ ...param,+ bucketName: objectStoreAPI.config().bucketName,+ },+ content,+ overwrite,+ );+ } else if (webDavAPI) {+ return webDavAPI.saveFilePromise(param, content, overwrite);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('saveFilePromise',param,content,overwrite,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.saveFilePromise(param, content, overwrite);}- return platformSaveFilePromise(param, content, overwrite);+ return Promise.reject(new Error('saveFilePromise: not implemented'));};static saveTextFilePromise = (@@ -540,19 +656,28 @@ export default class PlatformFacade {content: string,overwrite: boolean,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI.saveTextFilePromise(+ {+ ...param,+ bucketName: objectStoreAPI.config().bucketName,+ },+ content,+ overwrite,+ );+ } else if (webDavAPI) {+ return webDavAPI.saveTextFilePromise(param, content, overwrite);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('saveTextFilePromise',param,content,overwrite,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.saveTextFilePromise(param, content, overwrite);}- return platformSaveTextFilePromise(param, content, overwrite);+ return Promise.reject(new Error('saveTextFilePromise: not implemented'));};static saveBinaryFilePromise = (@@ -564,11 +689,24 @@ export default class PlatformFacade {response: any, // AWS.Response<AWS.S3.PutObjectOutput, AWS.AWSError>) => void,): Promise<TS.FileSystemEntry> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ return objectStoreAPI.saveBinaryFilePromise(+ {+ ...param,+ bucketName: objectStoreAPI.config().bucketName,+ },+ content,+ overwrite,+ onUploadProgress,+ );+ } else if (webDavAPI) {+ return webDavAPI.saveBinaryFilePromise(+ param,+ content,+ overwrite,+ onUploadProgress,+ );+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('saveBinaryFilePromise',param,@@ -576,50 +714,68 @@ export default class PlatformFacade {overwrite,onUploadProgress,);- }-- return platformSaveBinaryFilePromise(- param,- content,- overwrite,- onUploadProgress,- );+ } else if (AppConfig.isCordova) {+ return cordovaIO+ .saveBinaryFilePromise(param, content, overwrite)+ .then((succeeded) => {+ if (succeeded && onUploadProgress) {+ onUploadProgress(+ { key: param.path, loaded: 1, total: 1 },+ undefined,+ );+ }+ return succeeded;+ });+ }+ return Promise.reject(new Error('saveBinaryFilePromise: not implemented'));};static deleteFilePromise = (path: string,useTrash?: boolean,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.deleteFilePromise(param);+ } else if (webDavAPI) {+ return webDavAPI.deleteFilePromise(path);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('deleteFilePromise',path,useTrash,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.saveTextFilePromise(path);}- return platformDeleteFilePromise(path);+ return Promise.reject(new Error('deleteFilePromise: not implemented'));};static deleteDirectoryPromise = (path: string,useTrash?: boolean,): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (objectStoreAPI) {+ const param = {+ path,+ bucketName: objectStoreAPI.config().bucketName,+ };+ return objectStoreAPI.deleteDirectoryPromise(param);+ } else if (webDavAPI) {+ return webDavAPI.deleteDirectoryPromise(path);+ } else if (AppConfig.isElectron) {return window.electronIO.ipcRenderer.invoke('deleteDirectoryPromise',path,useTrash,);+ } else if (AppConfig.isCordova) {+ return cordovaIO.deleteDirectoryPromise(path);}- return platformDeleteDirectoryPromise(path, useTrash);+ return Promise.reject(new Error('deleteDirectoryPromise: not implemented'));};static openDirectory = (dirPath: string): void => {@@ -660,14 +816,12 @@ export default class PlatformFacade {};static selectDirectoryDialog = (): Promise<any> => {- if (- AppConfig.isElectron &&- !platformHaveObjectStoreSupport() &&- !platformHaveWebDavSupport()- ) {+ if (AppConfig.isElectron && !objectStoreAPI && !webDavAPI) {return window.electronIO.ipcRenderer.invoke('selectDirectoryDialog');+ } else if (AppConfig.isCordova) {+ return cordovaIO.selectDirectoryDialog();}- return platformSelectDirectoryDialog();+ return Promise.reject(new Error('selectDirectoryDialog: not implemented'));};/**@@ -675,25 +829,13 @@ export default class PlatformFacade {* @param files*/static shareFiles = (files: Array<string>): void => {- platformShareFiles(files);+ if (AppConfig.isCordova) {+ cordovaIO.shareFiles(files);+ } else {+ console.log('shareFiles is implemented in Cordova only.');+ }};- static createIndex(- param: any,- listDirectoryPromise,- loadTextFilePromise,- mode: string[],- ignorePatterns: Array<string>,- ) {- return platformCreateIndex(- param,- listDirectoryPromise,- loadTextFilePromise,- mode,- ignorePatterns,- );- }-/*** Load extensions is supported only on Electron*/diff --git a/src/renderer/services/platform-io.js b/src/renderer/services/platform-io.jsdeleted file mode 100644index f4e14a6fb..000000000--- a/src/renderer/services/platform-io.js+++ /dev/null@@ -1,650 +0,0 @@-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */--const {- getLocationPath,- isWorkerAvailable,- readMacOSTags,- watchFolder,- showMainWindow,- quitApp,- focusWindow,- getDevicePaths,- createDirectoryIndexInWorker,- createThumbnailsInWorker,- listDirectoryPromise,- listMetaDirectoryPromise,- getPropertiesPromise,- createDirectoryPromise,- copyFilePromise,- renameFilePromise,- renameDirectoryPromise,- moveDirectoryPromise,- copyDirectoryPromise,- loadTextFilePromise,- getFileContentPromise,- saveFilePromise,- saveTextFilePromise,- saveBinaryFilePromise,- deleteFilePromise,- moveToTrash,- deleteDirectoryPromise,- openDirectory,- openFile,- resolveFilePath,- openUrl,- selectFileDialog,- selectDirectoryDialog,- shareFiles,- createNewInstance,- checkFileExist,- checkDirExist,- loadExtensions,- removeExtension,- getUserDataDir,- unZip,- getDirProperties,-} = require('./index');-const AppConfig = require('@tagspaces/tagspaces-common/AppConfig');-const Indexer = require('./indexer');--let objectStoreAPI, webDavAPI;--function platformReadMacOSTags(filename) {- if (readMacOSTags) {- return readMacOSTags(filename);- }- return false;-}--function platformWatchFolder(locationPath, options) {- if (watchFolder) {- return watchFolder(locationPath, options);- }- return undefined;-}--function platformFocusWindow() {- focusWindow();-}--function platformGetDevicePaths() {- if (getDevicePaths) {- return getDevicePaths();- } else {- console.log('getDevicePaths not supported');- return Promise.resolve(undefined);- }-}--/**- * @param path : string- * @param expirationInSeconds?: number- */-function platformGetURLforPath(path, expirationInSeconds) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.getURLforPath(param, expirationInSeconds);- } else if (webDavAPI) {- return webDavAPI.getURLforPath(path);- }- return undefined;-}--function platformCreateIndex(- param,- listDirectory,- loadTextFile,- mode = ['extractThumbPath'],- ignorePatterns = [],-) {- return Indexer.createIndex(- objectStoreAPI- ? {- ...param,- bucketName: objectStoreAPI.config().bucketName,- }- : param,- listDirectory,- loadTextFile,- mode,- ignorePatterns,- );-}--/**- * @param token- * @param directoryPath: string- * @param extractText: boolean- * @param ignorePatterns: Array<string>- * @param wsPort: number- */-function platformCreateDirectoryIndexInWorker(- token,- directoryPath,- extractText,- ignorePatterns,- wsPort,-) {- return createDirectoryIndexInWorker(- token,- directoryPath,- extractText,- ignorePatterns,- wsPort,- );-}--/**- * Promise === undefined on error- * @param path: string- * @param mode = ['extractTextContent', 'extractThumbPath']- * @param ignorePatterns: Array<string> = []- * @param resultsLimit- */-function platformListDirectoryPromise(- path,- mode = ['extractThumbPath'],- ignorePatterns,- resultsLimit,-) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.listDirectoryPromise(- param,- mode,- ignorePatterns,- resultsLimit,- );- } else if (webDavAPI) {- return webDavAPI.listDirectoryPromise(path, mode, ignorePatterns);- }- return listDirectoryPromise(path, mode, ignorePatterns);-}--function platformListMetaDirectoryPromise(path) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.listMetaDirectoryPromise(param);- } else if (webDavAPI) {- return webDavAPI.listMetaDirectoryPromise(path);- }- return listMetaDirectoryPromise(path);-}--/**- * only objectStore- * @param param- * @param mode- * @param ignorePatterns- */-function platformListObjectStoreDir(- param,- mode = ['extractThumbPath'],- ignorePatterns = [],-) {- if (objectStoreAPI) {- return objectStoreAPI.listDirectoryPromise(param, mode, ignorePatterns);- } else {- return Promise.reject(- new Error('platformListObjectStoreDir: no objectStoreAPI'),- );- }-}--/**- * @param path: string- */-function platformGetPropertiesPromise(path) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.getPropertiesPromise(param);- } else if (webDavAPI) {- return webDavAPI.getPropertiesPromise(path);- }- return getPropertiesPromise(path);-}--/*static ignoreByWatcher = (...paths) => { // TODO Pro..- if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {- for (let i = 0; i < paths.length; i += 1) {- Pro.Watcher.addToIgnored(paths[i]);- }- }- };-- static deignoreByWatcher = (...paths) => {- if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {- for (let i = 0; i < paths.length; i += 1) {- Pro.Watcher.removeFromIgnored(paths[i]);- }- }- };*/--function platformCreateDirectoryPromise(dirPath) {- if (objectStoreAPI) {- const param = {- path: dirPath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.createDirectoryPromise(param);- } else if (webDavAPI) {- return webDavAPI.createDirectoryPromise(dirPath);- }-- return createDirectoryPromise(dirPath);-}--/**- * @param sourceFilePath: string- * @param targetFilePath: string- */-async function platformCopyFilePromise(sourceFilePath, targetFilePath) {- return copyFilePromiseOverwrite(sourceFilePath, targetFilePath);-}--/**- * @param sourceFilePath- * @param targetFilePath - if exist overwrite it- */-function copyFilePromiseOverwrite(sourceFilePath, targetFilePath) {- if (objectStoreAPI) {- const param = {- path: sourceFilePath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.copyFilePromise(param, targetFilePath);- } else if (webDavAPI) {- return webDavAPI.copyFilePromise(sourceFilePath, targetFilePath);- }- // PlatformIO.ignoreByWatcher(targetFilePath);-- return copyFilePromise(sourceFilePath, targetFilePath);-}--function platformRenameFilePromise(- filePath,- newFilePath,- onProgress = undefined,-) {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.renameFilePromise(param, newFilePath, onProgress);- // .then(result => result);- } else if (webDavAPI) {- return webDavAPI.renameFilePromise(filePath, newFilePath, onProgress);- }- // PlatformIO.ignoreByWatcher(filePath, newFilePath);-- return renameFilePromise(filePath, newFilePath, onProgress);-}--function platformRenameDirectoryPromise(dirPath, newDirName) {- if (objectStoreAPI) {- const param = {- path: dirPath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.renameDirectoryPromise(param, newDirName);- } else if (webDavAPI) {- return webDavAPI.renameDirectoryPromise(dirPath, newDirName);- }-- return renameDirectoryPromise(dirPath, newDirName);-}--function platformCopyDirectoryPromise(param, newDirName, onProgress) {- if (objectStoreAPI) {- const params = {- ...param,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.copyDirectoryPromise(params, newDirName, onProgress);- } else if (webDavAPI) {- return webDavAPI.copyDirectoryPromise(param, newDirName, onProgress);- }-- return copyDirectoryPromise(param, newDirName, onProgress);-}--function platformMoveDirectoryPromise(param, newDirName, onProgress) {- if (objectStoreAPI) {- return objectStoreAPI.moveDirectoryPromise(- {- ...param,- bucketName: objectStoreAPI.config().bucketName,- },- newDirName,- onProgress,- );- } else if (webDavAPI) {- return webDavAPI.moveDirectoryPromise(param, newDirName, onProgress);- }- // PlatformIO.ignoreByWatcher(dirPath, newDirName);-- return moveDirectoryPromise(param, newDirName, onProgress);-}--function platformLoadTextFilePromise(filePath, isPreview) {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.loadTextFilePromise(param, isPreview);- } else if (webDavAPI) {- return webDavAPI.loadTextFilePromise(filePath, isPreview);- }- return loadTextFilePromise(filePath, isPreview);-}--function platformGetFileContentPromise(filePath, type) {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.getFileContentPromise(param, type);- } else if (webDavAPI) {- return webDavAPI.getFileContentPromise(filePath, type);- }- return getFileContentPromise(filePath, type);-}--function platformGetLocalFileContentPromise(filePath, type) {- return getFileContentPromise(filePath, type);-}--function platformSaveFilePromise(param, content, overwrite) {- if (objectStoreAPI) {- return objectStoreAPI.saveFilePromise(- {- ...param,- bucketName: objectStoreAPI.config().bucketName,- },- content,- overwrite,- );- } else if (webDavAPI) {- return webDavAPI.saveFilePromise(param, content, overwrite);- }-- return saveFilePromise(param, content, overwrite);-}--function saveTextFilePlatform(param, content, overwrite) {- if (objectStoreAPI) {- return objectStoreAPI.saveTextFilePromise(param, content, overwrite);- } else if (webDavAPI) {- return webDavAPI.saveTextFilePromise(param, content, overwrite);- }- return platformSaveTextFilePromise(param, content, overwrite);-}--function platformSaveTextFilePromise(param, content, overwrite) {- if (objectStoreAPI) {- return objectStoreAPI.saveTextFilePromise(- {- ...param,- bucketName: objectStoreAPI.config().bucketName,- },- content,- overwrite,- );- } else if (webDavAPI) {- return webDavAPI.saveTextFilePromise(param, content, overwrite);- }-- return saveTextFilePromise(param, content, overwrite);-}--function platformSaveBinaryFilePromise(- param,- content,- overwrite,- onUploadProgress,-) {- if (objectStoreAPI) {- return objectStoreAPI.saveBinaryFilePromise(- {- ...param,- bucketName: objectStoreAPI.config().bucketName,- },- content,- overwrite,- onUploadProgress,- );- } else if (webDavAPI) {- return webDavAPI.saveBinaryFilePromise(- param,- content,- overwrite,- onUploadProgress,- );- }-- return saveBinaryFilePromise(param, content, overwrite).then((succeeded) => {- if (succeeded && onUploadProgress) {- onUploadProgress({ key: param.path, loaded: 1, total: 1 }, undefined);- }- return succeeded;- });-}--function platformUploadFileByMultiPart(- filePath,- file,- overwrite,- onUploadProgress,-) {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.uploadFileByMultiPart(- param,- file,- overwrite,- onUploadProgress,- );- }-}--function platformDeleteFilePromise(path) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.deleteFilePromise(param);- } else if (webDavAPI) {- return webDavAPI.deleteFilePromise(path);- }- return deleteFilePromise(path);-}--function platformDeleteDirectoryPromise(path, useTrash) {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName,- };- return objectStoreAPI.deleteDirectoryPromise(param);- } else if (webDavAPI) {- return webDavAPI.deleteDirectoryPromise(path);- }-- if (useTrash && moveToTrash) {- return moveToTrash([path]);- } else {- return deleteDirectoryPromise(path);- }-}--function platformOpenDirectory(dirPath) {- return openDirectory(dirPath);-}--function platformOpenFile(filePath) {- openFile(filePath);-}--function platformResolveFilePath(filePath) {- return objectStoreAPI ? filePath : resolveFilePath(filePath);-}--function platformOpenUrl(url) {- openUrl(url);-}--/**- * TODO not used- * @returns {*}- */-function platformSelectFileDialog() {- return selectFileDialog();-}--function platformSelectDirectoryDialog() {- return selectDirectoryDialog();-}--function platformShareFiles(files) {- if (AppConfig.isCordova) {- shareFiles(files);- } else {- console.log('shareFiles is implemented in Cordova only.');- }-}--function platformCreateNewInstance(url) {- if (AppConfig.isElectron) {- return createNewInstance(url);- } else {- console.log('Creating new instances is supported only on Electron.');- }-}--function platformCheckFileExist(file) {- if (AppConfig.isCordova) {- return checkFileExist(file);- }- return platformGetPropertiesPromise(file).then((stats) => {- return stats && stats.isFile;- });-}--function platformCheckDirExist(dir) {- if (AppConfig.isCordova) {- return checkDirExist(dir);- }- // In cordova this check is too expensive for dirs like /.ts- return platformGetPropertiesPromise(dir).then((stats) => {- return stats && !stats.isFile;- });-}--function platformUnZip(filePath, targetPath) {- if (AppConfig.isElectron) {- return unZip(filePath, targetPath);- } else {- console.log('platformUnZip is supported only on Electron.');- }-}--function platformDirProperties(filePath) {- if (AppConfig.isElectron && !objectStoreAPI && !webDavAPI) {- return getDirProperties(filePath);- } else {- return Promise.reject(- new Error(- 'platformDirProperties is supported on Electron local storage.',- ),- );- }-}--module.exports = {- platformGetLocationPath,- platformIsWorkerAvailable,- platformReadMacOSTags,- platformWatchFolder,- platformShowMainWindow,- platformQuitApp,- platformEnableObjectStoreSupport,- platformEnableWebdavSupport,- platformDisableObjectStoreSupport,- platformDisableWebdavSupport,- platformHaveObjectStoreSupport,- platformHaveWebDavSupport,- platformIsMinio,- platformGetDirSeparator,- platformFocusWindow,- platformGetDevicePaths,- platformGetURLforPath,- platformCreateDirectoryIndexInWorker,- platformListDirectoryPromise,- platformListMetaDirectoryPromise,- platformListObjectStoreDir,- platformGetPropertiesPromise,- platformCreateDirectoryPromise,- platformCopyFilePromise,- platformRenameFilePromise,- platformRenameDirectoryPromise,- platformMoveDirectoryPromise,- platformCopyDirectoryPromise,- platformLoadTextFilePromise,- platformGetFileContentPromise,- platformGetLocalFileContentPromise,- platformSaveFilePromise,- platformUploadFileByMultiPart,- saveTextFilePlatform,- platformSaveTextFilePromise,- platformSaveBinaryFilePromise,- platformDeleteFilePromise,- platformDeleteDirectoryPromise,- platformOpenDirectory,- platformOpenFile,- platformResolveFilePath,- platformOpenUrl,- platformSelectFileDialog,- platformSelectDirectoryDialog,- platformShareFiles,- platformCreateIndex,- platformCreateNewInstance,- platformCheckDirExist,- platformCheckFileExist,- platformUnZip,- platformDirProperties,-};diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.tsindex 4af8f6e4e..1c3542832 100644--- a/src/renderer/services/utils-io.ts+++ b/src/renderer/services/utils-io.ts@@ -19,7 +19,11 @@import { getUuid } from '@tagspaces/tagspaces-common/utils-io';import { marked } from 'marked';import DOMPurify from 'dompurify';-import { loadIndex, enhanceDirectoryIndex } from '@tagspaces/tagspaces-indexer';+import {+ createIndex,+ loadIndex,+ enhanceDirectoryIndex,+} from '@tagspaces/tagspaces-indexer';import {enhanceEntry,loadJSONString,@@ -537,7 +541,7 @@ export function createDirectoryIndex(if (extractText) {mode.push('extractTextContent');}- return PlatformIO.createIndex(+ return createIndex(param,listDirectoryPromise,loadTextFilePromise,