@webority/mobile-core 0.187.1 → 0.187.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.newIdempotencyKey=void 0;const cryptoApi=()=>globalThis.crypto,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.newIdempotencyKey=void 0;const cryptoApi=()=>globalThis.crypto,formatUuid=e=>{const o=Array.from(e,e=>e.toString(16).padStart(2,"0")).join("");return`${o.slice(0,8)}-${o.slice(8,12)}-${o.slice(12,16)}-${o.slice(16,20)}-${o.slice(20,32)}`},uuidFromRandomValues=e=>{const o=e(new Uint8Array(16)),r=Array.from(o,(e,o)=>6===o?15&e|64:8===o?63&e|128:e);return formatUuid(r)},newIdempotencyKey=()=>{const e=cryptoApi();if("function"==typeof e?.randomUUID)return e.randomUUID();if("function"==typeof e?.getRandomValues)return uuidFromRandomValues(e.getRandomValues.bind(e));return require("expo-crypto").randomUUID()};exports.newIdempotencyKey=newIdempotencyKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const cryptoApi=()=>globalThis.crypto,
|
|
1
|
+
"use strict";const cryptoApi=()=>globalThis.crypto,formatUuid=r=>{const o=Array.from(r,r=>r.toString(16).padStart(2,"0")).join("");return`${o.slice(0,8)}-${o.slice(8,12)}-${o.slice(12,16)}-${o.slice(16,20)}-${o.slice(20,32)}`},uuidFromRandomValues=r=>{const o=r(new Uint8Array(16)),t=Array.from(o,(r,o)=>6===o?15&r|64:8===o?63&r|128:r);return formatUuid(t)};export const newIdempotencyKey=()=>{const r=cryptoApi();if("function"==typeof r?.randomUUID)return r.randomUUID();if("function"==typeof r?.getRandomValues)return uuidFromRandomValues(r.getRandomValues.bind(r));return require("expo-crypto").randomUUID()};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A v4 uuid from a secure source: the runtime's crypto where it has one, otherwise expo-crypto, which Hermes needs.
|
|
3
|
+
* expo-crypto is an optional peer, so it is required only on that path and the main barrel loads without it.
|
|
4
|
+
*/
|
|
1
5
|
export declare const newIdempotencyKey: () => string;
|
|
2
6
|
//# sourceMappingURL=idempotencyKey.d.ts.map
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A v4 uuid from a secure source: the runtime's crypto where it has one, otherwise expo-crypto, which Hermes needs.
|
|
3
|
+
* expo-crypto is an optional peer, so it is required only on that path and the main barrel loads without it.
|
|
4
|
+
*/
|
|
1
5
|
export declare const newIdempotencyKey: () => string;
|
|
2
6
|
//# sourceMappingURL=idempotencyKey.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-core",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.2",
|
|
4
4
|
"description": "Platform layer for Webority React Native apps: HTTP clients, auth/token storage, config, logging, formatters, validators, network status, permissions, storage, version checks and over-the-air updates. No UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
"dependencies": {
|
|
407
|
-
"@webority/api-contract": "0.187.
|
|
407
|
+
"@webority/api-contract": "0.187.2",
|
|
408
408
|
"axios": "^1.19.0",
|
|
409
409
|
"libphonenumber-js": "^1.12.41"
|
|
410
410
|
},
|