@tzyc/dsh-model-visibility 1.10.2 → 1.10.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/README.md +1 -1
- package/client-src/catalog-store.mjs +5 -2
- package/client.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](package.json)
|
|
11
11
|
[](test)
|
|
12
|
-
[](https://github.com/TZYCeng/dsh-model-visibility/releases)
|
|
13
13
|
[](https://awesome-dsh-plugin.com/p/TZYCeng/dsh-model-visibility/)
|
|
14
14
|
|
|
15
15
|
</div>
|
|
@@ -85,7 +85,10 @@ export function createCatalog(ctx) {
|
|
|
85
85
|
groups: Array.isArray(value.groups) ? value.groups : [],
|
|
86
86
|
failures: Array.isArray(value.failures) ? value.failures : [],
|
|
87
87
|
providers: Array.isArray(value.providers) ? value.providers : [],
|
|
88
|
-
|
|
88
|
+
// The section reads `state.learned` (the learned-snapshot meta with
|
|
89
|
+
// its feature flags); this store is its only source, so the field
|
|
90
|
+
// name must stay in lock-step with lib/model-info.js's response.
|
|
91
|
+
learned: value.learned && typeof value.learned === 'object' ? value.learned : null,
|
|
89
92
|
error: null,
|
|
90
93
|
detailsError: null,
|
|
91
94
|
source: 'host',
|
|
@@ -102,7 +105,7 @@ export function createCatalog(ctx) {
|
|
|
102
105
|
groups: value.groups,
|
|
103
106
|
failures: value.failures,
|
|
104
107
|
providers: [],
|
|
105
|
-
|
|
108
|
+
learned: null,
|
|
106
109
|
error: null,
|
|
107
110
|
detailsError: detail,
|
|
108
111
|
source: 'catalog',
|
package/client.js
CHANGED
|
@@ -111,7 +111,10 @@ window.__ModuleLoader__.load({
|
|
|
111
111
|
groups: Array.isArray(value.groups) ? value.groups : [],
|
|
112
112
|
failures: Array.isArray(value.failures) ? value.failures : [],
|
|
113
113
|
providers: Array.isArray(value.providers) ? value.providers : [],
|
|
114
|
-
|
|
114
|
+
// The section reads `state.learned` (the learned-snapshot meta with
|
|
115
|
+
// its feature flags); this store is its only source, so the field
|
|
116
|
+
// name must stay in lock-step with lib/model-info.js's response.
|
|
117
|
+
learned: value.learned && typeof value.learned === 'object' ? value.learned : null,
|
|
115
118
|
error: null,
|
|
116
119
|
detailsError: null,
|
|
117
120
|
source: 'host',
|
|
@@ -128,7 +131,7 @@ window.__ModuleLoader__.load({
|
|
|
128
131
|
groups: value.groups,
|
|
129
132
|
failures: value.failures,
|
|
130
133
|
providers: [],
|
|
131
|
-
|
|
134
|
+
learned: null,
|
|
132
135
|
error: null,
|
|
133
136
|
detailsError: detail,
|
|
134
137
|
source: 'catalog',
|