Skip to content

Commit fa96c63

Browse files
committed
Separate JSKOS API version from software version
See also gbv/jskos-server#218
1 parent 22b8042 commit fa96c63

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ if (!config.wikibase.api) {
5959
}
6060

6161
// Set capabilities for clients
62-
// JSKOS API version from package.json
63-
config.version = require("./package.json")["jskos-api"]
62+
// JSKOS API version and server version from package.json
63+
config.version = require("./package.json").apiVersion
64+
config.serverVersion = require("./package.json").version
6465
// Concepts (read only)
6566
config.concepts = {
6667
read: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wikidata-jskos",
33
"version": "0.3.3",
4-
"jskos-api": "2.0",
4+
"apiVersion": "2.0",
55
"description": "Access Wikidata in JSKOS format",
66
"main": "server.js",
77
"bin": {

0 commit comments

Comments
 (0)