kibi-core 0.5.0 → 0.5.1
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/package.json +5 -2
- package/src/status.pl +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kibi-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core Prolog modules and RDF graph logic for Kibi",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
"bun": ">=1.0"
|
|
10
10
|
},
|
|
11
11
|
"main": "./src/kb.pl",
|
|
12
|
-
"files": [
|
|
12
|
+
"files": [
|
|
13
|
+
"src/**/*.pl",
|
|
14
|
+
"schema/**/*.pl"
|
|
15
|
+
],
|
|
13
16
|
"license": "AGPL-3.0-or-later",
|
|
14
17
|
"author": "Piotr Franczyk",
|
|
15
18
|
"repository": {
|
package/src/status.pl
CHANGED
|
@@ -61,7 +61,8 @@ synced_at(DataFile, SyncedAt) :-
|
|
|
61
61
|
!,
|
|
62
62
|
time_file(DataFile, Timestamp),
|
|
63
63
|
format_time(atom(SyncedAt), '%FT%TZ', Timestamp).
|
|
64
|
-
|
|
64
|
+
% Before the first successful sync there is no kb.rdf, so the public JSON contract must expose syncedAt: null.
|
|
65
|
+
synced_at(_, null).
|
|
65
66
|
|
|
66
67
|
freshness_state(DataFile, true, stale) :-
|
|
67
68
|
exists_file(DataFile),
|