@getpeppr/sdk 1.1.3 → 1.2.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/dist/core/peppol-identifier-rules.d.ts +45 -0
- package/dist/core/peppol-identifier-rules.d.ts.map +1 -0
- package/dist/core/peppol-identifier-rules.js +144 -0
- package/dist/core/peppol-identifier-rules.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Peppol Identifier validation rules.
|
|
3
|
+
*
|
|
4
|
+
* Peppol identifiers address businesses on the Peppol network.
|
|
5
|
+
* Each identifier is a (scheme, identifier) tuple where the scheme
|
|
6
|
+
* determines the identifier's format (e.g. "GB:CRN" for UK Companies
|
|
7
|
+
* House, "0225" for French SIREN).
|
|
8
|
+
*
|
|
9
|
+
* This module provides:
|
|
10
|
+
* - SCHEMES_BY_COUNTRY: guided options for the 5 main markets (UK/FR/DE/BE/NL)
|
|
11
|
+
* - validatePeppolIdentifier: format check with fallback support for any scheme
|
|
12
|
+
*/
|
|
13
|
+
export interface SchemeOption {
|
|
14
|
+
/** Peppol scheme code (e.g. "GB:CRN", "0225"). */
|
|
15
|
+
code: string;
|
|
16
|
+
/** Human-readable label shown in the UI. */
|
|
17
|
+
label: string;
|
|
18
|
+
/** One-line description (what the identifier represents). */
|
|
19
|
+
description: string;
|
|
20
|
+
/** Example value to show in placeholder / hint. */
|
|
21
|
+
example: string;
|
|
22
|
+
/** Whether this scheme is the recommended default for the country. */
|
|
23
|
+
recommended?: boolean;
|
|
24
|
+
/** Optional regex to validate the identifier format. */
|
|
25
|
+
pattern?: RegExp;
|
|
26
|
+
/** Short text describing the expected format. */
|
|
27
|
+
formatHint: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const SCHEMES_BY_COUNTRY: Record<string, SchemeOption[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Validate a (scheme, identifier) tuple before submission.
|
|
32
|
+
*
|
|
33
|
+
* - Scheme must match Peppol conventions: 4 digits OR country prefix "XX:YYY".
|
|
34
|
+
* - Identifier must be non-empty and <= 64 characters.
|
|
35
|
+
* - Identifier must not have leading or trailing whitespace.
|
|
36
|
+
* - If the scheme is listed in SCHEMES_BY_COUNTRY with a pattern, the
|
|
37
|
+
* identifier must match that pattern.
|
|
38
|
+
* - Otherwise (fallback for unknown/custom schemes), only the generic
|
|
39
|
+
* constraints apply.
|
|
40
|
+
*/
|
|
41
|
+
export declare function validatePeppolIdentifier(scheme: string, identifier: string): {
|
|
42
|
+
valid: boolean;
|
|
43
|
+
error?: string;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=peppol-identifier-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peppol-identifier-rules.d.ts","sourceRoot":"","sources":["../../src/core/peppol-identifier-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAgF7D,CAAC;AASF;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAkCpC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Peppol Identifier validation rules.
|
|
3
|
+
*
|
|
4
|
+
* Peppol identifiers address businesses on the Peppol network.
|
|
5
|
+
* Each identifier is a (scheme, identifier) tuple where the scheme
|
|
6
|
+
* determines the identifier's format (e.g. "GB:CRN" for UK Companies
|
|
7
|
+
* House, "0225" for French SIREN).
|
|
8
|
+
*
|
|
9
|
+
* This module provides:
|
|
10
|
+
* - SCHEMES_BY_COUNTRY: guided options for the 5 main markets (UK/FR/DE/BE/NL)
|
|
11
|
+
* - validatePeppolIdentifier: format check with fallback support for any scheme
|
|
12
|
+
*/
|
|
13
|
+
export const SCHEMES_BY_COUNTRY = {
|
|
14
|
+
GB: [
|
|
15
|
+
{
|
|
16
|
+
code: "GB:CRN",
|
|
17
|
+
label: "Companies House Registration Number",
|
|
18
|
+
description: "UK company registration number issued by Companies House.",
|
|
19
|
+
example: "17035492",
|
|
20
|
+
recommended: true,
|
|
21
|
+
pattern: /^\d{8}$/,
|
|
22
|
+
formatHint: "8 digits",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
code: "GB:VAT",
|
|
26
|
+
label: "VAT Registration Number",
|
|
27
|
+
description: "UK VAT registration number (GB prefix + 9 digits).",
|
|
28
|
+
example: "GB123456789",
|
|
29
|
+
pattern: /^GB\d{9}$/,
|
|
30
|
+
formatHint: "GB followed by 9 digits",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
FR: [
|
|
34
|
+
{
|
|
35
|
+
code: "0225",
|
|
36
|
+
label: "SIREN",
|
|
37
|
+
description: "Système d'identification du répertoire des entreprises (post-2026 official).",
|
|
38
|
+
example: "732829320",
|
|
39
|
+
recommended: true,
|
|
40
|
+
pattern: /^\d{9}$/,
|
|
41
|
+
formatHint: "9 digits",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
code: "0009",
|
|
45
|
+
label: "SIRET (legacy)",
|
|
46
|
+
description: "14-digit SIRET — being replaced by SIREN in Peppol.",
|
|
47
|
+
example: "73282932000074",
|
|
48
|
+
pattern: /^\d{14}$/,
|
|
49
|
+
formatHint: "14 digits",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
DE: [
|
|
53
|
+
{
|
|
54
|
+
code: "9930",
|
|
55
|
+
label: "USt-IdNr",
|
|
56
|
+
description: "German VAT identification number (B2B).",
|
|
57
|
+
example: "DE123456789",
|
|
58
|
+
recommended: true,
|
|
59
|
+
pattern: /^DE\d{9}$/,
|
|
60
|
+
formatHint: "DE followed by 9 digits",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: "0204",
|
|
64
|
+
label: "Leitweg-ID",
|
|
65
|
+
description: "German public-sector routing ID (B2G).",
|
|
66
|
+
example: "04011000-12345-67",
|
|
67
|
+
pattern: /^\d{2,12}-\d{4,5}-\d{2}$/,
|
|
68
|
+
formatHint: "XX-YYYYY-ZZ",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
BE: [
|
|
72
|
+
{
|
|
73
|
+
code: "0208",
|
|
74
|
+
label: "Enterprise number",
|
|
75
|
+
description: "Belgian Crossroads Bank for Enterprises (BCE/KBO) number.",
|
|
76
|
+
example: "0123456789",
|
|
77
|
+
recommended: true,
|
|
78
|
+
pattern: /^\d{10}$/,
|
|
79
|
+
formatHint: "10 digits",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
NL: [
|
|
83
|
+
{
|
|
84
|
+
code: "0106",
|
|
85
|
+
label: "KvK number",
|
|
86
|
+
description: "Dutch Chamber of Commerce (Kamer van Koophandel) number.",
|
|
87
|
+
example: "12345678",
|
|
88
|
+
recommended: true,
|
|
89
|
+
pattern: /^\d{8}$/,
|
|
90
|
+
formatHint: "8 digits",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
// Accept both uppercase (canonical Peppol, e.g. `GB:CRN`) and lowercase
|
|
95
|
+
// country-prefix schemes (e.g. the sandbox-only `de:lwid`). Storecove accepts
|
|
96
|
+
// both forms; normalising here would hide the caller's original casing from
|
|
97
|
+
// downstream systems.
|
|
98
|
+
const SCHEME_FORMAT_RE = /^(\d{4}|[A-Za-z]{2}:[A-Za-z]{3,4})$/;
|
|
99
|
+
const PEPPOL_IDENTIFIER_MAX_LENGTH = 64;
|
|
100
|
+
/**
|
|
101
|
+
* Validate a (scheme, identifier) tuple before submission.
|
|
102
|
+
*
|
|
103
|
+
* - Scheme must match Peppol conventions: 4 digits OR country prefix "XX:YYY".
|
|
104
|
+
* - Identifier must be non-empty and <= 64 characters.
|
|
105
|
+
* - Identifier must not have leading or trailing whitespace.
|
|
106
|
+
* - If the scheme is listed in SCHEMES_BY_COUNTRY with a pattern, the
|
|
107
|
+
* identifier must match that pattern.
|
|
108
|
+
* - Otherwise (fallback for unknown/custom schemes), only the generic
|
|
109
|
+
* constraints apply.
|
|
110
|
+
*/
|
|
111
|
+
export function validatePeppolIdentifier(scheme, identifier) {
|
|
112
|
+
if (!SCHEME_FORMAT_RE.test(scheme)) {
|
|
113
|
+
return {
|
|
114
|
+
valid: false,
|
|
115
|
+
error: "Scheme must be 4 digits (e.g. 0208) or country prefix (e.g. GB:CRN).",
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
if (!identifier.trim()) {
|
|
119
|
+
return { valid: false, error: "Identifier cannot be empty." };
|
|
120
|
+
}
|
|
121
|
+
if (identifier !== identifier.trim()) {
|
|
122
|
+
return {
|
|
123
|
+
valid: false,
|
|
124
|
+
error: "Identifier must not have leading or trailing whitespace.",
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
if (identifier.length > PEPPOL_IDENTIFIER_MAX_LENGTH) {
|
|
128
|
+
return {
|
|
129
|
+
valid: false,
|
|
130
|
+
error: `Identifier is too long (max ${PEPPOL_IDENTIFIER_MAX_LENGTH} characters).`,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
const known = Object.values(SCHEMES_BY_COUNTRY)
|
|
134
|
+
.flat()
|
|
135
|
+
.find((s) => s.code === scheme);
|
|
136
|
+
if (known?.pattern && !known.pattern.test(identifier)) {
|
|
137
|
+
return {
|
|
138
|
+
valid: false,
|
|
139
|
+
error: `Format mismatch: expected ${known.formatHint}.`,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return { valid: true };
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=peppol-identifier-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peppol-identifier-rules.js","sourceRoot":"","sources":["../../src/core/peppol-identifier-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAmBH,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,EAAE,EAAE;QACF;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,qCAAqC;YAC5C,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,UAAU;SACvB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,yBAAyB;YAChC,WAAW,EAAE,oDAAoD;YACjE,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,WAAW;YACpB,UAAU,EAAE,yBAAyB;SACtC;KACF;IACD,EAAE,EAAE;QACF;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,8EAA8E;YAC3F,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,UAAU;SACvB;QACD;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,gBAAgB;YACzB,OAAO,E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AI,EAAE,EAAE,CAAC;QACvB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,6BAA6B,EAAE,CAAC;IAChE,CAAC;IACD,IAAI,UAAU,KAAK,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QACrC,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,0DAA0D;SAClE,CAAC;IACJ,CAAC;IACD,IAAI,UAAU,CAAC,MAAM,GAAG,4BAA4B,EAAE,CAAC;QACrD,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,+BAA+B,4BAA4B,eAAe;SAClF,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;SAC5C,IAAI,EAAE;SACN,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;IAClC,IAAI,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QACtD,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,6BAA6B,KAAK,CAAC,UAAU,GAAG;SACxD,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -35,5 +35,7 @@ export { validateCountryRules } from "./core/country-rules.js";
|
|
|
35
35
|
export type { CountryValidationResult } from "./core/country-rules.js";
|
|
36
36
|
export { getCountryName, getAllCountries, getEasScheme, getAllEasSchemes, resolveUnit, getAllUnits, getVatCategories, getPaymentMeansCodes, } from "./core/code-lists.js";
|
|
37
37
|
export type { EasScheme, VatCategory, PaymentMeansCode } from "./core/code-lists.js";
|
|
38
|
+
export { SCHEMES_BY_COUNTRY, validatePeppolIdentifier, } from "./core/peppol-identifier-rules.js";
|
|
39
|
+
export type { SchemeOption } from "./core/peppol-identifier-rules.js";
|
|
38
40
|
export type { PeppolConfig, PeppolId, CurrencyCode, CountryCode, Party, BuyerParty, InvoiceLine, InvoiceInput, InvoiceTypeCode, CreditNoteInput, Attachment, AllowanceCharge, LineAllowanceCharge, ItemProperty, InvoicePeriod, Delivery, DeliveryAddress, SendResult, ReceivedInvoice, DocumentStatus, ValidationResult, ValidationError, ValidationWarning, WebhookEvent, WebhookEventType, RetryConfig, WaitForOptions, PaginatedResult, PaginationMeta, ListInvoicesOptions, InvoiceSummary, DirectoryEntry, DirectorySearchOptions, DirectorySearchResult, DocumentFormat, ServerValidationResult, ServerValidationMessage, EventEntry, ListEventsOptions, BatchSendOptions, BatchSendResult, InvoiceOperationOptions, RequestLogEntry, ResponseLogEntry, Contact, ContactInput, ListContactsOptions, BankAccount, BankAccountInput, ListBankAccountsOptions, ImportInvoiceOptions, TransportType, Transport, TransportInput, TransportUpdateInput, MarkAsState, MarkAsOptions, InvoiceUpdateInput, InvoiceUpdateLine, } from "./types/invoice.js";
|
|
39
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxG,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO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AAE,MAAM,mCAAmC,CAAC;AAEtE,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,eAAe,EACf,UAAU,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -31,4 +31,5 @@ export { validateInvoice } from "./core/validator.js";
|
|
|
31
31
|
export { validateSchematron } from "./core/schematron.js";
|
|
32
32
|
export { validateCountryRules } from "./core/country-rules.js";
|
|
33
33
|
export { getCountryName, getAllCountries, getEasScheme, getAllEasSchemes, resolveUnit, getAllUnits, getVatCategories, getPaymentMeansCodes, } from "./core/code-lists.js";
|
|
34
|
+
export { SCHEMES_BY_COUNTRY, validatePeppolIdentifier, } from "./core/peppol-identifier-rules.js";
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,mCAAmC,CAAC"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED