@lightsparkdev/core 1.0.5 → 1.0.7

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'zen-observable-ts';
2
- export { ById, ExpandRecursively, Maybe, OmitTypename, b64decode, b64encode, bytesToHex, convertCurrencyAmount, createSha256Hash, getErrorMsg, hexToBytes, isBrowser, isError, isErrorMsg, isErrorWithMessage, isNode, isTest, isType, pollUntil, sleep, urlsafe_b64decode } from './utils/index.js';
2
+ export { ById, CurrencyAmountArg, CurrencyAmountObj, CurrencyAmountType, CurrencyCodes, CurrencyLocales, CurrencyMap, CurrencyUnit, ExpandRecursively, Maybe, OmitTypename, abbrCurrencyUnit, b64decode, b64encode, bytesToHex, clamp, convertCurrencyAmount, convertCurrencyAmountValue, countryCodesToCurrencyCodes, createSha256Hash, defaultCurrencyCode, formatCurrencyStr, getCurrentLocale, getErrorMsg, hexToBytes, isBrowser, isCurrencyAmount, isCurrencyAmountObj, isCurrencyMap, isError, isErrorMsg, isErrorWithMessage, isNode, isNumber, isTest, isType, linearInterpolate, localeToCurrencyCode, localeToCurrencySymbol, mapCurrencyAmount, pollUntil, round, separateCurrencyStrParts, sleep, urlsafe_b64decode } from './utils/index.js';
3
3
 
4
4
  type Headers = Record<string, string>;
5
5
  type WsConnectionParams = Record<string, unknown>;
package/dist/index.js CHANGED
@@ -1,23 +1,41 @@
1
1
  import {
2
+ CurrencyUnit,
2
3
  LightsparkException_default,
4
+ abbrCurrencyUnit,
3
5
  b64decode,
4
6
  b64encode,
5
7
  bytesToHex,
8
+ clamp,
6
9
  convertCurrencyAmount,
10
+ convertCurrencyAmountValue,
11
+ countryCodesToCurrencyCodes,
7
12
  createSha256Hash,
13
+ defaultCurrencyCode,
14
+ formatCurrencyStr,
15
+ getCurrentLocale,
8
16
  getErrorMsg,
9
17
  hexToBytes,
10
18
  isBrowser,
19
+ isCurrencyAmount,
20
+ isCurrencyAmountObj,
21
+ isCurrencyMap,
11
22
  isError,
12
23
  isErrorMsg,
13
24
  isErrorWithMessage,
14
25
  isNode,
26
+ isNumber,
15
27
  isTest,
16
28
  isType,
29
+ linearInterpolate,
30
+ localeToCurrencyCode,
31
+ localeToCurrencySymbol,
32
+ mapCurrencyAmount,
17
33
  pollUntil,
34
+ round,
35
+ separateCurrencyStrParts,
18
36
  sleep,
19
37
  urlsafe_b64decode
20
- } from "./chunk-5P2KZ44N.js";
38
+ } from "./chunk-UU6SHVGX.js";
21
39
 
22
40
  // src/auth/LightsparkAuthException.ts
23
41
  var LightsparkAuthException = class extends LightsparkException_default {
@@ -594,6 +612,7 @@ var apiDomainForEnvironment = (environment) => {
594
612
  };
595
613
  var ServerEnvironment_default = ServerEnvironment;
596
614
  export {
615
+ CurrencyUnit,
597
616
  DefaultCrypto,
598
617
  KeyOrAlias,
599
618
  LightsparkAuthException_default as LightsparkAuthException,
@@ -608,22 +627,39 @@ export {
608
627
  SigningKey,
609
628
  SigningKeyType,
610
629
  StubAuthProvider,
630
+ abbrCurrencyUnit,
611
631
  apiDomainForEnvironment,
612
632
  b64decode,
613
633
  b64encode,
614
634
  bytesToHex,
635
+ clamp,
615
636
  convertCurrencyAmount,
637
+ convertCurrencyAmountValue,
638
+ countryCodesToCurrencyCodes,
616
639
  createSha256Hash,
640
+ defaultCurrencyCode,
641
+ formatCurrencyStr,
642
+ getCurrentLocale,
617
643
  getErrorMsg,
618
644
  hexToBytes,
619
645
  isBrowser,
646
+ isCurrencyAmount,
647
+ isCurrencyAmountObj,
648
+ isCurrencyMap,
620
649
  isError,
621
650
  isErrorMsg,
622
651
  isErrorWithMessage,
623
652
  isNode,
653
+ isNumber,
624
654
  isTest,
625
655
  isType,
656
+ linearInterpolate,
657
+ localeToCurrencyCode,
658
+ localeToCurrencySymbol,
659
+ mapCurrencyAmount,
626
660
  pollUntil,
661
+ round,
662
+ separateCurrencyStrParts,
627
663
  sleep,
628
664
  urlsafe_b64decode
629
665
  };