zotero-plugin 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/release.js +3 -3
- package/package.json +1 -1
package/bin/release.js
CHANGED
|
@@ -8137,7 +8137,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8137
8137
|
"package.json"(exports, module) {
|
|
8138
8138
|
module.exports = {
|
|
8139
8139
|
name: "zotero-plugin",
|
|
8140
|
-
version: "4.0.
|
|
8140
|
+
version: "4.0.2",
|
|
8141
8141
|
description: "Zotero plugin builder",
|
|
8142
8142
|
homepage: "https://github.com/retorquere/zotero-plugin/wiki",
|
|
8143
8143
|
bin: {
|
|
@@ -11509,7 +11509,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
11509
11509
|
process.on("unhandledRejection", (up) => {
|
|
11510
11510
|
throw up;
|
|
11511
11511
|
});
|
|
11512
|
-
program.version(require_package2().version).option("-r, --release-message <value>", "add message to github release").option("-x, --xpi", "xpi filename template", "{name}-{version}.xpi").option("-d, --dry-run", "dry run", !ContinuousIntegration.service).option("-p, --pre-release", "release is a pre-release").parse(process.argv);
|
|
11512
|
+
program.version(require_package2().version).option("-r, --release-message <value>", "add message to github release").option("-x, --xpi <value>", "xpi filename template", "{name}-{version}.xpi").option("-d, --dry-run", "dry run", !ContinuousIntegration.service).option("-p, --pre-release", "release is a pre-release").parse(process.argv);
|
|
11513
11513
|
var options = program.opts();
|
|
11514
11514
|
if (options.releaseMessage?.startsWith("@")) options.releaseMessage = fs2.readFileSync(options.releaseMessage.substring(1), "utf-8");
|
|
11515
11515
|
var octokit = new Octokit2({ auth: `token ${process.env.GITHUB_TOKEN}` });
|
|
@@ -11620,7 +11620,7 @@ This update may name other issues, but the build just dropped here is for you; i
|
|
|
11620
11620
|
const assets = (await octokit.repos.listReleaseAssets({ owner, repo, release_id: release.data.id })).data;
|
|
11621
11621
|
const updates = {
|
|
11622
11622
|
"update.rdf": !pkg.xpi.update || pkg.xpi.update.rdf ? "application/rdf+xml" : "",
|
|
11623
|
-
"updates.json": !pkg.xpi.update || pkg.xpi.
|
|
11623
|
+
"updates.json": !pkg.xpi.update || pkg.xpi.updates.json ? "application/json" : ""
|
|
11624
11624
|
};
|
|
11625
11625
|
for (const asset of assets) {
|
|
11626
11626
|
if (asset.name in updates && updates[asset.name]) {
|