@legalplace/prerenderx 3.3.1-staging.0 → 3.3.1
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/CHANGELOG.md +8 -0
- package/dist/libs/OutputParser.js +1 -6
- package/package.json +8 -7
- package/src/libs/OutputParser.ts +1 -18
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.3.1](https://git.legalplace.eu/legalplace/prerenderx/compare/@legalplace/prerenderx@3.3.0...@legalplace/prerenderx@3.3.1) (2023-11-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @legalplace/prerenderx
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 3.3.0 (2023-11-06)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -57,13 +57,8 @@ var parseOutputWithVariables = function (output, index, variables, autonums) {
|
|
|
57
57
|
parsedOutput = parsedOutput.replace(/\[\[PAGE_BREAK\]\]/gi, '<div style="page-break-after:always"></div>');
|
|
58
58
|
parsedOutput = parsedOutput.replace(/\[(E|B)_BLUR\]/gi, "");
|
|
59
59
|
parsedOutput = parsedOutput.replace(/\[signature:([0-9]+)\]/g, function (v, signatureId) {
|
|
60
|
-
return "<span data-signature
|
|
60
|
+
return "<span data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\"></span>";
|
|
61
61
|
});
|
|
62
|
-
parsedOutput = parsedOutput.replace(/\[signature:date\]/g, function () { return '<span date-signature="date"></span>'; });
|
|
63
|
-
parsedOutput = parsedOutput.replace(/\[signature:date:([0-9]+)\]/g, function (v, signatureId) {
|
|
64
|
-
return "<span date-signature=\"date\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\"></span>";
|
|
65
|
-
});
|
|
66
|
-
parsedOutput = parsedOutput.replace(/\[date\]/g, function () { return '<span date-signature="date"></span>'; });
|
|
67
62
|
autonums.forEach(function (currentAn) {
|
|
68
63
|
if (currentAn[3] === null)
|
|
69
64
|
parsedOutput = parsedOutput.replace("[" + currentAn[0] + ":" + currentAn[1] + "]", "<span class=\"" + currentAn[0] + "\">" + currentAn[2] + "</span>");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/prerenderx",
|
|
3
|
-
"version": "3.3.1
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "PrerenderX",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "https://git.legalplace.eu/legalplace/prerenderx",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"release": "standard-version -a --no-verify"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@legalplace/conditions-runner": "^2.0.
|
|
19
|
+
"@legalplace/conditions-runner": "^2.0.4",
|
|
20
20
|
"@legalplace/eslint-config-base": "^1.1.1",
|
|
21
21
|
"@legalplace/lplogic": "2.1.6",
|
|
22
|
-
"@legalplace/models-v3-types": "^5.1.
|
|
23
|
-
"@legalplace/ovc-converter": "^2.0.
|
|
22
|
+
"@legalplace/models-v3-types": "^5.1.18",
|
|
23
|
+
"@legalplace/ovc-converter": "^2.0.4",
|
|
24
24
|
"@legalplace/prettier-config": "^2.1.3",
|
|
25
|
-
"@legalplace/referencesparser": "^3.0.
|
|
25
|
+
"@legalplace/referencesparser": "^3.0.4",
|
|
26
26
|
"crypto": "^1.0.1",
|
|
27
27
|
"standard-version": "^9.3.1",
|
|
28
28
|
"typescript": "4.4.3"
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.7.2",
|
|
32
32
|
"@babel/preset-typescript": "^7.7.2",
|
|
33
|
-
"@legalplace/types": "^2.0
|
|
33
|
+
"@legalplace/types": "^2.1.0",
|
|
34
34
|
"@types/jest": "^24.0.15",
|
|
35
35
|
"@types/node": "^20.8.10",
|
|
36
36
|
"jest": "^24.8.0",
|
|
37
37
|
"redux-mock-store": "^1.5.3",
|
|
38
38
|
"ts-jest": "^24.0.2"
|
|
39
39
|
},
|
|
40
|
-
"prettier": "@legalplace/prettier-config"
|
|
40
|
+
"prettier": "@legalplace/prettier-config",
|
|
41
|
+
"gitHead": "095bb47bf79e380b4a909dbb702b70f4c7485528"
|
|
41
42
|
}
|
package/src/libs/OutputParser.ts
CHANGED
|
@@ -129,24 +129,7 @@ export const parseOutputWithVariables: parseOutputT = (
|
|
|
129
129
|
parsedOutput = parsedOutput.replace(
|
|
130
130
|
/\[signature:([0-9]+)\]/g,
|
|
131
131
|
(v, signatureId) =>
|
|
132
|
-
`<span data-signature
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
// Signature date tag
|
|
136
|
-
parsedOutput = parsedOutput.replace(
|
|
137
|
-
/\[signature:date\]/g,
|
|
138
|
-
() => '<span date-signature="date"></span>'
|
|
139
|
-
);
|
|
140
|
-
parsedOutput = parsedOutput.replace(
|
|
141
|
-
/\[signature:date:([0-9]+)\]/g,
|
|
142
|
-
(v, signatureId) =>
|
|
143
|
-
`<span date-signature="date" data-signature-id="${signatureId}" data-signer-index="${index}"></span>`
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
// Obsolete signature date tag
|
|
147
|
-
parsedOutput = parsedOutput.replace(
|
|
148
|
-
/\[date\]/g,
|
|
149
|
-
() => '<span date-signature="date"></span>'
|
|
132
|
+
`<span data-signature-id="${signatureId}" data-signer-index="${index}"></span>`
|
|
150
133
|
);
|
|
151
134
|
|
|
152
135
|
// Inserting autonums
|