@legalplace/prerenderx 2.3.48 → 2.3.49

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.
@@ -3,6 +3,7 @@ import OVC_TYPE from './ovc.type';
3
3
  import { OldOVC } from './OvcConverter';
4
4
  declare type DocumentOutputIndex = {
5
5
  name: string;
6
+ slug: string;
6
7
  pdf: boolean;
7
8
  docx: boolean;
8
9
  };
@@ -59,7 +59,8 @@ var Prerender = (function () {
59
59
  }
60
60
  else {
61
61
  _this.documentsIndex[hash] = {
62
- name: documentName,
62
+ name: document.name,
63
+ slug: documentName,
63
64
  pdf: ((_a = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _a === void 0 ? void 0 : _a.pdf) === undefined ? true : documentParams.formats.pdf,
64
65
  docx: ((_b = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _b === void 0 ? void 0 : _b.docx) === undefined ? true : documentParams.formats.docx
65
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "2.3.48",
3
+ "version": "2.3.49",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -11,6 +11,7 @@ import FillPdfForm from './FillPdfForm'
11
11
 
12
12
  type DocumentOutputIndex = {
13
13
  name: string
14
+ slug: string
14
15
  pdf: boolean
15
16
  docx: boolean
16
17
  }
@@ -115,7 +116,8 @@ class Prerender {
115
116
  }
116
117
  } else {
117
118
  this.documentsIndex[hash] = {
118
- name: documentName,
119
+ name: document.name,
120
+ slug: documentName,
119
121
  pdf: documentParams?.formats?.pdf === undefined ? true : documentParams.formats.pdf,
120
122
  docx: documentParams?.formats?.docx === undefined ? true : documentParams.formats.docx
121
123
  }