diginext-utils 1.0.3 → 1.0.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/dist/README.md +3 -0
- package/{babel.config.json → dist/babel.config.json} +0 -0
- package/dist/index.js +171 -0
- package/dist/package.json +35 -0
- package/dist/{Camera.js → src/Camera.js} +0 -0
- package/dist/{Checker.js → src/Checker.js} +0 -0
- package/dist/{Color.js → src/Color.js} +0 -0
- package/dist/{Device.js → src/Device.js} +0 -0
- package/dist/{EventDispatcher.js → src/EventDispatcher.js} +0 -0
- package/dist/{FileUpload.js → src/FileUpload.js} +0 -0
- package/dist/{FileUtils.js → src/FileUtils.js} +0 -0
- package/dist/{Slug.js → src/Slug.js} +0 -0
- package/dist/{Timer.js → src/Timer.js} +0 -0
- package/dist/{UserLS.js → src/UserLS.js} +0 -0
- package/dist/{Validation.js → src/Validation.js} +0 -0
- package/dist/{array → src/array}/index.js +0 -0
- package/dist/{backend → src/backend}/file/createDir.js +0 -0
- package/dist/{backend → src/backend}/file/fileMove.js +0 -0
- package/dist/{backend → src/backend}/file/findFilesByExt.js +0 -0
- package/dist/{backend → src/backend}/zip/extractZip.js +0 -0
- package/dist/{console → src/console}/enableConsole.js +0 -0
- package/dist/{console → src/console}/index.js +0 -0
- package/dist/{device → src/device}/browser.js +0 -0
- package/dist/{device → src/device}/camera.js +0 -0
- package/dist/{device → src/device}/index.js +0 -0
- package/dist/{math → src/math}/index.js +0 -0
- package/dist/{object → src/object}/index.js +0 -0
- package/dist/{permission → src/permission}/requestCamera.js +0 -0
- package/dist/{permission → src/permission}/requestDeviceOrientationControl.js +0 -0
- package/dist/{string → src/string}/index.js +0 -0
- package/dist/{string → src/string}/url.js +0 -0
- package/package.json +7 -2
- package/.eslintrc.json +0 -21
- package/src/Camera.js +0 -412
- package/src/Checker.js +0 -24
- package/src/Color.js +0 -81
- package/src/Device.js +0 -56
- package/src/EventDispatcher.js +0 -58
- package/src/FileUpload.js +0 -59
- package/src/FileUtils.js +0 -30
- package/src/Slug.js +0 -383
- package/src/Timer.js +0 -7
- package/src/UserLS.js +0 -104
- package/src/Validation.js +0 -35
- package/src/array/index.js +0 -301
- package/src/backend/file/createDir.js +0 -13
- package/src/backend/file/fileMove.js +0 -35
- package/src/backend/file/findFilesByExt.js +0 -42
- package/src/backend/zip/extractZip.js +0 -58
- package/src/console/enableConsole.js +0 -6
- package/src/console/index.js +0 -10
- package/src/device/browser.js +0 -29
- package/src/device/camera.js +0 -228
- package/src/device/index.js +0 -233
- package/src/math/index.js +0 -211
- package/src/object/index.js +0 -41
- package/src/permission/requestCamera.js +0 -43
- package/src/permission/requestDeviceOrientationControl.js +0 -32
- package/src/string/index.js +0 -228
- package/src/string/url.js +0 -93
package/dist/README.md
ADDED
|
File without changes
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Timer: true,
|
|
8
|
+
requestCamera: true,
|
|
9
|
+
requestDeviceOrientationControl: true,
|
|
10
|
+
enableConsole: true
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "Timer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Timer.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "enableConsole", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _enableConsole.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "requestCamera", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _requestCamera.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "requestDeviceOrientationControl", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _requestDeviceOrientationControl.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var _array = require("./src/array");
|
|
38
|
+
|
|
39
|
+
Object.keys(_array).forEach(function (key) {
|
|
40
|
+
if (key === "default" || key === "__esModule") return;
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
42
|
+
if (key in exports && exports[key] === _array[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _array[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var _device = require("./src/device");
|
|
52
|
+
|
|
53
|
+
Object.keys(_device).forEach(function (key) {
|
|
54
|
+
if (key === "default" || key === "__esModule") return;
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
56
|
+
if (key in exports && exports[key] === _device[key]) return;
|
|
57
|
+
Object.defineProperty(exports, key, {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function get() {
|
|
60
|
+
return _device[key];
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
var _console = require("./src/console");
|
|
66
|
+
|
|
67
|
+
Object.keys(_console).forEach(function (key) {
|
|
68
|
+
if (key === "default" || key === "__esModule") return;
|
|
69
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
70
|
+
if (key in exports && exports[key] === _console[key]) return;
|
|
71
|
+
Object.defineProperty(exports, key, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function get() {
|
|
74
|
+
return _console[key];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var _browser = require("./src/device/browser");
|
|
80
|
+
|
|
81
|
+
Object.keys(_browser).forEach(function (key) {
|
|
82
|
+
if (key === "default" || key === "__esModule") return;
|
|
83
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
84
|
+
if (key in exports && exports[key] === _browser[key]) return;
|
|
85
|
+
Object.defineProperty(exports, key, {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function get() {
|
|
88
|
+
return _browser[key];
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
var _camera = require("./src/device/camera");
|
|
94
|
+
|
|
95
|
+
Object.keys(_camera).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
98
|
+
if (key in exports && exports[key] === _camera[key]) return;
|
|
99
|
+
Object.defineProperty(exports, key, {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function get() {
|
|
102
|
+
return _camera[key];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
var _math = require("./src/math");
|
|
108
|
+
|
|
109
|
+
Object.keys(_math).forEach(function (key) {
|
|
110
|
+
if (key === "default" || key === "__esModule") return;
|
|
111
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
112
|
+
if (key in exports && exports[key] === _math[key]) return;
|
|
113
|
+
Object.defineProperty(exports, key, {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function get() {
|
|
116
|
+
return _math[key];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
var _object = require("./src/object");
|
|
122
|
+
|
|
123
|
+
Object.keys(_object).forEach(function (key) {
|
|
124
|
+
if (key === "default" || key === "__esModule") return;
|
|
125
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
126
|
+
if (key in exports && exports[key] === _object[key]) return;
|
|
127
|
+
Object.defineProperty(exports, key, {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function get() {
|
|
130
|
+
return _object[key];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
var _string = require("./src/string");
|
|
136
|
+
|
|
137
|
+
Object.keys(_string).forEach(function (key) {
|
|
138
|
+
if (key === "default" || key === "__esModule") return;
|
|
139
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
140
|
+
if (key in exports && exports[key] === _string[key]) return;
|
|
141
|
+
Object.defineProperty(exports, key, {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function get() {
|
|
144
|
+
return _string[key];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
var _url = require("./src/string/url");
|
|
150
|
+
|
|
151
|
+
Object.keys(_url).forEach(function (key) {
|
|
152
|
+
if (key === "default" || key === "__esModule") return;
|
|
153
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
154
|
+
if (key in exports && exports[key] === _url[key]) return;
|
|
155
|
+
Object.defineProperty(exports, key, {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function get() {
|
|
158
|
+
return _url[key];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
var _Timer = _interopRequireDefault(require("./src/Timer"));
|
|
164
|
+
|
|
165
|
+
var _requestCamera = _interopRequireDefault(require("./src/permission/requestCamera"));
|
|
166
|
+
|
|
167
|
+
var _requestDeviceOrientationControl = _interopRequireDefault(require("./src/permission/requestDeviceOrientationControl"));
|
|
168
|
+
|
|
169
|
+
var _enableConsole = _interopRequireDefault(require("./src/console/enableConsole"));
|
|
170
|
+
|
|
171
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "diginext-utils",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "TOP GROUP (a.k.a Digitop)",
|
|
6
|
+
"email": "dev@wearetopgroup.com"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"publish": "npm publish",
|
|
16
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
17
|
+
"build": "rm -rf dist && NODE_ENV=production babel . --out-dir dist --copy-files"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@babel/polyfill": "^7.12.1",
|
|
21
|
+
"@babel/preset-react": "^7.18.6",
|
|
22
|
+
"@babel/runtime": "^7.18.9",
|
|
23
|
+
"core-js": "^3.24.1",
|
|
24
|
+
"gsap": "^3.10.4",
|
|
25
|
+
"lodash": "^4.17.21"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/cli": "^7.18.10",
|
|
32
|
+
"@babel/core": "^7.18.10",
|
|
33
|
+
"@babel/preset-env": "^7.18.10"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "diginext-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "TOP GROUP (a.k.a Digitop)",
|
|
6
6
|
"email": "dev@wearetopgroup.com"
|
|
7
7
|
},
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
10
14
|
"scripts": {
|
|
11
15
|
"publish": "npm publish",
|
|
12
16
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
13
|
-
"build": "rm -rf dist && NODE_ENV=production babel
|
|
17
|
+
"build": "rm -rf dist && NODE_ENV=production babel . --out-dir dist --copy-files"
|
|
14
18
|
},
|
|
15
19
|
"dependencies": {
|
|
16
20
|
"@babel/polyfill": "^7.12.1",
|
|
17
21
|
"@babel/preset-react": "^7.18.6",
|
|
18
22
|
"@babel/runtime": "^7.18.9",
|
|
23
|
+
"core-js": "^3.24.1",
|
|
19
24
|
"gsap": "^3.10.4",
|
|
20
25
|
"lodash": "^4.17.21"
|
|
21
26
|
},
|
package/.eslintrc.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"parserOptions": {
|
|
7
|
-
"ecmaFeatures": {
|
|
8
|
-
"jsx": true
|
|
9
|
-
},
|
|
10
|
-
"ecmaVersion": 13,
|
|
11
|
-
"sourceType": "module"
|
|
12
|
-
},
|
|
13
|
-
"plugins": ["react"],
|
|
14
|
-
"extends": "next",
|
|
15
|
-
"rules": {
|
|
16
|
-
"react-hooks/exhaustive-deps": "off",
|
|
17
|
-
"react/no-unescaped-entities": "off",
|
|
18
|
-
"react/display-name": "off",
|
|
19
|
-
"@next/next/no-img-element": "off"
|
|
20
|
-
}
|
|
21
|
-
}
|