Skip to content

Commit 81a96af

Browse files
committed
[email protected] - manage showing version better
1 parent 8ff5f09 commit 81a96af

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

antimatter_wiki/client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<script>
1313

14-
console.log('0.1.4')
14+
console.log("__VERSION__")
1515

1616
var wiki_host = "__WIKI_HOST__"
1717

antimatter_wiki/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@braidjs/antimatter_wiki",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "collaborative wiki using antimatter sync algorithm",
55
"main": "server.js",
66
"author": "Braid Working Group",

antimatter_wiki/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
console.log('0.1.4')
2+
console.log(require('./package.json').version)
33

44
var fs = require('fs')
55
var fs_p = require('fs/promises')
@@ -107,6 +107,7 @@ async function ensure_antimatter(key) {
107107
function respond_with_client (req, res) {
108108
var client_html = fs.readFileSync('./client.html')
109109
client_html = '' + client_html
110+
client_html = client_html.replace(/__VERSION__/, `${require('./package.json').version}`)
110111
client_html = client_html.replace(/__WIKI_HOST__/, `${ws_url}`)
111112
var etag = require('crypto').createHash('md5').update(client_html).digest('hex')
112113
if (req.headers['if-none-match'] === etag) {

0 commit comments

Comments
 (0)