@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 CHANGED
@@ -1,130 +1,136 @@
1
- # @websolutespa/bom-mixer-store
2
-
3
- ## 1.4.4
4
-
5
- ### Patch Changes
6
-
7
- - Added: Schema decorator
8
- - Modified: RemoteMenuService, RemotePageService, RemoteService
9
- - Updated dependencies
10
- - @websolutespa/bom-core@0.6.5
11
-
12
- ## 1.4.3
13
-
14
- ### Patch Changes
15
-
16
- - Modified: CachedService, Decorators, LocalApi, MockApi, MockStore, RemoteApi, RemoteStore, StoreHandler
17
-
18
- ## 1.4.2
19
-
20
- ### Patch Changes
21
-
22
- - Added: Decorators, CachedService, RemotePageService, RemoteMenuService, StoreStrategy.DecoratedApi, nextPhase, storeCacheDuration
23
- - Modified: RemoteStore
24
- - Updated dependencies
25
- - @websolutespa/bom-core@0.6.4
26
-
27
- ## 1.4.1
28
-
29
- ### Patch Changes
30
-
31
- - Modified: MockPageService
32
- - Updated dependencies
33
- - @websolutespa/bom-core@0.6.3
34
-
35
- ## 1.4.0
36
-
37
- ### Minor Changes
38
-
39
- - Added: BuildStrategy
40
-
41
- ## 1.3.0
42
-
43
- ### Minor Changes
44
-
45
- - Added: storeIndexHandler
46
- - Modified: Store, StoreHandler, RemoteService, MockService, MockPageService, MockMenuService, StaticService
47
-
48
- ## 1.2.2
49
-
50
- ### Patch Changes
51
-
52
- - Modified: MockMenuService IPageRelationResult
53
-
54
- ## 1.2.1
55
-
56
- ### Patch Changes
57
-
58
- - Fixing: MockMenuService collectPages
59
-
60
- ## 1.2.0
61
-
62
- ### Minor Changes
63
-
64
- - Updating: next 13
65
-
66
- ## 1.1.1
67
-
68
- ### Patch Changes
69
-
70
- - Fixing: check redirects by pattern
71
-
72
- ## 1.1.0
73
-
74
- ### Minor Changes
75
-
76
- - Modified: store refactor
77
-
78
- ## 1.0.1
79
-
80
- ### Patch Changes
81
-
82
- - Fixing: localhost url
83
-
84
- ## 1.0.0
85
-
86
- ### Minor Changes
87
-
88
- - Modified routes, added redirects
89
-
90
- ## 0.3.2
91
-
92
- ### Patch Changes
93
-
94
- - Modified: MockMenuService
95
-
96
- ## 0.3.1
97
-
98
- ### Patch Changes
99
-
100
- - Added: source files
101
-
102
- ## 0.3.0
103
-
104
- ### Minor Changes
105
-
106
- - Added: splat routes
107
-
108
- ## 0.2.0
109
-
110
- ### Minor Changes
111
-
112
- - Added: @websolutespa/bom-core
113
-
114
- ## 0.1.1
115
-
116
- ### Patch Changes
117
-
118
- - Modified: store service
119
-
120
- ## 0.1.0
121
-
122
- ### Minor Changes
123
-
124
- - mock refactor
125
-
126
- ## 0.0.2
127
-
128
- ### Patch Changes
129
-
130
- - Added: first release
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-store",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Mixer Store module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -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
  }