@takeal/cusfront-sdk 0.6.8 → 0.6.11

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 CHANGED
@@ -4,6 +4,43 @@ All notable changes to `@takeal/cusfront-sdk` are documented here. The format
4
4
  follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project
5
5
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.6.11] — 2026-11-13
8
+
9
+ ### Added
10
+
11
+ - A card's details can be "being prepared" right after issuance, for issuers
12
+ that show them only on their own page. `cards.reveal()` answers with
13
+ `state`: `numbers`, `page` (`reveal_url`) or `pending`, and `Card.details_pending`
14
+ says it on the card itself, so a client can show "Details are being
15
+ prepared" without calling reveal. A pending reveal doesn't count against the
16
+ reveal limit. Once the details are ready, reveals give the numbers as text
17
+ again. `revealState()` tells the three answers apart for a raw response.
18
+
19
+ ### Changed
20
+
21
+ - `SUPPORTED_MEISTER` is `>=0.7.6, <1.0.0`: platform 0.7.6 is where details can
22
+ be "being prepared".
23
+
24
+ ## [0.6.10] — 2026-11-13
25
+
26
+ ### Added
27
+
28
+ - `cards.balance()` answers `pending` as well: top-ups the issuer has
29
+ accepted and not confirmed yet. That money is never in `amount`, even
30
+ when the issuer already shows it in its own balance, so show it next to
31
+ the balance as on its way. Needs platform 0.7.5; an older
32
+ platform leaves it out.
33
+
34
+ ### Changed
35
+
36
+ - `Card.topups_pending` and `Card.topups_held` count top-ups paid straight to
37
+ the card as well as top-ups from the wallet (platform 0.7.5).
38
+
39
+ ## [0.6.9] — 2026-11-10
40
+
41
+ The package's links (repository, issues, changelog) point at the public mirror on GitHub,
42
+ https://github.com/TakealGroup/cusfront-sdk. No code changes.
43
+
7
44
  ## [0.6.8] — 2026-10-27
8
45
 
9
46
  Works with platform (TKL) 0.6.13 up to, not including, 1.0.0: `SUPPORTED_MEISTER` is
@@ -546,5 +583,5 @@ Initial release of the typed client for the Takeal end-user API.
546
583
  - Dual ESM + CJS builds with `.d.ts` types; per-resource sub-entrypoints for
547
584
  tree-shaking.
548
585
 
549
- [Unreleased]: https://git.wiseless.net/takeal/cusfront-sdk/compare/v0.1.0...HEAD
550
- [0.1.0]: https://git.wiseless.net/takeal/cusfront-sdk/releases/tag/v0.1.0
586
+ [Unreleased]: https://github.com/TakealGroup/cusfront-sdk/compare/v0.1.0...HEAD
587
+ [0.1.0]: https://github.com/TakealGroup/cusfront-sdk/releases/tag/v0.1.0
package/README.md CHANGED
@@ -411,19 +411,35 @@ keeps one, the `cardholder` (name, phone, address) a checkout asks for. No
411
411
  password or code is asked again; the API rate-limits and logs every call.
412
412
  Keep the result in memory only and clear it after `expires_in_seconds`.
413
413
 
414
- Some issuers do not hand out the numbers and show them on a page of their
415
- own instead. Then `reveal_url` is set and `pan` and `cvv` are empty:
414
+ A reveal gives one of three answers, and `r.state` says which:
415
+
416
+ - `numbers`: `pan`, `cvv` and the expiry are filled in.
417
+ - `page`: the issuer shows the numbers on a page of its own. `reveal_url` is
418
+ set and `pan` and `cvv` are empty.
419
+ - `pending`: the card's details are still being prepared. Some issuers show
420
+ the details only on their own page, and the platform reads them from there
421
+ shortly after the card is issued. Nothing else is filled in, and the
422
+ attempt doesn't count against the reveal limit.
416
423
 
