@lightsparkdev/core 1.0.4 → 1.0.6

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, 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,40 @@
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,
18
35
  sleep,
19
36
  urlsafe_b64decode
20
- } from "./chunk-J6VQYCQJ.js";
37
+ } from "./chunk-W5XKQOE6.js";
21
38
 
22
39
  // src/auth/LightsparkAuthException.ts
23
40
  var LightsparkAuthException = class extends LightsparkException_default {
@@ -594,6 +611,7 @@ var apiDomainForEnvironment = (environment) => {
594
611
  };
595
612
  var ServerEnvironment_default = ServerEnvironment;
596
613
  export {
614
+ CurrencyUnit,
597
615
  DefaultCrypto,
598
616
  KeyOrAlias,
599
617
  LightsparkAuthException_default as LightsparkAuthException,
@@ -608,22 +626,38 @@ export {
608
626
  SigningKey,
609
627
  SigningKeyType,
610
628
  StubAuthProvider,
629
+ abbrCurrencyUnit,
611
630
  apiDomainForEnvironment,
612
631
  b64decode,
613
632
  b64encode,
614
633
  bytesToHex,
634
+ clamp,
615
635
  convertCurrencyAmount,
636
+ convertCurrencyAmountValue,
637
+ countryCodesToCurrencyCodes,
616
638
  createSha256Hash,
639
+ defaultCurrencyCode,
640
+ formatCurrencyStr,
641
+ getCurrentLocale,
617
642
  getErrorMsg,
618
643
  hexToBytes,
619
644
  isBrowser,
645
+ isCurrencyAmount,
646
+ isCurrencyAmountObj,
647
+ isCurrencyMap,
620
648
  isError,
621
649
  isErrorMsg,
622
650
  isErrorWithMessage,
623
651
  isNode,
652
+ isNumber,
624
653
  isTest,
625
654
  isType,
655
+ linearInterpolate,
656
+ localeToCurrencyCode,
657
+ localeToCurrencySymbol,
658
+ mapCurrencyAmount,
626
659
  pollUntil,
660
+ round,
627
661
  sleep,
628
662
  urlsafe_b64decode
629
663
  };