@cowwo/dsh-icon-custom 0.8.0 → 0.8.1
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/lib/typert.host.js +20 -11
- package/package.json +1 -1
package/lib/typert.host.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/* Hand-written typert host manifest for dsh-icon-custom (strict face).
|
|
2
|
+
*
|
|
3
|
+
* DSH 0.2.x contract: every strict codec carries a `create()` FACTORY returning
|
|
4
|
+
* its zod schema — the gateway calls `codec.create().parse(value)` and the
|
|
5
|
+
* registry caches the result. The 0.1.x bare `schema:` field is gone; keeping
|
|
6
|
+
* it makes `validateTypertManifest` throw `has no create() factory`, so the
|
|
7
|
+
* host endpoints below never register and the settings page silently stops
|
|
8
|
+
* working (0.8.0 shipped this way — see the 0.8.1 fix). Do not reintroduce
|
|
9
|
+
* `schema:` here: run the compatibility check before publishing.
|
|
10
|
+
*
|
|
2
11
|
* The request/response shapes are unchanged from 0.6.x. From 0.7.0 the host
|
|
3
12
|
* additionally derives a canonical PNG set (see lib/index.js); `status.mime` /
|
|
4
13
|
* `status.ext` still reflect the *uploaded* format, while the PWA/logo path
|
|
@@ -69,7 +78,7 @@ export const TYPERT = {
|
|
|
69
78
|
result: {
|
|
70
79
|
mode: 'strict',
|
|
71
80
|
typeSymbol: 'dsh-icon-custom#iconCustom/getStatus:result',
|
|
72
|
-
|
|
81
|
+
create: () => statusSchema
|
|
73
82
|
},
|
|
74
83
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
75
84
|
},
|
|
@@ -87,14 +96,14 @@ export const TYPERT = {
|
|
|
87
96
|
codec: {
|
|
88
97
|
mode: 'strict',
|
|
89
98
|
typeSymbol: 'dsh-icon-custom#iconCustom/setIcon:request',
|
|
90
|
-
|
|
99
|
+
create: () => setIconRequestSchema
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
102
|
],
|
|
94
103
|
result: {
|
|
95
104
|
mode: 'strict',
|
|
96
105
|
typeSymbol: 'dsh-icon-custom#iconCustom/setIcon:result',
|
|
97
|
-
|
|
106
|
+
create: () => setIconResultSchema
|
|
98
107
|
},
|
|
99
108
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
100
109
|
},
|
|
@@ -112,14 +121,14 @@ export const TYPERT = {
|
|
|
112
121
|
codec: {
|
|
113
122
|
mode: 'strict',
|
|
114
123
|
typeSymbol: 'dsh-icon-custom#iconCustom/setPwa:request',
|
|
115
|
-
|
|
124
|
+
create: () => setPwaRequestSchema
|
|
116
125
|
}
|
|
117
126
|
}
|
|
118
127
|
],
|
|
119
128
|
result: {
|
|
120
129
|
mode: 'strict',
|
|
121
130
|
typeSymbol: 'dsh-icon-custom#iconCustom/setPwa:result',
|
|
122
|
-
|
|
131
|
+
create: () => statusSchema
|
|
123
132
|
},
|
|
124
133
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
125
134
|
},
|
|
@@ -137,14 +146,14 @@ export const TYPERT = {
|
|
|
137
146
|
codec: {
|
|
138
147
|
mode: 'strict',
|
|
139
148
|
typeSymbol: 'dsh-icon-custom#iconCustom/setLogo:request',
|
|
140
|
-
|
|
149
|
+
create: () => setLogoRequestSchema
|
|
141
150
|
}
|
|
142
151
|
}
|
|
143
152
|
],
|
|
144
153
|
result: {
|
|
145
154
|
mode: 'strict',
|
|
146
155
|
typeSymbol: 'dsh-icon-custom#iconCustom/setLogo:result',
|
|
147
|
-
|
|
156
|
+
create: () => statusSchema
|
|
148
157
|
},
|
|
149
158
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
150
159
|
},
|
|
@@ -158,7 +167,7 @@ export const TYPERT = {
|
|
|
158
167
|
result: {
|
|
159
168
|
mode: 'strict',
|
|
160
169
|
typeSymbol: 'dsh-icon-custom#iconCustom/resetIcon:result',
|
|
161
|
-
|
|
170
|
+
create: () => statusSchema
|
|
162
171
|
},
|
|
163
172
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
164
173
|
},
|
|
@@ -172,7 +181,7 @@ export const TYPERT = {
|
|
|
172
181
|
result: {
|
|
173
182
|
mode: 'strict',
|
|
174
183
|
typeSymbol: 'dsh-icon-custom#iconCustom/getUnreadRule:result',
|
|
175
|
-
|
|
184
|
+
create: () => unreadRuleSchema
|
|
176
185
|
},
|
|
177
186
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
178
187
|
},
|
|
@@ -190,14 +199,14 @@ export const TYPERT = {
|
|
|
190
199
|
codec: {
|
|
191
200
|
mode: 'strict',
|
|
192
201
|
typeSymbol: 'dsh-icon-custom#iconCustom/setUnreadRule:request',
|
|
193
|
-
|
|
202
|
+
create: () => setUnreadRuleRequestSchema
|
|
194
203
|
}
|
|
195
204
|
}
|
|
196
205
|
],
|
|
197
206
|
result: {
|
|
198
207
|
mode: 'strict',
|
|
199
208
|
typeSymbol: 'dsh-icon-custom#iconCustom/setUnreadRule:result',
|
|
200
|
-
|
|
209
|
+
create: () => unreadRuleSchema
|
|
201
210
|
},
|
|
202
211
|
sourceLocation: { file: 'lib/index.js', line: 1, column: 1 }
|
|
203
212
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowwo/dsh-icon-custom",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "自定义浏览器标签页图标:在设置页上传 SVG/PNG/ICO,立即生效并持久保存,自动适配安卓/iOS/平板 PWA 图标。· Custom browser tab favicon: upload SVG/PNG/ICO from the settings page, applies instantly and persists, auto-sizes PWA icons for Android/iOS/tablets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|