From 06fbc92cf1a8237ba1f2075cdf43787d8060abb3 Mon Sep 17 00:00:00 2001 From: Dae Houlihan Date: Mon, 14 Oct 2024 18:10:42 -0400 Subject: [PATCH] update symbolic link processing in light of changes to OSFile --- README.md | 4 +- package-lock.json | 148 ++++++++++++++++++++-------------------- package.json | 6 +- src/mdbcTypes.d.ts | 1 - src/modules/mdbcScan.ts | 26 ++++--- typing/global.d.ts | 2 +- update-beta.json | 8 +-- update.json | 9 +-- 8 files changed, 106 insertions(+), 98 deletions(-) diff --git a/README.md b/README.md index 308f6e8..7ef2980 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ - + - + diff --git a/package-lock.json b/package-lock.json index 2d59ea9..47ffc30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,14 +14,14 @@ "devDependencies": { "@stylistic/eslint-plugin": "^2.9.0", "@types/node": "^22.7.5", - "@typescript-eslint/eslint-plugin": "^8.8.1", - "@typescript-eslint/parser": "^8.8.1", + "@typescript-eslint/eslint-plugin": "^8.9.0", + "@typescript-eslint/parser": "^8.9.0", "eslint": "<9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1", - "globals": "^15.10.0", + "globals": "^15.11.0", "prettier": "^3.3.3", "typescript": "^5.6.3", "zotero-plugin-scaffold": "^0.1.6", @@ -1664,9 +1664,9 @@ "license": "MIT" }, "node_modules/@octokit/plugin-paginate-graphql": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-5.2.3.tgz", - "integrity": "sha512-EzFueuXVU3VHv5FwEXbdznn9EmyF0vA5LGDX6a8fJ9YJAlDgdYHRKJMO4Ghl2PPPJBxIPMDUJMnlUHqcvP7AnQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-5.2.4.tgz", + "integrity": "sha512-pLZES1jWaOynXKHOqdnwZ5ULeVR6tVVCMm+AUbp0htdcyXDU95WbkYdU4R2ej1wKj5Tu94Mee2Ne0PjPO9cCyA==", "dev": true, "license": "MIT", "engines": { @@ -2028,17 +2028,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.8.1.tgz", - "integrity": "sha512-xfvdgA8AP/vxHgtgU310+WBnLB4uJQ9XdyP17RebG26rLtDrQJV3ZYrcopX91GrHmMoH8bdSwMRh2a//TiJ1jQ==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.9.0.tgz", + "integrity": "sha512-Y1n621OCy4m7/vTXNlCbMVp87zSd7NH0L9cXD8aIpOaNlzeWxIK4+Q19A68gSmTNRZn92UjocVUWDthGxtqHFg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.8.1", - "@typescript-eslint/type-utils": "8.8.1", - "@typescript-eslint/utils": "8.8.1", - "@typescript-eslint/visitor-keys": "8.8.1", + "@typescript-eslint/scope-manager": "8.9.0", + "@typescript-eslint/type-utils": "8.9.0", + "@typescript-eslint/utils": "8.9.0", + "@typescript-eslint/visitor-keys": "8.9.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -2062,16 +2062,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.8.1.tgz", - "integrity": "sha512-hQUVn2Lij2NAxVFEdvIGxT9gP1tq2yM83m+by3whWFsWC+1y8pxxxHUFE1UqDu2VsGi2i6RLcv4QvouM84U+ow==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.9.0.tgz", + "integrity": "sha512-U+BLn2rqTTHnc4FL3FJjxaXptTxmf9sNftJK62XLz4+GxG3hLHm/SUNaaXP5Y4uTiuYoL5YLy4JBCJe3+t8awQ==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "8.8.1", - "@typescript-eslint/types": "8.8.1", - "@typescript-eslint/typescript-estree": "8.8.1", - "@typescript-eslint/visitor-keys": "8.8.1", + "@typescript-eslint/scope-manager": "8.9.0", + "@typescript-eslint/types": "8.9.0", + "@typescript-eslint/typescript-estree": "8.9.0", + "@typescript-eslint/visitor-keys": "8.9.0", "debug": "^4.3.4" }, "engines": { @@ -2091,14 +2091,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.8.1.tgz", - "integrity": "sha512-X4JdU+66Mazev/J0gfXlcC/dV6JI37h+93W9BRYXrSn0hrE64IoWgVkO9MSJgEzoWkxONgaQpICWg8vAN74wlA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.9.0.tgz", + "integrity": "sha512-bZu9bUud9ym1cabmOYH9S6TnbWRzpklVmwqICeOulTCZ9ue2/pczWzQvt/cGj2r2o1RdKoZbuEMalJJSYw3pHQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.8.1", - "@typescript-eslint/visitor-keys": "8.8.1" + "@typescript-eslint/types": "8.9.0", + "@typescript-eslint/visitor-keys": "8.9.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2109,14 +2109,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.8.1.tgz", - "integrity": "sha512-qSVnpcbLP8CALORf0za+vjLYj1Wp8HSoiI8zYU5tHxRVj30702Z1Yw4cLwfNKhTPWp5+P+k1pjmD5Zd1nhxiZA==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.9.0.tgz", + "integrity": "sha512-JD+/pCqlKqAk5961vxCluK+clkppHY07IbV3vett97KOV+8C6l+CPEPwpUuiMwgbOz/qrN3Ke4zzjqbT+ls+1Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.8.1", - "@typescript-eslint/utils": "8.8.1", + "@typescript-eslint/typescript-estree": "8.9.0", + "@typescript-eslint/utils": "8.9.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -2134,9 +2134,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.8.1.tgz", - "integrity": "sha512-WCcTP4SDXzMd23N27u66zTKMuEevH4uzU8C9jf0RO4E04yVHgQgW+r+TeVTNnO1KIfrL8ebgVVYYMMO3+jC55Q==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.9.0.tgz", + "integrity": "sha512-SjgkvdYyt1FAPhU9c6FiYCXrldwYYlIQLkuc+LfAhCna6ggp96ACncdtlbn8FmnG72tUkXclrDExOpEYf1nfJQ==", "dev": true, "license": "MIT", "engines": { @@ -2148,14 +2148,14 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.8.1.tgz", - "integrity": "sha512-A5d1R9p+X+1js4JogdNilDuuq+EHZdsH9MjTVxXOdVFfTJXunKJR/v+fNNyO4TnoOn5HqobzfRlc70NC6HTcdg==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.9.0.tgz", + "integrity": "sha512-9iJYTgKLDG6+iqegehc5+EqE6sqaee7kb8vWpmHZ86EqwDjmlqNNHeqDVqb9duh+BY6WCNHfIGvuVU3Tf9Db0g==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "8.8.1", - "@typescript-eslint/visitor-keys": "8.8.1", + "@typescript-eslint/types": "8.9.0", + "@typescript-eslint/visitor-keys": "8.9.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -2177,16 +2177,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.8.1.tgz", - "integrity": "sha512-/QkNJDbV0bdL7H7d0/y0qBbV2HTtf0TIyjSDTvvmQEzeVx8jEImEbLuOA4EsvE8gIgqMitns0ifb5uQhMj8d9w==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.9.0.tgz", + "integrity": "sha512-PKgMmaSo/Yg/F7kIZvrgrWa1+Vwn036CdNUvYFEkYbPwOH4i8xvkaRlu148W3vtheWK9ckKRIz7PBP5oUlkrvQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.8.1", - "@typescript-eslint/types": "8.8.1", - "@typescript-eslint/typescript-estree": "8.8.1" + "@typescript-eslint/scope-manager": "8.9.0", + "@typescript-eslint/types": "8.9.0", + "@typescript-eslint/typescript-estree": "8.9.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2200,13 +2200,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.8.1.tgz", - "integrity": "sha512-0/TdC3aeRAsW7MDvYRwEc1Uwm0TIBfzjPFgg60UU2Haj5qsCs9cc3zNgY71edqE3LbWfF/WoZQd3lJoDXFQpag==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.9.0.tgz", + "integrity": "sha512-Ht4y38ubk4L5/U8xKUBfKNYGmvKvA1CANoxiTRMM+tOLk3lbF3DvzZCxJCRSE+2GdCMSh6zq9VZJc3asc1XuAA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.8.1", + "@typescript-eslint/types": "8.9.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -3159,9 +3159,9 @@ "license": "MIT" }, "node_modules/bumpp": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/bumpp/-/bumpp-9.6.1.tgz", - "integrity": "sha512-lQlPfyS0GrO5FaOODK+OHQxfCT+6/xWfd3Zt8dzsmzm69RWQfh5fAU9igmeZWOzK/s+4vL+gQLo3yw474ntBZw==", + "version": "9.7.1", + "resolved": "https://registry.npmjs.org/bumpp/-/bumpp-9.7.1.tgz", + "integrity": "sha512-Z6fhD5B8POcSkP+LIHeFQ0+vF0p/C3U+aYp3Yui748VCmsHrhJ/ZshP2970FqE93ymHrJVXTTF8/HDKrRNEYvw==", "dev": true, "license": "MIT", "dependencies": { @@ -4656,9 +4656,9 @@ } }, "node_modules/es-toolkit": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.24.0.tgz", - "integrity": "sha512-nZM+MRSGhKjCdjvqWEFr5Jns6vxoXtBcsl4/cEsGMgsMx8Z2ato4vBTGMUSIQBZJgEdKyNcgGh42yu9xiuNYtQ==", + "version": "1.25.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.25.1.tgz", + "integrity": "sha512-MVagOA/u9rgdFRfm6aQti7JmPhSDTYIBD3cm0P/l6us+LVf5XT9Drnv/woYXOtezKqwIGZWzb2FdUZyYo/eyug==", "dev": true, "license": "MIT", "workspaces": [ @@ -5631,9 +5631,9 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dev": true, "license": "MIT", "dependencies": { @@ -5861,9 +5861,9 @@ } }, "node_modules/get-east-asian-width": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.2.0.tgz", - "integrity": "sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", "dev": true, "license": "MIT", "engines": { @@ -6074,9 +6074,9 @@ } }, "node_modules/globals": { - "version": "15.10.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.10.0.tgz", - "integrity": "sha512-tqFIbz83w4Y5TCbtgjZjApohbuh7K9BxGYFm7ifwDR240tvdb7P9x+/9VvUKlmkPoiknoJtanI8UOrqxS3a7lQ==", + "version": "15.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.11.0.tgz", + "integrity": "sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw==", "dev": true, "license": "MIT", "engines": { @@ -7693,9 +7693,9 @@ } }, "node_modules/nan": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz", - "integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==", + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz", + "integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==", "license": "MIT", "optional": true }, @@ -8381,26 +8381,26 @@ } }, "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.0.tgz", + "integrity": "sha512-ZkDsAOcxsUMZ4Lz5fVciOehNcJ+Gb8gTzcA4yl3wnc273BAybYWrQ+Ks/OjCjSEpjvQkDSeZbybK9qj2VHHdGA==", "dev": true, "license": "MIT", "dependencies": { - "entities": "^4.4.0" + "entities": "^4.5.0" }, "funding": { "url": "https://github.com/inikulin/parse5?sponsor=1" } }, "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", - "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz", + "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==", "dev": true, "license": "MIT", "dependencies": { - "domhandler": "^5.0.2", + "domhandler": "^5.0.3", "parse5": "^7.0.0" }, "funding": { diff --git a/package.json b/package.json index 385d159..e30d768 100644 --- a/package.json +++ b/package.json @@ -35,14 +35,14 @@ "devDependencies": { "@stylistic/eslint-plugin": "^2.9.0", "@types/node": "^22.7.5", - "@typescript-eslint/eslint-plugin": "^8.8.1", - "@typescript-eslint/parser": "^8.8.1", + "@typescript-eslint/eslint-plugin": "^8.9.0", + "@typescript-eslint/parser": "^8.9.0", "eslint": "<9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1", - "globals": "^15.10.0", + "globals": "^15.11.0", "prettier": "^3.3.3", "typescript": "^5.6.3", "zotero-plugin-scaffold": "^0.1.6", diff --git a/src/mdbcTypes.d.ts b/src/mdbcTypes.d.ts index 3775269..0b1d269 100644 --- a/src/mdbcTypes.d.ts +++ b/src/mdbcTypes.d.ts @@ -38,7 +38,6 @@ export interface prefParam { export interface OSFile { isDir: boolean - isSymLink: boolean name: string path: string } diff --git a/src/modules/mdbcScan.ts b/src/modules/mdbcScan.ts index 919f697..580ce47 100644 --- a/src/modules/mdbcScan.ts +++ b/src/modules/mdbcScan.ts @@ -539,12 +539,15 @@ const listDirContents = async (dirpath: string): Promise => { const listFilesRecursively = async function* (dirpath: string): AsyncGenerator { // Does not follow symbolic links // - const entries = await listDirContents(dirpath) + const entries: OSFile[] = await listDirContents(dirpath) for (const entry of entries) { - if (entry.isDir) { - yield* listFilesRecursively(entry.path) - } else if (!entry.isSymLink) { - yield entry + const zfile: nsIFile = Zotero.File.pathToFile(entry.path) + if (zfile.isReadable() && !zfile.isHidden() && !zfile.isSpecial() && !zfile.isSymlink()) { + if (zfile.isDirectory()) { + yield* listFilesRecursively(entry.path) + } else if (zfile.isFile()) { + yield entry + } } } } @@ -554,7 +557,7 @@ class Utils { const files: OSFile[] = [] // OS.File.Entry[] try { - const basedirObj = Zotero.File.pathToFile(dirpath) + const basedirObj: nsIFile = Zotero.File.pathToFile(dirpath) basedirObj.normalize() if (!basedirObj.exists() || !basedirObj.isDirectory()) { @@ -562,8 +565,8 @@ class Utils { throw new Error(`${basedirObj.path} does not exist or is file`) } - for await (const filepath of listFilesRecursively(basedirObj.path)) { - files.push(filepath) + for await (const file of listFilesRecursively(basedirObj.path)) { + files.push(file) } } catch (err) { Logger.log('getFilesRecursively', `ERROR: ${getErrorMessage(err)}`, false, 'warn') @@ -1738,7 +1741,8 @@ export class systemInterface { if (ids === 'selected') { try { - return Zotero.getActiveZoteroPane().getSelectedItems(true) + // return Zotero.getActiveZoteroPane().getSelectedItems(true) + return ztoolkit.getGlobal('ZoteroPane').getSelectedItems(true) } catch (err) { // zoteroPane.getSelectedItems() doesn't test whether there's a selection and errors out if not Logger.log('expandSelection', `Could not get selected items: ${getErrorMessage(err)}`, false, 'warn') @@ -1972,12 +1976,16 @@ export class UIHelpers { static registerRightClickMenuItem() { $patch$( ZoteroPane, + // ztoolkit.getGlobal('ZoteroPane'), + // ztoolkit.getGlobal('Zotero_Tabs').select('zotero-pane'), 'buildItemContextMenu', (original) => async function ZoteroPane_buildItemContextMenu() { // @ts-ignore await original.apply(this, arguments) + // const doc = Zotero.getMainWindow().document + const itemMenuRevealId = '__addonRef__-itemmenu' document.getElementById(itemMenuRevealId)?.remove() diff --git a/typing/global.d.ts b/typing/global.d.ts index b5593dd..14b4fb6 100644 --- a/typing/global.d.ts +++ b/typing/global.d.ts @@ -21,4 +21,4 @@ declare const addon: import('../src/addon').default declare const __env__: 'production' | 'development' -declare class Localization {} +// declare class Localization {} diff --git a/update-beta.json b/update-beta.json index 0cf584c..de15548 100644 --- a/update-beta.json +++ b/update-beta.json @@ -3,8 +3,8 @@ "daeda@mit.edu": { "updates": [ { - "version": "0.1.2", - "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/download/v0.1.2/markdb-connect.xpi", + "version": "0.1.3", + "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/latest/download/markdb-connect.xpi", "applications": { "zotero": { "strict_min_version": "6.999", @@ -27,8 +27,8 @@ "dev@daeh.info": { "updates": [ { - "version": "0.1.0-rc.5", - "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/download/v0.1.0-rc.5/markdb-connect-0.1.0-rc.5.xpi", + "version": "0.1.3", + "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/latest/download/markdb-connect.xpi", "applications": { "zotero": { "strict_min_version": "6.999" diff --git a/update.json b/update.json index 1aa456d..de15548 100644 --- a/update.json +++ b/update.json @@ -3,11 +3,12 @@ "daeda@mit.edu": { "updates": [ { - "version": "0.1.2", + "version": "0.1.3", "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/latest/download/markdb-connect.xpi", "applications": { "zotero": { - "strict_min_version": "6.999" + "strict_min_version": "6.999", + "strict_max_version": "7.0.*" } } }, @@ -26,8 +27,8 @@ "dev@daeh.info": { "updates": [ { - "version": "0.1.0-rc.5", - "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/download/v0.1.0-rc.5/markdb-connect-0.1.0-rc.5.xpi", + "version": "0.1.3", + "update_link": "https://github.com/daeh/zotero-markdb-connect/releases/latest/download/markdb-connect.xpi", "applications": { "zotero": { "strict_min_version": "6.999"