wiki-plugin-salon 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/package.json +4 -2
  2. package/server/server.js +2 -1
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "wiki-plugin-salon",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Federated Wiki plugin — community gathering space with self-registration and plugin event feeds",
5
5
  "keywords": ["wiki", "plugin", "salon", "community", "planet-nine"],
6
6
  "author": "Planet Nine",
7
7
  "license": "MIT",
8
8
  "type": "commonjs",
9
9
  "main": "index.js",
10
- "dependencies": {}
10
+ "dependencies": {
11
+ "node-fetch": "^2.6.1"
12
+ }
11
13
  }
package/server/server.js CHANGED
@@ -4,6 +4,7 @@
4
4
  const fs = require('fs');
5
5
  const path = require('path');
6
6
  const crypto = require('crypto');
7
+ const fetch = require('node-fetch');
7
8
 
8
9
  // ── Storage paths ─────────────────────────────────────────────────────────────
9
10
 
@@ -104,7 +105,7 @@ async function sendViaMinnie(minnieUrl, { from, to, subject, text }) {
104
105
  method: 'POST',
105
106
  headers: { 'Content-Type': 'application/json' },
106
107
  body: JSON.stringify({ from, to, subject, text }),
107
- signal: AbortSignal.timeout(10000)
108
+ timeout: 10000
108
109
  });
109
110
  if (!resp.ok) throw new Error(`Minnie /send failed: ${resp.status}`);
110
111
  return resp.json();