textbrowser 0.46.1 → 0.46.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.46.2
4
+
5
+ - fix: ensure `fetch` is set on server for locale retrieval for `/textbrowser`
6
+
3
7
  ## 0.46.1
4
8
 
5
9
  - fix: regression with live data
package/README.md CHANGED
@@ -748,6 +748,10 @@ it supports the following arguments:
748
748
  ## To-dos (Highest priority)
749
749
 
750
750
  1. Progressive web app? / Electron?
751
+ 1. Fix regression upon converting from `imf` to `intl-dom` that locales
752
+ do not properly default (to English) when missing and give errors
753
+ 1. Figure out why `/textbrowser?lang=...` isn't working now on
754
+ <https://bahai-browser.org> despite working locally
751
755
  1. Adapt approach of <https://suttacentral.net/offline> in providing form for
752
756
  choice of items to offline (also add to individual work pages).
753
757
  1. Mention idea that it works offline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textbrowser",
3
- "version": "0.46.1",
3
+ "version": "0.46.2",
4
4
  "description": "Multilinear text browser",
5
5
  "type": "module",
6
6
  "main": "dist/index-es.min.js",
package/server/main.js CHANGED
@@ -9,6 +9,7 @@ import commandLineArgs from 'command-line-args';
9
9
  import DOMParser from 'dom-parser';
10
10
  import setGlobalVars from 'indexeddbshim/dist/indexeddbshim-UnicodeIdentifiers-node.js';
11
11
  import {getJSON} from 'simple-get-json';
12
+ import {setFetch} from 'intl-dom';
12
13
 
13
14
  import IntlURLSearchParams from '../resources/utils/IntlURLSearchParams.js';
14
15
  import {resultsDisplayServer} from '../resources/resultsDisplay.js';
@@ -18,6 +19,8 @@ import {setServiceWorkerDefaults} from '../resources/utils/ServiceWorker.js';
18
19
  import {Languages} from '../resources/utils/Languages.js';
19
20
  import activateCallback from '../resources/activateCallback.js';
20
21
 
22
+ setFetch(fetch);
23
+
21
24
  // Todo (low): See
22
25
  // https://gist.github.com/brettz9/0993fbde6f7352b2bb05f38078cefb29
23
26
  // on idea for adapting node-serviceworker to consume entire service-worker