bysquare 2.0.0 → 2.1.0
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 +42 -44
- package/lib/{cli.d.ts → cjs/cli.d.ts} +0 -0
- package/lib/cjs/cli.js +90 -0
- package/lib/cjs/generate.d.ts +54 -0
- package/lib/cjs/generate.js +185 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- package/lib/cjs/index.js +23 -0
- package/lib/cjs/package.json +71 -0
- package/lib/{parse.d.ts → cjs/parse.d.ts} +2 -2
- package/lib/cjs/parse.js +234 -0
- package/lib/{types.d.ts → cjs/types.d.ts} +0 -0
- package/lib/cjs/types.js +246 -0
- package/lib/mjs/cli.d.ts +2 -0
- package/lib/{cli.js → mjs/cli.js} +18 -35
- package/lib/{generate.d.ts → mjs/generate.d.ts} +10 -4
- package/lib/{generate.js → mjs/generate.js} +35 -57
- package/lib/{index.js → mjs/index.d.ts} +0 -0
- package/lib/mjs/index.js +3 -0
- package/lib/mjs/package.json +71 -0
- package/lib/mjs/parse.d.ts +16 -0
- package/lib/{parse.js → mjs/parse.js} +79 -28
- package/lib/mjs/types.d.ts +379 -0
- package/lib/{types.js → mjs/types.js} +0 -0
- package/package.json +15 -8
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selection of one or more months on which payment occurs. This is enabled
|
|
3
|
+
* only if periodicity is set to one of the following value: “Weekly,
|
|
4
|
+
* Biweekly, Monthly, Bimonthly”. Otherwise it must not be specified.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum MonthClassifier {
|
|
7
|
+
January = 1,
|
|
8
|
+
February = 2,
|
|
9
|
+
March = 4,
|
|
10
|
+
April = 8,
|
|
11
|
+
May = 16,
|
|
12
|
+
June = 32,
|
|
13
|
+
July = 64,
|
|
14
|
+
August = 128,
|
|
15
|
+
September = 256,
|
|
16
|
+
October = 512,
|
|
17
|
+
November = 1024,
|
|
18
|
+
December = 2048
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Periodicity of the payment. All valid options are „Daily“, „Weekly“,
|
|
22
|
+
* „Biweekly“, „Monthly“, „Bimonthly“, „Quarterly“, „Annually“,
|
|
23
|
+
* „Semiannually“. To find out which periodicity types are supported by the
|
|
24
|
+
* banks see the following web site: http://www.sbaonline.sk/sk/
|
|
25
|
+
*/
|
|
26
|
+
export declare enum Periodicity {
|
|
27
|
+
Daily = "d",
|
|
28
|
+
Weekly = "w",
|
|
29
|
+
Biweekly = "b",
|
|
30
|
+
Monthly = "m",
|
|
31
|
+
Bimonthly = "B",
|
|
32
|
+
Quarterly = "q",
|
|
33
|
+
Semiannually = "s",
|
|
34
|
+
Annually = "a"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* This is the payment day. It‘s meaning depends on the periodicity, meaning
|
|
38
|
+
* either day of the month (number between 1 and 31) or day of the week
|
|
39
|
+
* (1=Monday,2=Tuesday, …, 7=Sunday).
|
|
40
|
+
*
|
|
41
|
+
* Max length 2
|
|
42
|
+
*/
|
|
43
|
+
export type Day = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31;
|
|
44
|
+
export declare enum PaymentOptions {
|
|
45
|
+
PaymentOrder = 1,
|
|
46
|
+
StandingOrder = 2,
|
|
47
|
+
DirectDebit = 4
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* In section „encoding BankAccounts“ we provide further recommendations for
|
|
51
|
+
* encoding bank account
|
|
52
|
+
*/
|
|
53
|
+
export type BankAccount = {
|
|
54
|
+
/**
|
|
55
|
+
* Max length 34
|
|
56
|
+
*/
|
|
57
|
+
iban: string;
|
|
58
|
+
/**
|
|
59
|
+
* Format ISO 9362 (swift)
|
|
60
|
+
* 8 or 11 characters long
|
|
61
|
+
*/
|
|
62
|
+
bic?: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* If DirectDebitScheme value is 1, which is „SEPA“ than encoded direct
|
|
66
|
+
* debit follows SEPA direct debit scheme which means that fields MandateID,
|
|
67
|
+
* CreditorID and optional ContractID are used. If direct debit scheme is 0,
|
|
68
|
+
* which is „OTHER“ this means no specific direct debit scheme and following
|
|
69
|
+
* rules do apply:
|
|
70
|
+
*
|
|
71
|
+
* a. Creditor is identified via bank accounts
|
|
72
|
+
*
|
|
73
|
+
* b. Contract between debtor and creditor is identified using one of the
|
|
74
|
+
* following two ways: 1. by two optional fields SpecificSymbol and
|
|
75
|
+
* VariableSymbol. 2. by one optional field OriginatorsReferenceInformation.
|
|
76
|
+
* If SpecificSymbol and VariableSymbol fields or
|
|
77
|
+
* OriginatorsReferenceInformation field is filled in DirectDebitExt then
|
|
78
|
+
* these fields do apply for the direct debit.
|
|
79
|
+
*/
|
|
80
|
+
export declare enum DirectDebitScheme {
|
|
81
|
+
Other = 0,
|
|
82
|
+
Sepa = 1
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Can be „oneoff“ for one time debit or „recurrent“ for repeated debit
|
|
86
|
+
* until cancelled.
|
|
87
|
+
*
|
|
88
|
+
* Max length 1
|
|
89
|
+
*/
|
|
90
|
+
export declare enum DirectDebitType {
|
|
91
|
+
OneOff = 0,
|
|
92
|
+
Recurrent = 1
|
|
93
|
+
}
|
|
94
|
+
export type Beneficiary = {
|
|
95
|
+
/**
|
|
96
|
+
* Belongs to the N-th payment
|
|
97
|
+
*
|
|
98
|
+
* Max length 70
|
|
99
|
+
*/
|
|
100
|
+
name?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Belongs to the N-th payment
|
|
103
|
+
* Commonly used street and street number
|
|
104
|
+
*
|
|
105
|
+
* Max length 70
|
|
106
|
+
*/
|
|
107
|
+
street?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Belongs to the N-th payment
|
|
110
|
+
* Commonly used for City
|
|
111
|
+
*
|
|
112
|
+
* Max length 70
|
|
113
|
+
*/
|
|
114
|
+
city?: string;
|
|
115
|
+
};
|
|
116
|
+
export type SimplePayment = {
|
|
117
|
+
/**
|
|
118
|
+
* Encoded with amount payable. This field is not required and can be left
|
|
119
|
+
* blank in cases payment amount is not known such as donations.
|
|
120
|
+
*
|
|
121
|
+
* Decimal, max length 15
|
|
122
|
+
*/
|
|
123
|
+
amount?: number;
|
|
124
|
+
/**
|
|
125
|
+
* 3 letter, payment currency code according to ISO-4217
|
|
126
|
+
*/
|
|
127
|
+
currencyCode: keyof typeof CurrencyCodeEnum;
|
|
128
|
+
/**
|
|
129
|
+
* Format YYYYMMDD
|
|
130
|
+
*/
|
|
131
|
+
paymentDueDate?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Max length 10
|
|
134
|
+
*/
|
|
135
|
+
variableSymbol?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Max length 4
|
|
138
|
+
*/
|
|
139
|
+
constantSymbol?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Max length 10
|
|
142
|
+
*/
|
|
143
|
+
specificSymbol?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Max length 35
|
|
146
|
+
*/
|
|
147
|
+
originatorRefInfo?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Optional field. In previous section we provide further recommendations
|
|
150
|
+
* for encoding payment note.
|
|
151
|
+
*
|
|
152
|
+
* Max length 140
|
|
153
|
+
*/
|
|
154
|
+
paymentNote?: string;
|
|
155
|
+
bankAccounts: BankAccount[];
|
|
156
|
+
beneficiary?: Beneficiary;
|
|
157
|
+
};
|
|
158
|
+
export type PaymentOrder = SimplePayment & {
|
|
159
|
+
type: PaymentOptions.PaymentOrder;
|
|
160
|
+
};
|
|
161
|
+
export type StandingOrder = SimplePayment & {
|
|
162
|
+
type: PaymentOptions.StandingOrder;
|
|
163
|
+
day?: Day;
|
|
164
|
+
month?: MonthClassifier;
|
|
165
|
+
periodicity?: Periodicity;
|
|
166
|
+
/**
|
|
167
|
+
* Defines the day of the last payment of the standing order. After this
|
|
168
|
+
* date, standing order is cancelled.
|
|
169
|
+
*
|
|
170
|
+
* Format YYYYMMDD
|
|
171
|
+
*/
|
|
172
|
+
lastDate?: string;
|
|
173
|
+
};
|
|
174
|
+
export type DirectDebit = SimplePayment & {
|
|
175
|
+
type: PaymentOptions.DirectDebit;
|
|
176
|
+
directDebitScheme?: DirectDebitScheme;
|
|
177
|
+
directDebitType?: DirectDebitType;
|
|
178
|
+
/**
|
|
179
|
+
* Max length 35
|
|
180
|
+
*/
|
|
181
|
+
mandateId?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Max length 35
|
|
184
|
+
*/
|
|
185
|
+
creditorId?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Max length 35
|
|
188
|
+
*/
|
|
189
|
+
contractId?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Optional field. As most users prefer to set up some maximum amount for
|
|
192
|
+
* the direct debit, this can be pre-filled for them.
|
|
193
|
+
*
|
|
194
|
+
* Decimal, max length 15
|
|
195
|
+
*/
|
|
196
|
+
maxAmount?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Defines the day after which direct debit is cancelled.
|
|
199
|
+
*
|
|
200
|
+
* Max length 8
|
|
201
|
+
* Format YYYYMMDD
|
|
202
|
+
*/
|
|
203
|
+
validTillDate?: string;
|
|
204
|
+
};
|
|
205
|
+
export type Payment = PaymentOrder | StandingOrder | DirectDebit;
|
|
206
|
+
export type DataModel = {
|
|
207
|
+
/**
|
|
208
|
+
* Max length 10
|
|
209
|
+
*/
|
|
210
|
+
invoiceId?: string;
|
|
211
|
+
payments: Payment[];
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Currency codes based on ISO-4217
|
|
215
|
+
*/
|
|
216
|
+
export declare enum CurrencyCodeEnum {
|
|
217
|
+
AED = "United Arab Emirates Dirham",
|
|
218
|
+
AFN = "Afghanistan Afghani",
|
|
219
|
+
ALL = "Albania Lek",
|
|
220
|
+
AMD = "Armenia Dram",
|
|
221
|
+
ANG = "Netherlands Antilles Guilder",
|
|
222
|
+
AOA = "Angola Kwanza",
|
|
223
|
+
ARS = "Argentina Peso",
|
|
224
|
+
AUD = "Australia Dollar",
|
|
225
|
+
AWG = "Aruba Guilder",
|
|
226
|
+
AZN = "Azerbaijan New Manat",
|
|
227
|
+
BAM = "Bosnia and Herzegovina Convertible Marka",
|
|
228
|
+
BBD = "Barbados Dollar",
|
|
229
|
+
BDT = "Bangladesh Taka",
|
|
230
|
+
BGN = "Bulgaria Lev",
|
|
231
|
+
BHD = "Bahrain Dinar",
|
|
232
|
+
BIF = "Burundi Franc",
|
|
233
|
+
BMD = "Bermuda Dollar",
|
|
234
|
+
BND = "Brunei Darussalam Dollar",
|
|
235
|
+
BOB = "Bolivia Bol\u00EDviano",
|
|
236
|
+
BRL = "Brazil Real",
|
|
237
|
+
BSD = "Bahamas Dollar",
|
|
238
|
+
BTN = "Bhutan Ngultrum",
|
|
239
|
+
BWP = "Botswana Pula",
|
|
240
|
+
BYR = "Belarus Ruble",
|
|
241
|
+
BZD = "Belize Dollar",
|
|
242
|
+
CAD = "Canada Dollar",
|
|
243
|
+
CDF = "Congo/Kinshasa Franc",
|
|
244
|
+
CHF = "Switzerland Franc",
|
|
245
|
+
CLP = "Chile Peso",
|
|
246
|
+
CNY = "China Yuan Renminbi",
|
|
247
|
+
COP = "Colombia Peso",
|
|
248
|
+
CRC = "Costa Rica Colon",
|
|
249
|
+
CUC = "Cuba Convertible Peso",
|
|
250
|
+
CUP = "Cuba Peso",
|
|
251
|
+
CVE = "Cape Verde Escudo",
|
|
252
|
+
CZK = "Czech Republic Koruna",
|
|
253
|
+
DJF = "Djibouti Franc",
|
|
254
|
+
DKK = "Denmark Krone",
|
|
255
|
+
DOP = "Dominican Republic Peso",
|
|
256
|
+
DZD = "Algeria Dinar",
|
|
257
|
+
EGP = "Egypt Pound",
|
|
258
|
+
ERN = "Eritrea Nakfa",
|
|
259
|
+
ETB = "Ethiopia Birr",
|
|
260
|
+
EUR = "Euro Member Countries",
|
|
261
|
+
FJD = "Fiji Dollar",
|
|
262
|
+
FKP = "Falkland Islands = Malvinas Pound",
|
|
263
|
+
GBP = "United Kingdom Pound",
|
|
264
|
+
GEL = "Georgia Lari",
|
|
265
|
+
GGP = "Guernsey Pound",
|
|
266
|
+
GHS = "Ghana Cedi",
|
|
267
|
+
GIP = "Gibraltar Pound",
|
|
268
|
+
GMD = "Gambia Dalasi",
|
|
269
|
+
GNF = "Guinea Franc",
|
|
270
|
+
GTQ = "Guatemala Quetzal",
|
|
271
|
+
GYD = "Guyana Dollar",
|
|
272
|
+
HKD = "Hong Kong Dollar",
|
|
273
|
+
HNL = "Honduras Lempira",
|
|
274
|
+
HRK = "Croatia Kuna",
|
|
275
|
+
HTG = "Haiti Gourde",
|
|
276
|
+
HUF = "Hungary Forint",
|
|
277
|
+
IDR = "Indonesia Rupiah",
|
|
278
|
+
ILS = "Israel Shekel",
|
|
279
|
+
IMP = "Isle of Man Pound",
|
|
280
|
+
INR = "India Rupee",
|
|
281
|
+
IQD = "Iraq Dinar",
|
|
282
|
+
IRR = "Iran Rial",
|
|
283
|
+
ISK = "Iceland Krona",
|
|
284
|
+
JEP = "Jersey Pound",
|
|
285
|
+
JMD = "Jamaica Dollar",
|
|
286
|
+
JOD = "Jordan Dinar",
|
|
287
|
+
JPY = "Japan Yen",
|
|
288
|
+
KES = "Kenya Shilling",
|
|
289
|
+
KGS = "Kyrgyzstan Som",
|
|
290
|
+
KHR = "Cambodia Riel",
|
|
291
|
+
KMF = "Comoros Franc",
|
|
292
|
+
KPW = "Korea = North Won",
|
|
293
|
+
KRW = "Korea = South Won",
|
|
294
|
+
KWD = "Kuwait Dinar",
|
|
295
|
+
KYD = "Cayman Islands Dollar",
|
|
296
|
+
KZT = "Kazakhstan Tenge",
|
|
297
|
+
LAK = "Laos Kip",
|
|
298
|
+
LBP = "Lebanon Pound",
|
|
299
|
+
LKR = "Sri Lanka Rupee",
|
|
300
|
+
LRD = "Liberia Dollar",
|
|
301
|
+
LSL = "Lesotho Loti",
|
|
302
|
+
LYD = "Libya Dinar",
|
|
303
|
+
MAD = "Morocco Dirham",
|
|
304
|
+
MDL = "Moldova Leu",
|
|
305
|
+
MGA = "Madagascar Ariary",
|
|
306
|
+
MKD = "Macedonia Denar",
|
|
307
|
+
MMK = "Myanmar = Burma Kyat",
|
|
308
|
+
MNT = "Mongolia Tughrik",
|
|
309
|
+
MOP = "Macau Pataca",
|
|
310
|
+
MRO = "Mauritania Ouguiya",
|
|
311
|
+
MUR = "Mauritius Rupee",
|
|
312
|
+
MVR = "Maldives = Maldive Islands Rufiyaa",
|
|
313
|
+
MWK = "Malawi Kwacha",
|
|
314
|
+
MXN = "Mexico Peso",
|
|
315
|
+
MYR = "Malaysia Ringgit",
|
|
316
|
+
MZN = "Mozambique Metical",
|
|
317
|
+
NAD = "Namibia Dollar",
|
|
318
|
+
NGN = "Nigeria Naira",
|
|
319
|
+
NIO = "Nicaragua Cordoba",
|
|
320
|
+
NOK = "Norway Krone",
|
|
321
|
+
NPR = "Nepal Rupee",
|
|
322
|
+
NZD = "New Zealand Dollar",
|
|
323
|
+
OMR = "Oman Rial",
|
|
324
|
+
PAB = "Panama Balboa",
|
|
325
|
+
PEN = "Peru Sol",
|
|
326
|
+
PGK = "Papua New Guinea Kina",
|
|
327
|
+
PHP = "Philippines Peso",
|
|
328
|
+
PKR = "Pakistan Rupee",
|
|
329
|
+
PLN = "Poland Zloty",
|
|
330
|
+
PYG = "Paraguay Guarani",
|
|
331
|
+
QAR = "Qatar Riyal",
|
|
332
|
+
RON = "Romania New Leu",
|
|
333
|
+
RSD = "Serbia Dinar",
|
|
334
|
+
RUB = "Russia Ruble",
|
|
335
|
+
RWF = "Rwanda Franc",
|
|
336
|
+
SAR = "Saudi Arabia Riyal",
|
|
337
|
+
SBD = "Solomon Islands Dollar",
|
|
338
|
+
SCR = "Seychelles Rupee",
|
|
339
|
+
SDG = "Sudan Pound",
|
|
340
|
+
SEK = "Sweden Krona",
|
|
341
|
+
SGD = "Singapore Dollar",
|
|
342
|
+
SHP = "Saint Helena Pound",
|
|
343
|
+
SLL = "Sierra Leone Leone",
|
|
344
|
+
SOS = "Somalia Shilling",
|
|
345
|
+
SPL = "Seborga Luigino",
|
|
346
|
+
SRD = "Suriname Dollar",
|
|
347
|
+
STD = "S\u00E3o Tom\u00E9 and Pr\u00EDncipe Dobra",
|
|
348
|
+
SVC = "El Salvador Colon",
|
|
349
|
+
SYP = "Syria Pound",
|
|
350
|
+
SZL = "Swaziland Lilangeni",
|
|
351
|
+
THB = "Thailand Baht",
|
|
352
|
+
TJS = "Tajikistan Somoni",
|
|
353
|
+
TMT = "Turkmenistan Manat",
|
|
354
|
+
TND = "Tunisia Dinar",
|
|
355
|
+
TOP = "Tonga Pa'anga",
|
|
356
|
+
TRY = "Turkey Lira",
|
|
357
|
+
TTD = "Trinidad and Tobago Dollar",
|
|
358
|
+
TVD = "Tuvalu Dollar",
|
|
359
|
+
TWD = "Taiwan New Dollar",
|
|
360
|
+
TZS = "Tanzania Shilling",
|
|
361
|
+
UAH = "Ukraine Hryvnia",
|
|
362
|
+
UGX = "Uganda Shilling",
|
|
363
|
+
USD = "United States Dollar",
|
|
364
|
+
UYU = "Uruguay Peso",
|
|
365
|
+
UZS = "Uzbekistan Som",
|
|
366
|
+
VEF = "Venezuela Bolivar",
|
|
367
|
+
VND = "Viet Nam Dong",
|
|
368
|
+
VUV = "Vanuatu Vatu",
|
|
369
|
+
WST = "Samoa Tala",
|
|
370
|
+
XAF = "Communaut\u00E9 Financi\u00E8re Africaine = BEAC CFA Franc BEAC",
|
|
371
|
+
XCD = "East Caribbean Dollar",
|
|
372
|
+
XDR = "International Monetary Fund = IMF Special Drawing Rights",
|
|
373
|
+
XOF = "Communaut\u00E9 Financi\u00E8re Africaine = BCEAO Franc",
|
|
374
|
+
XPF = "Comptoirs Fran\u00E7ais du Pacifique = CFP Franc",
|
|
375
|
+
YER = "Yemen Rial",
|
|
376
|
+
ZAR = "South Africa Rand",
|
|
377
|
+
ZMW = "Zambia Kwacha",
|
|
378
|
+
ZWD = "Zimbabwe Dollar"
|
|
379
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"funding": "https://github.com/sponsors/xseman",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"prebuild": "rm -rf ./lib || :",
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"
|
|
15
|
+
"build": "tsc --project ./tsconfig.json && tsc --project ./tsconfig.cjs.json",
|
|
16
|
+
"typecheck": "tsc --noEmit",
|
|
17
|
+
"postbuild": "bash -c 'chmod +x ./lib/{cjs,mjs}/cli.js' && cp package.json ./lib/mjs/ && jq '.type=\"commonjs\"' package.json > lib/cjs/package.json",
|
|
17
18
|
"test": "xv --loader=tsx ./src",
|
|
18
19
|
"test:watch": "find ./src/*.ts | entr xv --loader=tsx ./src",
|
|
19
20
|
"cli:local": "npm run build && npm link bysquare",
|
|
@@ -24,9 +25,10 @@
|
|
|
24
25
|
"postversion": ""
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
28
|
+
"crc-32": "~1.2.0",
|
|
27
29
|
"lodash.deburr": "~4.1.0",
|
|
28
|
-
"lzma
|
|
29
|
-
"rfc4648": "1.5.
|
|
30
|
+
"lzma": "~2.3.0",
|
|
31
|
+
"rfc4648": "~1.5.0"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@types/lodash.deburr": "~4.1.0",
|
|
@@ -36,9 +38,14 @@
|
|
|
36
38
|
"typescript": "~4.9.0",
|
|
37
39
|
"xv": "~2.1.0"
|
|
38
40
|
},
|
|
39
|
-
"bin": "lib/cli.js",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
41
|
+
"bin": "lib/mjs/cli.js",
|
|
42
|
+
"types": "lib/mjs/index.d.ts",
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"require": "./lib/cjs/index.js",
|
|
46
|
+
"import": "./lib/mjs/index.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
42
49
|
"files": [
|
|
43
50
|
"lib",
|
|
44
51
|
"!lib/*.test.*"
|