@lightsparkdev/core 1.4.3 → 1.4.4
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 +7 -0
- package/README.md +0 -2
- package/dist/{chunk-36QHRQJC.js → chunk-ADHQHZNM.js} +11 -9
- package/dist/chunk-VY7NND44.js +713 -0
- package/dist/{index-gUXiTlhb.d.cts → index-CFQtMxrx.d.cts} +2 -1
- package/dist/{index-gUXiTlhb.d.ts → index-CFQtMxrx.d.ts} +2 -1
- package/dist/index.cjs +2585 -2573
- package/dist/index.d.cts +8 -171
- package/dist/index.d.ts +8 -171
- package/dist/index.js +25 -679
- package/dist/react-native/index.cjs +3111 -0
- package/dist/react-native/index.d.cts +175 -0
- package/dist/react-native/index.d.ts +175 -0
- package/dist/react-native/index.js +154 -0
- package/dist/utils/index.cjs +3 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +3 -1
- package/package.json +15 -1
- package/src/Logger.ts +2 -1
- package/src/crypto/SigningKey.ts +4 -2
- package/src/index.ts +3 -11
- package/src/react-native/index.ts +2 -0
- package/src/requester/DefaultRequester.ts +46 -0
- package/src/requester/Requester.ts +11 -44
- package/src/requester/tests/DefaultRequester.test.ts +129 -0
- package/src/requester/tests/Requester.test.ts +23 -32
- package/src/shared.ts +10 -0
- package/src/utils/environment.ts +3 -0
|
@@ -172,6 +172,7 @@ declare const isBrowser: boolean;
|
|
|
172
172
|
declare const isNode: boolean;
|
|
173
173
|
declare const isTest: boolean;
|
|
174
174
|
declare const isBare: boolean;
|
|
175
|
+
declare const isReactNative: boolean;
|
|
175
176
|
|
|
176
177
|
type Maybe<T> = T | null | undefined;
|
|
177
178
|
type ExpandRecursively<T> = T extends object ? T extends infer O ? {
|
|
@@ -336,4 +337,4 @@ declare const zipcodeToStateCode: Record<string, StateCode>;
|
|
|
336
337
|
*/
|
|
337
338
|
declare function zipcodeToState(zipcode: string): StateCode | null;
|
|
338
339
|
|
|
339
|
-
export {
|
|
340
|
+
export { getLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isReactNative as L, isError as M, isErrorWithMessage as N, getErrorMsg as O, isErrorMsg as P, errorToJSON as Q, bytesToHex as R, type SDKCurrencyAmountType as S, hexToBytes as T, type UmaCurrency as U, getCurrentLocale as V, countryCodesToCurrencyCodes as W, type CurrencyLocales as X, type CurrencyCodes as Y, localeToCurrencyCode as Z, getLocalStorageConfigItem as _, b64encode as a, setLocalStorageBoolean as a0, deleteLocalStorageItem as a1, clamp as a2, linearInterpolate as a3, round as a4, isNumber as a5, pollUntil as a6, sleep as a7, lsidToUUID as a8, isUint8Array as a9, isObject as aa, isRecord as ab, type Maybe as ac, type ExpandRecursively as ad, type ById as ae, type OmitTypename as af, isType as ag, type ExtractByTypename as ah, type DeepPartial as ai, type JSONLiteral as aj, type JSONType as ak, type JSONObject as al, type NN as am, notNullUndefined as an, type PartialBy as ao, type Complete as ap, type RequiredKeys as aq, type StateCode as ar, zipcodeToStateCode as as, zipcodeToState as at, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };
|
|
@@ -172,6 +172,7 @@ declare const isBrowser: boolean;
|
|
|
172
172
|
declare const isNode: boolean;
|
|
173
173
|
declare const isTest: boolean;
|
|
174
174
|
declare const isBare: boolean;
|
|
175
|
+
declare const isReactNative: boolean;
|
|
175
176
|
|
|
176
177
|
type Maybe<T> = T | null | undefined;
|
|
177
178
|
type ExpandRecursively<T> = T extends object ? T extends infer O ? {
|
|
@@ -336,4 +337,4 @@ declare const zipcodeToStateCode: Record<string, StateCode>;
|
|
|
336
337
|
*/
|
|
337
338
|
declare function zipcodeToState(zipcode: string): StateCode | null;
|
|
338
339
|
|
|
339
|
-
export {
|
|
340
|
+
export { getLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isReactNative as L, isError as M, isErrorWithMessage as N, getErrorMsg as O, isErrorMsg as P, errorToJSON as Q, bytesToHex as R, type SDKCurrencyAmountType as S, hexToBytes as T, type UmaCurrency as U, getCurrentLocale as V, countryCodesToCurrencyCodes as W, type CurrencyLocales as X, type CurrencyCodes as Y, localeToCurrencyCode as Z, getLocalStorageConfigItem as _, b64encode as a, setLocalStorageBoolean as a0, deleteLocalStorageItem as a1, clamp as a2, linearInterpolate as a3, round as a4, isNumber as a5, pollUntil as a6, sleep as a7, lsidToUUID as a8, isUint8Array as a9, isObject as aa, isRecord as ab, type Maybe as ac, type ExpandRecursively as ad, type ById as ae, type OmitTypename as af, isType as ag, type ExtractByTypename as ah, type DeepPartial as ai, type JSONLiteral as aj, type JSONType as ak, type JSONObject as al, type NN as am, notNullUndefined as an, type PartialBy as ao, type Complete as ap, type RequiredKeys as aq, type StateCode as ar, zipcodeToStateCode as as, zipcodeToState as at, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };
|