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/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 var Version;
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
- Version[Version["1.0.0"] = 0] = "1.0.0";
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
- Version[Version["1.1.0"] = 1] = "1.1.0";
21
- })(Version || (Version = {}));
19
+ "1.1.0": 0x01,
20
+ };
22
21
  /**
23
22
  * Kalendárny mesiac.
23
+ *
24
+ * @dprint-ignore
24
25
  */
25
- export var Month;
26
- (function (Month) {
27
- Month[Month["January"] = 1] = "January";
28
- Month[Month["February"] = 2] = "February";
29
- Month[Month["March"] = 4] = "March";
30
- Month[Month["April"] = 8] = "April";
31
- Month[Month["May"] = 16] = "May";
32
- Month[Month["June"] = 32] = "June";
33
- Month[Month["July"] = 64] = "July";
34
- Month[Month["August"] = 128] = "August";
35
- Month[Month["September"] = 256] = "September";
36
- Month[Month["October"] = 512] = "October";
37
- Month[Month["November"] = 1024] = "November";
38
- Month[Month["December"] = 2048] = "December";
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 var Periodicity;
46
- (function (Periodicity) {
47
- Periodicity["Daily"] = "d";
48
- Periodicity["Weekly"] = "w";
49
- Periodicity["Biweekly"] = "b";
50
- Periodicity["Monthly"] = "m";
51
- Periodicity["Bimonthly"] = "B";
52
- Periodicity["Quarterly"] = "q";
53
- Periodicity["Semiannually"] = "s";
54
- Periodicity["Annually"] = "a";
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 var PaymentOptions;
65
- (function (PaymentOptions) {
65
+ export const PaymentOptions = {
66
66
  /**
67
67
  * Platobný príkaz
68
68
  */
69
- PaymentOptions[PaymentOptions["PaymentOrder"] = 1] = "PaymentOrder";
69
+ PaymentOrder: 0b00000001,
70
70
  /**
71
71
  * Trvalý príkaz, údaje sa vyplnia do StandingOrderExt
72
72
  */
73
- PaymentOptions[PaymentOptions["StandingOrder"] = 2] = "StandingOrder";
73
+ StandingOrder: 0b00000010,
74
74
  /**
75
75
  * Inkaso, údaje sa vyplnia do DirectDebitExt
76
76
  */
77
- PaymentOptions[PaymentOptions["DirectDebit"] = 4] = "DirectDebit";
78
- })(PaymentOptions || (PaymentOptions = {}));
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 var DirectDebitScheme;
86
- (function (DirectDebitScheme) {
85
+ export const DirectDebitScheme = {
87
86
  /**
88
87
  * other - iné
89
88
  */
90
- DirectDebitScheme[DirectDebitScheme["Other"] = 0] = "Other";
89
+ Other: 0x00,
91
90
  /**
92
91
  * SEPA - Inkaso zodpovedá schéme
93
92
  */
94
- DirectDebitScheme[DirectDebitScheme["Sepa"] = 1] = "Sepa";
95
- })(DirectDebitScheme || (DirectDebitScheme = {}));
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 var DirectDebitType;
105
- (function (DirectDebitType) {
103
+ export const DirectDebitType = {
106
104
  /**
107
105
  * Jednorázové inkaso
108
106
  */
109
- DirectDebitType[DirectDebitType["OneOff"] = 0] = "OneOff";
107
+ OneOff: 0x00,
110
108
  /**
111
109
  * Opakované inkaso
112
110
  */
113
- DirectDebitType[DirectDebitType["Recurrent"] = 1] = "Recurrent";
114
- })(DirectDebitType || (DirectDebitType = {}));
111
+ Recurrent: 0x01,
112
+ };
115
113
  /**
116
114
  * [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217)
117
115
  */
118
- export var CurrencyCode;
119
- (function (CurrencyCode) {
120
- CurrencyCode["AED"] = "AED";
121
- CurrencyCode["AFN"] = "AFN";
122
- CurrencyCode["ALL"] = "ALL";
123
- CurrencyCode["AMD"] = "AMD";
124
- CurrencyCode["ANG"] = "ANG";
125
- CurrencyCode["AOA"] = "AOA";
126
- CurrencyCode["ARS"] = "ARS";
127
- CurrencyCode["AUD"] = "AUD";
128
- CurrencyCode["AWG"] = "AWG";
129
- CurrencyCode["AZN"] = "AZN";
130
- CurrencyCode["BAM"] = "BAM";
131
- CurrencyCode["BBD"] = "BBD";
132
- CurrencyCode["BDT"] = "BDT";
133
- CurrencyCode["BGN"] = "BGN";
134
- CurrencyCode["BHD"] = "BHD";
135
- CurrencyCode["BIF"] = "BIF";
136
- CurrencyCode["BMD"] = "BMD";
137
- CurrencyCode["BND"] = "BND";
138
- CurrencyCode["BOB"] = "BOB";
139
- CurrencyCode["BRL"] = "BRL";
140
- CurrencyCode["BSD"] = "BSD";
141
- CurrencyCode["BTN"] = "BTN";
142
- CurrencyCode["BWP"] = "BWP";
143
- CurrencyCode["BYN"] = "BYN";
144
- CurrencyCode["BZD"] = "BZD";
145
- CurrencyCode["CAD"] = "CAD";
146
- CurrencyCode["CDF"] = "CDF";
147
- CurrencyCode["CHF"] = "CHF";
148
- CurrencyCode["CLP"] = "CLP";
149
- CurrencyCode["CNY"] = "CNY";
150
- CurrencyCode["COP"] = "COP";
151
- CurrencyCode["CRC"] = "CRC";
152
- CurrencyCode["CUC"] = "CUC";
153
- CurrencyCode["CUP"] = "CUP";
154
- CurrencyCode["CVE"] = "CVE";
155
- CurrencyCode["CZK"] = "CZK";
156
- CurrencyCode["DJF"] = "DJF";
157
- CurrencyCode["DKK"] = "DKK";
158
- CurrencyCode["DOP"] = "DOP";
159
- CurrencyCode["DZD"] = "DZD";
160
- CurrencyCode["EGP"] = "EGP";
161
- CurrencyCode["ERN"] = "ERN";
162
- CurrencyCode["ETB"] = "ETB";
163
- CurrencyCode["EUR"] = "EUR";
164
- CurrencyCode["FJD"] = "FJD";
165
- CurrencyCode["FKP"] = "FKP";
166
- CurrencyCode["GBP"] = "GBP";
167
- CurrencyCode["GEL"] = "GEL";
168
- CurrencyCode["GHS"] = "GHS";
169
- CurrencyCode["GIP"] = "GIP";
170
- CurrencyCode["GMD"] = "GMD";
171
- CurrencyCode["GNF"] = "GNF";
172
- CurrencyCode["GTQ"] = "GTQ";
173
- CurrencyCode["GYD"] = "GYD";
174
- CurrencyCode["HKD"] = "HKD";
175
- CurrencyCode["HNL"] = "HNL";
176
- CurrencyCode["HRK"] = "HRK";
177
- CurrencyCode["HTG"] = "HTG";
178
- CurrencyCode["HUF"] = "HUF";
179
- CurrencyCode["IDR"] = "IDR";
180
- CurrencyCode["ILS"] = "ILS";
181
- CurrencyCode["INR"] = "INR";
182
- CurrencyCode["IQD"] = "IQD";
183
- CurrencyCode["IRR"] = "IRR";
184
- CurrencyCode["ISK"] = "ISK";
185
- CurrencyCode["JMD"] = "JMD";
186
- CurrencyCode["JOD"] = "JOD";
187
- CurrencyCode["JPY"] = "JPY";
188
- CurrencyCode["KES"] = "KES";
189
- CurrencyCode["KGS"] = "KGS";
190
- CurrencyCode["KHR"] = "KHR";
191
- CurrencyCode["KMF"] = "KMF";
192
- CurrencyCode["KPW"] = "KPW";
193
- CurrencyCode["KRW"] = "KRW";
194
- CurrencyCode["KWD"] = "KWD";
195
- CurrencyCode["KYD"] = "KYD";
196
- CurrencyCode["KZT"] = "KZT";
197
- CurrencyCode["LAK"] = "LAK";
198
- CurrencyCode["LBP"] = "LBP";
199
- CurrencyCode["LKR"] = "LKR";
200
- CurrencyCode["LRD"] = "LRD";
201
- CurrencyCode["LSL"] = "LSL";
202
- CurrencyCode["LYD"] = "LYD";
203
- CurrencyCode["MAD"] = "MAD";
204
- CurrencyCode["MDL"] = "MDL";
205
- CurrencyCode["MGA"] = "MGA";
206
- CurrencyCode["MKD"] = "MKD";
207
- CurrencyCode["MMK"] = "MMK";
208
- CurrencyCode["MNT"] = "MNT";
209
- CurrencyCode["MOP"] = "MOP";
210
- CurrencyCode["MRU"] = "MRU";
211
- CurrencyCode["MUR"] = "MUR";
212
- CurrencyCode["MVR"] = "MVR";
213
- CurrencyCode["MWK"] = "MWK";
214
- CurrencyCode["MXN"] = "MXN";
215
- CurrencyCode["MYR"] = "MYR";
216
- CurrencyCode["MZN"] = "MZN";
217
- CurrencyCode["NAD"] = "NAD";
218
- CurrencyCode["NGN"] = "NGN";
219
- CurrencyCode["NIO"] = "NIO";
220
- CurrencyCode["NOK"] = "NOK";
221
- CurrencyCode["NPR"] = "NPR";
222
- CurrencyCode["NZD"] = "NZD";
223
- CurrencyCode["OMR"] = "OMR";
224
- CurrencyCode["PAB"] = "PAB";
225
- CurrencyCode["PEN"] = "PEN";
226
- CurrencyCode["PGK"] = "PGK";
227
- CurrencyCode["PHP"] = "PHP";
228
- CurrencyCode["PKR"] = "PKR";
229
- CurrencyCode["PLN"] = "PLN";
230
- CurrencyCode["PYG"] = "PYG";
231
- CurrencyCode["QAR"] = "QAR";
232
- CurrencyCode["RON"] = "RON";
233
- CurrencyCode["RSD"] = "RSD";
234
- CurrencyCode["RUB"] = "RUB";
235
- CurrencyCode["RWF"] = "RWF";
236
- CurrencyCode["SAR"] = "SAR";
237
- CurrencyCode["SBD"] = "SBD";
238
- CurrencyCode["SCR"] = "SCR";
239
- CurrencyCode["SDG"] = "SDG";
240
- CurrencyCode["SEK"] = "SEK";
241
- CurrencyCode["SGD"] = "SGD";
242
- CurrencyCode["SHP"] = "SHP";
243
- CurrencyCode["SLL"] = "SLL";
244
- CurrencyCode["SOS"] = "SOS";
245
- CurrencyCode["SRD"] = "SRD";
246
- CurrencyCode["SSP"] = "SSP";
247
- CurrencyCode["STN"] = "STN";
248
- CurrencyCode["SVC"] = "SVC";
249
- CurrencyCode["SYP"] = "SYP";
250
- CurrencyCode["SZL"] = "SZL";
251
- CurrencyCode["THB"] = "THB";
252
- CurrencyCode["TJS"] = "TJS";
253
- CurrencyCode["TMT"] = "TMT";
254
- CurrencyCode["TND"] = "TND";
255
- CurrencyCode["TOP"] = "TOP";
256
- CurrencyCode["TRY"] = "TRY";
257
- CurrencyCode["TTD"] = "TTD";
258
- CurrencyCode["TWD"] = "TWD";
259
- CurrencyCode["TZS"] = "TZS";
260
- CurrencyCode["UAH"] = "UAH";
261
- CurrencyCode["UGX"] = "UGX";
262
- CurrencyCode["USD"] = "USD";
263
- CurrencyCode["UYU"] = "UYU";
264
- CurrencyCode["UZS"] = "UZS";
265
- CurrencyCode["VES"] = "VES";
266
- CurrencyCode["VND"] = "VND";
267
- CurrencyCode["VUV"] = "VUV";
268
- CurrencyCode["WST"] = "WST";
269
- CurrencyCode["XAF"] = "XAF";
270
- CurrencyCode["XCD"] = "XCD";
271
- CurrencyCode["XOF"] = "XOF";
272
- CurrencyCode["XPF"] = "XPF";
273
- CurrencyCode["YER"] = "YER";
274
- CurrencyCode["ZAR"] = "ZAR";
275
- CurrencyCode["ZMW"] = "ZMW";
276
- CurrencyCode["ZWL"] = "ZWL";
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
+ };
@@ -1,21 +1,20 @@
1
1
  import { BankAccount, DataModel, SimplePayment } from "./types.js";
2
- export declare enum 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
- }
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: ValidationErrorMessage, path: string);
17
+ constructor(message: string, path: string);
19
18
  }
20
19
  /**
21
20
  * validates bankAccount fields:
@@ -1,16 +1,14 @@
1
1
  import validator from "validator";
2
- export var ValidationErrorMessage;
3
- (function (ValidationErrorMessage) {
4
- ValidationErrorMessage["IBAN"] = "Invalid IBAN. Make sure ISO 13616 format is used.";
5
- ValidationErrorMessage["BIC"] = "Invalid BIC. Make sure ISO 9362 format is used.";
6
- ValidationErrorMessage["CurrencyCode"] = "Invalid currency code. Make sure ISO 4217 format is used.";
7
- ValidationErrorMessage["Date"] = "Invalid date. Make sure ISO 8601 format is used.";
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
- "version": "2.12.0",
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
- "version": "git checkout develop && npm test",
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.3",
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.6.0"
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"}