@legalplace/tagextractor 2.3.1 → 2.4.0
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 +11 -0
- package/dist/libs/Extractor.d.ts +2 -2
- package/package.json +6 -6
- package/src/libs/Extractor.ts +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# 2.4.0 (2022-05-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* repair tagsextractor ([0045b29](https://git.legalplace.eu/legalplace/tagextractor/commits/0045b29753a78ba31fcefe59bc186ae019565627)), closes [api#5284](https://git.legalplace.eu/api/issues/5284)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.3.1](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@2.3.0...@legalplace/tagextractor@2.3.1) (2022-01-26)
|
|
7
18
|
|
|
8
19
|
|
package/dist/libs/Extractor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelV3 } from "@legalplace/models-v3-types";
|
|
2
|
-
import {
|
|
2
|
+
import { Types } from "@legalplace/referencesparser";
|
|
3
3
|
import type InputsType from "@legalplace/types/dist/inputs";
|
|
4
4
|
import type OvcType from "@legalplace/types/dist/ovc";
|
|
5
5
|
import TagsType from "../types/tags.type";
|
|
@@ -9,7 +9,7 @@ declare class TagExtractor {
|
|
|
9
9
|
private conditionsRunner;
|
|
10
10
|
private tags;
|
|
11
11
|
private isReferencesType;
|
|
12
|
-
constructor(modelOrReferences: ModelV3 | ReferencesType, ovc: OvcType | InputsType);
|
|
12
|
+
constructor(modelOrReferences: ModelV3 | Types.ReferencesType, ovc: OvcType | InputsType);
|
|
13
13
|
get getTags(): TagsType;
|
|
14
14
|
private extractFromOptions;
|
|
15
15
|
private extractFromVariables;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/tagextractor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "TagExtractor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "https://git.legalplace.eu/legalplace/tagextractor",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"test:coverage": "jest test --coverage --watchAll=false "
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@legalplace/conditions-runner": "1.1.
|
|
20
|
+
"@legalplace/conditions-runner": "1.1.7",
|
|
21
21
|
"@legalplace/lplogic": "2.1.6",
|
|
22
|
-
"@legalplace/models-v3-types": "3.
|
|
23
|
-
"@legalplace/ovc-converter": "1.1.
|
|
24
|
-
"@legalplace/referencesparser": "1.
|
|
22
|
+
"@legalplace/models-v3-types": "3.8.0",
|
|
23
|
+
"@legalplace/ovc-converter": "1.1.6",
|
|
24
|
+
"@legalplace/referencesparser": "1.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@legalplace/eslint-config": "^2.1.3",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"typescript": "4.5.2"
|
|
44
44
|
},
|
|
45
45
|
"prettier": "@legalplace/prettier-config",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d95a14984a9c4139c2f3bcca58c34879673d4212"
|
|
47
47
|
}
|
package/src/libs/Extractor.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ModelV3 } from "@legalplace/models-v3-types";
|
|
2
2
|
import { ReferencesParser, Types } from "@legalplace/referencesparser";
|
|
3
|
-
import { ReferencesType } from "@legalplace/referencesparser/dist/libs/References.type";
|
|
4
3
|
import ConditionsRunner from "@legalplace/conditions-runner";
|
|
5
4
|
import OvcConverter from "@legalplace/ovc-converter";
|
|
6
5
|
import type InputsType from "@legalplace/types/dist/inputs";
|
|
@@ -20,13 +19,13 @@ class TagExtractor {
|
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
private isReferencesType = (
|
|
23
|
-
_obj: ModelV3 | ReferencesType
|
|
24
|
-
): _obj is ReferencesType =>
|
|
25
|
-
// We check if the object contains one of the fields only contained in ReferencesType
|
|
22
|
+
_obj: ModelV3 | Types.ReferencesType
|
|
23
|
+
): _obj is Types.ReferencesType =>
|
|
24
|
+
// We check if the object contains one of the fields only contained in Types.ReferencesType
|
|
26
25
|
Object.keys(_obj).some((key) => key === "boxes");
|
|
27
26
|
|
|
28
27
|
constructor(
|
|
29
|
-
modelOrReferences: ModelV3 | ReferencesType,
|
|
28
|
+
modelOrReferences: ModelV3 | Types.ReferencesType,
|
|
30
29
|
ovc: OvcType | InputsType
|
|
31
30
|
) {
|
|
32
31
|
this.references = this.isReferencesType(modelOrReferences)
|