textbrowser 0.45.1 → 0.45.2

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/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES to `textbrowser`
2
2
 
3
+ ## 0.45.2
4
+
5
+ - fix: issue with `next`
6
+
3
7
  ## 0.45.1
4
8
 
5
9
  - fix: issue with `next`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textbrowser",
3
- "version": "0.45.1",
3
+ "version": "0.45.2",
4
4
  "description": "Multilinear text browser",
5
5
  "type": "module",
6
6
  "main": "dist/index-es.min.js",
package/server/main.js CHANGED
@@ -153,6 +153,11 @@ const srv = http.createServer(async (req, res) => {
153
153
  return regexp.source !== '^\\/?(?=\\/|$)' && regexp.test(req.url);
154
154
  }))) {
155
155
  await runHttpServer();
156
+
157
+ // Ideally we could use `next` here to serve as a back-up static
158
+ // server (i.e., for the bahaiwritings app proper), but the indexes
159
+ // app apparently tries to use it (and fails) after a single
160
+ // successful HTML page load. So we let the Express app handle
156
161
  app(req, res, () => {
157
162
  // Empty
158
163
  });