@legalplace/prerenderx 2.3.53 → 2.3.54
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/dist/libs/Prerender.d.ts
CHANGED
package/dist/libs/Prerender.js
CHANGED
|
@@ -36,7 +36,7 @@ var Prerender = (function () {
|
|
|
36
36
|
Prerender.prototype.generateDocumentNamesHash = function () {
|
|
37
37
|
var _this = this;
|
|
38
38
|
Object.keys(this.model.documents).forEach(function (documentName) {
|
|
39
|
-
var _a, _b
|
|
39
|
+
var _a, _b;
|
|
40
40
|
var document = _this.model.documents[documentName];
|
|
41
41
|
var documentParams = _this.model.documents[documentName].params;
|
|
42
42
|
var conditionObject = _this.references.conditions.documents[documentName];
|
|
@@ -63,8 +63,7 @@ var Prerender = (function () {
|
|
|
63
63
|
name: document.name,
|
|
64
64
|
slug: documentName,
|
|
65
65
|
pdf: ((_a = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _a === void 0 ? void 0 : _a.pdf) === undefined ? true : documentParams.formats.pdf,
|
|
66
|
-
docx: ((_b = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _b === void 0 ? void 0 : _b.docx) === undefined ? true : documentParams.formats.docx
|
|
67
|
-
displayed: ((_c = documentParams === null || documentParams === void 0 ? void 0 : documentParams.visibility) === null || _c === void 0 ? void 0 : _c.displayBo) === true ? true : false
|
|
66
|
+
docx: ((_b = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _b === void 0 ? void 0 : _b.docx) === undefined ? true : documentParams.formats.docx
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
69
|
}
|
package/package.json
CHANGED
package/src/libs/Prerender.ts
CHANGED
|
@@ -14,7 +14,6 @@ type DocumentOutputIndex = {
|
|
|
14
14
|
slug: string
|
|
15
15
|
pdf: boolean
|
|
16
16
|
docx: boolean
|
|
17
|
-
displayed: boolean
|
|
18
17
|
}
|
|
19
18
|
type DocumentPdfFormIndex = {
|
|
20
19
|
name: string
|
|
@@ -122,8 +121,7 @@ class Prerender {
|
|
|
122
121
|
name: document.name,
|
|
123
122
|
slug: documentName,
|
|
124
123
|
pdf: documentParams?.formats?.pdf === undefined ? true : documentParams.formats.pdf,
|
|
125
|
-
docx: documentParams?.formats?.docx === undefined ? true : documentParams.formats.docx
|
|
126
|
-
displayed: documentParams?.visibility?.displayBo === true ? true : false
|
|
124
|
+
docx: documentParams?.formats?.docx === undefined ? true : documentParams.formats.docx
|
|
127
125
|
}
|
|
128
126
|
}
|
|
129
127
|
}
|