single-file-core 1.5.104 → 1.5.105

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/core/index.js +2 -1
  2. package/package.json +1 -1
package/core/index.js CHANGED
@@ -183,6 +183,7 @@ class Runner {
183
183
  this.options.fontTests = new Map();
184
184
  if (root && !this.options.saveFilenameTemplateData && (this.options.openEditor || /{digest-sha-\d/.test(this.options.filenameTemplate))) {
185
185
  this.options.saveFilenameTemplateData = true;
186
+ this.options.omitReferrerInTemplateData = !/{url-referrer/.test(this.options.filenameTemplate);
186
187
  }
187
188
  this.batchRequest = new BatchRequest();
188
189
  this.processor = new Processor(options, processorHelper, this.batchRequest);
@@ -683,7 +684,7 @@ class Processor {
683
684
  selfExtractingArchive: this.options.selfExtractingArchive,
684
685
  disableCompression: this.options.disableCompression,
685
686
  extractDataFromPage: this.options.extractDataFromPage,
686
- referrer: this.options.referrer,
687
+ referrer: this.options.omitReferrerInTemplateData ? undefined : this.options.referrer,
687
688
  title: this.options.title,
688
689
  info: this.options.info
689
690
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.104",
3
+ "version": "1.5.105",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",