wiki-server 0.26.0-rc.6 → 0.26.0-rc.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.
package/lib/plugins.js CHANGED
@@ -39,11 +39,8 @@ export default argv => {
39
39
  }
40
40
 
41
41
  const startServers = params => {
42
- // emitter = new events.EventEmitter()
43
- // forward.init params.app, emitter
44
- // params.emitter = emitter
45
-
46
- Object.keys(require.main.require('./package').dependencies)
42
+ const dependencies = params.packageJson.dependencies
43
+ Object.keys(dependencies)
47
44
  .filter(depend => depend.startsWith('wiki-plugin'))
48
45
  .forEach(plugin => {
49
46
  startServer(params, plugin)
package/lib/search.js CHANGED
@@ -14,7 +14,7 @@ import events from 'node:events'
14
14
  import url from 'node:url'
15
15
  import writeFileAtomic from 'write-file-atomic'
16
16
 
17
- import MiniSearch from 'minisearch'
17
+ import miniSearch from 'minisearch'
18
18
 
19
19
  export default argv => {
20
20
  const wikiName = new URL(argv.url).hostname
package/lib/server.js CHANGED
@@ -147,6 +147,7 @@ export default async argv => {
147
147
  app.searchhandler = searchhandler = searchFactory(argv)
148
148
 
149
149
  // Dynamically import security adapter (also dynamic)
150
+ console.log('security_type', argv.security_type)
150
151
  const securityModule = await import(argv.security_type)
151
152
  app.securityhandler = securityhandler = securityModule.default(log, loga, argv)
152
153
 
@@ -401,14 +402,13 @@ export default async argv => {
401
402
 
402
403
  const getPackageFactory = plugin => {
403
404
  return new Promise(resolve => {
404
- try {
405
- import(`${plugin}/factory.json`, { with: { type: 'json' } }).then(({ default: factory }) => {
406
- console.log(plugin, factory)
405
+ import(`${plugin}/factory.json`, { with: { type: 'json' } })
406
+ .then(({ default: factory }) => {
407
407
  resolve(factories.push(factory))
408
408
  })
409
- } catch (error) {
410
- resolve()
411
- }
409
+ .catch(() => {
410
+ resolve()
411
+ })
412
412
  })
413
413
  }
414
414
 
@@ -966,7 +966,7 @@ export default async argv => {
966
966
  // ### Plugins ###
967
967
  // Should replace most WebSocketServers below.
968
968
  const plugins = pluginsFactory(argv)
969
- plugins.startServers({ argv, app })
969
+ plugins.startServers({ argv, app, packageJson })
970
970
  // ### Sitemap ###
971
971
  // create sitemap at start-up
972
972
  sitemaphandler.createSitemap(pagehandler)
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.26.0-rc.6",
4
+ "version": "0.26.0-rc.7",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Ward Cunningham",
@@ -36,16 +36,16 @@
36
36
  "client-sessions": "^0.8.0",
37
37
  "coffeescript": "^2.5.0",
38
38
  "cookie-parser": "^1.4.4",
39
- "dompurify": "^3.1.0",
39
+ "dompurify": "^3.3.0",
40
40
  "errorhandler": "^1.5.1",
41
41
  "express": "^5.1.0",
42
42
  "express-hbs": "^2.5.0",
43
43
  "flates": "0.0.5",
44
- "jsdom": "^26.0.0",
44
+ "jsdom": "^27.2.0",
45
45
  "method-override": "^3.0.0",
46
- "minisearch": "^7.1.0",
46
+ "minisearch": "^7.2.0",
47
47
  "morgan": "^1.10.1",
48
- "write-file-atomic": "^6.0.0",
48
+ "write-file-atomic": "^7.0.0",
49
49
  "xml2js": "^0.6.2"
50
50
  },
51
51
  "scripts": {
@@ -56,13 +56,13 @@
56
56
  "update-authors": "node scripts/update-authors.js"
57
57
  },
58
58
  "devDependencies": {
59
- "@eslint/js": "^9.32.0",
60
- "eslint": "^9.32.0",
61
- "globals": "^16.1.0",
59
+ "@eslint/js": "^9.39.1",
60
+ "eslint": "^9.39.1",
61
+ "globals": "^16.5.0",
62
62
  "grunt-git-authors": "^3.2.0",
63
63
  "prettier": "^3.5.3",
64
64
  "supertest": "^7.1.4",
65
- "wiki-client": "^0.31.3",
65
+ "wiki-client": "^0.31.6",
66
66
  "wiki-plugin-activity": "0.7",
67
67
  "wiki-plugin-video": "^0.4"
68
68
  },