@dpuse/dpuse-shared 1.0.178 → 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
 
@@ -242,10 +242,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
242
242
  | Chunk/Module/File | Composition |
243
243
  | :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
244
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
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts + 13 more | `████████████████░░░░`&nbsp;77.7%&nbsp;·&nbsp;49.1&nbsp;kB |
246
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░`&nbsp;34.5%&nbsp;·&nbsp;21.8&nbsp;kB |
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.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
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░`&nbsp;7.7%&nbsp;·&nbsp;4.9&nbsp;kB |
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 |
250
250
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░`&nbsp;2.1%&nbsp;·&nbsp;1.3&nbsp;kB |
251
251
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;↳ 9 smaller files | `▒░░░░░░░░░░░░░░░░░░░`&nbsp;4.3%&nbsp;·&nbsp;2.7&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;
@@ -1536,6 +1522,7 @@ async function et(e) {
1536
1522
  contentAuditConfig: Y({
1537
1523
  asAt: t,
1538
1524
  columns: [],
1525
+ hasHeaders: !1,
1539
1526
  isComplete: !0,
1540
1527
  recordCount: 0,
1541
1528
  size: u,
@@ -1566,6 +1553,7 @@ async function et(e) {
1566
1553
  contentAuditConfig: Y({
1567
1554
  asAt: t,
1568
1555
  columns: [],
1556
+ hasHeaders: !1,
1569
1557
  isComplete: n.isComplete,
1570
1558
  recordCount: 0,
1571
1559
  size: u,
@@ -1600,6 +1588,7 @@ async function et(e) {
1600
1588
  contentAuditConfig: Y({
1601
1589
  asAt: t,
1602
1590
  columns: _.columnConfigs,
1591
+ hasHeaders: _.hasHeaderRow,
1603
1592
  isComplete: n.isComplete,
1604
1593
  recordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaderRow),
1605
1594
  size: u,
@@ -1642,34 +1631,36 @@ async function nt(e) {
1642
1631
  valueDelimiterId: r.valueDelimiterId
1643
1632
  }, (e, t) => {
1644
1633
  l.auditRecords(t), n(t.length, f.byteCount());
1645
- });
1634
+ }), { columnConfigs: m, hasHeaders: h } = l.completeAudit();
1646
1635
  return {
1647
1636
  asAt: s,
1648
1637
  byteCount: f.byteCount(),
1649
- columns: l.completeAudit(),
1638
+ columns: m,
1650
1639
  commentLineCount: p.commentLineCount,
1651
1640
  duration: performance.now() - c,
1652
1641
  emptyLineCount: p.emptyLineCount,
1642
+ hasHeaders: h,
1653
1643
  invalidFieldLengthCount: p.nonUniformRecordCount,
1654
1644
  isComplete: f.isComplete(),
1655
1645
  lineCount: p.lineCount,
1656
- recordCount: Math.max(0, p.recordCount - +!!r.hasHeaders),
1646
+ recordCount: Math.max(0, p.recordCount - +!!h),
1657
1647
  sourceWaitDuration: d.waitDuration()
1658
1648
  };
1659
1649
  }
1660
1650
  function Y(e) {
1661
- let { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;
1651
+ let { asAt: t, columns: n, hasHeaders: r, isComplete: i, recordCount: a, size: o, startedAt: s } = e;
1662
1652
  return {
1663
1653
  asAt: t,
1664
- byteCount: a,
1654
+ byteCount: o,
1665
1655
  columns: n,
1666
1656
  commentLineCount: void 0,
1667
- duration: performance.now() - o,
1657
+ duration: performance.now() - s,
1668
1658
  emptyLineCount: void 0,
1659
+ hasHeaders: r,
1669
1660
  invalidFieldLengthCount: void 0,
1670
- isComplete: r,
1661
+ isComplete: i,
1671
1662
  lineCount: void 0,
1672
- recordCount: i,
1663
+ recordCount: a,
1673
1664
  sourceWaitDuration: void 0
1674
1665
  };
1675
1666
  }