zotero-plugin 5.0.2 → 5.0.4
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 +8 -9
- package/bin/zipup.js +5 -6
- package/package.json +3 -3
- package/version.js +6 -6
package/bin/release.js
CHANGED
|
@@ -8248,7 +8248,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8248
8248
|
"package.json"(exports, module) {
|
|
8249
8249
|
module.exports = {
|
|
8250
8250
|
name: "zotero-plugin",
|
|
8251
|
-
version: "5.0.
|
|
8251
|
+
version: "5.0.4",
|
|
8252
8252
|
description: "Zotero plugin builder",
|
|
8253
8253
|
homepage: "https://github.com/retorquere/zotero-plugin/wiki",
|
|
8254
8254
|
bin: {
|
|
@@ -8278,7 +8278,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8278
8278
|
dependencies: {
|
|
8279
8279
|
"@octokit/rest": "^21.1.1",
|
|
8280
8280
|
"@rgrove/parse-xml": "^4.2.0",
|
|
8281
|
-
"@types/node": "^22.13.
|
|
8281
|
+
"@types/node": "^22.13.8",
|
|
8282
8282
|
"@xmldom/xmldom": "^0.9.8",
|
|
8283
8283
|
ajv: "^8.17.1",
|
|
8284
8284
|
"ajv-keywords": "^5.1.0",
|
|
@@ -8301,7 +8301,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
8301
8301
|
"string-to-arraybuffer": "^1.0.2",
|
|
8302
8302
|
"ts-node": "^10.9.2",
|
|
8303
8303
|
tslib: "^2.8.1",
|
|
8304
|
-
typescript: "^5.
|
|
8304
|
+
typescript: "^5.8.2",
|
|
8305
8305
|
"uri-templates": "^0.2.0",
|
|
8306
8306
|
uzip: "^0.20201231.0",
|
|
8307
8307
|
"xml-parser": "^1.2.1",
|
|
@@ -11740,9 +11740,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
11740
11740
|
var os = __toESM(__require("os"));
|
|
11741
11741
|
var path = __toESM(__require("path"));
|
|
11742
11742
|
var version = null;
|
|
11743
|
-
var
|
|
11744
|
-
if (fs.existsSync(
|
|
11745
|
-
version = __require(
|
|
11743
|
+
var version_json = path.join(root_default, "gen/version.json");
|
|
11744
|
+
if (fs.existsSync(version_json)) {
|
|
11745
|
+
version = __require(version_json).version;
|
|
11746
11746
|
} else {
|
|
11747
11747
|
console.log("writing version");
|
|
11748
11748
|
version = __require(path.join(root_default, "package.json")).version;
|
|
@@ -11752,9 +11752,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
11752
11752
|
} else if (!ContinuousIntegration.service) {
|
|
11753
11753
|
version = `${version}.${os.userInfo().username}.${os.hostname()}`;
|
|
11754
11754
|
}
|
|
11755
|
-
if (!fs.existsSync(path.dirname(
|
|
11756
|
-
fs.writeFileSync(
|
|
11757
|
-
`, "utf8");
|
|
11755
|
+
if (!fs.existsSync(path.dirname(version_json))) fs.mkdirSync(path.dirname(version_json));
|
|
11756
|
+
fs.writeFileSync(version_json, JSON.stringify({ version }));
|
|
11758
11757
|
}
|
|
11759
11758
|
var version_default = version;
|
|
11760
11759
|
|
package/bin/zipup.js
CHANGED
|
@@ -26122,9 +26122,9 @@
|
|
|
26122
26122
|
|
|
26123
26123
|
// version.ts
|
|
26124
26124
|
var version = null;
|
|
26125
|
-
var
|
|
26126
|
-
if (fs.existsSync(
|
|
26127
|
-
version = __require(
|
|
26125
|
+
var version_json = path.join(root_default, "gen/version.json");
|
|
26126
|
+
if (fs.existsSync(version_json)) {
|
|
26127
|
+
version = __require(version_json).version;
|
|
26128
26128
|
} else {
|
|
26129
26129
|
console.log("writing version");
|
|
26130
26130
|
version = __require(path.join(root_default, "package.json")).version;
|
|
@@ -26134,9 +26134,8 @@
|
|
|
26134
26134
|
} else if (!ContinuousIntegration.service) {
|
|
26135
26135
|
version = `${version}.${os.userInfo().username}.${os.hostname()}`;
|
|
26136
26136
|
}
|
|
26137
|
-
if (!fs.existsSync(path.dirname(
|
|
26138
|
-
fs.writeFileSync(
|
|
26139
|
-
`, "utf8");
|
|
26137
|
+
if (!fs.existsSync(path.dirname(version_json))) fs.mkdirSync(path.dirname(version_json));
|
|
26138
|
+
fs.writeFileSync(version_json, JSON.stringify({ version }));
|
|
26140
26139
|
}
|
|
26141
26140
|
var version_default = version;
|
|
26142
26141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@octokit/rest": "^21.1.1",
|
|
32
32
|
"@rgrove/parse-xml": "^4.2.0",
|
|
33
|
-
"@types/node": "^22.13.
|
|
33
|
+
"@types/node": "^22.13.8",
|
|
34
34
|
"@xmldom/xmldom": "^0.9.8",
|
|
35
35
|
"ajv": "^8.17.1",
|
|
36
36
|
"ajv-keywords": "^5.1.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"string-to-arraybuffer": "^1.0.2",
|
|
54
54
|
"ts-node": "^10.9.2",
|
|
55
55
|
"tslib": "^2.8.1",
|
|
56
|
-
"typescript": "^5.
|
|
56
|
+
"typescript": "^5.8.2",
|
|
57
57
|
"uri-templates": "^0.2.0",
|
|
58
58
|
"uzip": "^0.20201231.0",
|
|
59
59
|
"xml-parser": "^1.2.1",
|
package/version.js
CHANGED
|
@@ -8,9 +8,9 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
8
8
|
const continuous_integration_1 = require("./continuous-integration");
|
|
9
9
|
const root_1 = tslib_1.__importDefault(require("./root"));
|
|
10
10
|
let version = null;
|
|
11
|
-
const
|
|
12
|
-
if (fs.existsSync(
|
|
13
|
-
version = require(
|
|
11
|
+
const version_json = path.join(root_1.default, 'gen/version.json');
|
|
12
|
+
if (fs.existsSync(version_json)) {
|
|
13
|
+
version = require(version_json).version; // eslint-disable-line @typescript-eslint/no-require-imports
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
console.log('writing version');
|
|
@@ -23,8 +23,8 @@ else {
|
|
|
23
23
|
else if (!continuous_integration_1.ContinuousIntegration.service) {
|
|
24
24
|
version = `${version}.${os.userInfo().username}.${os.hostname()}`;
|
|
25
25
|
}
|
|
26
|
-
if (!fs.existsSync(path.dirname(
|
|
27
|
-
fs.mkdirSync(path.dirname(
|
|
28
|
-
fs.writeFileSync(
|
|
26
|
+
if (!fs.existsSync(path.dirname(version_json)))
|
|
27
|
+
fs.mkdirSync(path.dirname(version_json));
|
|
28
|
+
fs.writeFileSync(version_json, JSON.stringify({ version }));
|
|
29
29
|
}
|
|
30
30
|
exports.default = version;
|