@authme/util 2.8.4 → 2.8.5
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 +9 -2
- package/index.js +10 -3
- package/package.json +1 -1
- package/src/lib/enum/deviceType.enum.d.ts +5 -0
- package/src/lib/enum/index.d.ts +1 -0
package/index.cjs
CHANGED
|
@@ -901,6 +901,13 @@ exports.TIME_UNIT = void 0;
|
|
|
901
901
|
TIME_UNIT[TIME_UNIT["HOUR"] = 3600000] = "HOUR";
|
|
902
902
|
})(exports.TIME_UNIT || (exports.TIME_UNIT = {}));
|
|
903
903
|
|
|
904
|
+
exports.DEVICE_TYPE = void 0;
|
|
905
|
+
(function (DEVICE_TYPE) {
|
|
906
|
+
DEVICE_TYPE["web"] = "web";
|
|
907
|
+
DEVICE_TYPE["mobile"] = "mobile";
|
|
908
|
+
DEVICE_TYPE["pad"] = "pad";
|
|
909
|
+
})(exports.DEVICE_TYPE || (exports.DEVICE_TYPE = {}));
|
|
910
|
+
|
|
904
911
|
function getImageData(canvas, ctx, video, sizeInfo, base64 = false, imageType = 'jpg') {
|
|
905
912
|
canvas.width = sizeInfo.canvasWidth;
|
|
906
913
|
canvas.height = sizeInfo.canvasHeight;
|
|
@@ -3054,8 +3061,8 @@ const themeConfigDefault = {
|
|
|
3054
3061
|
};
|
|
3055
3062
|
|
|
3056
3063
|
var name = "authme/sdk";
|
|
3057
|
-
var version$1 = "2.8.
|
|
3058
|
-
var date = "2025-03-
|
|
3064
|
+
var version$1 = "2.8.5";
|
|
3065
|
+
var date = "2025-03-17T05:56:00+0000";
|
|
3059
3066
|
var packageInfo = {
|
|
3060
3067
|
name: name,
|
|
3061
3068
|
version: version$1,
|
package/index.js
CHANGED
|
@@ -891,6 +891,13 @@ var TIME_UNIT;
|
|
|
891
891
|
TIME_UNIT[TIME_UNIT["HOUR"] = 3600000] = "HOUR";
|
|
892
892
|
})(TIME_UNIT || (TIME_UNIT = {}));
|
|
893
893
|
|
|
894
|
+
var DEVICE_TYPE;
|
|
895
|
+
(function (DEVICE_TYPE) {
|
|
896
|
+
DEVICE_TYPE["web"] = "web";
|
|
897
|
+
DEVICE_TYPE["mobile"] = "mobile";
|
|
898
|
+
DEVICE_TYPE["pad"] = "pad";
|
|
899
|
+
})(DEVICE_TYPE || (DEVICE_TYPE = {}));
|
|
900
|
+
|
|
894
901
|
function getImageData(canvas, ctx, video, sizeInfo, base64 = false, imageType = 'jpg') {
|
|
895
902
|
canvas.width = sizeInfo.canvasWidth;
|
|
896
903
|
canvas.height = sizeInfo.canvasHeight;
|
|
@@ -3044,8 +3051,8 @@ const themeConfigDefault = {
|
|
|
3044
3051
|
};
|
|
3045
3052
|
|
|
3046
3053
|
var name = "authme/sdk";
|
|
3047
|
-
var version$1 = "2.8.
|
|
3048
|
-
var date = "2025-03-
|
|
3054
|
+
var version$1 = "2.8.5";
|
|
3055
|
+
var date = "2025-03-17T05:56:00+0000";
|
|
3049
3056
|
var packageInfo = {
|
|
3050
3057
|
name: name,
|
|
3051
3058
|
version: version$1,
|
|
@@ -3058,4 +3065,4 @@ const version = packageInfo.version;
|
|
|
3058
3065
|
(_a = (_b = window)[_c = Symbol.for('authme-sdk')]) !== null && _a !== void 0 ? _a : _b[_c] = {};
|
|
3059
3066
|
window[Symbol.for('authme-sdk')][packageInfo.name] = version;
|
|
3060
3067
|
|
|
3061
|
-
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, dropMenu, fontWeight, 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, themeConfigDefault, uiThemeButton, uiThemeHint, uiThemeSmallButton, uiThemeText, uploadModal, useState, verificationErrorMessages, version, videoConstraintsFactory, waitTime };
|
|
3068
|
+
export { AuthmeError, DEVICE_TYPE, 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, dropMenu, fontWeight, 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, themeConfigDefault, uiThemeButton, uiThemeHint, uiThemeSmallButton, uiThemeText, uploadModal, useState, verificationErrorMessages, version, videoConstraintsFactory, waitTime };
|
package/package.json
CHANGED
package/src/lib/enum/index.d.ts
CHANGED