@websolutespa/bom-core 1.7.1 → 1.7.3
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 +138 -126
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,126 +1,138 @@
|
|
|
1
|
-
# @websolutespa/bom-core
|
|
2
|
-
|
|
3
|
-
## 1.7.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 1.7.
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## 1.
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
###
|
|
24
|
-
|
|
25
|
-
- Modified:
|
|
26
|
-
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- Added:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- Modified:
|
|
52
|
-
|
|
53
|
-
## 0.6.
|
|
54
|
-
|
|
55
|
-
### Patch Changes
|
|
56
|
-
|
|
57
|
-
- Added:
|
|
58
|
-
|
|
59
|
-
## 0.6.
|
|
60
|
-
|
|
61
|
-
###
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
## 0.
|
|
66
|
-
|
|
67
|
-
###
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
- Modified:
|
|
90
|
-
|
|
91
|
-
## 0.
|
|
92
|
-
|
|
93
|
-
###
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
## 0.
|
|
98
|
-
|
|
99
|
-
### Minor Changes
|
|
100
|
-
|
|
101
|
-
- Modified
|
|
102
|
-
|
|
103
|
-
## 0.1
|
|
104
|
-
|
|
105
|
-
### Patch Changes
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
## 0.
|
|
110
|
-
|
|
111
|
-
###
|
|
112
|
-
|
|
113
|
-
- Modified
|
|
114
|
-
|
|
115
|
-
## 0.1.
|
|
116
|
-
|
|
117
|
-
###
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
1
|
+
# @websolutespa/bom-core
|
|
2
|
+
|
|
3
|
+
## 1.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updating: dependencies
|
|
8
|
+
|
|
9
|
+
## 1.7.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fixing: JsonService containsClause
|
|
14
|
+
|
|
15
|
+
## 1.7.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Added: JsonService containsClause
|
|
20
|
+
|
|
21
|
+
## 1.7.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 28e86bd: Modified: IPage, Store services & decorators
|
|
26
|
+
|
|
27
|
+
## 1.6.0
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 6cbf4cb: Added: IAction, IEndUser, IConsentPreference, IPreference, ILegalNotice
|
|
32
|
+
|
|
33
|
+
## 0.6.6
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Modified: collectRoutes
|
|
38
|
+
|
|
39
|
+
## 0.6.5
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Added: collectFeatureTypes, collectOptions
|
|
44
|
+
- Modified: Category, collectRoutes, getRouteHref, entity
|
|
45
|
+
|
|
46
|
+
## 0.6.4
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Added: typeGuards, IPagedResult
|
|
51
|
+
- Modified: IUndecoratedMenuCustom
|
|
52
|
+
|
|
53
|
+
## 0.6.3
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Added: isReservedCollectionDescription
|
|
58
|
+
|
|
59
|
+
## 0.6.2
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Modified: IMedia
|
|
64
|
+
|
|
65
|
+
## 0.6.1
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- Added: defaultMarket, defaultLocale
|
|
70
|
+
|
|
71
|
+
## 0.6.0
|
|
72
|
+
|
|
73
|
+
### Minor Changes
|
|
74
|
+
|
|
75
|
+
- Added Logger, IPaginationResult
|
|
76
|
+
|
|
77
|
+
## 0.5.0
|
|
78
|
+
|
|
79
|
+
### Minor Changes
|
|
80
|
+
|
|
81
|
+
- Modified: JsonService, qs
|
|
82
|
+
- Added: asEquatable, cloneItem, typeGuards
|
|
83
|
+
|
|
84
|
+
## 0.4.1
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- Added: IAnchor, babelCase
|
|
89
|
+
- Modified: IApplication, IPageRelation
|
|
90
|
+
|
|
91
|
+
## 0.4.0
|
|
92
|
+
|
|
93
|
+
### Minor Changes
|
|
94
|
+
|
|
95
|
+
- Updating: next 13
|
|
96
|
+
|
|
97
|
+
## 0.3.0
|
|
98
|
+
|
|
99
|
+
### Minor Changes
|
|
100
|
+
|
|
101
|
+
- Modified: HttpService
|
|
102
|
+
|
|
103
|
+
## 0.2.1
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Added: env ROOT_CATEGORY
|
|
108
|
+
|
|
109
|
+
## 0.2.0
|
|
110
|
+
|
|
111
|
+
### Minor Changes
|
|
112
|
+
|
|
113
|
+
- Modified routes, added redirects
|
|
114
|
+
|
|
115
|
+
## 0.1.2
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- Modified: MockMenuService
|
|
120
|
+
|
|
121
|
+
## 0.1.1
|
|
122
|
+
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- Modified: ILocalizable
|
|
126
|
+
|
|
127
|
+
## 0.1.0
|
|
128
|
+
|
|
129
|
+
### Minor Changes
|
|
130
|
+
|
|
131
|
+
- Added: splat routes
|
|
132
|
+
- Added: variants
|
|
133
|
+
|
|
134
|
+
## 0.0.1
|
|
135
|
+
|
|
136
|
+
### Patch Changes
|
|
137
|
+
|
|
138
|
+
- Added: first release
|
package/dist/index.d.ts
CHANGED
|
@@ -149,7 +149,6 @@ type IMediaType = 'image' | 'video' | string;
|
|
|
149
149
|
type IMedia = {
|
|
150
150
|
abstract?: string;
|
|
151
151
|
alt?: string;
|
|
152
|
-
height?: number;
|
|
153
152
|
media?: IMedia;
|
|
154
153
|
mimeType?: string;
|
|
155
154
|
src: string;
|
|
@@ -157,6 +156,7 @@ type IMedia = {
|
|
|
157
156
|
type: IMediaType;
|
|
158
157
|
url?: string;
|
|
159
158
|
width?: number;
|
|
159
|
+
height?: number;
|
|
160
160
|
};
|
|
161
161
|
declare function resolveMediaType(media: IMedia): IMediaType;
|
|
162
162
|
|
package/dist/index.js
CHANGED
|
@@ -699,10 +699,11 @@ var JsonService = class {
|
|
|
699
699
|
}
|
|
700
700
|
containsClause_(value, contains) {
|
|
701
701
|
if (typeof contains !== "undefined") {
|
|
702
|
+
contains = String(contains).toLowerCase();
|
|
702
703
|
if (Array.isArray(value)) {
|
|
703
|
-
return value.reduce((p, c) => p || String(c).toLowerCase() ===
|
|
704
|
+
return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
|
|
704
705
|
} else if (typeof value === "string") {
|
|
705
|
-
return value.toLowerCase().includes(
|
|
706
|
+
return value.toLowerCase().includes(contains);
|
|
706
707
|
} else {
|
|
707
708
|
return false;
|
|
708
709
|
}
|
|
@@ -813,7 +814,7 @@ var JsonService = class {
|
|
|
813
814
|
// src/locale/locale.ts
|
|
814
815
|
function getDefaultLocale() {
|
|
815
816
|
let defaultLocale2 = "en";
|
|
816
|
-
if (process && process.env.DEFAULT_LOCALE) {
|
|
817
|
+
if (typeof process !== "undefined" && process.env.DEFAULT_LOCALE) {
|
|
817
818
|
defaultLocale2 = process.env.DEFAULT_LOCALE;
|
|
818
819
|
}
|
|
819
820
|
return defaultLocale2;
|
|
@@ -907,7 +908,7 @@ Logger.level_ = 5 /* ALL */;
|
|
|
907
908
|
// src/market/market.ts
|
|
908
909
|
function getDefaultMarket() {
|
|
909
910
|
let defaultMarket2 = "ww";
|
|
910
|
-
if (process && process.env.DEFAULT_MARKET) {
|
|
911
|
+
if (typeof process !== "undefined" && process.env.DEFAULT_MARKET) {
|
|
911
912
|
defaultMarket2 = process.env.DEFAULT_MARKET;
|
|
912
913
|
}
|
|
913
914
|
return defaultMarket2;
|
package/dist/index.mjs
CHANGED
|
@@ -581,10 +581,11 @@ var JsonService = class {
|
|
|
581
581
|
}
|
|
582
582
|
containsClause_(value, contains) {
|
|
583
583
|
if (typeof contains !== "undefined") {
|
|
584
|
+
contains = String(contains).toLowerCase();
|
|
584
585
|
if (Array.isArray(value)) {
|
|
585
|
-
return value.reduce((p, c) => p || String(c).toLowerCase() ===
|
|
586
|
+
return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
|
|
586
587
|
} else if (typeof value === "string") {
|
|
587
|
-
return value.toLowerCase().includes(
|
|
588
|
+
return value.toLowerCase().includes(contains);
|
|
588
589
|
} else {
|
|
589
590
|
return false;
|
|
590
591
|
}
|
|
@@ -695,7 +696,7 @@ var JsonService = class {
|
|
|
695
696
|
// src/locale/locale.ts
|
|
696
697
|
function getDefaultLocale() {
|
|
697
698
|
let defaultLocale2 = "en";
|
|
698
|
-
if (process && process.env.DEFAULT_LOCALE) {
|
|
699
|
+
if (typeof process !== "undefined" && process.env.DEFAULT_LOCALE) {
|
|
699
700
|
defaultLocale2 = process.env.DEFAULT_LOCALE;
|
|
700
701
|
}
|
|
701
702
|
return defaultLocale2;
|
|
@@ -789,7 +790,7 @@ Logger.level_ = 5 /* ALL */;
|
|
|
789
790
|
// src/market/market.ts
|
|
790
791
|
function getDefaultMarket() {
|
|
791
792
|
let defaultMarket2 = "ww";
|
|
792
|
-
if (process && process.env.DEFAULT_MARKET) {
|
|
793
|
+
if (typeof process !== "undefined" && process.env.DEFAULT_MARKET) {
|
|
793
794
|
defaultMarket2 = process.env.DEFAULT_MARKET;
|
|
794
795
|
}
|
|
795
796
|
return defaultMarket2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/bom-core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Core module of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"pluralize": "latest"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"next": ">=
|
|
29
|
+
"next": ">= 14.1.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@websolutespa/bom-cli": "*",
|
|
33
33
|
"@websolutespa/test": "*",
|
|
34
34
|
"@websolutespa/tsconfig": "*",
|
|
35
|
-
"eslint": "^
|
|
35
|
+
"eslint": "^9.0.0",
|
|
36
36
|
"eslint-config-websolute": "*",
|
|
37
37
|
"npm-run-all": "^4.1.5",
|
|
38
38
|
"raw-loader": "^4.0.2",
|
|
39
|
-
"ts-node": "^10.9.
|
|
39
|
+
"ts-node": "^10.9.2",
|
|
40
40
|
"tsup": "^6.7.0",
|
|
41
|
-
"typescript": "^5.
|
|
41
|
+
"typescript": "^5.4.5"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|