single-file-core 1.4.1 → 1.4.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.
@@ -30,6 +30,7 @@ const Blob = globalThis.Blob;
30
30
  const FileReader = globalThis.FileReader;
31
31
  const URL = globalThis.URL;
32
32
  const URLSearchParams = globalThis.URLSearchParams;
33
+ const navigator = globalThis.navigator;
33
34
 
34
35
  // eslint-disable-next-line quotes
35
36
  const DEFAULT_REPLACED_CHARACTERS = ["~", "+", "\\\\", "?", "%", "*", ":", "|", '"', "<", ">", "\x00-\x1f", "\x7F"];
@@ -16915,6 +16916,7 @@ async function evalTemplate(template = "", options, content, doc, dontReplaceSla
16915
16916
  urlSubDomains = "";
16916
16917
  }
16917
16918
  const variables = {
16919
+ "navigator-language": { getter: () => navigator.language },
16918
16920
  "page-title": { getter: () => options.title },
16919
16921
  "page-heading": { getter: () => options.info.heading },
16920
16922
  "page-language": { getter: () => options.info.lang },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",