@chronicle.app/zotero 0.3.0 → 0.4.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SystemInfo } from '@chronicle.app/etl';
|
|
1
|
+
import { SystemInfo, assertReadable } from '@chronicle.app/etl';
|
|
2
2
|
import { SqliteExtractor, timeRangeConditions, iterateRows } from '@chronicle.app/etl-sqlite';
|
|
3
3
|
import { DatabaseSync } from 'node:sqlite';
|
|
4
4
|
import { createHash, randomUUID } from 'node:crypto';
|
|
@@ -69,6 +69,7 @@ export class ZoteroExtractor extends SqliteExtractor {
|
|
|
69
69
|
// From the ORIGINAL file, even when the busy fallback below reads a
|
|
70
70
|
// freshly-made copy instead — the copy's mtime is just "now" and would
|
|
71
71
|
// defeat the byte-identical-on-unchanged-library property of asOfTime().
|
|
72
|
+
assertReadable(dbPath, 'Zotero database');
|
|
72
73
|
this.dbMtime = statSync(dbPath).mtime;
|
|
73
74
|
// Zotero uses journal_mode=delete, so a plain readonly open reads a
|
|
74
75
|
// consistent snapshot without contending with a running Zotero instance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chronicle.app/zotero",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"description": "Chronicle plugin for a local Zotero library: works, highlights, notes, and reading events",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@chronicle.app/etl": "0.
|
|
26
|
-
"@chronicle.app/schema": "0.
|
|
27
|
-
"@chronicle.app/tsconfig": "0.
|
|
25
|
+
"@chronicle.app/etl": "0.4.0",
|
|
26
|
+
"@chronicle.app/schema": "0.4.0",
|
|
27
|
+
"@chronicle.app/tsconfig": "0.4.0",
|
|
28
28
|
"@types/node": "^22.10.1",
|
|
29
29
|
"typescript": "^5.7.2"
|
|
30
30
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@chronicle.app/etl-sqlite": "0.
|
|
42
|
+
"@chronicle.app/etl-sqlite": "0.4.0",
|
|
43
43
|
"zod": "^3.24.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -72,6 +72,14 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
},
|
|
76
|
+
"deepLinks": {
|
|
77
|
+
"zotero": {
|
|
78
|
+
"*": "zotero://select/library/items/{sourceId}",
|
|
79
|
+
"DocumentObject": "zotero://open-pdf/library/items/{sourceId}",
|
|
80
|
+
"Collection": "",
|
|
81
|
+
"Person": ""
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
}
|