diginext-utils 2.0.32 → 2.0.33
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/README.md +162 -162
- package/dist/Checker.d.ts +8 -7
- package/dist/Checker.js +48 -28
- package/dist/Checker.mjs +29 -0
- package/dist/EventDispatcher.d.ts +12 -12
- package/dist/EventDispatcher.js +72 -47
- package/dist/EventDispatcher.mjs +54 -0
- package/dist/FileUpload.d.ts +11 -11
- package/dist/FileUpload.js +81 -61
- package/dist/FileUpload.mjs +62 -0
- package/dist/Slug.d.ts +9 -8
- package/dist/Slug.js +350 -330
- package/dist/Slug.mjs +331 -0
- package/dist/Timer-7b0c4e7c.d.ts +11 -0
- package/dist/Timer.d.ts +1 -4
- package/dist/Timer.js +31 -7
- package/dist/Timer.mjs +7 -0
- package/dist/Validation.d.ts +5 -4
- package/dist/Validation.js +54 -37
- package/dist/Validation.mjs +35 -0
- package/dist/array-dc599632.d.ts +158 -0
- package/dist/array.d.ts +1 -113
- package/dist/array.js +246 -266
- package/dist/array.mjs +49 -0
- package/dist/browser-8d042ffe.d.ts +22 -0
- package/dist/camera-1a859d72.d.ts +15 -0
- package/dist/chunk-5NTK5JAI.mjs +57 -0
- package/dist/chunk-5UEMANWE.mjs +91 -0
- package/dist/chunk-5ZOWNKSD.mjs +166 -0
- package/dist/chunk-6GNGTFNC.mjs +118 -0
- package/dist/chunk-7MK72U4O.mjs +19 -0
- package/dist/chunk-7XKT3AQX.mjs +17 -0
- package/dist/chunk-7ZCEZM7K.mjs +41 -0
- package/dist/chunk-AMBWJGSW.mjs +151 -0
- package/dist/chunk-C7S43KGB.mjs +15 -0
- package/dist/chunk-CJM7T7ON.mjs +24 -0
- package/dist/chunk-CKILLYAP.mjs +16 -0
- package/dist/chunk-DX7MUT3M.mjs +51 -0
- package/dist/chunk-EGUJQ5VF.mjs +32 -0
- package/dist/chunk-ETEIHDWU.mjs +25 -0
- package/dist/chunk-FJXSVGL7.mjs +22 -0
- package/dist/chunk-GJCAEOND.mjs +20 -0
- package/dist/chunk-GNJDIUYM.mjs +40 -0
- package/dist/chunk-IA7GINWD.mjs +39 -0
- package/dist/chunk-JEI7BOXY.mjs +21 -0
- package/dist/chunk-K4KENOE6.mjs +20 -0
- package/dist/chunk-KMERW6KS.mjs +34 -0
- package/dist/chunk-KPO3RH5G.mjs +27 -0
- package/dist/chunk-KWG5LYNK.mjs +100 -0
- package/dist/chunk-NUTQDHLQ.mjs +40 -0
- package/dist/chunk-O64XUDAH.mjs +35 -0
- package/dist/chunk-OYRPWQUA.mjs +257 -0
- package/dist/chunk-PNZ4KGXL.mjs +56 -0
- package/dist/chunk-QZYX26HT.mjs +24 -0
- package/dist/chunk-RDGP2CKM.mjs +195 -0
- package/dist/chunk-VFG5VU6S.mjs +12 -0
- package/dist/chunk-X3IMFCZG.mjs +23 -0
- package/dist/chunk-ZHNGZMRD.mjs +17 -0
- package/dist/color.d.ts +23 -22
- package/dist/color.js +96 -79
- package/dist/color.mjs +78 -0
- package/dist/console/enableConsole.d.ts +1 -2
- package/dist/console/enableConsole.js +38 -10
- package/dist/console/enableConsole.mjs +9 -0
- package/dist/console/index.d.ts +2 -11
- package/dist/console/index.js +58 -15
- package/dist/console/index.mjs +14 -0
- package/dist/console/log.d.ts +15 -14
- package/dist/console/log.js +74 -44
- package/dist/console/log.mjs +19 -0
- package/dist/createDir-220e0081.d.ts +13 -0
- package/dist/device/browser.d.ts +1 -5
- package/dist/device/browser.js +60 -32
- package/dist/device/browser.mjs +15 -0
- package/dist/device/camera.d.ts +1 -7
- package/dist/device/camera.js +184 -166
- package/dist/device/camera.mjs +8 -0
- package/dist/device/index.d.ts +1 -5
- package/dist/device/index.js +201 -216
- package/dist/device/index.mjs +15 -0
- package/dist/device/os.d.ts +11 -10
- package/dist/device/os.js +55 -28
- package/dist/device/os.mjs +33 -0
- package/dist/enableConsole-ddc24282.d.ts +11 -0
- package/dist/file/createDir.d.ts +1 -5
- package/dist/file/createDir.js +34 -13
- package/dist/file/createDir.mjs +7 -0
- package/dist/file/fileMove.d.ts +1 -4
- package/dist/file/fileMove.js +49 -29
- package/dist/file/fileMove.mjs +7 -0
- package/dist/file/findFilesByExt.d.ts +1 -13
- package/dist/file/findFilesByExt.js +64 -45
- package/dist/file/findFilesByExt.mjs +11 -0
- package/dist/file/index.d.ts +10 -8
- package/dist/file/index.js +104 -9
- package/dist/file/index.mjs +17 -0
- package/dist/fileMove-3a09e429.d.ts +13 -0
- package/dist/findFilesByExt-753e91d7.d.ts +24 -0
- package/dist/images/index.d.ts +2 -2
- package/dist/images/index.js +131 -8
- package/dist/images/index.mjs +15 -0
- package/dist/images/loadImage.d.ts +3 -0
- package/dist/images/loadImage.js +42 -0
- package/dist/images/loadImage.mjs +21 -0
- package/dist/images/resize.d.ts +3 -2
- package/dist/images/resize.js +60 -34
- package/dist/images/resize.mjs +9 -0
- package/dist/images/upload.d.ts +10 -9
- package/dist/images/upload.js +130 -25
- package/dist/images/upload.mjs +14 -0
- package/dist/index-1f738e52.d.ts +22 -0
- package/dist/index-22309f0c.d.ts +23 -0
- package/dist/index-6ae3c86b.d.ts +63 -0
- package/dist/index-c8fffc86.d.ts +90 -0
- package/dist/index-d652ed2c.d.ts +26 -0
- package/dist/index.d.ts +47 -36
- package/dist/index.js +1352 -62
- package/dist/index.mjs +87 -0
- package/dist/json.d.ts +8 -7
- package/dist/json.js +48 -28
- package/dist/json.mjs +29 -0
- package/dist/math/diffDate.d.ts +6 -5
- package/dist/math/diffDate.js +33 -11
- package/dist/math/diffDate.mjs +9 -0
- package/dist/math/index.d.ts +3 -30
- package/dist/math/index.js +159 -92
- package/dist/math/index.mjs +34 -0
- package/dist/math/positiveNumber.d.ts +3 -2
- package/dist/math/positiveNumber.js +53 -14
- package/dist/math/positiveNumber.mjs +10 -0
- package/dist/name/en.d.ts +5 -4
- package/dist/name/en.js +37 -19
- package/dist/name/en.mjs +9 -0
- package/dist/name/index.d.ts +3 -12
- package/dist/name/index.js +87 -12
- package/dist/name/index.mjs +20 -0
- package/dist/name/vi.d.ts +5 -4
- package/dist/name/vi.js +63 -25
- package/dist/name/vi.mjs +14 -0
- package/{esm/object.d.ts → dist/object-43aaaf92.d.ts} +79 -58
- package/dist/object.d.ts +1 -59
- package/dist/object.js +96 -71
- package/dist/object.mjs +21 -0
- package/dist/permission/index.d.ts +8 -7
- package/dist/permission/index.js +230 -6
- package/dist/permission/index.mjs +15 -0
- package/dist/permission/requestCamera.d.ts +1 -5
- package/dist/permission/requestCamera.js +49 -38
- package/dist/permission/requestCamera.mjs +9 -0
- package/dist/permission/requestDeviceOrientationControl.d.ts +1 -2
- package/dist/permission/requestDeviceOrientationControl.js +203 -36
- package/dist/permission/requestDeviceOrientationControl.mjs +10 -0
- package/dist/requestCamera-32b7dfc7.d.ts +14 -0
- package/dist/requestDeviceOrientationControl-b6458660.d.ts +11 -0
- package/dist/response/index.d.ts +49 -48
- package/dist/response/index.js +92 -47
- package/dist/response/index.mjs +16 -0
- package/dist/string/formatNumber.d.ts +7 -6
- package/dist/string/formatNumber.js +53 -12
- package/dist/string/formatNumber.mjs +10 -0
- package/dist/string/generatePassword.d.ts +10 -9
- package/dist/string/generatePassword.js +52 -21
- package/dist/string/generatePassword.mjs +10 -0
- package/dist/string/generateUUID.d.ts +3 -2
- package/dist/string/generateUUID.js +37 -34
- package/dist/string/generateUUID.mjs +9 -0
- package/dist/string/index.d.ts +6 -65
- package/dist/string/index.js +312 -157
- package/dist/string/index.mjs +31 -0
- package/dist/string/makeDaySlug.d.ts +31 -30
- package/dist/string/makeDaySlug.js +43 -19
- package/dist/string/makeDaySlug.mjs +9 -0
- package/dist/string/random.d.ts +14 -13
- package/dist/string/random.js +53 -22
- package/dist/string/random.mjs +19 -0
- package/dist/string/trimNull.d.ts +3 -2
- package/dist/string/trimNull.js +45 -17
- package/dist/string/trimNull.mjs +9 -0
- package/dist/string/url.d.ts +1 -36
- package/dist/string/url.js +115 -97
- package/dist/string/url.mjs +22 -0
- package/dist/url-60657387.d.ts +57 -0
- package/package.json +66 -66
- package/src/Checker.ts +29 -29
- package/src/EventDispatcher.ts +62 -62
- package/src/FileUpload.ts +66 -66
- package/src/Slug.ts +365 -365
- package/src/Timer.ts +7 -7
- package/src/Validation.ts +36 -36
- package/src/array.ts +285 -285
- package/src/color.ts +87 -87
- package/src/console/enableConsole.ts +8 -8
- package/src/console/index.ts +17 -17
- package/src/console/log.ts +39 -39
- package/src/device/browser.ts +29 -29
- package/src/device/camera.ts +207 -207
- package/src/device/index.ts +230 -230
- package/src/device/os.ts +29 -29
- package/src/file/createDir.ts +14 -14
- package/src/file/fileMove.ts +32 -32
- package/src/file/findFilesByExt.ts +46 -46
- package/src/file/index.ts +7 -7
- package/src/images/index.ts +3 -3
- package/src/images/loadImage.ts +16 -0
- package/src/images/resize.ts +35 -35
- package/src/images/upload.ts +24 -24
- package/src/index.ts +39 -39
- package/src/json.ts +29 -29
- package/src/math/diffDate.ts +10 -10
- package/src/math/index.ts +90 -90
- package/src/math/positiveNumber.ts +12 -12
- package/src/name/en.ts +27 -27
- package/src/name/index.ts +8 -8
- package/src/name/vi.ts +23 -23
- package/src/object.ts +72 -72
- package/src/permission/index.ts +6 -6
- package/src/permission/requestCamera.ts +43 -43
- package/src/permission/requestDeviceOrientationControl.ts +33 -33
- package/src/response/index.ts +45 -45
- package/src/string/formatNumber.ts +12 -12
- package/src/string/generatePassword.ts +18 -18
- package/src/string/generateUUID.ts +37 -37
- package/src/string/index.ts +180 -180
- package/src/string/makeDaySlug.ts +40 -40
- package/src/string/random.ts +24 -24
- package/src/string/trimNull.ts +16 -16
- package/src/string/url.ts +116 -116
- package/dist/Checker.js.map +0 -1
- package/dist/EventDispatcher.js.map +0 -1
- package/dist/FileUpload.js.map +0 -1
- package/dist/Slug.js.map +0 -1
- package/dist/Timer.js.map +0 -1
- package/dist/Validation.js.map +0 -1
- package/dist/array.js.map +0 -1
- package/dist/color.js.map +0 -1
- package/dist/console/enableConsole.js.map +0 -1
- package/dist/console/index.js.map +0 -1
- package/dist/console/log.js.map +0 -1
- package/dist/device/browser.js.map +0 -1
- package/dist/device/camera.js.map +0 -1
- package/dist/device/index.js.map +0 -1
- package/dist/device/os.js.map +0 -1
- package/dist/file/createDir.js.map +0 -1
- package/dist/file/fileMove.js.map +0 -1
- package/dist/file/findFilesByExt.js.map +0 -1
- package/dist/file/index.js.map +0 -1
- package/dist/images/index.js.map +0 -1
- package/dist/images/resize.js.map +0 -1
- package/dist/images/upload.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/json.js.map +0 -1
- package/dist/math/diffDate.js.map +0 -1
- package/dist/math/index.js.map +0 -1
- package/dist/math/positiveNumber.js.map +0 -1
- package/dist/name/en.js.map +0 -1
- package/dist/name/index.js.map +0 -1
- package/dist/name/vi.js.map +0 -1
- package/dist/object.js.map +0 -1
- package/dist/permission/index.js.map +0 -1
- package/dist/permission/requestCamera.js.map +0 -1
- package/dist/permission/requestDeviceOrientationControl.js.map +0 -1
- package/dist/response/index.js.map +0 -1
- package/dist/string/formatNumber.js.map +0 -1
- package/dist/string/generatePassword.js.map +0 -1
- package/dist/string/generateUUID.js.map +0 -1
- package/dist/string/index.js.map +0 -1
- package/dist/string/makeDaySlug.js.map +0 -1
- package/dist/string/random.js.map +0 -1
- package/dist/string/trimNull.js.map +0 -1
- package/dist/string/url.js.map +0 -1
- package/esm/Checker.d.ts +0 -8
- package/esm/Checker.js +0 -28
- package/esm/Checker.js.map +0 -1
- package/esm/EventDispatcher.d.ts +0 -13
- package/esm/EventDispatcher.js +0 -49
- package/esm/EventDispatcher.js.map +0 -1
- package/esm/FileUpload.d.ts +0 -12
- package/esm/FileUpload.js +0 -62
- package/esm/FileUpload.js.map +0 -1
- package/esm/Slug.d.ts +0 -9
- package/esm/Slug.js +0 -330
- package/esm/Slug.js.map +0 -1
- package/esm/Timer.d.ts +0 -4
- package/esm/Timer.js +0 -7
- package/esm/Timer.js.map +0 -1
- package/esm/Validation.d.ts +0 -5
- package/esm/Validation.js +0 -37
- package/esm/Validation.js.map +0 -1
- package/esm/array.d.ts +0 -113
- package/esm/array.js +0 -275
- package/esm/array.js.map +0 -1
- package/esm/color.d.ts +0 -23
- package/esm/color.js +0 -80
- package/esm/color.js.map +0 -1
- package/esm/console/enableConsole.d.ts +0 -2
- package/esm/console/enableConsole.js +0 -7
- package/esm/console/enableConsole.js.map +0 -1
- package/esm/console/index.d.ts +0 -11
- package/esm/console/index.js +0 -13
- package/esm/console/index.js.map +0 -1
- package/esm/console/log.d.ts +0 -15
- package/esm/console/log.js +0 -33
- package/esm/console/log.js.map +0 -1
- package/esm/device/browser.d.ts +0 -5
- package/esm/device/browser.js +0 -30
- package/esm/device/browser.js.map +0 -1
- package/esm/device/camera.d.ts +0 -7
- package/esm/device/camera.js +0 -168
- package/esm/device/camera.js.map +0 -1
- package/esm/device/index.d.ts +0 -5
- package/esm/device/index.js +0 -217
- package/esm/device/index.js.map +0 -1
- package/esm/device/os.d.ts +0 -11
- package/esm/device/os.js +0 -28
- package/esm/device/os.js.map +0 -1
- package/esm/file/createDir.d.ts +0 -5
- package/esm/file/createDir.js +0 -13
- package/esm/file/createDir.js.map +0 -1
- package/esm/file/fileMove.d.ts +0 -4
- package/esm/file/fileMove.js +0 -29
- package/esm/file/fileMove.js.map +0 -1
- package/esm/file/findFilesByExt.d.ts +0 -13
- package/esm/file/findFilesByExt.js +0 -46
- package/esm/file/findFilesByExt.js.map +0 -1
- package/esm/file/index.d.ts +0 -9
- package/esm/file/index.js +0 -6
- package/esm/file/index.js.map +0 -1
- package/esm/images/index.d.ts +0 -2
- package/esm/images/index.js +0 -4
- package/esm/images/index.js.map +0 -1
- package/esm/images/resize.d.ts +0 -2
- package/esm/images/resize.js +0 -31
- package/esm/images/resize.js.map +0 -1
- package/esm/images/upload.d.ts +0 -10
- package/esm/images/upload.js +0 -20
- package/esm/images/upload.js.map +0 -1
- package/esm/index.d.ts +0 -37
- package/esm/index.js +0 -38
- package/esm/index.js.map +0 -1
- package/esm/json.d.ts +0 -8
- package/esm/json.js +0 -28
- package/esm/json.js.map +0 -1
- package/esm/math/diffDate.d.ts +0 -5
- package/esm/math/diffDate.js +0 -10
- package/esm/math/diffDate.js.map +0 -1
- package/esm/math/index.d.ts +0 -30
- package/esm/math/index.js +0 -78
- package/esm/math/index.js.map +0 -1
- package/esm/math/positiveNumber.d.ts +0 -2
- package/esm/math/positiveNumber.js +0 -13
- package/esm/math/positiveNumber.js.map +0 -1
- package/esm/name/en.d.ts +0 -5
- package/esm/name/en.js +0 -22
- package/esm/name/en.js.map +0 -1
- package/esm/name/index.d.ts +0 -12
- package/esm/name/index.js +0 -6
- package/esm/name/index.js.map +0 -1
- package/esm/name/vi.d.ts +0 -5
- package/esm/name/vi.js +0 -24
- package/esm/name/vi.js.map +0 -1
- package/esm/object.js +0 -70
- package/esm/object.js.map +0 -1
- package/esm/permission/index.d.ts +0 -8
- package/esm/permission/index.js +0 -5
- package/esm/permission/index.js.map +0 -1
- package/esm/permission/requestCamera.d.ts +0 -5
- package/esm/permission/requestCamera.js +0 -39
- package/esm/permission/requestCamera.js.map +0 -1
- package/esm/permission/requestDeviceOrientationControl.d.ts +0 -2
- package/esm/permission/requestDeviceOrientationControl.js +0 -35
- package/esm/permission/requestDeviceOrientationControl.js.map +0 -1
- package/esm/response/index.d.ts +0 -49
- package/esm/response/index.js +0 -46
- package/esm/response/index.js.map +0 -1
- package/esm/string/formatNumber.d.ts +0 -6
- package/esm/string/formatNumber.js +0 -11
- package/esm/string/formatNumber.js.map +0 -1
- package/esm/string/generatePassword.d.ts +0 -9
- package/esm/string/generatePassword.js +0 -20
- package/esm/string/generatePassword.js.map +0 -1
- package/esm/string/generateUUID.d.ts +0 -2
- package/esm/string/generateUUID.js +0 -33
- package/esm/string/generateUUID.js.map +0 -1
- package/esm/string/index.d.ts +0 -65
- package/esm/string/index.js +0 -150
- package/esm/string/index.js.map +0 -1
- package/esm/string/makeDaySlug.d.ts +0 -31
- package/esm/string/makeDaySlug.js +0 -16
- package/esm/string/makeDaySlug.js.map +0 -1
- package/esm/string/random.d.ts +0 -14
- package/esm/string/random.js +0 -20
- package/esm/string/random.js.map +0 -1
- package/esm/string/trimNull.d.ts +0 -2
- package/esm/string/trimNull.js +0 -14
- package/esm/string/trimNull.js.map +0 -1
- package/esm/string/url.d.ts +0 -36
- package/esm/string/url.js +0 -98
- package/esm/string/url.js.map +0 -1
package/dist/object.js
CHANGED
|
@@ -1,80 +1,105 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (Array.isArray(object))
|
|
10
|
-
return object.length == 0;
|
|
11
|
-
if (JSON.stringify(object) == "{}")
|
|
12
|
-
return true;
|
|
13
|
-
return object == null;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
9
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
21
17
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/object.ts
|
|
21
|
+
var object_exports = {};
|
|
22
|
+
__export(object_exports, {
|
|
23
|
+
default: () => object_default,
|
|
24
|
+
isNull: () => isNull,
|
|
25
|
+
iterate: () => iterate,
|
|
26
|
+
objectToArray: () => objectToArray,
|
|
27
|
+
toArray: () => toArray,
|
|
28
|
+
toBool: () => toBool,
|
|
29
|
+
toFloat: () => toFloat,
|
|
30
|
+
toInt: () => toInt
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(object_exports);
|
|
33
|
+
var isNull = (object) => {
|
|
34
|
+
if (typeof object == "undefined")
|
|
35
|
+
return true;
|
|
36
|
+
if (object == "")
|
|
37
|
+
return true;
|
|
38
|
+
if (Array.isArray(object))
|
|
39
|
+
return object.length == 0;
|
|
40
|
+
if (JSON.stringify(object) == "{}")
|
|
41
|
+
return true;
|
|
42
|
+
return object == null;
|
|
28
43
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return parseFloat(object);
|
|
44
|
+
var toBool = (object) => {
|
|
45
|
+
if (isNull(object || ""))
|
|
46
|
+
return false;
|
|
47
|
+
object = (object || "").toString();
|
|
48
|
+
return object === "true" || object == "1";
|
|
35
49
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
obj = [obj];
|
|
42
|
-
}
|
|
43
|
-
return obj;
|
|
50
|
+
var toInt = (object) => {
|
|
51
|
+
if (isNull(object || ""))
|
|
52
|
+
return 0;
|
|
53
|
+
object = (object || "").toString();
|
|
54
|
+
return parseInt(object, 10);
|
|
44
55
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const array = [];
|
|
51
|
-
for (const key in obj) {
|
|
52
|
-
array.push(obj[key]);
|
|
53
|
-
}
|
|
54
|
-
return array;
|
|
56
|
+
var toFloat = (object) => {
|
|
57
|
+
if (isNull(object || ""))
|
|
58
|
+
return 0;
|
|
59
|
+
object = (object || "").toString();
|
|
60
|
+
return parseFloat(object);
|
|
55
61
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
callbackFn(obj, key, val);
|
|
64
|
-
if (typeof val === "object" && val !== null)
|
|
65
|
-
(0, exports.iterate)(val, callbackFn);
|
|
66
|
-
});
|
|
67
|
-
return obj;
|
|
62
|
+
var toArray = (obj) => {
|
|
63
|
+
if (isNull(obj))
|
|
64
|
+
return [];
|
|
65
|
+
if (!Array.isArray(obj)) {
|
|
66
|
+
obj = [obj];
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
toArray: exports.toArray,
|
|
76
|
-
objectToArray: exports.objectToArray,
|
|
77
|
-
iterate: exports.iterate,
|
|
70
|
+
var objectToArray = (obj) => {
|
|
71
|
+
const array = [];
|
|
72
|
+
for (const key in obj) {
|
|
73
|
+
array.push(obj[key]);
|
|
74
|
+
}
|
|
75
|
+
return array;
|
|
78
76
|
};
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
var iterate = (obj, callbackFn) => {
|
|
78
|
+
Object.keys(obj).forEach((key) => {
|
|
79
|
+
const val = obj[key];
|
|
80
|
+
callbackFn(obj, key, val);
|
|
81
|
+
if (typeof val === "object" && val !== null)
|
|
82
|
+
iterate(val, callbackFn);
|
|
83
|
+
});
|
|
84
|
+
return obj;
|
|
85
|
+
};
|
|
86
|
+
var xobject = {
|
|
87
|
+
isNull,
|
|
88
|
+
toBool,
|
|
89
|
+
toInt,
|
|
90
|
+
toFloat,
|
|
91
|
+
toArray,
|
|
92
|
+
objectToArray,
|
|
93
|
+
iterate
|
|
94
|
+
};
|
|
95
|
+
var object_default = xobject;
|
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
+
0 && (module.exports = {
|
|
98
|
+
isNull,
|
|
99
|
+
iterate,
|
|
100
|
+
objectToArray,
|
|
101
|
+
toArray,
|
|
102
|
+
toBool,
|
|
103
|
+
toFloat,
|
|
104
|
+
toInt
|
|
105
|
+
});
|
package/dist/object.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isNull,
|
|
3
|
+
iterate,
|
|
4
|
+
objectToArray,
|
|
5
|
+
object_default,
|
|
6
|
+
toArray,
|
|
7
|
+
toBool,
|
|
8
|
+
toFloat,
|
|
9
|
+
toInt
|
|
10
|
+
} from "./chunk-5UEMANWE.mjs";
|
|
11
|
+
import "./chunk-ZHNGZMRD.mjs";
|
|
12
|
+
export {
|
|
13
|
+
object_default as default,
|
|
14
|
+
isNull,
|
|
15
|
+
iterate,
|
|
16
|
+
objectToArray,
|
|
17
|
+
toArray,
|
|
18
|
+
toBool,
|
|
19
|
+
toFloat,
|
|
20
|
+
toInt
|
|
21
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
declare const permission: {
|
|
2
|
-
requestCamera: ({ audio, video }: {
|
|
3
|
-
audio?: boolean | undefined;
|
|
4
|
-
video?: boolean | undefined;
|
|
5
|
-
}) => false | Promise<unknown>;
|
|
6
|
-
requestDeviceOrientationControl: () => false | Promise<unknown>;
|
|
1
|
+
declare const permission: {
|
|
2
|
+
requestCamera: ({ audio, video }: {
|
|
3
|
+
audio?: boolean | undefined;
|
|
4
|
+
video?: boolean | undefined;
|
|
5
|
+
}) => false | Promise<unknown>;
|
|
6
|
+
requestDeviceOrientationControl: () => false | Promise<unknown>;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
export { permission as default };
|
package/dist/permission/index.js
CHANGED
|
@@ -1,7 +1,231 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/permission/index.ts
|
|
21
|
+
var permission_exports = {};
|
|
22
|
+
__export(permission_exports, {
|
|
23
|
+
default: () => permission_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(permission_exports);
|
|
26
|
+
|
|
27
|
+
// src/permission/requestCamera.ts
|
|
28
|
+
var requestCamera = ({ audio = true, video = true }) => {
|
|
29
|
+
if (typeof window == "undefined")
|
|
30
|
+
return false;
|
|
31
|
+
return new Promise((resolve, reject) => {
|
|
32
|
+
if (navigator.mediaDevices.getUserMedia === void 0) {
|
|
33
|
+
navigator.mediaDevices.getUserMedia = function(constraints) {
|
|
34
|
+
var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
|
|
35
|
+
if (!getUserMedia) {
|
|
36
|
+
return Promise.reject(new Error("getUserMedia is not implemented in this browser"));
|
|
37
|
+
}
|
|
38
|
+
return new Promise(function(resolve2, reject2) {
|
|
39
|
+
getUserMedia.call(navigator, constraints, resolve2, reject2);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
navigator.mediaDevices.getUserMedia({ audio, video }).then(function(stream) {
|
|
44
|
+
resolve(true);
|
|
45
|
+
}).catch(function(err) {
|
|
46
|
+
console.log(err.name + ": " + err.message);
|
|
47
|
+
resolve(false);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/device/index.ts
|
|
53
|
+
var isAndroid = () => {
|
|
54
|
+
const deviceInfo2 = checkOS();
|
|
55
|
+
if (deviceInfo2)
|
|
56
|
+
return deviceInfo2.os.toLowerCase() == "android";
|
|
57
|
+
console.log("Can't check OS");
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
var deviceInfo;
|
|
61
|
+
var checkOS = () => {
|
|
62
|
+
var _a;
|
|
63
|
+
if (typeof window == "undefined")
|
|
64
|
+
return {};
|
|
65
|
+
if (typeof deviceInfo == "undefined") {
|
|
66
|
+
var unknown = "-";
|
|
67
|
+
var screenSize = "";
|
|
68
|
+
if (screen.width) {
|
|
69
|
+
var width = screen.width ? screen.width : "";
|
|
70
|
+
var height = screen.height ? screen.height : "";
|
|
71
|
+
screenSize += "" + width + " x " + height;
|
|
72
|
+
}
|
|
73
|
+
var nVer = navigator.appVersion;
|
|
74
|
+
var nAgt = navigator.userAgent;
|
|
75
|
+
var browser = navigator.appName;
|
|
76
|
+
var version = "" + parseFloat(navigator.appVersion);
|
|
77
|
+
var majorVersion = parseInt(navigator.appVersion, 10);
|
|
78
|
+
var nameOffset, verOffset, ix;
|
|
79
|
+
if ((verOffset = nAgt.indexOf("Opera")) != -1) {
|
|
80
|
+
browser = "Opera";
|
|
81
|
+
version = nAgt.substring(verOffset + 6);
|
|
82
|
+
if ((verOffset = nAgt.indexOf("Version")) != -1) {
|
|
83
|
+
version = nAgt.substring(verOffset + 8);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if ((verOffset = nAgt.indexOf("OPR")) != -1) {
|
|
87
|
+
browser = "Opera";
|
|
88
|
+
version = nAgt.substring(verOffset + 4);
|
|
89
|
+
} else if ((verOffset = nAgt.indexOf("Edge")) != -1) {
|
|
90
|
+
browser = "Microsoft Edge";
|
|
91
|
+
version = nAgt.substring(verOffset + 5);
|
|
92
|
+
} else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
|
|
93
|
+
browser = "Microsoft Internet Explorer";
|
|
94
|
+
version = nAgt.substring(verOffset + 5);
|
|
95
|
+
} else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
|
|
96
|
+
browser = "Chrome";
|
|
97
|
+
version = nAgt.substring(verOffset + 7);
|
|
98
|
+
} else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
|
|
99
|
+
browser = "Safari";
|
|
100
|
+
version = nAgt.substring(verOffset + 7);
|
|
101
|
+
if ((verOffset = nAgt.indexOf("Version")) != -1) {
|
|
102
|
+
version = nAgt.substring(verOffset + 8);
|
|
103
|
+
}
|
|
104
|
+
} else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
|
|
105
|
+
browser = "Firefox";
|
|
106
|
+
version = nAgt.substring(verOffset + 8);
|
|
107
|
+
} else if (nAgt.indexOf("Trident/") != -1) {
|
|
108
|
+
browser = "Microsoft Internet Explorer";
|
|
109
|
+
version = nAgt.substring(nAgt.indexOf("rv:") + 3);
|
|
110
|
+
} else if ((nameOffset = nAgt.lastIndexOf(" ") + 1) < (verOffset = nAgt.lastIndexOf("/"))) {
|
|
111
|
+
browser = nAgt.substring(nameOffset, verOffset);
|
|
112
|
+
version = nAgt.substring(verOffset + 1);
|
|
113
|
+
if (browser.toLowerCase() == browser.toUpperCase()) {
|
|
114
|
+
browser = navigator.appName;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if ((ix = version.indexOf(";")) != -1)
|
|
118
|
+
version = version.substring(0, ix);
|
|
119
|
+
if ((ix = version.indexOf(" ")) != -1)
|
|
120
|
+
version = version.substring(0, ix);
|
|
121
|
+
if ((ix = version.indexOf(")")) != -1)
|
|
122
|
+
version = version.substring(0, ix);
|
|
123
|
+
majorVersion = parseInt("" + version, 10);
|
|
124
|
+
if (isNaN(majorVersion)) {
|
|
125
|
+
version = "" + parseFloat(navigator.appVersion);
|
|
126
|
+
majorVersion = parseInt(navigator.appVersion, 10);
|
|
127
|
+
}
|
|
128
|
+
var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer);
|
|
129
|
+
var cookieEnabled = navigator.cookieEnabled ? true : false;
|
|
130
|
+
if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
|
|
131
|
+
document.cookie = "testcookie";
|
|
132
|
+
cookieEnabled = document.cookie.indexOf("testcookie") != -1 ? true : false;
|
|
133
|
+
}
|
|
134
|
+
var os = unknown;
|
|
135
|
+
var clientStrings = [
|
|
136
|
+
{ s: "Windows 10", r: /(Windows 10.0|Windows NT 10.0)/ },
|
|
137
|
+
{ s: "Windows 8.1", r: /(Windows 8.1|Windows NT 6.3)/ },
|
|
138
|
+
{ s: "Windows 8", r: /(Windows 8|Windows NT 6.2)/ },
|
|
139
|
+
{ s: "Windows 7", r: /(Windows 7|Windows NT 6.1)/ },
|
|
140
|
+
{ s: "Windows Vista", r: /Windows NT 6.0/ },
|
|
141
|
+
{ s: "Windows Server 2003", r: /Windows NT 5.2/ },
|
|
142
|
+
{ s: "Windows XP", r: /(Windows NT 5.1|Windows XP)/ },
|
|
143
|
+
{ s: "Windows 2000", r: /(Windows NT 5.0|Windows 2000)/ },
|
|
144
|
+
{ s: "Windows ME", r: /(Win 9x 4.90|Windows ME)/ },
|
|
145
|
+
{ s: "Windows 98", r: /(Windows 98|Win98)/ },
|
|
146
|
+
{ s: "Windows 95", r: /(Windows 95|Win95|Windows_95)/ },
|
|
147
|
+
{ s: "Windows NT 4.0", r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/ },
|
|
148
|
+
{ s: "Windows CE", r: /Windows CE/ },
|
|
149
|
+
{ s: "Windows 3.11", r: /Win16/ },
|
|
150
|
+
{ s: "Android", r: /Android/ },
|
|
151
|
+
{ s: "Open BSD", r: /OpenBSD/ },
|
|
152
|
+
{ s: "Sun OS", r: /SunOS/ },
|
|
153
|
+
{ s: "Linux", r: /(Linux|X11)/ },
|
|
154
|
+
{ s: "iOS", r: /(iPhone|iPad|iPod)/ },
|
|
155
|
+
{ s: "Mac OS X", r: /Mac OS X/ },
|
|
156
|
+
{ s: "Mac OS", r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/ },
|
|
157
|
+
{ s: "QNX", r: /QNX/ },
|
|
158
|
+
{ s: "UNIX", r: /UNIX/ },
|
|
159
|
+
{ s: "BeOS", r: /BeOS/ },
|
|
160
|
+
{ s: "OS/2", r: /OS\/2/ },
|
|
161
|
+
{ s: "Search Bot", r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/ }
|
|
162
|
+
];
|
|
163
|
+
for (var id in clientStrings) {
|
|
164
|
+
var cs = clientStrings[id];
|
|
165
|
+
if (cs.r.test(nAgt)) {
|
|
166
|
+
os = cs.s;
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
var osVersion = unknown;
|
|
171
|
+
if (/Windows/.test(os)) {
|
|
172
|
+
const _osv = /Windows (.*)/.exec(os) || [];
|
|
173
|
+
osVersion = _osv[1] || "unknown";
|
|
174
|
+
os = "Windows";
|
|
175
|
+
}
|
|
176
|
+
switch (os) {
|
|
177
|
+
case "Mac OS X":
|
|
178
|
+
const _osvx = /Mac OS X (10[\.\_\d]+)/.exec(nAgt);
|
|
179
|
+
osVersion = (_osvx == null ? void 0 : _osvx[1]) || "unknown";
|
|
180
|
+
break;
|
|
181
|
+
case "Android":
|
|
182
|
+
osVersion = ((_a = /Android ([\.\_\d]+)/.exec(nAgt)) == null ? void 0 : _a[1]) || "unknown";
|
|
183
|
+
break;
|
|
184
|
+
case "iOS":
|
|
185
|
+
const _osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer) || [0, 0, 0];
|
|
186
|
+
osVersion = (_osVersion[1] || 0) + "." + (_osVersion[2] || 0) + "." + (_osVersion[3] || 0);
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
const _deviceInfo = {
|
|
190
|
+
screen: screenSize,
|
|
191
|
+
browser,
|
|
192
|
+
browserVersion: version,
|
|
193
|
+
browserMajorVersion: majorVersion,
|
|
194
|
+
mobile,
|
|
195
|
+
os,
|
|
196
|
+
osVersion,
|
|
197
|
+
cookies: cookieEnabled
|
|
198
|
+
};
|
|
199
|
+
deviceInfo = _deviceInfo;
|
|
200
|
+
}
|
|
201
|
+
return deviceInfo;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// src/permission/requestDeviceOrientationControl.ts
|
|
205
|
+
var requestDeviceOrientationControl = () => {
|
|
206
|
+
if (typeof window == "undefined")
|
|
207
|
+
return false;
|
|
208
|
+
return new Promise((resolve, reject) => {
|
|
209
|
+
if (isAndroid())
|
|
210
|
+
resolve(true);
|
|
211
|
+
if (typeof DeviceMotionEvent != "undefined" && DeviceMotionEvent.requestPermission) {
|
|
212
|
+
DeviceMotionEvent.requestPermission().then((response) => {
|
|
213
|
+
if (response == "granted") {
|
|
214
|
+
resolve(true);
|
|
215
|
+
} else {
|
|
216
|
+
resolve(false);
|
|
217
|
+
}
|
|
218
|
+
}).catch((response) => {
|
|
219
|
+
resolve(false);
|
|
220
|
+
});
|
|
221
|
+
} else {
|
|
222
|
+
resolve(false);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
// src/permission/index.ts
|
|
228
|
+
var permission = { requestCamera, requestDeviceOrientationControl };
|
|
229
|
+
var permission_default = permission;
|
|
230
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
231
|
+
0 && (module.exports = {});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestDeviceOrientationControl
|
|
3
|
+
} from "../chunk-7ZCEZM7K.mjs";
|
|
4
|
+
import "../chunk-RDGP2CKM.mjs";
|
|
5
|
+
import {
|
|
6
|
+
requestCamera
|
|
7
|
+
} from "../chunk-NUTQDHLQ.mjs";
|
|
8
|
+
import "../chunk-ZHNGZMRD.mjs";
|
|
9
|
+
|
|
10
|
+
// src/permission/index.ts
|
|
11
|
+
var permission = { requestCamera, requestDeviceOrientationControl };
|
|
12
|
+
var permission_default = permission;
|
|
13
|
+
export {
|
|
14
|
+
permission_default as default
|
|
15
|
+
};
|
|
@@ -1,43 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/permission/requestCamera.ts
|
|
21
|
+
var requestCamera_exports = {};
|
|
22
|
+
__export(requestCamera_exports, {
|
|
23
|
+
default: () => requestCamera_default,
|
|
24
|
+
requestCamera: () => requestCamera
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(requestCamera_exports);
|
|
27
|
+
var requestCamera = ({ audio = true, video = true }) => {
|
|
28
|
+
if (typeof window == "undefined")
|
|
29
|
+
return false;
|
|
30
|
+
return new Promise((resolve, reject) => {
|
|
31
|
+
if (navigator.mediaDevices.getUserMedia === void 0) {
|
|
32
|
+
navigator.mediaDevices.getUserMedia = function(constraints) {
|
|
33
|
+
var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
|
|
34
|
+
if (!getUserMedia) {
|
|
35
|
+
return Promise.reject(new Error("getUserMedia is not implemented in this browser"));
|
|
29
36
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.then(function (stream) {
|
|
33
|
-
resolve(true);
|
|
34
|
-
})
|
|
35
|
-
.catch(function (err) {
|
|
36
|
-
console.log(err.name + ": " + err.message);
|
|
37
|
-
resolve(false);
|
|
37
|
+
return new Promise(function(resolve2, reject2) {
|
|
38
|
+
getUserMedia.call(navigator, constraints, resolve2, reject2);
|
|
38
39
|
});
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
navigator.mediaDevices.getUserMedia({ audio, video }).then(function(stream) {
|
|
43
|
+
resolve(true);
|
|
44
|
+
}).catch(function(err) {
|
|
45
|
+
console.log(err.name + ": " + err.message);
|
|
46
|
+
resolve(false);
|
|
39
47
|
});
|
|
48
|
+
});
|
|
40
49
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
var requestCamera_default = requestCamera;
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
requestCamera
|
|
54
|
+
});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export default requestDeviceOrientationControl;
|
|
1
|
+
export { a as default, a as requestDeviceOrientationControl } from '../requestDeviceOrientationControl-b6458660.js';
|