@authme/util 2.4.6 → 2.4.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/index.cjs +26 -16
- package/index.js +26 -16
- package/package.json +1 -1
- package/src/lib/common/index.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -11,13 +11,13 @@ require('core-js/modules/es.typed-array.sort.js');
|
|
|
11
11
|
require('core-js/modules/es.typed-array.to-locale-string.js');
|
|
12
12
|
require('core-js/modules/es.promise.js');
|
|
13
13
|
require('core-js/modules/es.regexp.exec.js');
|
|
14
|
+
require('core-js/modules/es.string.match.js');
|
|
15
|
+
require('core-js/modules/es.string.replace.js');
|
|
14
16
|
require('core-js/modules/es.regexp.to-string.js');
|
|
15
17
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
16
18
|
require('core-js/modules/es.object.assign.js');
|
|
17
19
|
require('core-js/modules/es.number.parse-int.js');
|
|
18
20
|
var jwt_decode = require('jwt-decode');
|
|
19
|
-
require('core-js/modules/es.string.match.js');
|
|
20
|
-
require('core-js/modules/es.string.replace.js');
|
|
21
21
|
require('core-js/modules/web.url-search-params.js');
|
|
22
22
|
require('core-js/modules/es.string.search.js');
|
|
23
23
|
require('core-js/modules/es.typed-array.uint32-array.js');
|
|
@@ -388,9 +388,6 @@ function retryPromiseWithCondition(promiseFactory, conditionFactory) {
|
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
function getUserAgent() {
|
|
392
|
-
return `platform: ${navigator === null || navigator === void 0 ? void 0 : navigator.platform}`;
|
|
393
|
-
}
|
|
394
391
|
function isMobileOrTablet() {
|
|
395
392
|
return function (a) {
|
|
396
393
|
return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0, 4)) || /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || navigator.maxTouchPoints && navigator.maxTouchPoints > 2);
|
|
@@ -401,6 +398,25 @@ function isMobile() {
|
|
|
401
398
|
return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0, 4)) || /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
|
|
402
399
|
}(navigator.userAgent || navigator.vendor || window.opera);
|
|
403
400
|
}
|
|
401
|
+
function osVersion() {
|
|
402
|
+
let version = '';
|
|
403
|
+
const android = navigator.userAgent.match(/Android\s+([\d\\.]+)/i);
|
|
404
|
+
if (android) {
|
|
405
|
+
version = android[0];
|
|
406
|
+
}
|
|
407
|
+
const ios = navigator.userAgent.match(/OS\s+([\d\\_]+)/i);
|
|
408
|
+
if (ios) {
|
|
409
|
+
version = ios[0].replace('OS ', 'iOS');
|
|
410
|
+
}
|
|
411
|
+
const win = navigator.userAgent.match(/Windows NT (\d+\.\d+)/);
|
|
412
|
+
if (win) {
|
|
413
|
+
version = win[0];
|
|
414
|
+
}
|
|
415
|
+
if (!version) {
|
|
416
|
+
version = navigator.platform;
|
|
417
|
+
}
|
|
418
|
+
return version;
|
|
419
|
+
}
|
|
404
420
|
function splitResult(result) {
|
|
405
421
|
if (result.address) {
|
|
406
422
|
const originAddress = result.address;
|
|
@@ -2408,19 +2424,13 @@ window.ononline = () => {
|
|
|
2408
2424
|
});
|
|
2409
2425
|
};
|
|
2410
2426
|
|
|
2411
|
-
var name = "
|
|
2412
|
-
var version$1 = "2.4.
|
|
2413
|
-
var
|
|
2414
|
-
"core-js": "^3.6.0"
|
|
2415
|
-
};
|
|
2416
|
-
var devDependencies = {
|
|
2417
|
-
"@types/file-saver": "^2.0.5"
|
|
2418
|
-
};
|
|
2427
|
+
var name = "authme/sdk";
|
|
2428
|
+
var version$1 = "2.4.7";
|
|
2429
|
+
var date = "2023-12-14T08:29:41+0000";
|
|
2419
2430
|
var packageInfo = {
|
|
2420
2431
|
name: name,
|
|
2421
2432
|
version: version$1,
|
|
2422
|
-
|
|
2423
|
-
devDependencies: devDependencies
|
|
2433
|
+
date: date
|
|
2424
2434
|
};
|
|
2425
2435
|
|
|
2426
2436
|
var _a;
|
|
@@ -2452,7 +2462,6 @@ exports.getCssVariable = getCssVariable;
|
|
|
2452
2462
|
exports.getDeviceInfo = getDeviceInfo;
|
|
2453
2463
|
exports.getImageData = getImageData;
|
|
2454
2464
|
exports.getSystemInfo = getSystemInfo;
|
|
2455
|
-
exports.getUserAgent = getUserAgent;
|
|
2456
2465
|
exports.hexToRGB = hexToRGB;
|
|
2457
2466
|
exports.hideElement = hideElement;
|
|
2458
2467
|
exports.hideErrorMessage = hideErrorMessage;
|
|
@@ -2460,6 +2469,7 @@ exports.hidePopup = hidePopup;
|
|
|
2460
2469
|
exports.isIphone14proOrProMax = isIphone14proOrProMax;
|
|
2461
2470
|
exports.isMobile = isMobile;
|
|
2462
2471
|
exports.isMobileOrTablet = isMobileOrTablet;
|
|
2472
|
+
exports.osVersion = osVersion;
|
|
2463
2473
|
exports.requestCamera = requestCamera;
|
|
2464
2474
|
exports.resize = resize;
|
|
2465
2475
|
exports.retryPromiseWithCondition = retryPromiseWithCondition;
|
package/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import 'core-js/modules/es.typed-array.sort.js';
|
|
|
7
7
|
import 'core-js/modules/es.typed-array.to-locale-string.js';
|
|
8
8
|
import 'core-js/modules/es.promise.js';
|
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
|
10
|
+
import 'core-js/modules/es.string.match.js';
|
|
11
|
+
import 'core-js/modules/es.string.replace.js';
|
|
10
12
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
11
13
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
14
|
import 'core-js/modules/es.object.assign.js';
|
|
13
15
|
import 'core-js/modules/es.number.parse-int.js';
|
|
14
16
|
import jwt_decode from 'jwt-decode';
|
|
15
|
-
import 'core-js/modules/es.string.match.js';
|
|
16
|
-
import 'core-js/modules/es.string.replace.js';
|
|
17
17
|
import 'core-js/modules/web.url-search-params.js';
|
|
18
18
|
import 'core-js/modules/es.string.search.js';
|
|
19
19
|
import 'core-js/modules/es.typed-array.uint32-array.js';
|
|
@@ -378,9 +378,6 @@ function retryPromiseWithCondition(promiseFactory, conditionFactory) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function getUserAgent() {
|
|
382
|
-
return `platform: ${navigator === null || navigator === void 0 ? void 0 : navigator.platform}`;
|
|
383
|
-
}
|
|
384
381
|
function isMobileOrTablet() {
|
|
385
382
|
return function (a) {
|
|
386
383
|
return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0, 4)) || /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || navigator.maxTouchPoints && navigator.maxTouchPoints > 2);
|
|
@@ -391,6 +388,25 @@ function isMobile() {
|
|
|
391
388
|
return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0, 4)) || /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
|
|
392
389
|
}(navigator.userAgent || navigator.vendor || window.opera);
|
|
393
390
|
}
|
|
391
|
+
function osVersion() {
|
|
392
|
+
let version = '';
|
|
393
|
+
const android = navigator.userAgent.match(/Android\s+([\d\\.]+)/i);
|
|
394
|
+
if (android) {
|
|
395
|
+
version = android[0];
|
|
396
|
+
}
|
|
397
|
+
const ios = navigator.userAgent.match(/OS\s+([\d\\_]+)/i);
|
|
398
|
+
if (ios) {
|
|
399
|
+
version = ios[0].replace('OS ', 'iOS');
|
|
400
|
+
}
|
|
401
|
+
const win = navigator.userAgent.match(/Windows NT (\d+\.\d+)/);
|
|
402
|
+
if (win) {
|
|
403
|
+
version = win[0];
|
|
404
|
+
}
|
|
405
|
+
if (!version) {
|
|
406
|
+
version = navigator.platform;
|
|
407
|
+
}
|
|
408
|
+
return version;
|
|
409
|
+
}
|
|
394
410
|
function splitResult(result) {
|
|
395
411
|
if (result.address) {
|
|
396
412
|
const originAddress = result.address;
|
|
@@ -2398,19 +2414,13 @@ window.ononline = () => {
|
|
|
2398
2414
|
});
|
|
2399
2415
|
};
|
|
2400
2416
|
|
|
2401
|
-
var name = "
|
|
2402
|
-
var version$1 = "2.4.
|
|
2403
|
-
var
|
|
2404
|
-
"core-js": "^3.6.0"
|
|
2405
|
-
};
|
|
2406
|
-
var devDependencies = {
|
|
2407
|
-
"@types/file-saver": "^2.0.5"
|
|
2408
|
-
};
|
|
2417
|
+
var name = "authme/sdk";
|
|
2418
|
+
var version$1 = "2.4.7";
|
|
2419
|
+
var date = "2023-12-14T08:29:41+0000";
|
|
2409
2420
|
var packageInfo = {
|
|
2410
2421
|
name: name,
|
|
2411
2422
|
version: version$1,
|
|
2412
|
-
|
|
2413
|
-
devDependencies: devDependencies
|
|
2423
|
+
date: date
|
|
2414
2424
|
};
|
|
2415
2425
|
|
|
2416
2426
|
var _a;
|
|
@@ -2419,4 +2429,4 @@ const version = packageInfo.version;
|
|
|
2419
2429
|
(_a = (_b = window)[_c = Symbol.for('authme-sdk')]) !== null && _a !== void 0 ? _a : _b[_c] = {};
|
|
2420
2430
|
window[Symbol.for('authme-sdk')][packageInfo.name] = version;
|
|
2421
2431
|
|
|
2422
|
-
export { AuthmeError, ErrorCode, Icon, RGBToLottieColor, RUN_FUNCTION_NAME, STORAGE_KEY, Storage, TIME_UNIT, UintArrayToBlob, asyncOnLineShowErrorMessage, asyncShowErrorMessage, asyncShowPopup, backgroundRequest, checkOnlineStatus, clearCanvas, colorStringToRGB, colorToRGB, combineResult, cropByRatio, dataURItoBlob, debugLog, debugTools, decodeToken, getCanvasSize, getCssVariable, getDeviceInfo, getImageData, getSystemInfo,
|
|
2432
|
+
export { AuthmeError, ErrorCode, Icon, RGBToLottieColor, RUN_FUNCTION_NAME, STORAGE_KEY, Storage, TIME_UNIT, UintArrayToBlob, asyncOnLineShowErrorMessage, asyncShowErrorMessage, asyncShowPopup, backgroundRequest, checkOnlineStatus, clearCanvas, colorStringToRGB, colorToRGB, combineResult, cropByRatio, dataURItoBlob, debugLog, debugTools, decodeToken, getCanvasSize, getCssVariable, getDeviceInfo, getImageData, getSystemInfo, hexToRGB, hideElement, hideErrorMessage, hidePopup, isIphone14proOrProMax, isMobile, isMobileOrTablet, osVersion, requestCamera, resize, retryPromiseWithCondition, showElement, showErrorMessage, showErrorMessageEventName, showPopup, splitResult, startLoadingSDK, startSpinner, stopLoadingSDK, stopSpinner, switchCamera, useState, version, videoConstraintsFactory, waitTime };
|
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@ export declare function dataURItoBlob(dataURI: string): Blob;
|
|
|
5
5
|
export declare function UintArrayToBlob(width: number, height: number, data: Uint8Array | Uint8ClampedArray, canvasEle?: HTMLCanvasElement, imageFormat?: 'jpg' | 'png'): Blob;
|
|
6
6
|
export declare function waitTime(ms: number): Promise<void>;
|
|
7
7
|
export declare function retryPromiseWithCondition<T>(promiseFactory: () => Promise<T>, conditionFactory: (...args: any[]) => Promise<any>): Promise<T>;
|
|
8
|
-
export declare function getUserAgent(): string;
|
|
9
8
|
export declare function isMobileOrTablet(): boolean;
|
|
10
9
|
export declare function isMobile(): boolean;
|
|
10
|
+
export declare function osVersion(): string;
|
|
11
11
|
export declare function splitResult(result: any): any;
|
|
12
12
|
export declare function combineResult(result: any): any;
|
|
13
13
|
export declare const isIphone14proOrProMax: () => boolean;
|