@dpuse/dpuse-tool-adaltas-csv-parser 1.0.2 → 1.0.107
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- OPENING_START -->
|
|
4
4
|
|
|
5
5
|
[](./LICENSE)
|
|
6
|
-
[](https://github.com/dpuse/dpuse-tool-adaltas-csv-parser/releases/latest)
|
|
7
7
|
[](https://www.npmjs.com/package/@dpuse/dpuse-tool-adaltas-csv-parser)
|
|
8
8
|
[](https://github.com/dpuse/dpuse-tool-adaltas-csv-parser/actions/workflows/ci.yml)
|
|
9
9
|
|
|
@@ -59,17 +59,17 @@ This repository is managed using the common set of actions provided by [@dpuse/d
|
|
|
59
59
|
|
|
60
60
|
License data is updated each time `npm run document` is run, using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists every package whose code, styles or assets are included in this project's build, as recorded by the build itself. Modules loaded at run time are not included; each documents its own. These dependencies have been checked and confirmed to use MIT, all of which allow commercial use. All are used unmodified, so any licence conditions that apply only to modified versions are not triggered. Developers cloning this repository should independently verify development dependencies.
|
|
61
61
|
|
|
62
|
-
| Dependency | Version | License(s) | Document
|
|
63
|
-
| :----------------------------------------------------------- | :-----: | :--------- |
|
|
64
|
-
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) |
|
|
65
|
-
| [csv-parse](https://github.com/adaltas/node-csv) | 7.0.3 | MIT | [LICENSE](licenses/downloads/csv-parse@7.0.3-LICENSE.txt)
|
|
66
|
-
| [valibot](https://github.com/open-circle/valibot) | 1.5.0 | MIT | [LICENSE](licenses/downloads/valibot@1.5.0-LICENSE.txt)
|
|
62
|
+
| Dependency | Version | License(s) | Document |
|
|
63
|
+
| :----------------------------------------------------------- | :-----: | :--------- | :-------------------------------------------------------------------- |
|
|
64
|
+
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.113 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.113-LICENSE.txt) |
|
|
65
|
+
| [csv-parse](https://github.com/adaltas/node-csv) | 7.0.3 | MIT | [LICENSE](licenses/downloads/csv-parse@7.0.3-LICENSE.txt) |
|
|
66
|
+
| [valibot](https://github.com/open-circle/valibot) | 1.5.0 | MIT | [LICENSE](licenses/downloads/valibot@1.5.0-LICENSE.txt) |
|
|
67
67
|
|
|
68
68
|
### Dependency Tree
|
|
69
69
|
|
|
70
70
|
The dependency tree below shows how each package in the table above is reached — direct and transitive — along with its installed version, release date, and update status. A package that does not ship itself, such as one whose parts are bundled separately, is left out and what ships beneath it is shown in its place. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.
|
|
71
71
|
|
|
72
|
-
- **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.
|
|
72
|
+
- **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.113 — this month: 2026-10-05 → latest: 1.0.116 — this month: 2026-10-06 ❗
|
|
73
73
|
- **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — this month: 2026-09-09
|
|
74
74
|
- **[csv-parse](https://github.com/adaltas/node-csv)** 7.0.3 — this month: 2026-09-25
|
|
75
75
|
|
|
@@ -85,11 +85,11 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
85
85
|
|
|
86
86
|
| Chunk/Module/File | Composition |
|
|
87
87
|
| :-------------------------------------------------------------------- | :-------------------------------------------- |
|
|
88
|
-
| **dist/dpuse-tool-adaltas-csv-parser.es.js** |
|
|
89
|
-
| csv-parse → dist/esm/index.js |
|
|
90
|
-
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js |
|
|
91
|
-
| src → index.ts | `█░░░░░░░░░░░░░░░░░░░`
|
|
92
|
-
| (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 5.
|
|
88
|
+
| **dist/dpuse-tool-adaltas-csv-parser.es.js** | 125.2 kB · gzip 31.3 kB · 100.0% of the build |
|
|
89
|
+
| csv-parse → dist/esm/index.js | `████████████████░░░░` 79.3% · 99.3 kB |
|
|
90
|
+
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `██░░░░░░░░░░░░░░░░░░` 12.0% · 15.0 kB |
|
|
91
|
+
| src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 2.9% · 3.7 kB |
|
|
92
|
+
| (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 5.8% · 7.3 kB |
|
|
93
93
|
|
|
94
94
|
Bars show each row's share of its output file.
|
|
95
95
|
|
|
@@ -3003,9 +3003,447 @@ function Mr(e) {
|
|
|
3003
3003
|
function Nr(e) {
|
|
3004
3004
|
if (e != null && e !== "") return e.length > Dr ? `${e.slice(0, Dr)}... [truncated]` : e;
|
|
3005
3005
|
}
|
|
3006
|
+
var Pr = {
|
|
3007
|
+
ascii: {
|
|
3008
|
+
id: "ascii",
|
|
3009
|
+
groupId: null,
|
|
3010
|
+
decoderId: "windows-1252"
|
|
3011
|
+
},
|
|
3012
|
+
Big5: {
|
|
3013
|
+
id: "Big5",
|
|
3014
|
+
groupId: "chineseTraditional",
|
|
3015
|
+
decoderId: "big5"
|
|
3016
|
+
},
|
|
3017
|
+
cp273: {
|
|
3018
|
+
id: "cp273",
|
|
3019
|
+
groupId: "western",
|
|
3020
|
+
decoderId: null
|
|
3021
|
+
},
|
|
3022
|
+
cp424: {
|
|
3023
|
+
id: "cp424",
|
|
3024
|
+
groupId: "hebrew",
|
|
3025
|
+
decoderId: null
|
|
3026
|
+
},
|
|
3027
|
+
cp437: {
|
|
3028
|
+
id: "cp437",
|
|
3029
|
+
groupId: "western",
|
|
3030
|
+
decoderId: null
|
|
3031
|
+
},
|
|
3032
|
+
cp500: {
|
|
3033
|
+
id: "cp500",
|
|
3034
|
+
groupId: "western",
|
|
3035
|
+
decoderId: null
|
|
3036
|
+
},
|
|
3037
|
+
cp720: {
|
|
3038
|
+
id: "cp720",
|
|
3039
|
+
groupId: "arabic",
|
|
3040
|
+
decoderId: null
|
|
3041
|
+
},
|
|
3042
|
+
cp737: {
|
|
3043
|
+
id: "cp737",
|
|
3044
|
+
groupId: "greek",
|
|
3045
|
+
decoderId: null
|
|
3046
|
+
},
|
|
3047
|
+
cp775: {
|
|
3048
|
+
id: "cp775",
|
|
3049
|
+
groupId: "baltic",
|
|
3050
|
+
decoderId: null
|
|
3051
|
+
},
|
|
3052
|
+
cp850: {
|
|
3053
|
+
id: "cp850",
|
|
3054
|
+
groupId: "western",
|
|
3055
|
+
decoderId: null
|
|
3056
|
+
},
|
|
3057
|
+
cp852: {
|
|
3058
|
+
id: "cp852",
|
|
3059
|
+
groupId: "centralEuropean",
|
|
3060
|
+
decoderId: null
|
|
3061
|
+
},
|
|
3062
|
+
cp856: {
|
|
3063
|
+
id: "cp856",
|
|
3064
|
+
groupId: "hebrew",
|
|
3065
|
+
decoderId: null
|
|
3066
|
+
},
|
|
3067
|
+
cp857: {
|
|
3068
|
+
id: "cp857",
|
|
3069
|
+
groupId: "turkish",
|
|
3070
|
+
decoderId: null
|
|
3071
|
+
},
|
|
3072
|
+
cp858: {
|
|
3073
|
+
id: "cp858",
|
|
3074
|
+
groupId: "western",
|
|
3075
|
+
decoderId: null
|
|
3076
|
+
},
|
|
3077
|
+
cp860: {
|
|
3078
|
+
id: "cp860",
|
|
3079
|
+
groupId: "western",
|
|
3080
|
+
decoderId: null
|
|
3081
|
+
},
|
|
3082
|
+
cp861: {
|
|
3083
|
+
id: "cp861",
|
|
3084
|
+
groupId: "nordic",
|
|
3085
|
+
decoderId: null
|
|
3086
|
+
},
|
|
3087
|
+
cp862: {
|
|
3088
|
+
id: "cp862",
|
|
3089
|
+
groupId: "hebrew",
|
|
3090
|
+
decoderId: null
|
|
3091
|
+
},
|
|
3092
|
+
cp863: {
|
|
3093
|
+
id: "cp863",
|
|
3094
|
+
groupId: "western",
|
|
3095
|
+
decoderId: null
|
|
3096
|
+
},
|
|
3097
|
+
cp864: {
|
|
3098
|
+
id: "cp864",
|
|
3099
|
+
groupId: "arabic",
|
|
3100
|
+
decoderId: null
|
|
3101
|
+
},
|
|
3102
|
+
cp865: {
|
|
3103
|
+
id: "cp865",
|
|
3104
|
+
groupId: "nordic",
|
|
3105
|
+
decoderId: null
|
|
3106
|
+
},
|
|
3107
|
+
cp869: {
|
|
3108
|
+
id: "cp869",
|
|
3109
|
+
groupId: "greek",
|
|
3110
|
+
decoderId: null
|
|
3111
|
+
},
|
|
3112
|
+
CP874: {
|
|
3113
|
+
id: "CP874",
|
|
3114
|
+
groupId: "thai",
|
|
3115
|
+
decoderId: "windows-874"
|
|
3116
|
+
},
|
|
3117
|
+
cp875: {
|
|
3118
|
+
id: "cp875",
|
|
3119
|
+
groupId: "greek",
|
|
3120
|
+
decoderId: null
|
|
3121
|
+
},
|
|
3122
|
+
CP932: {
|
|
3123
|
+
id: "CP932",
|
|
3124
|
+
groupId: "japanese",
|
|
3125
|
+
decoderId: "shift_jis"
|
|
3126
|
+
},
|
|
3127
|
+
CP949: {
|
|
3128
|
+
id: "CP949",
|
|
3129
|
+
groupId: "korean",
|
|
3130
|
+
decoderId: "euc-kr"
|
|
3131
|
+
},
|
|
3132
|
+
cp1006: {
|
|
3133
|
+
id: "cp1006",
|
|
3134
|
+
groupId: "arabic",
|
|
3135
|
+
decoderId: null
|
|
3136
|
+
},
|
|
3137
|
+
cp1026: {
|
|
3138
|
+
id: "cp1026",
|
|
3139
|
+
groupId: "turkish",
|
|
3140
|
+
decoderId: null
|
|
3141
|
+
},
|
|
3142
|
+
cp1125: {
|
|
3143
|
+
id: "cp1125",
|
|
3144
|
+
groupId: "cyrillic",
|
|
3145
|
+
decoderId: null
|
|
3146
|
+
},
|
|
3147
|
+
cp1140: {
|
|
3148
|
+
id: "cp1140",
|
|
3149
|
+
groupId: "western",
|
|
3150
|
+
decoderId: null
|
|
3151
|
+
},
|
|
3152
|
+
cp1258: {
|
|
3153
|
+
id: "cp1258",
|
|
3154
|
+
groupId: "vietnamese",
|
|
3155
|
+
decoderId: "windows-1258"
|
|
3156
|
+
},
|
|
3157
|
+
"EUC-JP": {
|
|
3158
|
+
id: "EUC-JP",
|
|
3159
|
+
groupId: "japanese",
|
|
3160
|
+
decoderId: "euc-jp"
|
|
3161
|
+
},
|
|
3162
|
+
"EUC-KR": {
|
|
3163
|
+
id: "EUC-KR",
|
|
3164
|
+
groupId: "korean",
|
|
3165
|
+
decoderId: "euc-kr"
|
|
3166
|
+
},
|
|
3167
|
+
GB18030: {
|
|
3168
|
+
id: "GB18030",
|
|
3169
|
+
groupId: "chineseSimplified",
|
|
3170
|
+
decoderId: "gb18030"
|
|
3171
|
+
},
|
|
3172
|
+
"hp-roman8": {
|
|
3173
|
+
id: "hp-roman8",
|
|
3174
|
+
groupId: "western",
|
|
3175
|
+
decoderId: null
|
|
3176
|
+
},
|
|
3177
|
+
"HZ-GB-2312": {
|
|
3178
|
+
id: "HZ-GB-2312",
|
|
3179
|
+
groupId: "chineseSimplified",
|
|
3180
|
+
decoderId: null
|
|
3181
|
+
},
|
|
3182
|
+
IBM855: {
|
|
3183
|
+
id: "IBM855",
|
|
3184
|
+
groupId: "cyrillic",
|
|
3185
|
+
decoderId: null
|
|
3186
|
+
},
|
|
3187
|
+
IBM866: {
|
|
3188
|
+
id: "IBM866",
|
|
3189
|
+
groupId: "cyrillic",
|
|
3190
|
+
decoderId: "ibm866"
|
|
3191
|
+
},
|
|
3192
|
+
"ISO-2022-JP": {
|
|
3193
|
+
id: "ISO-2022-JP",
|
|
3194
|
+
groupId: "japanese",
|
|
3195
|
+
decoderId: "iso-2022-jp"
|
|
3196
|
+
},
|
|
3197
|
+
"ISO-2022-KR": {
|
|
3198
|
+
id: "ISO-2022-KR",
|
|
3199
|
+
groupId: "korean",
|
|
3200
|
+
decoderId: null
|
|
3201
|
+
},
|
|
3202
|
+
"ISO-8859-1": {
|
|
3203
|
+
id: "ISO-8859-1",
|
|
3204
|
+
groupId: "western",
|
|
3205
|
+
decoderId: "windows-1252"
|
|
3206
|
+
},
|
|
3207
|
+
"ISO-8859-2": {
|
|
3208
|
+
id: "ISO-8859-2",
|
|
3209
|
+
groupId: "centralEuropean",
|
|
3210
|
+
decoderId: "iso-8859-2"
|
|
3211
|
+
},
|
|
3212
|
+
"ISO-8859-5": {
|
|
3213
|
+
id: "ISO-8859-5",
|
|
3214
|
+
groupId: "cyrillic",
|
|
3215
|
+
decoderId: "iso-8859-5"
|
|
3216
|
+
},
|
|
3217
|
+
"ISO-8859-6": {
|
|
3218
|
+
id: "ISO-8859-6",
|
|
3219
|
+
groupId: "arabic",
|
|
3220
|
+
decoderId: "iso-8859-6"
|
|
3221
|
+
},
|
|
3222
|
+
"ISO-8859-7": {
|
|
3223
|
+
id: "ISO-8859-7",
|
|
3224
|
+
groupId: "greek",
|
|
3225
|
+
decoderId: "iso-8859-7"
|
|
3226
|
+
},
|
|
3227
|
+
"ISO-8859-8": {
|
|
3228
|
+
id: "ISO-8859-8",
|
|
3229
|
+
groupId: "hebrew",
|
|
3230
|
+
decoderId: "iso-8859-8-i"
|
|
3231
|
+
},
|
|
3232
|
+
"ISO-8859-9": {
|
|
3233
|
+
id: "ISO-8859-9",
|
|
3234
|
+
groupId: "turkish",
|
|
3235
|
+
decoderId: "windows-1254"
|
|
3236
|
+
},
|
|
3237
|
+
"ISO-8859-13": {
|
|
3238
|
+
id: "ISO-8859-13",
|
|
3239
|
+
groupId: "baltic",
|
|
3240
|
+
decoderId: "iso-8859-13"
|
|
3241
|
+
},
|
|
3242
|
+
iso2022_jp_2004: {
|
|
3243
|
+
id: "iso2022_jp_2004",
|
|
3244
|
+
groupId: "japanese",
|
|
3245
|
+
decoderId: null
|
|
3246
|
+
},
|
|
3247
|
+
iso2022_jp_ext: {
|
|
3248
|
+
id: "iso2022_jp_ext",
|
|
3249
|
+
groupId: "japanese",
|
|
3250
|
+
decoderId: null
|
|
3251
|
+
},
|
|
3252
|
+
"iso8859-3": {
|
|
3253
|
+
id: "iso8859-3",
|
|
3254
|
+
groupId: "southernEuropean",
|
|
3255
|
+
decoderId: "iso-8859-3"
|
|
3256
|
+
},
|
|
3257
|
+
"iso8859-4": {
|
|
3258
|
+
id: "iso8859-4",
|
|
3259
|
+
groupId: "baltic",
|
|
3260
|
+
decoderId: "iso-8859-4"
|
|
3261
|
+
},
|
|
3262
|
+
"iso8859-10": {
|
|
3263
|
+
id: "iso8859-10",
|
|
3264
|
+
groupId: "nordic",
|
|
3265
|
+
decoderId: "iso-8859-10"
|
|
3266
|
+
},
|
|
3267
|
+
"iso8859-14": {
|
|
3268
|
+
id: "iso8859-14",
|
|
3269
|
+
groupId: "celtic",
|
|
3270
|
+
decoderId: "iso-8859-14"
|
|
3271
|
+
},
|
|
3272
|
+
"iso8859-15": {
|
|
3273
|
+
id: "iso8859-15",
|
|
3274
|
+
groupId: "western",
|
|
3275
|
+
decoderId: "iso-8859-15"
|
|
3276
|
+
},
|
|
3277
|
+
"iso8859-16": {
|
|
3278
|
+
id: "iso8859-16",
|
|
3279
|
+
groupId: "romanian",
|
|
3280
|
+
decoderId: "iso-8859-16"
|
|
3281
|
+
},
|
|
3282
|
+
Johab: {
|
|
3283
|
+
id: "Johab",
|
|
3284
|
+
groupId: "korean",
|
|
3285
|
+
decoderId: null
|
|
3286
|
+
},
|
|
3287
|
+
"KOI8-R": {
|
|
3288
|
+
id: "KOI8-R",
|
|
3289
|
+
groupId: "cyrillic",
|
|
3290
|
+
decoderId: "koi8-r"
|
|
3291
|
+
},
|
|
3292
|
+
"koi8-t": {
|
|
3293
|
+
id: "koi8-t",
|
|
3294
|
+
groupId: "cyrillic",
|
|
3295
|
+
decoderId: null
|
|
3296
|
+
},
|
|
3297
|
+
"koi8-u": {
|
|
3298
|
+
id: "koi8-u",
|
|
3299
|
+
groupId: "cyrillic",
|
|
3300
|
+
decoderId: "koi8-u"
|
|
3301
|
+
},
|
|
3302
|
+
KZ1048: {
|
|
3303
|
+
id: "KZ1048",
|
|
3304
|
+
groupId: "cyrillic",
|
|
3305
|
+
decoderId: null
|
|
3306
|
+
},
|
|
3307
|
+
MacCyrillic: {
|
|
3308
|
+
id: "MacCyrillic",
|
|
3309
|
+
groupId: "cyrillic",
|
|
3310
|
+
decoderId: "x-mac-cyrillic"
|
|
3311
|
+
},
|
|
3312
|
+
MacGreek: {
|
|
3313
|
+
id: "MacGreek",
|
|
3314
|
+
groupId: "greek",
|
|
3315
|
+
decoderId: null
|
|
3316
|
+
},
|
|
3317
|
+
MacIceland: {
|
|
3318
|
+
id: "MacIceland",
|
|
3319
|
+
groupId: "nordic",
|
|
3320
|
+
decoderId: null
|
|
3321
|
+
},
|
|
3322
|
+
MacLatin2: {
|
|
3323
|
+
id: "MacLatin2",
|
|
3324
|
+
groupId: "centralEuropean",
|
|
3325
|
+
decoderId: null
|
|
3326
|
+
},
|
|
3327
|
+
MacRoman: {
|
|
3328
|
+
id: "MacRoman",
|
|
3329
|
+
groupId: "western",
|
|
3330
|
+
decoderId: "macintosh"
|
|
3331
|
+
},
|
|
3332
|
+
MacTurkish: {
|
|
3333
|
+
id: "MacTurkish",
|
|
3334
|
+
groupId: "turkish",
|
|
3335
|
+
decoderId: null
|
|
3336
|
+
},
|
|
3337
|
+
ptcp154: {
|
|
3338
|
+
id: "ptcp154",
|
|
3339
|
+
groupId: "cyrillic",
|
|
3340
|
+
decoderId: null
|
|
3341
|
+
},
|
|
3342
|
+
SHIFT_JIS: {
|
|
3343
|
+
id: "SHIFT_JIS",
|
|
3344
|
+
groupId: "japanese",
|
|
3345
|
+
decoderId: "shift_jis"
|
|
3346
|
+
},
|
|
3347
|
+
"TIS-620": {
|
|
3348
|
+
id: "TIS-620",
|
|
3349
|
+
groupId: "thai",
|
|
3350
|
+
decoderId: "windows-874"
|
|
3351
|
+
},
|
|
3352
|
+
"utf-7": {
|
|
3353
|
+
id: "utf-7",
|
|
3354
|
+
groupId: "other",
|
|
3355
|
+
decoderId: null
|
|
3356
|
+
},
|
|
3357
|
+
"utf-8": {
|
|
3358
|
+
id: "utf-8",
|
|
3359
|
+
groupId: null,
|
|
3360
|
+
decoderId: "utf-8"
|
|
3361
|
+
},
|
|
3362
|
+
"UTF-8-SIG": {
|
|
3363
|
+
id: "UTF-8-SIG",
|
|
3364
|
+
groupId: null,
|
|
3365
|
+
decoderId: "utf-8"
|
|
3366
|
+
},
|
|
3367
|
+
"UTF-16": {
|
|
3368
|
+
id: "UTF-16",
|
|
3369
|
+
groupId: "unicode16",
|
|
3370
|
+
decoderId: null
|
|
3371
|
+
},
|
|
3372
|
+
"utf-16-be": {
|
|
3373
|
+
id: "utf-16-be",
|
|
3374
|
+
groupId: "unicode16",
|
|
3375
|
+
decoderId: "utf-16be"
|
|
3376
|
+
},
|
|
3377
|
+
"utf-16-le": {
|
|
3378
|
+
id: "utf-16-le",
|
|
3379
|
+
groupId: "unicode16",
|
|
3380
|
+
decoderId: "utf-16le"
|
|
3381
|
+
},
|
|
3382
|
+
"UTF-32": {
|
|
3383
|
+
id: "UTF-32",
|
|
3384
|
+
groupId: "unicode32",
|
|
3385
|
+
decoderId: null
|
|
3386
|
+
},
|
|
3387
|
+
"utf-32-be": {
|
|
3388
|
+
id: "utf-32-be",
|
|
3389
|
+
groupId: "unicode32",
|
|
3390
|
+
decoderId: null
|
|
3391
|
+
},
|
|
3392
|
+
"utf-32-le": {
|
|
3393
|
+
id: "utf-32-le",
|
|
3394
|
+
groupId: "unicode32",
|
|
3395
|
+
decoderId: null
|
|
3396
|
+
},
|
|
3397
|
+
"Windows-1250": {
|
|
3398
|
+
id: "Windows-1250",
|
|
3399
|
+
groupId: "centralEuropean",
|
|
3400
|
+
decoderId: "windows-1250"
|
|
3401
|
+
},
|
|
3402
|
+
"Windows-1251": {
|
|
3403
|
+
id: "Windows-1251",
|
|
3404
|
+
groupId: "cyrillic",
|
|
3405
|
+
decoderId: "windows-1251"
|
|
3406
|
+
},
|
|
3407
|
+
"Windows-1252": {
|
|
3408
|
+
id: "Windows-1252",
|
|
3409
|
+
groupId: "western",
|
|
3410
|
+
decoderId: "windows-1252"
|
|
3411
|
+
},
|
|
3412
|
+
"Windows-1253": {
|
|
3413
|
+
id: "Windows-1253",
|
|
3414
|
+
groupId: "greek",
|
|
3415
|
+
decoderId: "windows-1253"
|
|
3416
|
+
},
|
|
3417
|
+
"Windows-1254": {
|
|
3418
|
+
id: "Windows-1254",
|
|
3419
|
+
groupId: "turkish",
|
|
3420
|
+
decoderId: "windows-1254"
|
|
3421
|
+
},
|
|
3422
|
+
"Windows-1255": {
|
|
3423
|
+
id: "Windows-1255",
|
|
3424
|
+
groupId: "hebrew",
|
|
3425
|
+
decoderId: "windows-1255"
|
|
3426
|
+
},
|
|
3427
|
+
"Windows-1256": {
|
|
3428
|
+
id: "Windows-1256",
|
|
3429
|
+
groupId: "arabic",
|
|
3430
|
+
decoderId: "windows-1256"
|
|
3431
|
+
},
|
|
3432
|
+
"Windows-1257": {
|
|
3433
|
+
id: "Windows-1257",
|
|
3434
|
+
groupId: "baltic",
|
|
3435
|
+
decoderId: "windows-1257"
|
|
3436
|
+
}
|
|
3437
|
+
};
|
|
3438
|
+
function Fr(e) {
|
|
3439
|
+
return Object.hasOwn(Pr, e);
|
|
3440
|
+
}
|
|
3441
|
+
function Ir(e) {
|
|
3442
|
+
return Fr(e) ? Pr[e].decoderId ?? e : e;
|
|
3443
|
+
}
|
|
3006
3444
|
//#endregion
|
|
3007
3445
|
//#region src/index.ts
|
|
3008
|
-
var
|
|
3446
|
+
var Lr = {
|
|
3009
3447
|
bom: !1,
|
|
3010
3448
|
cast_date: !1,
|
|
3011
3449
|
columns: !1,
|
|
@@ -3034,7 +3472,7 @@ var Pr = {
|
|
|
3034
3472
|
skip_records_with_error: !1,
|
|
3035
3473
|
to_line: -1,
|
|
3036
3474
|
trim: !1
|
|
3037
|
-
},
|
|
3475
|
+
}, Rr = 4, zr = 1e4, Br = class {
|
|
3038
3476
|
async parseStream(e, t, n, r, i) {
|
|
3039
3477
|
return new Promise((a, o) => {
|
|
3040
3478
|
let s, c, l, u = !1, d = !1, f = () => {
|
|
@@ -3049,15 +3487,15 @@ var Pr = {
|
|
|
3049
3487
|
};
|
|
3050
3488
|
(async () => {
|
|
3051
3489
|
s = ar({
|
|
3052
|
-
...
|
|
3490
|
+
...Lr,
|
|
3053
3491
|
...t,
|
|
3054
3492
|
cast: (e, t) => ({
|
|
3055
3493
|
value: e,
|
|
3056
3494
|
wasValueQuoted: t.quoting
|
|
3057
3495
|
})
|
|
3058
|
-
}), l =
|
|
3496
|
+
}), l = Vr({
|
|
3059
3497
|
chunk: i,
|
|
3060
|
-
chunkSize: e.chunkSize ??
|
|
3498
|
+
chunkSize: e.chunkSize ?? zr
|
|
3061
3499
|
}), s.on("readable", () => {
|
|
3062
3500
|
try {
|
|
3063
3501
|
if (s == null || l == null) return;
|
|
@@ -3072,12 +3510,12 @@ var Pr = {
|
|
|
3072
3510
|
}), s.on("error", (e) => {
|
|
3073
3511
|
p(e);
|
|
3074
3512
|
}), s.on("end", () => {
|
|
3075
|
-
u || (l?.flush(), a(
|
|
3513
|
+
u || (l?.flush(), a(Hr(s)));
|
|
3076
3514
|
});
|
|
3077
3515
|
let o = await fetch(encodeURI(n), { signal: r.signal });
|
|
3078
3516
|
if (!o.ok || o.body == null) throw await Ar(o, `Failed to fetch '${n}' file.`, "dpuse-connector-file-store-emulator|Connector|retrieve");
|
|
3079
3517
|
c = o.body.getReader();
|
|
3080
|
-
let d = new TextDecoder(e.encodingId), f = await c.read();
|
|
3518
|
+
let d = new TextDecoder(Ir(e.encodingId)), f = await c.read();
|
|
3081
3519
|
for (; !f.done;) {
|
|
3082
3520
|
if (u) return;
|
|
3083
3521
|
r.signal.throwIfAborted();
|
|
@@ -3093,7 +3531,7 @@ var Pr = {
|
|
|
3093
3531
|
});
|
|
3094
3532
|
}
|
|
3095
3533
|
async parseText(e, t) {
|
|
3096
|
-
let n =
|
|
3534
|
+
let n = Ur(e), { parsedRecords: r, valueDelimiterId: i } = await Wr(e, t);
|
|
3097
3535
|
return {
|
|
3098
3536
|
parsedRecords: r,
|
|
3099
3537
|
recordDelimiterId: n,
|
|
@@ -3101,11 +3539,11 @@ var Pr = {
|
|
|
3101
3539
|
};
|
|
3102
3540
|
}
|
|
3103
3541
|
};
|
|
3104
|
-
function
|
|
3542
|
+
function Vr(e) {
|
|
3105
3543
|
let t = Math.max(1, Math.floor(e.chunkSize)), n = [], r = o(), i = 0, a = () => {
|
|
3106
3544
|
if (i === 0) return;
|
|
3107
3545
|
let t = r;
|
|
3108
|
-
t.length = i, r = o(), i = 0, e.chunk("parsingRecordArray", t), n.length <
|
|
3546
|
+
t.length = i, r = o(), i = 0, e.chunk("parsingRecordArray", t), n.length < Rr && n.push(t);
|
|
3109
3547
|
};
|
|
3110
3548
|
return {
|
|
3111
3549
|
flush: a,
|
|
@@ -3120,7 +3558,7 @@ function Rr(e) {
|
|
|
3120
3558
|
return r.length = 0, r;
|
|
3121
3559
|
}
|
|
3122
3560
|
}
|
|
3123
|
-
function
|
|
3561
|
+
function Hr(e) {
|
|
3124
3562
|
return {
|
|
3125
3563
|
byteCount: e?.info.bytes ?? -1,
|
|
3126
3564
|
commentLineCount: e?.info.comment_lines ?? -1,
|
|
@@ -3130,15 +3568,15 @@ function zr(e) {
|
|
|
3130
3568
|
recordCount: e?.info.records ?? -1
|
|
3131
3569
|
};
|
|
3132
3570
|
}
|
|
3133
|
-
function
|
|
3571
|
+
function Ur(e) {
|
|
3134
3572
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
3135
3573
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
3136
3574
|
}
|
|
3137
|
-
async function
|
|
3575
|
+
async function Wr(e, t) {
|
|
3138
3576
|
let n, r, i, a = [];
|
|
3139
3577
|
for (let o of t) try {
|
|
3140
3578
|
let t = 0, s, c = 0, l = 0, u = ar({
|
|
3141
|
-
...
|
|
3579
|
+
...Lr,
|
|
3142
3580
|
cast: (e, t) => ({
|
|
3143
3581
|
value: e,
|
|
3144
3582
|
wasValueQuoted: t.quoting
|
|
@@ -3173,4 +3611,4 @@ async function Vr(e, t) {
|
|
|
3173
3611
|
};
|
|
3174
3612
|
}
|
|
3175
3613
|
//#endregion
|
|
3176
|
-
export {
|
|
3614
|
+
export { Br as Tool };
|