bysquare 2.12.0 → 2.12.2
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 +111 -67
- package/dist/decode.d.ts +6 -7
- package/dist/decode.js +6 -7
- package/dist/encode.d.ts +8 -9
- package/dist/encode.js +8 -9
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/test_assets.d.ts +7 -8
- package/dist/types.d.ts +219 -208
- package/dist/types.js +204 -207
- package/dist/validations.d.ts +7 -8
- package/dist/validations.js +7 -8
- package/package.json +10 -17
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/types.js
CHANGED
|
@@ -4,55 +4,56 @@
|
|
|
4
4
|
* It's a bit silly to limit the version number to 4-bit, if they keep
|
|
5
5
|
* increasing the version number, the latest possible mapped value is 16
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
(function (Version) {
|
|
7
|
+
export const Version = {
|
|
9
8
|
/**
|
|
10
9
|
* Created this document from original by square specifications.
|
|
11
10
|
*
|
|
12
11
|
* **Released Date:** 2013-02-22
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
"1.0.0": 0x00,
|
|
15
14
|
/**
|
|
16
15
|
* Added fields for beneficiary name and address
|
|
17
16
|
*
|
|
18
17
|
* **Released Date:** 2015-06-24
|
|
19
18
|
*/
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
"1.1.0": 0x01,
|
|
20
|
+
};
|
|
22
21
|
/**
|
|
23
22
|
* Kalendárny mesiac.
|
|
23
|
+
*
|
|
24
|
+
* @dprint-ignore
|
|
24
25
|
*/
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(Month || (Month = {}));
|
|
26
|
+
export const Month = {
|
|
27
|
+
January: 0b00000000000001,
|
|
28
|
+
February: 0b00000000000010,
|
|
29
|
+
March: 0b00000000000100,
|
|
30
|
+
April: 0b00000000001000,
|
|
31
|
+
May: 0b00000000010000,
|
|
32
|
+
June: 0b00000000100000,
|
|
33
|
+
July: 0b00000001000000,
|
|
34
|
+
August: 0b00000010000000,
|
|
35
|
+
September: 0b00000100000000,
|
|
36
|
+
October: 0b00001000000000,
|
|
37
|
+
November: 0b00010000000000,
|
|
38
|
+
December: 0b00100000000000,
|
|
39
|
+
};
|
|
40
40
|
/**
|
|
41
41
|
* Deň platby vyplývajúci z opakovania (Periodicity). Deň v mesiaci je číslo
|
|
42
42
|
* medzi 1 a 31. Deň v týždni je číslo medzi 1 a 7 (1 = pondelok, 2=utorok, …, 7
|
|
43
43
|
* = nedeľa).
|
|
44
|
+
*
|
|
45
|
+
* @dprint-ignore
|
|
44
46
|
*/
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})(Periodicity || (Periodicity = {}));
|
|
47
|
+
export const Periodicity = {
|
|
48
|
+
Daily: "d",
|
|
49
|
+
Weekly: "w",
|
|
50
|
+
Biweekly: "b",
|
|
51
|
+
Monthly: "m",
|
|
52
|
+
Bimonthly: "B",
|
|
53
|
+
Quarterly: "q",
|
|
54
|
+
Semiannually: "s",
|
|
55
|
+
Annually: "a",
|
|
56
|
+
};
|
|
56
57
|
/**
|
|
57
58
|
* Možnosti platby sa dajú kombinovať. Oddeľujú sa medzerou a treba uviesť vždy
|
|
58
59
|
* aspoň jednu z možností:
|
|
@@ -61,38 +62,36 @@ export var Periodicity;
|
|
|
61
62
|
* - `StandingOrder`: trvalý príkaz, údaje sa vyplnia do StandingOrderExt
|
|
62
63
|
* - `DirectDebit`: inkaso, údaje sa vyplnia do DirectDebitExt
|
|
63
64
|
*/
|
|
64
|
-
export
|
|
65
|
-
(function (PaymentOptions) {
|
|
65
|
+
export const PaymentOptions = {
|
|
66
66
|
/**
|
|
67
67
|
* Platobný príkaz
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
PaymentOrder: 0b00000001,
|
|
70
70
|
/**
|
|
71
71
|
* Trvalý príkaz, údaje sa vyplnia do StandingOrderExt
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
StandingOrder: 0b00000010,
|
|
74
74
|
/**
|
|
75
75
|
* Inkaso, údaje sa vyplnia do DirectDebitExt
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
}
|
|
77
|
+
DirectDebit: 0b00000100,
|
|
78
|
+
};
|
|
79
79
|
/**
|
|
80
80
|
* Inksaná schéma. Uvádza ja jedna z možností:
|
|
81
81
|
*
|
|
82
82
|
* - SEPA - Inkaso zodpovedá schéme
|
|
83
83
|
* - SEPA. other - iné
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
86
|
-
(function (DirectDebitScheme) {
|
|
85
|
+
export const DirectDebitScheme = {
|
|
87
86
|
/**
|
|
88
87
|
* other - iné
|
|
89
88
|
*/
|
|
90
|
-
|
|
89
|
+
Other: 0x00,
|
|
91
90
|
/**
|
|
92
91
|
* SEPA - Inkaso zodpovedá schéme
|
|
93
92
|
*/
|
|
94
|
-
|
|
95
|
-
}
|
|
93
|
+
Sepa: 0x01,
|
|
94
|
+
};
|
|
96
95
|
/**
|
|
97
96
|
* Typ inkasa. Uvádza ja jedna z možností:
|
|
98
97
|
*
|
|
@@ -101,177 +100,175 @@ export var DirectDebitScheme;
|
|
|
101
100
|
* - one-off - jednorázové inkaso
|
|
102
101
|
* - recurrent - opakované inkaso
|
|
103
102
|
*/
|
|
104
|
-
export
|
|
105
|
-
(function (DirectDebitType) {
|
|
103
|
+
export const DirectDebitType = {
|
|
106
104
|
/**
|
|
107
105
|
* Jednorázové inkaso
|
|
108
106
|
*/
|
|
109
|
-
|
|
107
|
+
OneOff: 0x00,
|
|
110
108
|
/**
|
|
111
109
|
* Opakované inkaso
|
|
112
110
|
*/
|
|
113
|
-
|
|
114
|
-
}
|
|
111
|
+
Recurrent: 0x01,
|
|
112
|
+
};
|
|
115
113
|
/**
|
|
116
114
|
* [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217)
|
|
117
115
|
*/
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
})(CurrencyCode || (CurrencyCode = {}));
|
|
116
|
+
export const CurrencyCode = {
|
|
117
|
+
AED: "AED",
|
|
118
|
+
AFN: "AFN",
|
|
119
|
+
ALL: "ALL",
|
|
120
|
+
AMD: "AMD",
|
|
121
|
+
ANG: "ANG",
|
|
122
|
+
AOA: "AOA",
|
|
123
|
+
ARS: "ARS",
|
|
124
|
+
AUD: "AUD",
|
|
125
|
+
AWG: "AWG",
|
|
126
|
+
AZN: "AZN",
|
|
127
|
+
BAM: "BAM",
|
|
128
|
+
BBD: "BBD",
|
|
129
|
+
BDT: "BDT",
|
|
130
|
+
BGN: "BGN",
|
|
131
|
+
BHD: "BHD",
|
|
132
|
+
BIF: "BIF",
|
|
133
|
+
BMD: "BMD",
|
|
134
|
+
BND: "BND",
|
|
135
|
+
BOB: "BOB",
|
|
136
|
+
BRL: "BRL",
|
|
137
|
+
BSD: "BSD",
|
|
138
|
+
BTN: "BTN",
|
|
139
|
+
BWP: "BWP",
|
|
140
|
+
BYN: "BYN",
|
|
141
|
+
BZD: "BZD",
|
|
142
|
+
CAD: "CAD",
|
|
143
|
+
CDF: "CDF",
|
|
144
|
+
CHF: "CHF",
|
|
145
|
+
CLP: "CLP",
|
|
146
|
+
CNY: "CNY",
|
|
147
|
+
COP: "COP",
|
|
148
|
+
CRC: "CRC",
|
|
149
|
+
CUC: "CUC",
|
|
150
|
+
CUP: "CUP",
|
|
151
|
+
CVE: "CVE",
|
|
152
|
+
CZK: "CZK",
|
|
153
|
+
DJF: "DJF",
|
|
154
|
+
DKK: "DKK",
|
|
155
|
+
DOP: "DOP",
|
|
156
|
+
DZD: "DZD",
|
|
157
|
+
EGP: "EGP",
|
|
158
|
+
ERN: "ERN",
|
|
159
|
+
ETB: "ETB",
|
|
160
|
+
EUR: "EUR",
|
|
161
|
+
FJD: "FJD",
|
|
162
|
+
FKP: "FKP",
|
|
163
|
+
GBP: "GBP",
|
|
164
|
+
GEL: "GEL",
|
|
165
|
+
GHS: "GHS",
|
|
166
|
+
GIP: "GIP",
|
|
167
|
+
GMD: "GMD",
|
|
168
|
+
GNF: "GNF",
|
|
169
|
+
GTQ: "GTQ",
|
|
170
|
+
GYD: "GYD",
|
|
171
|
+
HKD: "HKD",
|
|
172
|
+
HNL: "HNL",
|
|
173
|
+
HRK: "HRK",
|
|
174
|
+
HTG: "HTG",
|
|
175
|
+
HUF: "HUF",
|
|
176
|
+
IDR: "IDR",
|
|
177
|
+
ILS: "ILS",
|
|
178
|
+
INR: "INR",
|
|
179
|
+
IQD: "IQD",
|
|
180
|
+
IRR: "IRR",
|
|
181
|
+
ISK: "ISK",
|
|
182
|
+
JMD: "JMD",
|
|
183
|
+
JOD: "JOD",
|
|
184
|
+
JPY: "JPY",
|
|
185
|
+
KES: "KES",
|
|
186
|
+
KGS: "KGS",
|
|
187
|
+
KHR: "KHR",
|
|
188
|
+
KMF: "KMF",
|
|
189
|
+
KPW: "KPW",
|
|
190
|
+
KRW: "KRW",
|
|
191
|
+
KWD: "KWD",
|
|
192
|
+
KYD: "KYD",
|
|
193
|
+
KZT: "KZT",
|
|
194
|
+
LAK: "LAK",
|
|
195
|
+
LBP: "LBP",
|
|
196
|
+
LKR: "LKR",
|
|
197
|
+
LRD: "LRD",
|
|
198
|
+
LSL: "LSL",
|
|
199
|
+
LYD: "LYD",
|
|
200
|
+
MAD: "MAD",
|
|
201
|
+
MDL: "MDL",
|
|
202
|
+
MGA: "MGA",
|
|
203
|
+
MKD: "MKD",
|
|
204
|
+
MMK: "MMK",
|
|
205
|
+
MNT: "MNT",
|
|
206
|
+
MOP: "MOP",
|
|
207
|
+
MRU: "MRU",
|
|
208
|
+
MUR: "MUR",
|
|
209
|
+
MVR: "MVR",
|
|
210
|
+
MWK: "MWK",
|
|
211
|
+
MXN: "MXN",
|
|
212
|
+
MYR: "MYR",
|
|
213
|
+
MZN: "MZN",
|
|
214
|
+
NAD: "NAD",
|
|
215
|
+
NGN: "NGN",
|
|
216
|
+
NIO: "NIO",
|
|
217
|
+
NOK: "NOK",
|
|
218
|
+
NPR: "NPR",
|
|
219
|
+
NZD: "NZD",
|
|
220
|
+
OMR: "OMR",
|
|
221
|
+
PAB: "PAB",
|
|
222
|
+
PEN: "PEN",
|
|
223
|
+
PGK: "PGK",
|
|
224
|
+
PHP: "PHP",
|
|
225
|
+
PKR: "PKR",
|
|
226
|
+
PLN: "PLN",
|
|
227
|
+
PYG: "PYG",
|
|
228
|
+
QAR: "QAR",
|
|
229
|
+
RON: "RON",
|
|
230
|
+
RSD: "RSD",
|
|
231
|
+
RUB: "RUB",
|
|
232
|
+
RWF: "RWF",
|
|
233
|
+
SAR: "SAR",
|
|
234
|
+
SBD: "SBD",
|
|
235
|
+
SCR: "SCR",
|
|
236
|
+
SDG: "SDG",
|
|
237
|
+
SEK: "SEK",
|
|
238
|
+
SGD: "SGD",
|
|
239
|
+
SHP: "SHP",
|
|
240
|
+
SLL: "SLL",
|
|
241
|
+
SOS: "SOS",
|
|
242
|
+
SRD: "SRD",
|
|
243
|
+
SSP: "SSP",
|
|
244
|
+
STN: "STN",
|
|
245
|
+
SVC: "SVC",
|
|
246
|
+
SYP: "SYP",
|
|
247
|
+
SZL: "SZL",
|
|
248
|
+
THB: "THB",
|
|
249
|
+
TJS: "TJS",
|
|
250
|
+
TMT: "TMT",
|
|
251
|
+
TND: "TND",
|
|
252
|
+
TOP: "TOP",
|
|
253
|
+
TRY: "TRY",
|
|
254
|
+
TTD: "TTD",
|
|
255
|
+
TWD: "TWD",
|
|
256
|
+
TZS: "TZS",
|
|
257
|
+
UAH: "UAH",
|
|
258
|
+
UGX: "UGX",
|
|
259
|
+
USD: "USD",
|
|
260
|
+
UYU: "UYU",
|
|
261
|
+
UZS: "UZS",
|
|
262
|
+
VES: "VES",
|
|
263
|
+
VND: "VND",
|
|
264
|
+
VUV: "VUV",
|
|
265
|
+
WST: "WST",
|
|
266
|
+
XAF: "XAF",
|
|
267
|
+
XCD: "XCD",
|
|
268
|
+
XOF: "XOF",
|
|
269
|
+
XPF: "XPF",
|
|
270
|
+
YER: "YER",
|
|
271
|
+
ZAR: "ZAR",
|
|
272
|
+
ZMW: "ZMW",
|
|
273
|
+
ZWL: "ZWL",
|
|
274
|
+
};
|
package/dist/validations.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { BankAccount, DataModel, SimplePayment } from "./types.js";
|
|
2
|
-
export declare
|
|
3
|
-
IBAN
|
|
4
|
-
BIC
|
|
5
|
-
CurrencyCode
|
|
6
|
-
Date
|
|
7
|
-
}
|
|
2
|
+
export declare const ValidationErrorMessage: {
|
|
3
|
+
readonly IBAN: "Invalid IBAN. Make sure ISO 13616 format is used.";
|
|
4
|
+
readonly BIC: "Invalid BIC. Make sure ISO 9362 format is used.";
|
|
5
|
+
readonly CurrencyCode: "Invalid currency code. Make sure ISO 4217 format is used.";
|
|
6
|
+
readonly Date: "Invalid date. Make sure ISO 8601 format is used.";
|
|
7
|
+
};
|
|
8
8
|
/**
|
|
9
9
|
* This error will be thrown in case of a validation issue. It provides message with error description and specific path to issue in dataModel object.
|
|
10
10
|
*/
|
|
11
11
|
export declare class ValidationError extends Error {
|
|
12
|
-
name: string;
|
|
13
12
|
path: string;
|
|
14
13
|
/**
|
|
15
14
|
* @param message - explains, what is wrong on the specific field
|
|
16
15
|
* @param path - navigates to the specific field in DataModel, where error occurred
|
|
17
16
|
*/
|
|
18
|
-
constructor(message:
|
|
17
|
+
constructor(message: string, path: string);
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* validates bankAccount fields:
|
package/dist/validations.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import validator from "validator";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(ValidationErrorMessage || (ValidationErrorMessage = {}));
|
|
2
|
+
export const ValidationErrorMessage = {
|
|
3
|
+
IBAN: "Invalid IBAN. Make sure ISO 13616 format is used.",
|
|
4
|
+
BIC: "Invalid BIC. Make sure ISO 9362 format is used.",
|
|
5
|
+
CurrencyCode: "Invalid currency code. Make sure ISO 4217 format is used.",
|
|
6
|
+
Date: "Invalid date. Make sure ISO 8601 format is used.",
|
|
7
|
+
};
|
|
9
8
|
/**
|
|
10
9
|
* This error will be thrown in case of a validation issue. It provides message with error description and specific path to issue in dataModel object.
|
|
11
10
|
*/
|
|
12
11
|
export class ValidationError extends Error {
|
|
13
|
-
name = "ValidationError";
|
|
14
12
|
path;
|
|
15
13
|
/**
|
|
16
14
|
* @param message - explains, what is wrong on the specific field
|
|
@@ -18,6 +16,7 @@ export class ValidationError extends Error {
|
|
|
18
16
|
*/
|
|
19
17
|
constructor(message, path) {
|
|
20
18
|
super(message);
|
|
19
|
+
this.name = this.constructor.name;
|
|
21
20
|
this.path = path;
|
|
22
21
|
}
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bysquare",
|
|
3
3
|
"description": "It's a national standard for payment QR codes adopted by Slovak Banking Association (SBA)",
|
|
4
|
-
"
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "2.12.2",
|
|
5
6
|
"license": "Apache-2.0",
|
|
6
7
|
"funding": "https://github.com/sponsors/xseman",
|
|
7
8
|
"homepage": "https://github.com/xseman/bysquare#readme",
|
|
@@ -17,18 +18,15 @@
|
|
|
17
18
|
"url": "git+https://github.com/xseman/bysquare.git"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
20
|
-
"prebuild": "tsc --build --clean",
|
|
21
21
|
"build": "tsc --build",
|
|
22
22
|
"fmt": "dprint fmt",
|
|
23
23
|
"fmt:check": "dprint check",
|
|
24
24
|
"typecheck": "tsc --noEmit",
|
|
25
|
-
"
|
|
26
|
-
"postversion": "echo 'Now run npm run build && npm publish'",
|
|
27
|
-
"test": "TS_NODE_TRANSPILE_ONLY=true node --test --experimental-test-coverage --loader=ts-node/esm --no-warnings src/*.test.ts",
|
|
25
|
+
"test": "TS_NODE_TRANSPILE_ONLY=true node --test --experimental-test-coverage --test-coverage-exclude=src/**/*.test.ts --loader=ts-node/esm --no-warnings src/*.test.ts",
|
|
28
26
|
"test:watch": "TS_NODE_TRANSPILE_ONLY=true node --test --watch --loader=ts-node/esm --no-warnings src/*.test.ts"
|
|
29
27
|
},
|
|
30
28
|
"dependencies": {
|
|
31
|
-
"lzma1": "0.0.
|
|
29
|
+
"lzma1": "0.0.5",
|
|
32
30
|
"validator": "^13.12.0"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
@@ -36,23 +34,18 @@
|
|
|
36
34
|
"@types/validator": "^13.12.0",
|
|
37
35
|
"dprint": "~0.47.0",
|
|
38
36
|
"ts-node": "~10.9.0",
|
|
39
|
-
"typescript": "~5.
|
|
37
|
+
"typescript": "~5.8.0"
|
|
40
38
|
},
|
|
41
|
-
"type": "module",
|
|
42
39
|
"bin": "./dist/cli.js",
|
|
43
|
-
"types": "./dist/index.d.ts",
|
|
44
|
-
"module": "./dist/index.js",
|
|
45
40
|
"exports": {
|
|
46
41
|
".": {
|
|
47
|
-
"import": "./dist/index.js"
|
|
42
|
+
"import": "./dist/index.js",
|
|
43
|
+
"types": "./dist/index.d.ts"
|
|
48
44
|
}
|
|
49
45
|
},
|
|
50
46
|
"files": [
|
|
51
|
-
"dist",
|
|
47
|
+
"dist/*.js",
|
|
48
|
+
"dist/*.d.ts",
|
|
52
49
|
"!dist/*.test.*"
|
|
53
|
-
]
|
|
54
|
-
"engines": {
|
|
55
|
-
"node": ">=16",
|
|
56
|
-
"npm": ">=7"
|
|
57
|
-
}
|
|
50
|
+
]
|
|
58
51
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/base32hex.test.ts","../src/base32hex.ts","../src/cli.ts","../src/crc32.test.ts","../src/crc32.ts","../src/deburr.test.ts","../src/deburr.ts","../src/decode.test.ts","../src/decode.ts","../src/encode.test.ts","../src/encode.ts","../src/helper.test.ts","../src/helpers.ts","../src/index.ts","../src/test_assets.ts","../src/types.ts","../src/validations.test.ts","../src/validations.ts"],"version":"5.6.2"}
|