zotero-plugin 2.0.12 → 2.0.13
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 +1 -1
- package/bin/start.py +11 -4
- package/package.json +13 -13
package/bin/release.js
CHANGED
|
@@ -103,7 +103,7 @@ async function uploadAsset(release, asset, contentType) {
|
|
|
103
103
|
repo,
|
|
104
104
|
url: release.data.upload_url,
|
|
105
105
|
release_id: release.data.id,
|
|
106
|
-
data: fs.readFileSync(asset),
|
|
106
|
+
data: fs.readFileSync(asset), // TODO: what is going on here octokit?!
|
|
107
107
|
headers: {
|
|
108
108
|
'content-type': contentType,
|
|
109
109
|
'content-length': fs.statSync(asset).size,
|
package/bin/start.py
CHANGED
|
@@ -11,6 +11,12 @@ import subprocess
|
|
|
11
11
|
import collections
|
|
12
12
|
import types
|
|
13
13
|
import platform
|
|
14
|
+
import argparse
|
|
15
|
+
|
|
16
|
+
argParser = argparse.ArgumentParser()
|
|
17
|
+
argParser.add_argument("-b", "--beta", help="start beta", action='store_true')
|
|
18
|
+
|
|
19
|
+
args = argParser.parse_args()
|
|
14
20
|
|
|
15
21
|
class Config:
|
|
16
22
|
def __init__(self):
|
|
@@ -26,19 +32,20 @@ class Config:
|
|
|
26
32
|
)
|
|
27
33
|
|
|
28
34
|
self.zotero = types.SimpleNamespace(
|
|
29
|
-
path=config.get('zotero', 'path', fallback=None),
|
|
35
|
+
path=config.get('zotero', 'beta' if args.beta else 'path', fallback=None),
|
|
30
36
|
log=config.get('zotero', 'log', fallback=None),
|
|
31
37
|
db=config.get('zotero', 'db', fallback=None)
|
|
32
38
|
)
|
|
33
39
|
|
|
40
|
+
beta_infix = '-beta' if args.beta else ''
|
|
34
41
|
if self.zotero.path:
|
|
35
42
|
self.zotero.path = os.path.expanduser(self.zotero.path)
|
|
36
43
|
elif platform.system() == 'Darwin':
|
|
37
|
-
self.zotero.path = '/Applications/Zotero.app/Contents/MacOS/zotero'
|
|
44
|
+
self.zotero.path = f'/Applications/Zotero{beta_infix}.app/Contents/MacOS/zotero'
|
|
38
45
|
elif platform.system() == 'Linux':
|
|
39
|
-
self.zotero.path = '/usr/lib/zotero/zotero'
|
|
46
|
+
self.zotero.path = f'/usr/lib/zotero{beta_infix}/zotero'
|
|
40
47
|
elif platform.system() == 'Windows':
|
|
41
|
-
self.zotero.path = 'C:/Program Files (x86)/Zotero/Zotero.exe'
|
|
48
|
+
self.zotero.path = f'C:/Program Files (x86)/Zotero{beta_infix}/Zotero.exe'
|
|
42
49
|
else:
|
|
43
50
|
assert False, f'{platform.system()} not supported'
|
|
44
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zotero-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Zotero plugin builder",
|
|
5
5
|
"homepage": "https://github.com/retorquere/zotero-plugin/wiki",
|
|
6
6
|
"bin": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@octokit/rest": "^20.0.2",
|
|
31
31
|
"@rgrove/parse-xml": "^4.1.0",
|
|
32
|
-
"@types/node": "^20.
|
|
33
|
-
"@types/pako": "^2.0.
|
|
34
|
-
"@types/tar-js": "^0.3.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
36
|
-
"@typescript-eslint/parser": "^6.
|
|
32
|
+
"@types/node": "^20.10.6",
|
|
33
|
+
"@types/pako": "^2.0.3",
|
|
34
|
+
"@types/tar-js": "^0.3.5",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
36
|
+
"@typescript-eslint/parser": "^6.16.0",
|
|
37
37
|
"@xmldom/xmldom": "^0.8.10",
|
|
38
38
|
"ajv": "^8.12.0",
|
|
39
39
|
"ajv-keywords": "^5.1.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"current-git-branch": "^1.1.0",
|
|
43
43
|
"dotenv": "^16.3.1",
|
|
44
44
|
"ejs": "^3.1.9",
|
|
45
|
-
"eslint": "^8.
|
|
46
|
-
"eslint-plugin-import": "^2.29.
|
|
45
|
+
"eslint": "^8.56.0",
|
|
46
|
+
"eslint-plugin-import": "^2.29.1",
|
|
47
47
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
48
|
-
"fs-extra": "^11.
|
|
48
|
+
"fs-extra": "^11.2.0",
|
|
49
49
|
"glob": "^10.3.10",
|
|
50
50
|
"jsesc": "^3.0.2",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
|
-
"moment": "^2.
|
|
52
|
+
"moment": "^2.30.1",
|
|
53
53
|
"pako": "^2.1.0",
|
|
54
54
|
"peggy": "^3.0.2",
|
|
55
55
|
"properties-reader": "^2.3.0",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"shelljs": "^0.8.5",
|
|
60
60
|
"string-to-arraybuffer": "^1.0.2",
|
|
61
61
|
"tar-js": "^0.3.0",
|
|
62
|
-
"ts-node": "^10.9.
|
|
62
|
+
"ts-node": "^10.9.2",
|
|
63
63
|
"tslib": "^2.6.2",
|
|
64
|
-
"typescript": "^5.
|
|
64
|
+
"typescript": "^5.3.3",
|
|
65
65
|
"uri-templates": "^0.2.0",
|
|
66
66
|
"xml-parser": "^1.2.1",
|
|
67
|
-
"xpath": "^0.0.
|
|
67
|
+
"xpath": "^0.0.34"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
|
70
70
|
"type": "git",
|