@websolutespa/bom-mixer-store 1.4.4 → 1.4.5
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 +136 -130
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/decorators/schema.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,130 +1,136 @@
|
|
|
1
|
-
# @websolutespa/bom-mixer-store
|
|
2
|
-
|
|
3
|
-
## 1.4.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
## 1.4.
|
|
19
|
-
|
|
20
|
-
### Patch Changes
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
## 1.
|
|
42
|
-
|
|
43
|
-
### Minor Changes
|
|
44
|
-
|
|
45
|
-
- Added:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- Modified: MockMenuService
|
|
53
|
-
|
|
54
|
-
## 1.2.
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
## 1.2.
|
|
61
|
-
|
|
62
|
-
###
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
## 1.
|
|
67
|
-
|
|
68
|
-
###
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
## 1.1.
|
|
73
|
-
|
|
74
|
-
###
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
## 1.0
|
|
79
|
-
|
|
80
|
-
###
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
## 1.0.
|
|
85
|
-
|
|
86
|
-
###
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
## 0.
|
|
91
|
-
|
|
92
|
-
###
|
|
93
|
-
|
|
94
|
-
- Modified
|
|
95
|
-
|
|
96
|
-
## 0.3.
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
## 0.3.
|
|
103
|
-
|
|
104
|
-
###
|
|
105
|
-
|
|
106
|
-
- Added:
|
|
107
|
-
|
|
108
|
-
## 0.
|
|
109
|
-
|
|
110
|
-
### Minor Changes
|
|
111
|
-
|
|
112
|
-
- Added:
|
|
113
|
-
|
|
114
|
-
## 0.
|
|
115
|
-
|
|
116
|
-
###
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
## 0.1.
|
|
121
|
-
|
|
122
|
-
###
|
|
123
|
-
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
## 0.0
|
|
127
|
-
|
|
128
|
-
###
|
|
129
|
-
|
|
130
|
-
-
|
|
1
|
+
# @websolutespa/bom-mixer-store
|
|
2
|
+
|
|
3
|
+
## 1.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixing: decorateSchema
|
|
8
|
+
|
|
9
|
+
## 1.4.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Added: Schema decorator
|
|
14
|
+
- Modified: RemoteMenuService, RemotePageService, RemoteService
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @websolutespa/bom-core@0.6.5
|
|
17
|
+
|
|
18
|
+
## 1.4.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Modified: CachedService, Decorators, LocalApi, MockApi, MockStore, RemoteApi, RemoteStore, StoreHandler
|
|
23
|
+
|
|
24
|
+
## 1.4.2
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Added: Decorators, CachedService, RemotePageService, RemoteMenuService, StoreStrategy.DecoratedApi, nextPhase, storeCacheDuration
|
|
29
|
+
- Modified: RemoteStore
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @websolutespa/bom-core@0.6.4
|
|
32
|
+
|
|
33
|
+
## 1.4.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Modified: MockPageService
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
- @websolutespa/bom-core@0.6.3
|
|
40
|
+
|
|
41
|
+
## 1.4.0
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- Added: BuildStrategy
|
|
46
|
+
|
|
47
|
+
## 1.3.0
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- Added: storeIndexHandler
|
|
52
|
+
- Modified: Store, StoreHandler, RemoteService, MockService, MockPageService, MockMenuService, StaticService
|
|
53
|
+
|
|
54
|
+
## 1.2.2
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Modified: MockMenuService IPageRelationResult
|
|
59
|
+
|
|
60
|
+
## 1.2.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Fixing: MockMenuService collectPages
|
|
65
|
+
|
|
66
|
+
## 1.2.0
|
|
67
|
+
|
|
68
|
+
### Minor Changes
|
|
69
|
+
|
|
70
|
+
- Updating: next 13
|
|
71
|
+
|
|
72
|
+
## 1.1.1
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- Fixing: check redirects by pattern
|
|
77
|
+
|
|
78
|
+
## 1.1.0
|
|
79
|
+
|
|
80
|
+
### Minor Changes
|
|
81
|
+
|
|
82
|
+
- Modified: store refactor
|
|
83
|
+
|
|
84
|
+
## 1.0.1
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- Fixing: localhost url
|
|
89
|
+
|
|
90
|
+
## 1.0.0
|
|
91
|
+
|
|
92
|
+
### Minor Changes
|
|
93
|
+
|
|
94
|
+
- Modified routes, added redirects
|
|
95
|
+
|
|
96
|
+
## 0.3.2
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- Modified: MockMenuService
|
|
101
|
+
|
|
102
|
+
## 0.3.1
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- Added: source files
|
|
107
|
+
|
|
108
|
+
## 0.3.0
|
|
109
|
+
|
|
110
|
+
### Minor Changes
|
|
111
|
+
|
|
112
|
+
- Added: splat routes
|
|
113
|
+
|
|
114
|
+
## 0.2.0
|
|
115
|
+
|
|
116
|
+
### Minor Changes
|
|
117
|
+
|
|
118
|
+
- Added: @websolutespa/bom-core
|
|
119
|
+
|
|
120
|
+
## 0.1.1
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- Modified: store service
|
|
125
|
+
|
|
126
|
+
## 0.1.0
|
|
127
|
+
|
|
128
|
+
### Minor Changes
|
|
129
|
+
|
|
130
|
+
- mock refactor
|
|
131
|
+
|
|
132
|
+
## 0.0.2
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- Added: first release
|
package/dist/index.js
CHANGED
|
@@ -513,11 +513,11 @@ function collectRelations_(item, relations = []) {
|
|
|
513
513
|
|
|
514
514
|
// src/decorators/schema.ts
|
|
515
515
|
async function decorateSchema_(store, item, schema) {
|
|
516
|
-
return { ...item, schema };
|
|
516
|
+
return { ...item, schema: item.schema || schema };
|
|
517
517
|
}
|
|
518
518
|
async function decorateSchemas_(store, items, schema) {
|
|
519
519
|
return items.map((item) => {
|
|
520
|
-
return { ...item, schema };
|
|
520
|
+
return { ...item, schema: item.schema || schema };
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
|
package/dist/index.mjs
CHANGED
|
@@ -410,11 +410,11 @@ function collectRelations_(item, relations = []) {
|
|
|
410
410
|
|
|
411
411
|
// src/decorators/schema.ts
|
|
412
412
|
async function decorateSchema_(store, item, schema) {
|
|
413
|
-
return { ...item, schema };
|
|
413
|
+
return { ...item, schema: item.schema || schema };
|
|
414
414
|
}
|
|
415
415
|
async function decorateSchemas_(store, items, schema) {
|
|
416
416
|
return items.map((item) => {
|
|
417
|
-
return { ...item, schema };
|
|
417
|
+
return { ...item, schema: item.schema || schema };
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
|
package/package.json
CHANGED
package/src/decorators/schema.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ISchema, IStore } from '@websolutespa/bom-core';
|
|
2
2
|
|
|
3
3
|
export async function decorateSchema_<T extends ISchema = ISchema>(store: IStore, item: T, schema: string): Promise<T | T & { schema: string }> {
|
|
4
|
-
return { ...item, schema };
|
|
4
|
+
return { ...item, schema: item.schema || schema };
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export async function decorateSchemas_<T extends ISchema = ISchema>(store: IStore, items: T[], schema: string): Promise<(T & { schema: string })[]> {
|
|
8
8
|
return items.map(item => {
|
|
9
|
-
return { ...item, schema };
|
|
9
|
+
return { ...item, schema: item.schema || schema };
|
|
10
10
|
});
|
|
11
11
|
}
|