@dpuse/dpuse-shared 1.0.179 → 1.0.180

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 CHANGED
@@ -90,94 +90,94 @@ The table below lists every encoding [jschardet](https://github.com/aadsm/jschar
90
90
 
91
91
  The major browsers all follow the Encoding Standard, so these columns hold for each of them. A test checks that Node's `TextDecoder`, which follows the same standard, accepts every Decoded As name as its own. They were also confirmed in Chrome 154, Edge 154, Firefox 156 and Safari 26.6 (October 2026), and all four gave identical results. To re-check them on a Mac, run `npm run check:browsers` after a build.
92
92
 
93
- | Group | Encoding | Decodable | Decoded As |
94
- | :------------------ | :-------------- | :-------: | :------------- |
95
- | — | ascii | ✅ | windows-1252 |
96
- | — | utf-8 | ✅ | utf-8 |
97
- | — | utf-8-sig | ✅ | utf-8 |
98
- | Arabic | cp1006 | ❌ | — |
99
- | Arabic | cp720 | ❌ | — |
100
- | Arabic | cp864 | ❌ | — |
101
- | Arabic | iso-8859-6 | ✅ | iso-8859-6 |
102
- | Arabic | windows-1256 | ✅ | windows-1256 |
103
- | Baltic | cp775 | ❌ | — |
104
- | Baltic | iso-8859-13 | ✅ | iso-8859-13 |
105
- | Baltic | iso8859-4 | ✅ | iso-8859-4 |
106
- | Baltic | windows-1257 | ✅ | windows-1257 |
107
- | Celtic | iso8859-14 | ✅ | iso-8859-14 |
108
- | Central European | cp852 | ❌ | — |
109
- | Central European | iso-8859-2 | ✅ | iso-8859-2 |
110
- | Central European | maclatin2 | ❌ | — |
111
- | Central European | windows-1250 | ✅ | windows-1250 |
112
- | Chinese Simplified | gb18030 | ✅ | gb18030 |
113
- | Chinese Simplified | hz-gb-2312 | ❌ | — |
114
- | Chinese Traditional | big5 | ✅ | big5 |
115
- | Cyrillic | cp1125 | ❌ | — |
116
- | Cyrillic | ibm855 | ❌ | — |
117
- | Cyrillic | ibm866 | ✅ | ibm866 |
118
- | Cyrillic | iso-8859-5 | ✅ | iso-8859-5 |
119
- | Cyrillic | koi8-r | ✅ | koi8-r |
120
- | Cyrillic | koi8-t | ❌ | — |
121
- | Cyrillic | koi8-u | ✅ | koi8-u |
122
- | Cyrillic | kz1048 | ❌ | — |
123
- | Cyrillic | maccyrillic | ✅ | x-mac-cyrillic |
124
- | Cyrillic | ptcp154 | ❌ | — |
125
- | Cyrillic | windows-1251 | ✅ | windows-1251 |
126
- | Greek | cp737 | ❌ | — |
127
- | Greek | cp869 | ❌ | — |
128
- | Greek | cp875 | ❌ | — |
129
- | Greek | iso-8859-7 | ✅ | iso-8859-7 |
130
- | Greek | macgreek | ❌ | — |
131
- | Greek | windows-1253 | ✅ | windows-1253 |
132
- | Hebrew | cp424 | ❌ | — |
133
- | Hebrew | cp856 | ❌ | — |
134
- | Hebrew | cp862 | ❌ | — |
135
- | Hebrew | iso-8859-8 | ✅ | iso-8859-8-i |
136
- | Hebrew | windows-1255 | ✅ | windows-1255 |
137
- | Japanese | cp932 | ✅ | shift_jis |
138
- | Japanese | euc-jp | ✅ | euc-jp |
139
- | Japanese | iso-2022-jp | ✅ | iso-2022-jp |
140
- | Japanese | iso2022_jp_2004 | ❌ | — |
141
- | Japanese | iso2022_jp_ext | ❌ | — |
142
- | Japanese | shift_jis | ✅ | shift_jis |
143
- | Korean | cp949 | ✅ | euc-kr |
144
- | Korean | euc-kr | ✅ | euc-kr |
145
- | Korean | iso-2022-kr | ❌ | — |
146
- | Korean | johab | ❌ | — |
147
- | Nordic | cp861 | ❌ | — |
148
- | Nordic | cp865 | ❌ | — |
149
- | Nordic | iso8859-10 | ✅ | iso-8859-10 |
150
- | Nordic | maciceland | ❌ | — |
151
- | Other | utf-7 | ❌ | — |
152
- | Romanian | iso8859-16 | ✅ | iso-8859-16 |
153
- | Southern European | iso8859-3 | ✅ | iso-8859-3 |
154
- | Thai | cp874 | ✅ | windows-874 |
155
- | Thai | tis-620 | ✅ | windows-874 |
156
- | Turkish | cp1026 | ❌ | — |
157
- | Turkish | cp857 | ❌ | — |
158
- | Turkish | iso-8859-9 | ✅ | windows-1254 |
159
- | Turkish | macturkish | ❌ | — |
160
- | Turkish | windows-1254 | ✅ | windows-1254 |
161
- | Unicode 16 | utf-16-be | ✅ | utf-16be |
162
- | Unicode 16 | utf-16-le | ✅ | utf-16le |
163
- | Unicode 16 | utf-16 | ❌ | — |
164
- | Unicode 32 | utf-32-be | ❌ | — |
165
- | Unicode 32 | utf-32-le | ❌ | — |
166
- | Unicode 32 | utf-32 | ❌ | — |
167
- | Vietnamese | cp1258 | ✅ | windows-1258 |
168
- | Western | cp1140 | ❌ | — |
169
- | Western | cp273 | ❌ | — |
170
- | Western | cp437 | ❌ | — |
171
- | Western | cp500 | ❌ | — |
172
- | Western | cp850 | ❌ | — |
173
- | Western | cp858 | ❌ | — |
174
- | Western | cp860 | ❌ | — |
175
- | Western | cp863 | ❌ | — |
176
- | Western | hp-roman8 | ❌ | — |
177
- | Western | iso-8859-1 | ✅ | windows-1252 |
178
- | Western | iso8859-15 | ✅ | iso-8859-15 |
179
- | Western | macroman | ✅ | macintosh |
180
- | Western | windows-1252 | ✅ | windows-1252 |
93
+ | Group | Encoding | Decodable | Decoded As |
94
+ | :--------------------- | :-------------- | :-------: | :------------- |
95
+ | — | ascii | ✅ | windows-1252 |
96
+ | Arabic | cp720 | ❌ | — |
97
+ | Arabic | cp864 | ❌ | — |
98
+ | Arabic | cp1006 | ❌ | — |
99
+ | Arabic | iso-8859-6 | ✅ | iso-8859-6 |
100
+ | Arabic | windows-1256 | ✅ | windows-1256 |
101
+ | Baltic | cp775 | ❌ | — |
102
+ | Baltic | iso-8859-13 | ✅ | iso-8859-13 |
103
+ | Baltic | iso8859-4 | ✅ | iso-8859-4 |
104
+ | Baltic | windows-1257 | ✅ | windows-1257 |
105
+ | Celtic | iso8859-14 | ✅ | iso-8859-14 |
106
+ | Central European | cp852 | ❌ | — |
107
+ | Central European | iso-8859-2 | ✅ | iso-8859-2 |
108
+ | Central European | maclatin2 | ❌ | — |
109
+ | Central European | windows-1250 | ✅ | windows-1250 |
110
+ | Chinese Simplified | gb18030 | ✅ | gb18030 |
111
+ | Chinese Simplified | hz-gb-2312 | ❌ | — |
112
+ | Chinese Traditional | big5 | ✅ | big5 |
113
+ | Cyrillic | cp1125 | ❌ | — |
114
+ | Cyrillic | ibm855 | ❌ | — |
115
+ | Cyrillic | ibm866 | ✅ | ibm866 |
116
+ | Cyrillic | iso-8859-5 | ✅ | iso-8859-5 |
117
+ | Cyrillic | koi8-r | ✅ | koi8-r |
118
+ | Cyrillic | koi8-t | ❌ | — |
119
+ | Cyrillic | koi8-u | ✅ | koi8-u |
120
+ | Cyrillic | kz1048 | ❌ | — |
121
+ | Cyrillic | maccyrillic | ✅ | x-mac-cyrillic |
122
+ | Cyrillic | ptcp154 | ❌ | — |
123
+ | Cyrillic | windows-1251 | ✅ | windows-1251 |
124
+ | Greek | cp737 | ❌ | — |
125
+ | Greek | cp869 | ❌ | — |
126
+ | Greek | cp875 | ❌ | — |
127
+ | Greek | iso-8859-7 | ✅ | iso-8859-7 |
128
+ | Greek | macgreek | ❌ | — |
129
+ | Greek | windows-1253 | ✅ | windows-1253 |
130
+ | Hebrew | cp424 | ❌ | — |
131
+ | Hebrew | cp856 | ❌ | — |
132
+ | Hebrew | cp862 | ❌ | — |
133
+ | Hebrew | iso-8859-8 | ✅ | iso-8859-8-i |
134
+ | Hebrew | windows-1255 | ✅ | windows-1255 |
135
+ | Japanese | cp932 | ✅ | shift_jis |
136
+ | Japanese | euc-jp | ✅ | euc-jp |
137
+ | Japanese | iso-2022-jp | ✅ | iso-2022-jp |
138
+ | Japanese | iso2022_jp_2004 | ❌ | — |
139
+ | Japanese | iso2022_jp_ext | ❌ | — |
140
+ | Japanese | shift_jis | ✅ | shift_jis |
141
+ | Korean | cp949 | ✅ | euc-kr |
142
+ | Korean | euc-kr | ✅ | euc-kr |
143
+ | Korean | iso-2022-kr | ❌ | — |
144
+ | Korean | johab | ❌ | — |
145
+ | Nordic | cp861 | ❌ | — |
146
+ | Nordic | cp865 | ❌ | — |
147
+ | Nordic | iso8859-10 | ✅ | iso-8859-10 |
148
+ | Nordic | maciceland | ❌ | — |
149
+ | South-Eastern European | iso8859-16 | ✅ | iso-8859-16 |
150
+ | Southern European | iso8859-3 | ✅ | iso-8859-3 |
151
+ | Thai | cp874 | ✅ | windows-874 |
152
+ | Thai | tis-620 | ✅ | windows-874 |
153
+ | Turkish | cp857 | ❌ | — |
154
+ | Turkish | cp1026 | ❌ | — |
155
+ | Turkish | iso-8859-9 | ✅ | windows-1254 |
156
+ | Turkish | macturkish | ❌ | — |
157
+ | Turkish | windows-1254 | ✅ | windows-1254 |
158
+ | Unicode | utf-7 | ❌ | — |
159
+ | Unicode | utf-8 | ✅ | utf-8 |
160
+ | Unicode | utf-8-sig | ✅ | utf-8 |
161
+ | Unicode | utf-16 | ❌ | — |
162
+ | Unicode | utf-16-be | ✅ | utf-16be |
163
+ | Unicode | utf-16-le | ✅ | utf-16le |
164
+ | Unicode | utf-32 | ❌ | — |
165
+ | Unicode | utf-32-be | ❌ | — |
166
+ | Unicode | utf-32-le | ❌ | — |
167
+ | Vietnamese | cp1258 | ✅ | windows-1258 |
168
+ | Western | cp273 | ❌ | — |
169
+ | Western | cp437 | ❌ | — |
170
+ | Western | cp500 | ❌ | — |
171
+ | Western | cp850 | ❌ | — |
172
+ | Western | cp858 | ❌ | — |
173
+ | Western | cp860 | ❌ | — |
174
+ | Western | cp863 | ❌ | — |
175
+ | Western | cp1140 | ❌ | — |
176
+ | Western | hp-roman8 | ❌ | — |
177
+ | Western | iso-8859-1 | ✅ | windows-1252 |
178
+ | Western | iso8859-15 | ✅ | iso-8859-15 |
179
+ | Western | macroman | ✅ | macintosh |
180
+ | Western | windows-1252 | ✅ | windows-1252 |
181
181
 
182
182
  <!-- ENCODINGS_END -->
183
183
 
@@ -241,9 +241,9 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
241
241
 
242
242
  | Chunk/Module/File | Composition |
243
243
  | :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
244
- | **dist/dpuse-shared.es.js** | 63.3&nbsp;kB&nbsp;·&nbsp;gzip&nbsp;18.1&nbsp;kB&nbsp;·&nbsp;100.0%&nbsp;of&nbsp;the&nbsp;build |
244
+ | **dist/dpuse-shared.es.js** | 63.2&nbsp;kB&nbsp;·&nbsp;gzip&nbsp;18.0&nbsp;kB&nbsp;·&nbsp;100.0%&nbsp;of&nbsp;the&nbsp;build |
245
245
  | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts + 13 more | `████████████████░░░░`&nbsp;77.7%&nbsp;·&nbsp;49.2&nbsp;kB |
246
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░`&nbsp;34.4%&nbsp;·&nbsp;21.8&nbsp;kB |
246
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░`&nbsp;34.3%&nbsp;·&nbsp;21.7&nbsp;kB |
247
247
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ dataFormatIcons.ts | `▒▒▒▒▒░░░░░░░░░░░░░░░`&nbsp;26.6%&nbsp;·&nbsp;16.8&nbsp;kB |
248
248
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░`&nbsp;7.9%&nbsp;·&nbsp;5.0&nbsp;kB |
249
249
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ delimitedText.ts | `▒░░░░░░░░░░░░░░░░░░░`&nbsp;2.5%&nbsp;·&nbsp;1.6&nbsp;kB |
@@ -738,18 +738,11 @@ var he = T([
738
738
  es: "Nórdico"
739
739
  }
740
740
  },
741
- other: {
742
- id: "other",
741
+ southEasternEuropean: {
742
+ id: "southEasternEuropean",
743
743
  label: {
744
- en: "Other",
745
- es: "Otro"
746
- }
747
- },
748
- romanian: {
749
- id: "romanian",
750
- label: {
751
- en: "Romanian",
752
- es: "Rumano"
744
+ en: "South-Eastern European",
745
+ es: "Europeo sudoriental"
753
746
  }
754
747
  },
755
748
  southernEuropean: {
@@ -773,18 +766,11 @@ var he = T([
773
766
  es: "Turco"
774
767
  }
775
768
  },
776
- unicode16: {
777
- id: "unicode16",
778
- label: {
779
- en: "Unicode 16",
780
- es: "Unicode 16"
781
- }
782
- },
783
- unicode32: {
784
- id: "unicode32",
769
+ unicode: {
770
+ id: "unicode",
785
771
  label: {
786
- en: "Unicode 32",
787
- es: "Unicode 32"
772
+ en: "Unicode",
773
+ es: "Unicode"
788
774
  }
789
775
  },
790
776
  vietnamese: {
@@ -1074,7 +1060,7 @@ var he = T([
1074
1060
  },
1075
1061
  "iso8859-16": {
1076
1062
  id: "iso8859-16",
1077
- groupId: "romanian",
1063
+ groupId: "southEasternEuropean",
1078
1064
  decoderId: "iso-8859-16"
1079
1065
  },
1080
1066
  johab: {
@@ -1149,47 +1135,47 @@ var he = T([
1149
1135
  },
1150
1136
  "utf-7": {
1151
1137
  id: "utf-7",
1152
- groupId: "other",
1138
+ groupId: "unicode",
1153
1139
  decoderId: null
1154
1140
  },
1155
1141
  "utf-8": {
1156
1142
  id: "utf-8",
1157
- groupId: null,
1143
+ groupId: "unicode",
1158
1144
  decoderId: "utf-8"
1159
1145
  },
1160
1146
  "utf-8-sig": {
1161
1147
  id: "utf-8-sig",
1162
- groupId: null,
1148
+ groupId: "unicode",
1163
1149
  decoderId: "utf-8"
1164
1150
  },
1165
1151
  "utf-16": {
1166
1152
  id: "utf-16",
1167
- groupId: "unicode16",
1153
+ groupId: "unicode",
1168
1154
  decoderId: null
1169
1155
  },
1170
1156
  "utf-16-be": {
1171
1157
  id: "utf-16-be",
1172
- groupId: "unicode16",
1158
+ groupId: "unicode",
1173
1159
  decoderId: "utf-16be"
1174
1160
  },
1175
1161
  "utf-16-le": {
1176
1162
  id: "utf-16-le",
1177
- groupId: "unicode16",
1163
+ groupId: "unicode",
1178
1164
  decoderId: "utf-16le"
1179
1165
  },
1180
1166
  "utf-32": {
1181
1167
  id: "utf-32",
1182
- groupId: "unicode32",
1168
+ groupId: "unicode",
1183
1169
  decoderId: null
1184
1170
  },
1185
1171
  "utf-32-be": {
1186
1172
  id: "utf-32-be",
1187
- groupId: "unicode32",
1173
+ groupId: "unicode",
1188
1174
  decoderId: null
1189
1175
  },
1190
1176
  "utf-32-le": {
1191
1177
  id: "utf-32-le",
1192
- groupId: "unicode32",
1178
+ groupId: "unicode",
1193
1179
  decoderId: null
1194
1180
  },
1195
1181
  "windows-1250": {
@@ -1249,7 +1235,7 @@ function Ee(e = "en") {
1249
1235
  isDecodable: t != null,
1250
1236
  decoderId: t
1251
1237
  };
1252
- }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
1238
+ }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
1253
1239
  }
1254
1240
  function De(e, t) {
1255
1241
  let n = O[e].label;