diff --git a/.eslintrc.json b/.eslintrc.json index d7a758a..3333b26 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,7 +30,7 @@ ], "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-non-null-assertion": "off" + "@typescript-eslint/no-non-null-withion": "off" }, "ignorePatterns": [ "**/build/**", diff --git a/LICENSE b/LICENSE index dbbe355..8f12574 100644 --- a/LICENSE +++ b/LICENSE @@ -25,7 +25,7 @@ want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer +with two steps: (1) with copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. diff --git a/package.json b/package.json index cc63e54..e814662 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zotero-citation", - "version": "0.4.6", + "version": "0.4.7", "description": "Easier Citation for Zotero", "config": { "addonName": "Easier Citation", diff --git a/scripts/build.mjs b/scripts/build.mjs index c2c33c6..5f8dd65 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -5,7 +5,7 @@ import { existsSync, lstatSync, writeFileSync, readFileSync, mkdirSync, readdirS import { env, exit } from "process"; import replaceInFile from "replace-in-file"; const { replaceInFileSync } = replaceInFile; -import details from "../package.json" assert { type: "json" }; +import details from "../package.json" with { type: "json" }; const { name, author, description, homepage, version, config } = details; diff --git a/scripts/reload.mjs b/scripts/reload.mjs index 5cf84c7..5f2da62 100644 --- a/scripts/reload.mjs +++ b/scripts/reload.mjs @@ -1,7 +1,7 @@ import { exit } from "process"; import { execSync } from "child_process"; -import details from "../package.json" assert { type: "json" }; -import cmd from "./zotero-cmd.json" assert { type: "json" }; +import details from "../package.json" with { type: "json" }; +import cmd from "./zotero-cmd.json" with { type: "json" }; const { addonID, addonName } = details.config; const { version } = details; diff --git a/scripts/start.mjs b/scripts/start.mjs index a6c3bad..43c34fe 100644 --- a/scripts/start.mjs +++ b/scripts/start.mjs @@ -2,8 +2,8 @@ import { execSync } from "child_process"; import { exit } from "process"; import { existsSync, writeFileSync, readFileSync } from "fs"; import path from "path"; -import details from "../package.json" assert { type: "json" }; -import cmd from "./zotero-cmd.json" assert { type: "json" }; +import details from "../package.json" with { type: "json" }; +import cmd from "./zotero-cmd.json" with { type: "json" }; const { addonID } = details.config; const { zoteroBinPath, profilePath, dataDir } = cmd.exec; diff --git a/scripts/stop.mjs b/scripts/stop.mjs index a9c9601..68be9fd 100644 --- a/scripts/stop.mjs +++ b/scripts/stop.mjs @@ -1,6 +1,6 @@ import process from "process"; import { execSync } from "child_process"; -import cmd from "./zotero-cmd.json" assert { type: "json" }; +import cmd from "./zotero-cmd.json" with { type: "json" }; const { killZoteroWindows, killZoteroUnix } = cmd; try { diff --git a/src/modules/cite.ts b/src/modules/cite.ts index bf612ff..861701c 100644 --- a/src/modules/cite.ts +++ b/src/modules/cite.ts @@ -119,7 +119,7 @@ export const citeItems = async () => { Zotero.Integration?.currentSession?.agent || "MacWord16", "addEditCitation", "/Applications/Microsoft Word.app/", - 1, + 2, ); } else { await Zotero.Integration.execCommand( diff --git a/src/modules/views.ts b/src/modules/views.ts index 1510887..f34b6a6 100644 --- a/src/modules/views.ts +++ b/src/modules/views.ts @@ -90,11 +90,8 @@ class Views { ZoteroPane.itemsView, "onDragStart", config.addonRef, - (original) => async (event: any, row: number) => { - await original(event, row); - event.dataTransfer.setData("text/plain", " "); - event.dataTransfer.setData("text/html", " "); - ztoolkit.log("getDragTarget", Zotero.DragDrop.getDragTarget(event)) + (original: any) => async (event: any, row: number) => { + event.dataTransfer.setData("text/plain", ""); }, ); }