417
424
  ```tsx
418
425
  const r = await client.cards.reveal(card.id);
419
- if (r.reveal_url) {
420
- // The issuer's page. Open it at once: the address is short-lived and
421
- // often good for one opening. Never store or log it.
422
- return <iframe src={r.reveal_url} sandbox="allow-scripts allow-same-origin" title="Card details" />;
426
+ switch (r.state) {
427
+ case "pending":
428
+ return <p>Details are being prepared. Check back in a minute.</p>;
429
+ case "page":
430
+ // The issuer's page. Open it at once: the address is short-lived and
431
+ // often good for one opening. Never store or log it.
432
+ return <iframe src={r.reveal_url} sandbox="allow-scripts allow-same-origin" title="Card details" />;
433
+ case "numbers":
434
+ return showNumbers(r.pan, r.cvv, r.expiry_month, r.expiry_year);
423
435
  }
424
- showNumbers(r.pan, r.cvv, r.expiry_month, r.expiry_year);
425
436
  ```
426
437
 
438
+ The card says it before you ask: `card.details_pending` is `true` while its
439
+ details are being prepared. Show "Details are being prepared" instead of the
440
+ reveal button, and refresh the card later; no reveal call is needed for that.
441
+ Once the details are ready, reveals return the numbers again, as text.
442
+
427
443
  A physical card takes a PIN from the user. Send it once; neither the SDK nor
428
444
  the API keeps it, and the user gets a notification that it was set:
429
445
 
@@ -638,10 +638,19 @@ interface Card {
638
638
  close_blocked: CloseBlockedReason | null;
639
639
  /**
640
640
  * Top-ups the issuer has accepted and not loaded yet, summed, decimal
641
- * string in `currency`; `null` when there are none. Show it next to the
641
+ * string in `currency`; `null` when there are none. It counts top-ups from
642
+ * the wallet and top-ups paid straight to the card. Show it next to the
642
643
  * balance as money on its way to the card.
643
644
  */
644
645
  topups_pending: string | null;
646
+ /**
647
+ * `true` while the card's details are being prepared: the card can be
648
+ * used and topped up, but its number can't be shown yet. Show "Details
649
+ * are being prepared" instead of the reveal button and refresh the card
650
+ * later; it turns `false` on its own, usually within minutes. Absent
651
+ * from platforms before 0.7.6.
652
+ */
653
+ details_pending?: boolean;
645
654
  /**
646
655
  * Top-ups the issuer has held for too long, summed, decimal string in
647
656
  * `currency`; `null` when there are none. The money is safe and waits for
@@ -844,6 +853,13 @@ declare function cardOrderBody(input: CardOrderInput): Record<string, unknown>;
844
853
  interface CardBalance {
845
854
  amount: string;
846
855
  currency: string;
856
+ /**
857
+ * From `cards.balance()` only: top-ups the issuer has accepted and not
858
+ * confirmed yet, summed, decimal string in `currency`; `null` when there
859
+ * are none. Not part of `amount`, even when the issuer already shows the
860
+ * money: show it next to the balance as on its way.
861
+ */
862
+ pending?: string | null;
847
863
  }
848
864
  /** What a top-up of a card can be right now, from `GET /me/cards/{id}/topup`. */
