wiki-server 0.25.6 → 0.25.7

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.
@@ -12,6 +12,7 @@ fs = require 'fs'
12
12
  path = require 'path'
13
13
  glob = require 'glob'
14
14
  events = require 'events'
15
+ { pathToFileURL } = require 'node:url'
15
16
  # forward = require './forward'
16
17
 
17
18
  module.exports = exports = (argv) ->
@@ -29,7 +30,7 @@ module.exports = exports = (argv) ->
29
30
  fs.exists server, (exists) ->
30
31
  if exists
31
32
  console.log 'starting plugin', plugin
32
- import(server).then((exported) ->
33
+ import(pathToFileURL(server)).then((exported) ->
33
34
  plugins[plugin] = exported
34
35
  plugins[plugin].startServer?(params)
35
36
  ).catch((e) ->
package/lib/search.coffee CHANGED
@@ -140,7 +140,7 @@ module.exports = exports = (argv) ->
140
140
  .replace(/<(?:[^>])+>/g, ' ')
141
141
  .replace(/(https?.*?)(?=\p{White_Space}|\p{Quotation_Mark}|$)/gu, (match) ->
142
142
  myUrl = url.parse(match)
143
- return myUrl.hostname + myUrl.pathname)
143
+ return myUrl.hostname + ' ' + myUrl.pathname)
144
144
  .replace(/[\p{P}\p{Emoji}\p{Symbol}}]+/gu, ' ')
145
145
  .replace /[\p{White_Space}\n\t]+/gu, ' '
146
146
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wiki-server",
3
3
  "description": "A Federated Wiki Server",
4
- "version": "0.25.6",
4
+ "version": "0.25.7",
5
5
  "author": {
6
6
  "name": "Ward Cunningham",
7
7
  "email": "ward@c2.com",