@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 +91 -91
- package/dist/dpuse-shared.es.js +32 -41
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/dataView/index.d.ts +2 -1
- package/dist/types/src/component/module/connector/index.d.ts +6 -3
- package/dist/types/src/component/module/connector/objectParsing.d.ts +1 -1
- package/dist/types/src/encoding/index.d.ts +18 -32
- package/package.json +2 -2
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
|
|
94
|
-
|
|
|
95
|
-
| —
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
| Arabic
|
|
99
|
-
| Arabic
|
|
100
|
-
| Arabic
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
| Baltic
|
|
104
|
-
| Baltic
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
| Central European
|
|
109
|
-
| Central European
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
| Chinese
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
| Cyrillic
|
|
116
|
-
| Cyrillic
|
|
117
|
-
| Cyrillic
|
|
118
|
-
| Cyrillic
|
|
119
|
-
| Cyrillic
|
|
120
|
-
| Cyrillic
|
|
121
|
-
| Cyrillic
|
|
122
|
-
| Cyrillic
|
|
123
|
-
| Cyrillic
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
| Greek
|
|
127
|
-
| Greek
|
|
128
|
-
| Greek
|
|
129
|
-
| Greek
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
| Hebrew
|
|
133
|
-
| Hebrew
|
|
134
|
-
| Hebrew
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
| Japanese
|
|
138
|
-
| Japanese
|
|
139
|
-
| Japanese
|
|
140
|
-
| Japanese
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
| Korean
|
|
144
|
-
| Korean
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
| Nordic
|
|
148
|
-
| Nordic
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
| Turkish
|
|
157
|
-
| Turkish
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
| Unicode
|
|
162
|
-
| Unicode
|
|
163
|
-
| Unicode
|
|
164
|
-
| Unicode
|
|
165
|
-
| Unicode
|
|
166
|
-
| Unicode
|
|
167
|
-
| Vietnamese
|
|
168
|
-
| Western
|
|
169
|
-
| Western
|
|
170
|
-
| Western
|
|
171
|
-
| Western
|
|
172
|
-
| Western
|
|
173
|
-
| Western
|
|
174
|
-
| Western
|
|
175
|
-
| Western
|
|
176
|
-
| Western
|
|
177
|
-
| Western
|
|
178
|
-
| Western
|
|
179
|
-
| Western
|
|
180
|
-
| Western
|
|
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 kB · gzip 18.0 kB · 100.0% of the build |
|
|
245
|
-
| src → index.ts + 13 more | `████████████████░░░░` 77.7% · 49.
|
|
246
|
-
| ↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░` 34.
|
|
245
|
+
| src → index.ts + 13 more | `████████████████░░░░` 77.7% · 49.2 kB |
|
|
246
|
+
| ↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░` 34.3% · 21.7 kB |
|
|
247
247
|
| ↳ dataFormatIcons.ts | `▒▒▒▒▒░░░░░░░░░░░░░░░` 26.6% · 16.8 kB |
|
|
248
|
-
| ↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░` 7.
|
|
248
|
+
| ↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░` 7.9% · 5.0 kB |
|
|
249
249
|
| ↳ delimitedText.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.5% · 1.6 kB |
|
|
250
250
|
| ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.1% · 1.3 kB |
|
|
251
251
|
| ↳ 9 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.3% · 2.7 kB |
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -738,18 +738,11 @@ var he = T([
|
|
|
738
738
|
es: "Nórdico"
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
id: "
|
|
741
|
+
southEasternEuropean: {
|
|
742
|
+
id: "southEasternEuropean",
|
|
743
743
|
label: {
|
|
744
|
-
en: "
|
|
745
|
-
es: "
|
|
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
|
-
|
|
777
|
-
id: "
|
|
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
|
|
787
|
-
es: "Unicode
|
|
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: "
|
|
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: "
|
|
1138
|
+
groupId: "unicode",
|
|
1153
1139
|
decoderId: null
|
|
1154
1140
|
},
|
|
1155
1141
|
"utf-8": {
|
|
1156
1142
|
id: "utf-8",
|
|
1157
|
-
groupId:
|
|
1143
|
+
groupId: "unicode",
|
|
1158
1144
|
decoderId: "utf-8"
|
|
1159
1145
|
},
|
|
1160
1146
|
"utf-8-sig": {
|
|
1161
1147
|
id: "utf-8-sig",
|
|
1162
|
-
groupId:
|
|
1148
|
+
groupId: "unicode",
|
|
1163
1149
|
decoderId: "utf-8"
|
|
1164
1150
|
},
|
|
1165
1151
|
"utf-16": {
|
|
1166
1152
|
id: "utf-16",
|
|
1167
|
-
groupId: "
|
|
1153
|
+
groupId: "unicode",
|
|
1168
1154
|
decoderId: null
|
|
1169
1155
|
},
|
|
1170
1156
|
"utf-16-be": {
|
|
1171
1157
|
id: "utf-16-be",
|
|
1172
|
-
groupId: "
|
|
1158
|
+
groupId: "unicode",
|
|
1173
1159
|
decoderId: "utf-16be"
|
|
1174
1160
|
},
|
|
1175
1161
|
"utf-16-le": {
|
|
1176
1162
|
id: "utf-16-le",
|
|
1177
|
-
groupId: "
|
|
1163
|
+
groupId: "unicode",
|
|
1178
1164
|
decoderId: "utf-16le"
|
|
1179
1165
|
},
|
|
1180
1166
|
"utf-32": {
|
|
1181
1167
|
id: "utf-32",
|
|
1182
|
-
groupId: "
|
|
1168
|
+
groupId: "unicode",
|
|
1183
1169
|
decoderId: null
|
|
1184
1170
|
},
|
|
1185
1171
|
"utf-32-be": {
|
|
1186
1172
|
id: "utf-32-be",
|
|
1187
|
-
groupId: "
|
|
1173
|
+
groupId: "unicode",
|
|
1188
1174
|
decoderId: null
|
|
1189
1175
|
},
|
|
1190
1176
|
"utf-32-le": {
|
|
1191
1177
|
id: "utf-32-le",
|
|
1192
|
-
groupId: "
|
|
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.
|
|
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:
|
|
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 - +!!
|
|
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,
|
|
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:
|
|
1654
|
+
byteCount: o,
|
|
1665
1655
|
columns: n,
|
|
1666
1656
|
commentLineCount: void 0,
|
|
1667
|
-
duration: performance.now() -
|
|
1657
|
+
duration: performance.now() - s,
|
|
1668
1658
|
emptyLineCount: void 0,
|
|
1659
|
+
hasHeaders: r,
|
|
1669
1660
|
invalidFieldLengthCount: void 0,
|
|
1670
|
-
isComplete:
|
|
1661
|
+
isComplete: i,
|
|
1671
1662
|
lineCount: void 0,
|
|
1672
|
-
recordCount:
|
|
1663
|
+
recordCount: a,
|
|
1673
1664
|
sourceWaitDuration: void 0
|
|
1674
1665
|
};
|
|
1675
1666
|
}
|