849
865
  interface TopUpTerms {
@@ -940,16 +956,30 @@ interface RevealCardInput {
940
956
  password?: string;
941
957
  totpCode?: string;
942
958
  }
959
+ /**
960
+ * What a reveal gave, so a client can switch on one field:
961
+ *
962
+ * - `numbers`: `pan`, `cvv` and the expiry are filled in;
963
+ * - `page`: the issuer shows the numbers on a page of its own, `reveal_url`
964
+ * is set and `pan` and `cvv` are empty;
965
+ * - `pending`: the card's details are still being prepared, nothing else
966
+ * is filled in. Show "Details are being prepared" and try again in a
967
+ * minute or two; the attempt didn't count against the reveal limit.
968
+ */
969
+ type RevealState = "numbers" | "page" | "pending";
943
970
  /**
944
971
  * Full card data from a successful reveal. **Security**: never persist this,
945
972
  * keep it in volatile memory only, clear it within `expires_in_seconds`, and
946
973
  * never write it to localStorage / logs (the API marks the response no-store).
947
974
  *
975
+ * `state` says which of three answers this is (see {@link RevealState}).
948
976
  * Some issuers hand out a page that shows the numbers instead of the
949
- * numbers themselves. Then `reveal_url` is set, `pan` and `cvv` are empty,
950
- * and the client opens the page in a frame; see the README for the frame.
977
+ * numbers themselves; for some cards the details are still being prepared
978
+ * right after issuance.
951
979
  */
952
980
  interface RevealedCard {
981
+ /** Which answer this is; set by the SDK from the fields below. */
982
+ state: RevealState;
953
983
  /** The card number; empty when `reveal_url` is set. */
954
984
  pan: string;
955
985
  /** The security code; empty when `reveal_url` is set. */
@@ -976,7 +1006,14 @@ interface RevealedCard {
976
1006
  billing_address?: BillingAddress;
977
1007
  /** Display window before the client should auto-clear the data. */
978
1008
  expires_in_seconds: number;
1009
+ /**
1010
+ * `true` when the details are still being prepared (`state: "pending"`).
1011
+ * Absent from platforms before 0.7.6.
1012
+ */
1013
+ details_pending?: boolean;
979
1014
  }
1015
+ /** The three answers of a reveal told apart; see {@link RevealState}. */
1016
+ declare function revealState(r: Omit<RevealedCard, "state">): RevealState;
980
1017
  /** Postal address a card is registered at. Which parts exist depends on the country. */
981
1018
  interface BillingAddress {
982
1019
  line1?: string;
@@ -1158,9 +1195,13 @@ declare class CardsResource {
1158
1195
  * keep the result in volatile memory only, never write it to
1159
1196
  * localStorage / logs, and clear it within `expires_in_seconds`.
1160
1197
  *
1161
- * The result is the numbers, or `reveal_url` with empty `pan` and `cvv`
1162
- * when the issuer shows them on a page of its own: open that page in a
1163
- * frame right away, it is short-lived.
1198
+ * `state` tells the three answers apart: `numbers`; `page`, with
1199
+ * `reveal_url` and empty `pan` and `cvv` when the issuer shows them on a
1200
+ * page of its own (open that page in a frame right away, it is
1201
+ * short-lived); or `pending` while the card's details are still being
1202
+ * prepared, which doesn't count against the limit. A card says the same
1203
+ * in {@link Card.details_pending}, so there is no need to call this just
1204
+ * to find out.
1164
1205
  *
1165
1206
  * 403 not your card · 409 `card_locked` · 429 rate-limited · 501 connector
1166
1207
  * has no sensitive-data endpoint · 503 `provider_unavailable`.
@@ -1208,4 +1249,4 @@ declare class CardsResource {
1208
1249
  terminate(id: string, reason?: string): Promise<Card>;
1209
1250
  }
1210
1251
 
1211
- export { type Address as A, type BillingAddress as B, type CardProduct as C, type Deposit as D, type DepositStatus as E, FundingOptionsResource as F, type DepositTarget as G, type FeeKind as H, type FunderMode as I, type FundingOption as J, type FundingQuote as K, type InitiateDepositInput as L, type IssuanceBonus as M, type IssueCardInput as N, type MethodTerms as O, type RevealCardInput as P, type RevealedCard as Q, type Refund as R, type SetPinInput as S, type TopUpInput as T, type TopUpResult as U, type TopUpTerms as V, type TransferInput as W, type TransferResult as X, type UpdateCardInput as Y, cardOrderBody as Z, cardRequestBody as _, type Card as a, DepositsResource as b, CardsResource as c, type CardBalance as d, type CardDesignRef as e, type CardForm as f, type CardInTransit as g, type CardLoadStatus as h, type CardOrder as i, type CardOrderError as j, type CardOrderInput as k, type CardProductPrice as l, type CardStatus as m, type CardStatusSource as n, type CardTariff as o, type CardTopUp as p, type CardTopUpStatus as q, type CardTransfer as r, type CardType as s, type Cardholder as t, type CloseBlockedReason as u, type CreateCardInput as v, type CreateDepositRefundInput as w, type CreateQuoteInput as x, type CustomerInfo as y, type DepositMethod as z };
1252
+ export { cardOrderBody as $, type Address as A, type BillingAddress as B, type CardProduct as C, type Deposit as D, type DepositStatus as E, FundingOptionsResource as F, type DepositTarget as G, type FeeKind as H, type FunderMode as I, type FundingOption as J, type FundingQuote as K, type InitiateDepositInput as L, type IssuanceBonus as M, type IssueCardInput as N, type MethodTerms as O, type RevealCardInput as P, type RevealState as Q, type Refund as R, type RevealedCard as S, type SetPinInput as T, type TopUpInput as U, type TopUpResult as V, type TopUpTerms as W, type TransferInput as X, type TransferResult as Y, type UpdateCardInput as Z, revealState as _, type Card as a, cardRequestBody as a0, DepositsResource as b, CardsResource as c, type CardBalance as d, type CardDesignRef as e, type CardForm as f, type CardInTransit as g, type CardLoadStatus as h, type CardOrder as i, type CardOrderError as j, type CardOrderInput as k, type CardProductPrice as l, type CardStatus as m, type CardStatusSource as n, type CardTariff as o, type CardTopUp as p, type CardTopUpStatus as q, type CardTransfer as r, type CardType as s, type Cardholder as t, type CloseBlockedReason as u, type CreateCardInput as v, type CreateDepositRefundInput as w, type CreateQuoteInput as x, type CustomerInfo as y, type DepositMethod as z };
@@ -638,10 +638,19 @@ interface Card {
638
638
  close_blocked: CloseBlockedReason | null;
639
639
  /**
640
640
  * Top-ups the issuer has accepted and not loaded yet, summed, decimal
641
- * string in `currency`; `null` when there are none. Show it next to the
641
+ * string in `currency`; `null` when there are none. It counts top-ups from
642
+ * the wallet and top-ups paid straight to the card. Show it next to the
642
643
  * balance as money on its way to the card.
643
644
  */
644
645
  topups_pending: string | null;
646
+ /**
647
+ * `true` while the card's details are being prepared: the card can be
648
+ * used and topped up, but its number can't be shown yet. Show "Details
649
+ * are being prepared" instead of the reveal button and refresh the card
650
+ * later; it turns `false` on its own, usually within minutes. Absent
651
+ * from platforms before 0.7.6.
652
+ */
653
+ details_pending?: boolean;
645
654
  /**
646
655
  * Top-ups the issuer has held for too long, summed, decimal string in
647
656
  * `currency`; `null` when there are none. The money is safe and waits for
@@ -844,6 +853,13 @@ declare function cardOrderBody(input: CardOrderInput): Record<string, unknown>;
844
853
  interface CardBalance {
845
854
  amount: string;
846
855
  currency: string;
856
+ /**
857
+ * From `cards.balance()` only: top-ups the issuer has accepted and not
858
+ * confirmed yet, summed, decimal string in `currency`; `null` when there
859
+ * are none. Not part of `amount`, even when the issuer already shows the
860
+ * money: show it next to the balance as on its way.
861
+ */
862
+ pending?: string | null;
847
863
  }
848
864
  /** What a top-up of a card can be right now, from `GET /me/cards/{id}/topup`. */
849
865
  interface TopUpTerms {
@@ -940,16 +956,30 @@ interface RevealCardInput {
940
956
  password?: string;
941
957
  totpCode?: string;
942
958
  }
959
+ /**
960
+ * What a reveal gave, so a client can switch on one field:
961
+ *
962
+ * - `numbers`: `pan`, `cvv` and the expiry are filled in;
963
+ * - `page`: the issuer shows the numbers on a page of its own, `reveal_url`
964
+ * is set and `pan` and `cvv` are empty;
965
+ * - `pending`: the card's details are still being prepared, nothing else
966
+ * is filled in. Show "Details are being prepared" and try again in a
967
+ * minute or two; the attempt didn't count against the reveal limit.
968
+ */
969
+ type RevealState = "numbers" | "page" | "pending";
943
970
  /**
944
971
  * Full card data from a successful reveal. **Security**: never persist this,
945
972
  * keep it in volatile memory only, clear it within `expires_in_seconds`, and
946
973
  * never write it to localStorage / logs (the API marks the response no-store).
947
974
  *
975
+ * `state` says which of three answers this is (see {@link RevealState}).
948
976
  * Some issuers hand out a page that shows the numbers instead of the
949
- * numbers themselves. Then `reveal_url` is set, `pan` and `cvv` are empty,
950
- * and the client opens the page in a frame; see the README for the frame.
977
+ * numbers themselves; for some cards the details are still being prepared
978
+ * right after issuance.
951
979
  */
952
980
  interface RevealedCard {
981
+ /** Which answer this is; set by the SDK from the fields below. */
982
+ state: RevealState;
953
983
  /** The card number; empty when `reveal_url` is set. */
954
984
  pan: string;
955
985
  /** The security code; empty when `reveal_url` is set. */
@@ -976,7 +1006,14 @@ interface RevealedCard {
976
1006
  billing_address?: BillingAddress;
977
1007
  /** Display window before the client should auto-clear the data. */
978
1008
  expires_in_seconds: number;
1009
+ /**
1010
+ * `true` when the details are still being prepared (`state: "pending"`).
1011
+ * Absent from platforms before 0.7.6.
1012
+ */
1013
+ details_pending?: boolean;
979
1014
  }
1015
+ /** The three answers of a reveal told apart; see {@link RevealState}. */
1016
+ declare function revealState(r: Omit<RevealedCard, "state">): RevealState;
980
1017
  /** Postal address a card is registered at. Which parts exist depends on the country. */
981
1018
  interface BillingAddress {
982
1019
  line1?: string;
@@ -1158,9 +1195,13 @@ declare class CardsResource {
1158
1195
  * keep the result in volatile memory only, never write it to
1159
1196
  * localStorage / logs, and clear it within `expires_in_seconds`.
1160
1197
  *
1161
- * The result is the numbers, or `reveal_url` with empty `pan` and `cvv`
1162
- * when the issuer shows them on a page of its own: open that page in a
1163
- * frame right away, it is short-lived.
1198
+ * `state` tells the three answers apart: `numbers`; `page`, with
1199
+ * `reveal_url` and empty `pan` and `cvv` when the issuer shows them on a
1200
+ * page of its own (open that page in a frame right away, it is
1201
+ * short-lived); or `pending` while the card's details are still being
1202
+ * prepared, which doesn't count against the limit. A card says the same
1203
+ * in {@link Card.details_pending}, so there is no need to call this just
1204
+ * to find out.
1164
1205
  *
1165
1206
  * 403 not your card · 409 `card_locked` · 429 rate-limited · 501 connector
1166
1207
  * has no sensitive-data endpoint · 503 `provider_unavailable`.
@@ -1208,4 +1249,4 @@ declare class CardsResource {
1208
1249
  terminate(id: string, reason?: string): Promise<Card>;
1209
1250
  }
1210
1251
 
1211
- export { type Address as A, type BillingAddress as B, type CardProduct as C, type Deposit as D, type DepositStatus as E, FundingOptionsResource as F, type DepositTarget as G, type FeeKind as H, type FunderMode as I, type FundingOption as J, type FundingQuote as K, type InitiateDepositInput as L, type IssuanceBonus as M, type IssueCardInput as N, type MethodTerms as O, type RevealCardInput as P, type RevealedCard as Q, type Refund as R, type SetPinInput as S, type TopUpInput as T, type TopUpResult as U, type TopUpTerms as V, type TransferInput as W, type TransferResult as X, type UpdateCardInput as Y, cardOrderBody as Z, cardRequestBody as _, type Card as a, DepositsResource as b, CardsResource as c, type CardBalance as d, type CardDesignRef as e, type CardForm as f, type CardInTransit as g, type CardLoadStatus as h, type CardOrder as i, type CardOrderError as j, type CardOrderInput as k, type CardProductPrice as l, type CardStatus as m, type CardStatusSource as n, type CardTariff as o, type CardTopUp as p, type CardTopUpStatus as q, type CardTransfer as r, type CardType as s, type Cardholder as t, type CloseBlockedReason as u, type CreateCardInput as v, type CreateDepositRefundInput as w, type CreateQuoteInput as x, type CustomerInfo as y, type DepositMethod as z };
1252
+ export { cardOrderBody as $, type Address as A, type BillingAddress as B, type CardProduct as C, type Deposit as D, type DepositStatus as E, FundingOptionsResource as F, type DepositTarget as G, type FeeKind as H, type FunderMode as I, type FundingOption as J, type FundingQuote as K, type InitiateDepositInput as L, type IssuanceBonus as M, type IssueCardInput as N, type MethodTerms as O, type RevealCardInput as P, type RevealState as Q, type Refund as R, type RevealedCard as S, type SetPinInput as T, type TopUpInput as U, type TopUpResult as V, type TopUpTerms as W, type TransferInput as X, type TransferResult as Y, type UpdateCardInput as Z, revealState as _, type Card as a, cardRequestBody as a0, DepositsResource as b, CardsResource as c, type CardBalance as d, type CardDesignRef as e, type CardForm as f, type CardInTransit as g, type CardLoadStatus as h, type CardOrder as i, type CardOrderError as j, type CardOrderInput as k, type CardProductPrice as l, type CardStatus as m, type CardStatusSource as n, type CardTariff as o, type CardTopUp as p, type CardTopUpStatus as q, type CardTransfer as r, type CardType as s, type Cardholder as t, type CloseBlockedReason as u, type CreateCardInput as v, type CreateDepositRefundInput as w, type CreateQuoteInput as x, type CustomerInfo as y, type DepositMethod as z };
package/dist/index.cjs CHANGED
@@ -187,6 +187,11 @@ function cardOrderBody(input) {
187
187
  if (input.metadata !== void 0) body["metadata"] = input.metadata;
188
188
  return body;
189
189
  }
190
+ function revealState(r) {
191
+ if (r.details_pending) return "pending";
192
+ if (r.reveal_url) return "page";
193
+ return "numbers";
194
+ }
190
195
  var CardsResource = class {
191
196
  constructor(http) {
192
197
  this.http = http;
@@ -342,15 +347,22 @@ var CardsResource = class {
342
347
  * keep the result in volatile memory only, never write it to
343
348
  * localStorage / logs, and clear it within `expires_in_seconds`.
344
349
  *
345
- * The result is the numbers, or `reveal_url` with empty `pan` and `cvv`
346
- * when the issuer shows them on a page of its own: open that page in a
347
- * frame right away, it is short-lived.
350
+ * `state` tells the three answers apart: `numbers`; `page`, with
351
+ * `reveal_url` and empty `pan` and `cvv` when the issuer shows them on a
352
+ * page of its own (open that page in a frame right away, it is
353
+ * short-lived); or `pending` while the card's details are still being
354
+ * prepared, which doesn't count against the limit. A card says the same
355
+ * in {@link Card.details_pending}, so there is no need to call this just
356
+ * to find out.
348
357
  *
349
358
  * 403 not your card · 409 `card_locked` · 429 rate-limited · 501 connector
350
359
  * has no sensitive-data endpoint · 503 `provider_unavailable`.
351
360
  */
352
361
  async reveal(id, _input) {
353
- return this.http.post(`/me/cards/${encodeURIComponent(id)}/reveal`);
362
+ const r = await this.http.post(
363
+ `/me/cards/${encodeURIComponent(id)}/reveal`
364
+ );
365
+ return { ...r, state: revealState(r) };
354
366
  }
355
367
  /**
356
368
  * Unfreeze a previously-frozen card. Idempotent on an already-active card.
@@ -1575,7 +1587,7 @@ var FundingOptionsResource = class {
1575
1587
  };
1576
1588
 
1577
1589
  // src/version.ts
1578
- var SDK_VERSION = "0.6.8";
1590
+ var SDK_VERSION = "0.6.11";
1579
1591
 
1580
1592
  // src/client-platform.ts
1581
1593
  var CLIENT_HEADER = "X-Takeal-Client";
@@ -1650,7 +1662,7 @@ function isAbsolute(url) {
1650
1662
  }
1651
1663
 
1652
1664
  // src/compat.ts
1653
- var SUPPORTED_MEISTER = ">=0.6.13, <1.0.0";
1665
+ var SUPPORTED_MEISTER = ">=0.7.6, <1.0.0";
1654
1666
  var SEMVER = /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;
1655
1667
  function parse(v) {
1656
1668
  const m = SEMVER.exec(v.trim());
@@ -2226,6 +2238,7 @@ exports.page = page;
2226
2238
  exports.posthogDistinctId = posthogDistinctId;
2227
2239
  exports.resetAnalytics = resetAnalytics;
2228
2240
  exports.resolveAssetUrl = resolveAssetUrl;
2241
+ exports.revealState = revealState;
2229
2242
  exports.sanitizeProperties = sanitizeProperties;
2230
2243
  exports.sanitizeUrl = sanitizeUrl;
2231
2244
  exports.satisfies = satisfies;