@braidjs/antimatter_wiki
Advanced tools
Comparing version 0.0.2 to 0.1.0
// Example app | ||
var port = 60509, | ||
host = 'localhost' | ||
domain = 'localhost:60509' | ||
@@ -9,2 +9,2 @@ process.on('uncaughtException', console.log) | ||
require('@braidjs/antimatter_wiki').serve({port, host}) | ||
require('@braidjs/antimatter_wiki').serve({port, domain}) |
{ | ||
"name": "@braidjs/antimatter_wiki", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "collaborative wiki using antimatter sync algorithm", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -5,3 +5,3 @@ var default_fissure_lifetime = 1000 * 60 * 60 * 24 * 14 // 14 days | ||
function serve({port, host, fissure_lifetime = default_fissure_lifetime}) { | ||
function serve({port, domain, fissure_lifetime = default_fissure_lifetime}) { | ||
console.log('v28') | ||
@@ -105,3 +105,3 @@ | ||
client_html = '' + client_html | ||
client_html = client_html.replace(/__WIKI_HOST__/, `ws://${host}:${port}`) | ||
client_html = client_html.replace(/__WIKI_HOST__/, `ws://${domain}`) | ||
var etag = require('crypto').createHash('md5').update(client_html).digest('hex') | ||
@@ -108,0 +108,0 @@ if (req.headers['if-none-match'] === etag) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24372