@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
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
51
51
|
var isNode = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
52
52
|
var isTest = isNode && process.env.NODE_ENV === "test";
|
|
53
53
|
var isBare = typeof Bare !== "undefined";
|
|
54
|
+
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
54
55
|
|
|
55
56
|
// src/utils/hex.ts
|
|
56
57
|
var bytesToHex = (bytes) => {
|
|
@@ -2225,18 +2226,23 @@ function zipcodeToState(zipcode) {
|
|
|
2225
2226
|
}
|
|
2226
2227
|
|
|
2227
2228
|
export {
|
|
2228
|
-
LightsparkException_default,
|
|
2229
|
-
b64decode,
|
|
2230
|
-
urlsafe_b64decode,
|
|
2231
|
-
b64encode,
|
|
2232
|
-
ensureArray,
|
|
2233
2229
|
isBrowser,
|
|
2234
2230
|
isNode,
|
|
2235
2231
|
isTest,
|
|
2236
2232
|
isBare,
|
|
2233
|
+
isReactNative,
|
|
2234
|
+
LightsparkException_default,
|
|
2235
|
+
b64decode,
|
|
2236
|
+
urlsafe_b64decode,
|
|
2237
|
+
b64encode,
|
|
2238
|
+
getLocalStorageConfigItem,
|
|
2239
|
+
getLocalStorageBoolean,
|
|
2240
|
+
setLocalStorageBoolean,
|
|
2241
|
+
deleteLocalStorageItem,
|
|
2237
2242
|
bytesToHex,
|
|
2238
2243
|
hexToBytes,
|
|
2239
2244
|
createSha256Hash,
|
|
2245
|
+
ensureArray,
|
|
2240
2246
|
getCurrentLocale,
|
|
2241
2247
|
countryCodesToCurrencyCodes,
|
|
2242
2248
|
localeToCurrencyCode,
|
|
@@ -2270,10 +2276,6 @@ export {
|
|
|
2270
2276
|
getErrorMsg,
|
|
2271
2277
|
isErrorMsg,
|
|
2272
2278
|
errorToJSON,
|
|
2273
|
-
getLocalStorageConfigItem,
|
|
2274
|
-
getLocalStorageBoolean,
|
|
2275
|
-
setLocalStorageBoolean,
|
|
2276
|
-
deleteLocalStorageItem,
|
|
2277
2279
|
sleep,
|
|
2278
2280
|
pollUntil,
|
|
2279
2281
|
lsidToUUID,
|