@coderoftime/fints 0.1.0 → 0.3.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/CHANGELOG.md +519 -1
- package/README.md +138 -40
- package/dist/client.d.ts +49 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +242 -0
- package/dist/client.js.map +1 -0
- package/dist/core/account.d.ts +46 -7
- package/dist/core/account.d.ts.map +1 -1
- package/dist/core/account.js +143 -24
- package/dist/core/account.js.map +1 -1
- package/dist/core/amount.d.ts +15 -4
- package/dist/core/amount.d.ts.map +1 -1
- package/dist/core/amount.js +46 -9
- package/dist/core/amount.js.map +1 -1
- package/dist/core/balance.d.ts +4 -0
- package/dist/core/balance.d.ts.map +1 -1
- package/dist/core/balance.js +11 -5
- package/dist/core/balance.js.map +1 -1
- package/dist/core/bank-info.d.ts +21 -4
- package/dist/core/bank-info.d.ts.map +1 -1
- package/dist/core/bank-info.js +26 -5
- package/dist/core/bank-info.js.map +1 -1
- package/dist/core/client.d.ts +81 -19
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/config.d.ts +40 -20
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +85 -30
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors.d.ts +100 -26
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +136 -53
- package/dist/core/errors.js.map +1 -1
- package/dist/core/feedback.d.ts +11 -1
- package/dist/core/feedback.d.ts.map +1 -1
- package/dist/core/feedback.js +14 -2
- package/dist/core/feedback.js.map +1 -1
- package/dist/core/transaction.d.ts +11 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +21 -4
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/transport.d.ts +48 -6
- package/dist/core/transport.d.ts.map +1 -1
- package/dist/core/transport.js +126 -29
- package/dist/core/transport.js.map +1 -1
- package/dist/formats/camt.d.ts +28 -5
- package/dist/formats/camt.d.ts.map +1 -1
- package/dist/formats/camt.js +132 -50
- package/dist/formats/camt.js.map +1 -1
- package/dist/formats/mt940.d.ts +29 -5
- package/dist/formats/mt940.d.ts.map +1 -1
- package/dist/formats/mt940.js +209 -113
- package/dist/formats/mt940.js.map +1 -1
- package/dist/formats/readers.d.ts +6 -2
- package/dist/formats/readers.d.ts.map +1 -1
- package/dist/formats/readers.js +28 -29
- package/dist/formats/readers.js.map +1 -1
- package/dist/formats/record-budget.d.ts +7 -0
- package/dist/formats/record-budget.d.ts.map +1 -0
- package/dist/formats/record-budget.js +17 -0
- package/dist/formats/record-budget.js.map +1 -0
- package/dist/formats/sepa-purpose.d.ts +9 -0
- package/dist/formats/sepa-purpose.d.ts.map +1 -1
- package/dist/formats/sepa-purpose.js +32 -2
- package/dist/formats/sepa-purpose.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/session/app-approval.d.ts +11 -5
- package/dist/session/app-approval.d.ts.map +1 -1
- package/dist/session/app-approval.js +23 -12
- package/dist/session/app-approval.js.map +1 -1
- package/dist/session/dialog-runner.d.ts +11 -11
- package/dist/session/dialog-runner.d.ts.map +1 -1
- package/dist/session/dialog-runner.js +34 -19
- package/dist/session/dialog-runner.js.map +1 -1
- package/dist/session/login-guard.d.ts +54 -49
- package/dist/session/login-guard.d.ts.map +1 -1
- package/dist/session/login-guard.js +170 -83
- package/dist/session/login-guard.js.map +1 -1
- package/dist/session/sepa-accounts.d.ts +20 -14
- package/dist/session/sepa-accounts.d.ts.map +1 -1
- package/dist/session/sepa-accounts.js +62 -46
- package/dist/session/sepa-accounts.js.map +1 -1
- package/dist/session/session-setup.d.ts +41 -24
- package/dist/session/session-setup.d.ts.map +1 -1
- package/dist/session/session-setup.js +106 -63
- package/dist/session/session-setup.js.map +1 -1
- package/dist/session/session-state.d.ts +10 -6
- package/dist/session/session-state.d.ts.map +1 -1
- package/dist/session/session-state.js +72 -18
- package/dist/session/session-state.js.map +1 -1
- package/dist/session/signed-dialog.d.ts +83 -0
- package/dist/session/signed-dialog.d.ts.map +1 -0
- package/dist/session/signed-dialog.js +185 -0
- package/dist/session/signed-dialog.js.map +1 -0
- package/dist/session/tan-selection.d.ts +26 -18
- package/dist/session/tan-selection.d.ts.map +1 -1
- package/dist/session/tan-selection.js +44 -33
- package/dist/session/tan-selection.js.map +1 -1
- package/dist/session/user-prompts.d.ts +14 -5
- package/dist/session/user-prompts.d.ts.map +1 -1
- package/dist/session/user-prompts.js +53 -18
- package/dist/session/user-prompts.js.map +1 -1
- package/dist/tan/challenge.d.ts +47 -24
- package/dist/tan/challenge.d.ts.map +1 -1
- package/dist/tan/challenge.js +56 -51
- package/dist/tan/challenge.js.map +1 -1
- package/dist/tan/flicker.d.ts +11 -1
- package/dist/tan/flicker.d.ts.map +1 -1
- package/dist/tan/flicker.js +70 -24
- package/dist/tan/flicker.js.map +1 -1
- package/dist/tan/tan-image.d.ts +6 -2
- package/dist/tan/tan-image.d.ts.map +1 -1
- package/dist/tan/tan-image.js +14 -6
- package/dist/tan/tan-image.js.map +1 -1
- package/dist/tan/tan-models.d.ts +14 -2
- package/dist/tan/tan-models.d.ts.map +1 -1
- package/dist/tan/tan-models.js +24 -7
- package/dist/tan/tan-models.js.map +1 -1
- package/dist/util/arguments.d.ts +13 -0
- package/dist/util/arguments.d.ts.map +1 -0
- package/dist/util/arguments.js +40 -0
- package/dist/util/arguments.js.map +1 -0
- package/dist/util/async.d.ts +4 -3
- package/dist/util/async.d.ts.map +1 -1
- package/dist/util/async.js +6 -7
- package/dist/util/async.js.map +1 -1
- package/dist/util/bytes.d.ts +3 -4
- package/dist/util/bytes.d.ts.map +1 -1
- package/dist/util/bytes.js +13 -21
- package/dist/util/bytes.js.map +1 -1
- package/dist/util/call-context.d.ts.map +1 -1
- package/dist/util/call-context.js +3 -2
- package/dist/util/call-context.js.map +1 -1
- package/dist/util/dates.d.ts +6 -20
- package/dist/util/dates.d.ts.map +1 -1
- package/dist/util/dates.js +58 -28
- package/dist/util/dates.js.map +1 -1
- package/dist/util/errors.d.ts +13 -3
- package/dist/util/errors.d.ts.map +1 -1
- package/dist/util/errors.js +19 -6
- package/dist/util/errors.js.map +1 -1
- package/dist/util/immutable-map.d.ts +5 -2
- package/dist/util/immutable-map.d.ts.map +1 -1
- package/dist/util/immutable-map.js +15 -12
- package/dist/util/immutable-map.js.map +1 -1
- package/dist/util/inspect.d.ts +11 -0
- package/dist/util/inspect.d.ts.map +1 -0
- package/dist/util/inspect.js +14 -0
- package/dist/util/inspect.js.map +1 -0
- package/dist/util/json.d.ts +4 -0
- package/dist/util/json.d.ts.map +1 -1
- package/dist/util/json.js +18 -0
- package/dist/util/json.js.map +1 -1
- package/dist/util/text.d.ts +38 -5
- package/dist/util/text.d.ts.map +1 -1
- package/dist/util/text.js +90 -16
- package/dist/util/text.js.map +1 -1
- package/dist/util/xml.d.ts +9 -6
- package/dist/util/xml.d.ts.map +1 -1
- package/dist/util/xml.js +129 -56
- package/dist/util/xml.js.map +1 -1
- package/dist/v3/account-extension.d.ts.map +1 -1
- package/dist/v3/account-extension.js +7 -10
- package/dist/v3/account-extension.js.map +1 -1
- package/dist/v3/bank-connection.d.ts +54 -0
- package/dist/v3/bank-connection.d.ts.map +1 -0
- package/dist/v3/bank-connection.js +118 -0
- package/dist/v3/bank-connection.js.map +1 -0
- package/dist/v3/dialog.d.ts +84 -46
- package/dist/v3/dialog.d.ts.map +1 -1
- package/dist/v3/dialog.js +174 -60
- package/dist/v3/dialog.js.map +1 -1
- package/dist/v3/message.d.ts +32 -11
- package/dist/v3/message.d.ts.map +1 -1
- package/dist/v3/message.js +144 -83
- package/dist/v3/message.js.map +1 -1
- package/dist/v3/parameter-store.d.ts +111 -0
- package/dist/v3/parameter-store.d.ts.map +1 -0
- package/dist/v3/parameter-store.js +197 -0
- package/dist/v3/parameter-store.js.map +1 -0
- package/dist/v3/parameters.d.ts +44 -17
- package/dist/v3/parameters.d.ts.map +1 -1
- package/dist/v3/parameters.js +136 -60
- package/dist/v3/parameters.js.map +1 -1
- package/dist/v3/protocol.d.ts +50 -50
- package/dist/v3/protocol.d.ts.map +1 -1
- package/dist/v3/protocol.js +91 -210
- package/dist/v3/protocol.js.map +1 -1
- package/dist/v3/queries.d.ts +51 -0
- package/dist/v3/queries.d.ts.map +1 -0
- package/dist/v3/queries.js +128 -0
- package/dist/v3/queries.js.map +1 -0
- package/dist/v3/segments.d.ts +43 -19
- package/dist/v3/segments.d.ts.map +1 -1
- package/dist/v3/segments.js +84 -33
- package/dist/v3/segments.js.map +1 -1
- package/dist/v3/syntax.d.ts +68 -13
- package/dist/v3/syntax.d.ts.map +1 -1
- package/dist/v3/syntax.js +183 -102
- package/dist/v3/syntax.js.map +1 -1
- package/package.json +10 -6
- package/src/client.ts +293 -0
- package/src/core/account.ts +153 -24
- package/src/core/amount.ts +45 -10
- package/src/core/balance.ts +12 -5
- package/src/core/bank-info.ts +29 -5
- package/src/core/client.ts +83 -19
- package/src/core/config.ts +95 -35
- package/src/core/errors.ts +148 -54
- package/src/core/feedback.ts +16 -2
- package/src/core/transaction.ts +22 -4
- package/src/core/transport.ts +153 -32
- package/src/formats/camt.ts +153 -45
- package/src/formats/mt940.ts +244 -122
- package/src/formats/readers.ts +28 -31
- package/src/formats/record-budget.ts +18 -0
- package/src/formats/sepa-purpose.ts +29 -2
- package/src/index.ts +4 -2
- package/src/session/app-approval.ts +51 -38
- package/src/session/dialog-runner.ts +61 -31
- package/src/session/login-guard.ts +189 -87
- package/src/session/sepa-accounts.ts +63 -45
- package/src/session/session-setup.ts +105 -68
- package/src/session/session-state.ts +74 -23
- package/src/session/signed-dialog.ts +222 -0
- package/src/session/tan-selection.ts +50 -39
- package/src/session/user-prompts.ts +62 -18
- package/src/tan/challenge.ts +87 -64
- package/src/tan/flicker.ts +72 -23
- package/src/tan/tan-image.ts +15 -6
- package/src/tan/tan-models.ts +26 -7
- package/src/util/arguments.ts +40 -0
- package/src/util/async.ts +10 -9
- package/src/util/bytes.ts +14 -20
- package/src/util/call-context.ts +3 -2
- package/src/util/dates.ts +64 -33
- package/src/util/errors.ts +22 -6
- package/src/util/immutable-map.ts +15 -12
- package/src/util/inspect.ts +14 -0
- package/src/util/json.ts +16 -0
- package/src/util/text.ts +87 -15
- package/src/util/xml.ts +130 -52
- package/src/v3/account-extension.ts +7 -12
- package/src/v3/bank-connection.ts +126 -0
- package/src/v3/dialog.ts +186 -92
- package/src/v3/message.ts +140 -79
- package/src/v3/parameter-store.ts +226 -0
- package/src/v3/parameters.ts +166 -66
- package/src/v3/protocol.ts +103 -253
- package/src/v3/queries.ts +198 -0
- package/src/v3/segments.ts +86 -31
- package/src/v3/syntax.ts +172 -93
- package/dist/session/bank-connection.d.ts +0 -28
- package/dist/session/bank-connection.d.ts.map +0 -1
- package/dist/session/bank-connection.js +0 -48
- package/dist/session/bank-connection.js.map +0 -1
- package/dist/session/parameter-data.d.ts +0 -83
- package/dist/session/parameter-data.d.ts.map +0 -1
- package/dist/session/parameter-data.js +0 -68
- package/dist/session/parameter-data.js.map +0 -1
- package/dist/session/pin-tan-client.d.ts +0 -54
- package/dist/session/pin-tan-client.d.ts.map +0 -1
- package/dist/session/pin-tan-client.js +0 -153
- package/dist/session/pin-tan-client.js.map +0 -1
- package/dist/session/pin-tan-dialog.d.ts +0 -71
- package/dist/session/pin-tan-dialog.d.ts.map +0 -1
- package/dist/session/pin-tan-dialog.js +0 -124
- package/dist/session/pin-tan-dialog.js.map +0 -1
- package/dist/session/protocol.d.ts +0 -209
- package/dist/session/protocol.d.ts.map +0 -1
- package/dist/session/protocol.js +0 -75
- package/dist/session/protocol.js.map +0 -1
- package/dist/session/response-handler.d.ts +0 -48
- package/dist/session/response-handler.d.ts.map +0 -1
- package/dist/session/response-handler.js +0 -121
- package/dist/session/response-handler.js.map +0 -1
- package/dist/v3/client.d.ts +0 -24
- package/dist/v3/client.d.ts.map +0 -1
- package/dist/v3/client.js +0 -16
- package/dist/v3/client.js.map +0 -1
- package/src/session/bank-connection.ts +0 -51
- package/src/session/parameter-data.ts +0 -137
- package/src/session/pin-tan-client.ts +0 -186
- package/src/session/pin-tan-dialog.ts +0 -160
- package/src/session/protocol.ts +0 -311
- package/src/session/response-handler.ts +0 -130
- package/src/v3/client.ts +0 -29
package/dist/util/dates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/util/dates.ts"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,sHAAsH;AACtH,
|
|
1
|
+
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/util/dates.ts"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,uHAAuH;AACvH,sHAAsH;AACtH,6GAA6G;AAE7G,MAAM,MAAM,GAAG,SAAS,CAAC;AAEzB,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,IAAI,CAAC,CAAO;IACnB,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACrD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,eAAe,CAAC,CAAO;IACrC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;AAC7E,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,eAAe,CAAC,CAAO;IACrC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE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format, such as a malformed MT940 line or amount.
|
|
3
|
+
*
|
|
4
|
+
* The message leaves out `source`, which may hold account data, such as amounts, names and IBANs, so that logs and
|
|
5
|
+
* crash reports do not collect them. For the same reason `source` is a getter, not a field: `JSON.stringify` and
|
|
6
|
+
* Node.js's report of an uncaught error show an error's fields as they are.
|
|
7
|
+
*/
|
|
2
8
|
export declare class FormatError extends Error {
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
#private;
|
|
10
|
+
name: string;
|
|
5
11
|
constructor(message: string, source?: string);
|
|
12
|
+
/** The part of the data that is malformed, where the parser can tell it. */
|
|
13
|
+
get source(): string | undefined;
|
|
6
14
|
}
|
|
15
|
+
/** Throws a `FormatError`, where an expression is expected, such as `value ?? fail('…')`. */
|
|
16
|
+
export declare function fail(message: string, source?: string): never;
|
|
7
17
|
/** An argument the function cannot work with, such as an empty PIN. The message never contains a PIN. */
|
|
8
18
|
export declare function invalidArgument(message: string, name?: string): TypeError;
|
|
9
19
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/util/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/util/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,KAAK;;IAC3B,IAAI,SAAiB;gBAIlB,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAK5C,4EAA4E;IAC5E,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAE/B;CACF;AAED,6FAA6F;AAC7F,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAE5D;AAED,yGAAyG;AACzG,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAEzE"}
|
package/dist/util/errors.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Data that do not have the expected format, such as a malformed MT940 line or amount.
|
|
3
|
+
*
|
|
4
|
+
* The message leaves out `source`, which may hold account data, such as amounts, names and IBANs, so that logs and
|
|
5
|
+
* crash reports do not collect them. For the same reason `source` is a getter, not a field: `JSON.stringify` and
|
|
6
|
+
* Node.js's report of an uncaught error show an error's fields as they are.
|
|
7
|
+
*/
|
|
2
8
|
export class FormatError extends Error {
|
|
3
|
-
|
|
4
|
-
source;
|
|
9
|
+
name = 'FormatError';
|
|
10
|
+
#source;
|
|
5
11
|
constructor(message, source) {
|
|
6
|
-
super(
|
|
7
|
-
this
|
|
8
|
-
|
|
12
|
+
super(message);
|
|
13
|
+
this.#source = source;
|
|
14
|
+
}
|
|
15
|
+
/** The part of the data that is malformed, where the parser can tell it. */
|
|
16
|
+
get source() {
|
|
17
|
+
return this.#source;
|
|
9
18
|
}
|
|
10
19
|
}
|
|
20
|
+
/** Throws a `FormatError`, where an expression is expected, such as `value ?? fail('…')`. */
|
|
21
|
+
export function fail(message, source) {
|
|
22
|
+
throw new FormatError(message, source);
|
|
23
|
+
}
|
|
11
24
|
/** An argument the function cannot work with, such as an empty PIN. The message never contains a PIN. */
|
|
12
25
|
export function invalidArgument(message, name) {
|
|
13
26
|
return new TypeError(name === undefined ? message : `Invalid argument (${name}): ${message}`);
|
package/dist/util/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/util/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/util/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,GAAG,aAAa,CAAC;IAErB,OAAO,CAAqB;IAErC,YAAY,OAAe,EAAE,MAAe;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,4EAA4E;IAC5E,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AAED,6FAA6F;AAC7F,MAAM,UAAU,IAAI,CAAC,OAAe,EAAE,MAAe;IACnD,MAAM,IAAI,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACzC,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,IAAa;IAC5D,OAAO,IAAI,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,IAAI,MAAM,OAAO,EAAE,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* A map that cannot be changed, also not at runtime: it has no `set`, `delete` or `clear`, and no other code reaches
|
|
3
|
+
* the map that holds its entries.
|
|
4
|
+
*/
|
|
2
5
|
export declare class ImmutableMap<K, V> implements ReadonlyMap<K, V> {
|
|
3
|
-
private
|
|
6
|
+
#private;
|
|
4
7
|
constructor(entries?: Iterable<readonly [K, V]>);
|
|
5
8
|
get size(): number;
|
|
6
9
|
get(key: K): V | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immutable-map.d.ts","sourceRoot":"","sources":["../../src/util/immutable-map.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"immutable-map.d.ts","sourceRoot":"","sources":["../../src/util/immutable-map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,YAAY,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;;gBAG9C,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAI/C,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAI1B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;IAIpB,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI;IAM3E,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAI9B,IAAI,IAAI,WAAW,CAAC,CAAC,CAAC;IAItB,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC;IAIxB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAIxC,+DAA+D;IAC/D,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;CAG5B"}
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* A map that cannot be changed, also not at runtime: it has no `set`, `delete` or `clear`, and no other code reaches
|
|
3
|
+
* the map that holds its entries.
|
|
4
|
+
*/
|
|
2
5
|
export class ImmutableMap {
|
|
3
|
-
map;
|
|
6
|
+
#map;
|
|
4
7
|
constructor(entries) {
|
|
5
|
-
this
|
|
8
|
+
this.#map = new Map(entries);
|
|
6
9
|
}
|
|
7
10
|
get size() {
|
|
8
|
-
return this
|
|
11
|
+
return this.#map.size;
|
|
9
12
|
}
|
|
10
13
|
get(key) {
|
|
11
|
-
return this
|
|
14
|
+
return this.#map.get(key);
|
|
12
15
|
}
|
|
13
16
|
has(key) {
|
|
14
|
-
return this
|
|
17
|
+
return this.#map.has(key);
|
|
15
18
|
}
|
|
16
19
|
forEach(callback) {
|
|
17
|
-
this
|
|
20
|
+
this.#map.forEach((value, key) => {
|
|
18
21
|
callback(value, key, this);
|
|
19
22
|
});
|
|
20
23
|
}
|
|
21
24
|
entries() {
|
|
22
|
-
return this
|
|
25
|
+
return this.#map.entries();
|
|
23
26
|
}
|
|
24
27
|
keys() {
|
|
25
|
-
return this
|
|
28
|
+
return this.#map.keys();
|
|
26
29
|
}
|
|
27
30
|
values() {
|
|
28
|
-
return this
|
|
31
|
+
return this.#map.values();
|
|
29
32
|
}
|
|
30
33
|
[Symbol.iterator]() {
|
|
31
|
-
return this
|
|
34
|
+
return this.#map.entries();
|
|
32
35
|
}
|
|
33
36
|
/** A plain object of the entries, for JSON and for display. */
|
|
34
37
|
toJSON() {
|
|
35
|
-
return Object.fromEntries([...this
|
|
38
|
+
return Object.fromEntries([...this.#map].map(([key, value]) => [String(key), value]));
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
//# sourceMappingURL=immutable-map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immutable-map.js","sourceRoot":"","sources":["../../src/util/immutable-map.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"immutable-map.js","sourceRoot":"","sources":["../../src/util/immutable-map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,YAAY;IACd,IAAI,CAAY;IAEzB,YAAY,OAAmC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IACxB,CAAC;IAED,GAAG,CAAC,GAAM;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,GAAG,CAAC,GAAM;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,CAAC,QAA4D;QAClE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC/B,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;IAED,CAAC,MAAM,CAAC,QAAQ,CAAC;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,+DAA+D;IAC/D,MAAM;QACJ,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The key of the method by which Node.js's `util.inspect`, and so `console.log`, shows an object, as do Deno and Bun:
|
|
3
|
+
* its registered name, so that no Node.js import is needed.
|
|
4
|
+
*/
|
|
5
|
+
export declare const inspectCustom: unique symbol;
|
|
6
|
+
/**
|
|
7
|
+
* `value` frozen, with `show` as what `util.inspect` shows of it instead of its fields. The method is no enumerable
|
|
8
|
+
* property, so that `JSON.stringify`, `structuredClone` and comparisons in tests see the same plain object as before.
|
|
9
|
+
*/
|
|
10
|
+
export declare function frozenWithInspect<T extends object>(value: T, show: (value: T) => string): Readonly<T>;
|
|
11
|
+
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/util/inspect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,aAAa,eAA2C,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAGrG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The key of the method by which Node.js's `util.inspect`, and so `console.log`, shows an object, as do Deno and Bun:
|
|
3
|
+
* its registered name, so that no Node.js import is needed.
|
|
4
|
+
*/
|
|
5
|
+
export const inspectCustom = Symbol.for('nodejs.util.inspect.custom');
|
|
6
|
+
/**
|
|
7
|
+
* `value` frozen, with `show` as what `util.inspect` shows of it instead of its fields. The method is no enumerable
|
|
8
|
+
* property, so that `JSON.stringify`, `structuredClone` and comparisons in tests see the same plain object as before.
|
|
9
|
+
*/
|
|
10
|
+
export function frozenWithInspect(value, show) {
|
|
11
|
+
Object.defineProperty(value, inspectCustom, { value: () => show(value) });
|
|
12
|
+
return Object.freeze(value);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=inspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../../src/util/inspect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAmB,KAAQ,EAAE,IAA0B;IACtF,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC"}
|
package/dist/util/json.d.ts
CHANGED
|
@@ -5,8 +5,12 @@ export declare function isJsonObject(value: unknown): value is JsonObject;
|
|
|
5
5
|
export declare function readOptionalString(json: JsonObject, key: string): string | undefined;
|
|
6
6
|
/** The optional integer at `key`; throws `FormatError` for a value of another type. */
|
|
7
7
|
export declare function readOptionalInt(json: JsonObject, key: string): number | undefined;
|
|
8
|
+
/** The optional boolean at `key`; throws `FormatError` for a value of another type. */
|
|
9
|
+
export declare function readOptionalBoolean(json: JsonObject, key: string): boolean | undefined;
|
|
8
10
|
/** The object at `key`; throws `FormatError` if it is missing or not an object. */
|
|
9
11
|
export declare function readObject(json: JsonObject, key: string): JsonObject;
|
|
12
|
+
/** The optional object at `key`; throws `FormatError` for a value of another type. */
|
|
13
|
+
export declare function readOptionalObject(json: JsonObject, key: string): JsonObject | undefined;
|
|
10
14
|
/** The optional list at `key`, each element checked by `isElement`; throws `FormatError` for anything else. */
|
|
11
15
|
export declare function readOptionalList<T>(json: JsonObject, key: string, isElement: (value: unknown) => value is T): T[] | undefined;
|
|
12
16
|
export declare function isString(value: unknown): value is string;
|
package/dist/util/json.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/util/json.ts"],"names":[],"mappings":"AAEA,6CAA6C;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKpF;AAED,uFAAuF;AACvF,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA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,EAChC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GACxC,CAAC,EAAE,GAAG,SAAS,CAOjB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD"}
|
package/dist/util/json.js
CHANGED
|
@@ -21,6 +21,15 @@ export function readOptionalInt(json, key) {
|
|
|
21
21
|
}
|
|
22
22
|
return value;
|
|
23
23
|
}
|
|
24
|
+
/** The optional boolean at `key`; throws `FormatError` for a value of another type. */
|
|
25
|
+
export function readOptionalBoolean(json, key) {
|
|
26
|
+
const value = json[key];
|
|
27
|
+
if (value === undefined || value === null)
|
|
28
|
+
return undefined;
|
|
29
|
+
if (typeof value !== 'boolean')
|
|
30
|
+
throw new FormatError(`Saved state: "${key}" is not a boolean`);
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
24
33
|
/** The object at `key`; throws `FormatError` if it is missing or not an object. */
|
|
25
34
|
export function readObject(json, key) {
|
|
26
35
|
const value = json[key];
|
|
@@ -28,6 +37,15 @@ export function readObject(json, key) {
|
|
|
28
37
|
throw new FormatError(`Saved state: "${key}" is not an object`);
|
|
29
38
|
return value;
|
|
30
39
|
}
|
|
40
|
+
/** The optional object at `key`; throws `FormatError` for a value of another type. */
|
|
41
|
+
export function readOptionalObject(json, key) {
|
|
42
|
+
const value = json[key];
|
|
43
|
+
if (value === undefined || value === null)
|
|
44
|
+
return undefined;
|
|
45
|
+
if (!isJsonObject(value))
|
|
46
|
+
throw new FormatError(`Saved state: "${key}" is not an object`);
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
31
49
|
/** The optional list at `key`, each element checked by `isElement`; throws `FormatError` for anything else. */
|
|
32
50
|
export function readOptionalList(json, key, isElement) {
|
|
33
51
|
const value = json[key];
|
package/dist/util/json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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W,CAAC,iBAAiB,GAAG,oBAAoB,CAAC,CAAC;IAC1F,OAAO,KAAK,CAAC;AACf,CAAC;AAED,+GAA+G;AAC/G,MAAM,UAAU,gBAAgB,CAC9B,IAAgB,EAChB,GAAW,EACX,SAAyC;IAEzC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IACxB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,WAAW,CAAC,iBAAiB,GAAG,wCAAwC,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC"}
|
package/dist/util/text.d.ts
CHANGED
|
@@ -1,20 +1,53 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Decodes text from the bank, which may be UTF-8 (with or without BOM) or ISO 8859-1; ASCII reads the same in both.
|
|
3
|
+
*
|
|
4
|
+
* UTF-8 comes first, since some banks send it. ISO 8859-1 text that happens to be valid UTF-8, such as `ß°`, reads as
|
|
5
|
+
* UTF-8 then: a rare misreading of text shown, as values sent back to the bank are read byte for byte
|
|
6
|
+
* (`Segment.verbatim`).
|
|
7
|
+
*/
|
|
2
8
|
export declare function decodeBankText(bytes: Uint8Array): string;
|
|
3
9
|
/** Decodes an XML document, honouring an ISO 8859-1 or Windows-1252 encoding declaration. */
|
|
4
10
|
export declare function decodeXmlText(bytes: Uint8Array): string;
|
|
5
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Decodes Windows-1252, which matches ISO 8859-1 except for `€`, typographic quotes and a few letters.
|
|
13
|
+
*
|
|
14
|
+
* @internal Exported for the tests.
|
|
15
|
+
*/
|
|
6
16
|
export declare function decodeWindows1252(bytes: Uint8Array): string;
|
|
7
17
|
/**
|
|
8
18
|
* The last four characters of `id`, such as an IBAN or a card number, after an ellipsis: enough to tell two apart, too
|
|
9
19
|
* little to identify one in a log.
|
|
10
20
|
*/
|
|
11
21
|
export declare function maskedId(id: string): string;
|
|
22
|
+
/** `count` and `noun`, in the plural unless `count` is 1, such as `3 transactions`. */
|
|
23
|
+
export declare function counted(count: number, noun: string): string;
|
|
24
|
+
/** Whether `value` fits into ISO 8859-1, the FinTS 3.0 character set. */
|
|
25
|
+
export declare function isLatin1(value: string): boolean;
|
|
26
|
+
/** `text` without blanks (`isBlank`) at its `start` and its `end`. */
|
|
27
|
+
export declare function trimBlanks(text: string, { start, end }?: {
|
|
28
|
+
start?: boolean | undefined;
|
|
29
|
+
end?: boolean | undefined;
|
|
30
|
+
}): string;
|
|
31
|
+
/** `text` without blanks around it (`trimBlanks`); `undefined` if that leaves nothing. */
|
|
32
|
+
export declare function nonBlank(text: string | undefined): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The character the numeric character reference `name` names, such as `#x41` or `#65`; `undefined` for any other name,
|
|
35
|
+
* and for a number that is no character as XML defines them: `NUL`, half a surrogate pair, or beyond Unicode.
|
|
36
|
+
*/
|
|
37
|
+
export declare function characterReference(name: string): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* `text` with its full-width characters, which East Asian input methods type, as their ASCII counterparts: U+FF01 to
|
|
40
|
+
* U+FF5E as U+0021 to U+007E, and the ideographic space U+3000 as a blank.
|
|
41
|
+
*/
|
|
42
|
+
export declare function withAsciiForms(text: string): string;
|
|
12
43
|
/** `text` without spaces and line breaks. */
|
|
13
44
|
export declare function withoutWhitespace(text: string): string;
|
|
14
45
|
/** Decodes base64 that may be broken into lines; throws `FormatError` if it is invalid. */
|
|
15
46
|
export declare function decodeBase64Lines(text: string): Uint8Array;
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
47
|
+
/**
|
|
48
|
+
* The integer `text` states, decimal digits with an optional sign and blanks around, `-0` as 0; `undefined` for
|
|
49
|
+
* anything else, such as hex, and for a value beyond `Number.MAX_SAFE_INTEGER`, which a number holds only
|
|
50
|
+
* approximately.
|
|
51
|
+
*/
|
|
19
52
|
export declare function tryParseInt(text: string | undefined): number | undefined;
|
|
20
53
|
//# sourceMappingURL=text.d.ts.map
|
package/dist/util/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/util/text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/util/text.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CASxD;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAcvD;AAYD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAO3D;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAG/C;AAYD,sEAAsE;AACtE,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAY,EAAE,GAAU,EAAE;;;CAAK,GAAG,MAAM,CAMlF;AAED,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGrE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKnE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,6CAA6C;AAC7C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE1D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAOxE"}
|
package/dist/util/text.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { base64Decode, latin1Decode, utf8Decode } from './bytes.js';
|
|
1
|
+
import { base64Decode, fromCharCodes, latin1Decode, utf8Decode } from './bytes.js';
|
|
2
2
|
import { FormatError } from './errors.js';
|
|
3
3
|
const xmlEncodingDeclaration = /encoding\s*=\s*["']([A-Za-z0-9._-]+)["']/;
|
|
4
4
|
const whitespace = /\s/g;
|
|
5
|
-
|
|
5
|
+
const whiteSpaceCharacter = /\s/;
|
|
6
|
+
/**
|
|
7
|
+
* Decodes text from the bank, which may be UTF-8 (with or without BOM) or ISO 8859-1; ASCII reads the same in both.
|
|
8
|
+
*
|
|
9
|
+
* UTF-8 comes first, since some banks send it. ISO 8859-1 text that happens to be valid UTF-8, such as `ß°`, reads as
|
|
10
|
+
* UTF-8 then: a rare misreading of text shown, as values sent back to the bank are read byte for byte
|
|
11
|
+
* (`Segment.verbatim`).
|
|
12
|
+
*/
|
|
6
13
|
export function decodeBankText(bytes) {
|
|
7
14
|
const hasBom = bytes.length >= 3 && bytes[0] === 0xef && bytes[1] === 0xbb && bytes[2] === 0xbf;
|
|
8
15
|
const content = hasBom ? bytes.subarray(3) : bytes;
|
|
9
|
-
if (content.every((b) => b < 0x80))
|
|
10
|
-
return latin1Decode(content);
|
|
11
16
|
try {
|
|
12
17
|
return utf8Decode(content);
|
|
13
18
|
}
|
|
@@ -42,12 +47,18 @@ const windows1252High = [
|
|
|
42
47
|
0x017d, 0x008f, 0x0090, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x02dc, 0x2122, 0x0161, 0x203a,
|
|
43
48
|
0x0153, 0x009d, 0x017e, 0x0178,
|
|
44
49
|
];
|
|
45
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Decodes Windows-1252, which matches ISO 8859-1 except for `€`, typographic quotes and a few letters.
|
|
52
|
+
*
|
|
53
|
+
* @internal Exported for the tests.
|
|
54
|
+
*/
|
|
46
55
|
export function decodeWindows1252(bytes) {
|
|
47
|
-
|
|
48
|
-
for (
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
const codes = new Uint16Array(bytes.length);
|
|
57
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
58
|
+
const b = bytes[i];
|
|
59
|
+
codes[i] = b >= 0x80 && b < 0xa0 ? windows1252High[b - 0x80] : b;
|
|
60
|
+
}
|
|
61
|
+
return fromCharCodes(codes);
|
|
51
62
|
}
|
|
52
63
|
/**
|
|
53
64
|
* The last four characters of `id`, such as an IBAN or a card number, after an ellipsis: enough to tell two apart, too
|
|
@@ -56,6 +67,64 @@ export function decodeWindows1252(bytes) {
|
|
|
56
67
|
export function maskedId(id) {
|
|
57
68
|
return id.length <= 4 ? '…' : `…${id.substring(id.length - 4)}`;
|
|
58
69
|
}
|
|
70
|
+
/** `count` and `noun`, in the plural unless `count` is 1, such as `3 transactions`. */
|
|
71
|
+
export function counted(count, noun) {
|
|
72
|
+
return `${count} ${noun}${count === 1 ? '' : 's'}`;
|
|
73
|
+
}
|
|
74
|
+
/** Whether `value` fits into ISO 8859-1, the FinTS 3.0 character set. */
|
|
75
|
+
export function isLatin1(value) {
|
|
76
|
+
for (let i = 0; i < value.length; i++)
|
|
77
|
+
if (value.charCodeAt(i) > 0xff)
|
|
78
|
+
return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Whether the UTF-16 code unit `code` is a blank: white space to `String.prototype.trim`, or U+0085 (NEL), which it
|
|
83
|
+
* keeps although Unicode counts it as white space. ISO 8859-1 bank data hold it as the byte 0x85.
|
|
84
|
+
*/
|
|
85
|
+
function isBlank(code) {
|
|
86
|
+
// Below U+1680, the first white space beyond these, without a regular expression, which takes many times as long.
|
|
87
|
+
if (code < 0x1680)
|
|
88
|
+
return code === 0x20 || (code >= 0x09 && code <= 0x0d) || code === 0x85 || code === 0xa0;
|
|
89
|
+
return whiteSpaceCharacter.test(String.fromCharCode(code));
|
|
90
|
+
}
|
|
91
|
+
/** `text` without blanks (`isBlank`) at its `start` and its `end`. */
|
|
92
|
+
export function trimBlanks(text, { start = true, end = true } = {}) {
|
|
93
|
+
let first = 0;
|
|
94
|
+
let last = text.length;
|
|
95
|
+
if (start)
|
|
96
|
+
while (first < last && isBlank(text.charCodeAt(first)))
|
|
97
|
+
first++;
|
|
98
|
+
if (end)
|
|
99
|
+
while (last > first && isBlank(text.charCodeAt(last - 1)))
|
|
100
|
+
last--;
|
|
101
|
+
return text.substring(first, last);
|
|
102
|
+
}
|
|
103
|
+
/** `text` without blanks around it (`trimBlanks`); `undefined` if that leaves nothing. */
|
|
104
|
+
export function nonBlank(text) {
|
|
105
|
+
const trimmed = text === undefined ? undefined : trimBlanks(text);
|
|
106
|
+
return trimmed === '' ? undefined : trimmed;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The character the numeric character reference `name` names, such as `#x41` or `#65`; `undefined` for any other name,
|
|
110
|
+
* and for a number that is no character as XML defines them: `NUL`, half a surrogate pair, or beyond Unicode.
|
|
111
|
+
*/
|
|
112
|
+
export function characterReference(name) {
|
|
113
|
+
const m = /^#(?:x([0-9a-fA-F]+)|([0-9]+))$/.exec(name);
|
|
114
|
+
if (!m)
|
|
115
|
+
return undefined;
|
|
116
|
+
const code = m[1] === undefined ? parseInt(m[2], 10) : parseInt(m[1], 16);
|
|
117
|
+
return code > 0 && (code < 0xd800 || code > 0xdfff) && code <= 0x10ffff ? String.fromCodePoint(code) : undefined;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* `text` with its full-width characters, which East Asian input methods type, as their ASCII counterparts: U+FF01 to
|
|
121
|
+
* U+FF5E as U+0021 to U+007E, and the ideographic space U+3000 as a blank.
|
|
122
|
+
*/
|
|
123
|
+
export function withAsciiForms(text) {
|
|
124
|
+
return text
|
|
125
|
+
.replace(/[\uff01-\uff5e]/g, (c) => String.fromCharCode(c.charCodeAt(0) - 0xfee0))
|
|
126
|
+
.replaceAll('\u3000', ' ');
|
|
127
|
+
}
|
|
59
128
|
/** `text` without spaces and line breaks. */
|
|
60
129
|
export function withoutWhitespace(text) {
|
|
61
130
|
return text.replace(whitespace, '');
|
|
@@ -64,15 +133,20 @@ export function withoutWhitespace(text) {
|
|
|
64
133
|
export function decodeBase64Lines(text) {
|
|
65
134
|
return base64Decode(withoutWhitespace(text));
|
|
66
135
|
}
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
136
|
+
/**
|
|
137
|
+
* The integer `text` states, decimal digits with an optional sign and blanks around, `-0` as 0; `undefined` for
|
|
138
|
+
* anything else, such as hex, and for a value beyond `Number.MAX_SAFE_INTEGER`, which a number holds only
|
|
139
|
+
* approximately.
|
|
140
|
+
*/
|
|
72
141
|
export function tryParseInt(text) {
|
|
73
142
|
if (text === undefined)
|
|
74
143
|
return undefined;
|
|
75
|
-
const
|
|
76
|
-
|
|
144
|
+
const integer = trimBlanks(text);
|
|
145
|
+
if (!/^[+-]?\d+$/.test(integer))
|
|
146
|
+
return undefined;
|
|
147
|
+
const value = Number(integer);
|
|
148
|
+
if (!Number.isSafeInteger(value))
|
|
149
|
+
return undefined;
|
|
150
|
+
return value === 0 ? 0 : value;
|
|
77
151
|
}
|
|
78
152
|
//# sourceMappingURL=text.js.map
|
package/dist/util/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/util/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/util/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,sBAAsB,GAAG,0CAA0C,CAAC;AAC1E,MAAM,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,KAAiB;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChG,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACnD,IAAI,CAAC;QACH,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,KAAK,YAAY,WAAW,CAAC;YAAE,MAAM,KAAK,CAAC;QACjD,OAAO,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;AACH,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,aAAa,CAAC,KAAiB;IAC7C,MAAM,I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AACjC,CAAC"}
|
package/dist/util/xml.d.ts
CHANGED
|
@@ -5,29 +5,32 @@
|
|
|
5
5
|
export declare class XmlElement {
|
|
6
6
|
/** The name without namespace prefix. */
|
|
7
7
|
readonly localName: string;
|
|
8
|
-
/** The attributes by name
|
|
8
|
+
/** The attributes by name, namespace prefix and all. */
|
|
9
9
|
readonly attributes: ReadonlyMap<string, string>;
|
|
10
10
|
readonly children: (XmlElement | string)[];
|
|
11
11
|
constructor(
|
|
12
12
|
/** The name without namespace prefix. */
|
|
13
13
|
localName: string,
|
|
14
|
-
/** The attributes by name
|
|
14
|
+
/** The attributes by name, namespace prefix and all. */
|
|
15
15
|
attributes: ReadonlyMap<string, string>);
|
|
16
16
|
get childElements(): XmlElement[];
|
|
17
17
|
/** The text of this element and all below it. */
|
|
18
18
|
get innerText(): string;
|
|
19
|
-
|
|
19
|
+
/** The attribute called `name`: an unprefixed name finds no prefixed attribute, which is of another namespace. */
|
|
20
|
+
getAttribute(name: string): string | undefined;
|
|
20
21
|
/** The first child element called `localName`. */
|
|
21
22
|
child(localName: string): XmlElement | undefined;
|
|
22
23
|
/** The element reached by following child names along `path`; this element for an empty path. */
|
|
23
24
|
at(path: readonly string[]): XmlElement | undefined;
|
|
24
25
|
/** The trimmed text of the element at `path`, or `undefined` if it is missing or empty. */
|
|
25
26
|
textAt(path: readonly string[]): string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
|
|
27
|
+
/** The child elements called `localName`, in document order. */
|
|
28
|
+
childrenNamed(localName: string): XmlElement[];
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
|
-
* Parses an XML document and returns its root element; throws `FormatError` if it is not well-formed
|
|
31
|
+
* Parses an XML document and returns its root element; throws `FormatError` if it is not well-formed, nests elements
|
|
32
|
+
* deeper than 100 levels, or holds more than 500,000 nodes besides text (elements, attributes, comments, processing
|
|
33
|
+
* instructions, the XML declaration and CDATA sections) or one per 16 characters, whichever is more.
|
|
31
34
|
*
|
|
32
35
|
* A document type declaration is refused: bank data have none, and its entities could expand without limit.
|
|
33
36
|
*/
|
package/dist/util/xml.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/util/xml.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/util/xml.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,qBAAa,UAAU;IAInB,yCAAyC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;IANlD,QAAQ,CAAC,QAAQ,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,CAAM;;IAG9C,yCAAyC;IAChC,SAAS,EAAE,MAAM;IAC1B,wDAAwD;IAC/C,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;IAGlD,IAAI,aAAa,IAAI,UAAU,EAAE,CAEhC;IAED,iDAAiD;IACjD,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,kHAAkH;IAClH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI9C,kDAAkD;IAClD,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIhD,iGAAiG;IACjG,EAAE,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,GAAG,SAAS;IAInD,2FAA2F;IAC3F,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IAInD,gEAAgE;IAChE,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,EAAE;CAG/C;AAuFD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAyGhD"}
|