File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111
1212< script >
1313
14- console . log ( '0.1.4' )
14+ console . log ( "__VERSION__" )
1515
1616var wiki_host = "__WIKI_HOST__"
1717
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11
2- console . log ( '0.1.4' )
2+ console . log ( require ( './package.json' ) . version )
33
44var fs = require ( 'fs' )
55var fs_p = require ( 'fs/promises' )
@@ -107,6 +107,7 @@ async function ensure_antimatter(key) {
107107function respond_with_client ( req , res ) {
108108 var client_html = fs . readFileSync ( './client.html' )
109109 client_html = '' + client_html
110+ client_html = client_html . replace ( / _ _ V E R S I O N _ _ / , `${ require ( './package.json' ) . version } ` )
110111 client_html = client_html . replace ( / _ _ W I K I _ H O S T _ _ / , `${ ws_url } ` )
111112 var etag = require ( 'crypto' ) . createHash ( 'md5' ) . update ( client_html ) . digest ( 'hex' )
112113 if ( req . headers [ 'if-none-match' ] === etag ) {
You can’t perform that action at this time.
0 commit comments