diginext-utils 1.0.3 → 1.0.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.
Files changed (60) hide show
  1. package/dist/README.md +3 -0
  2. package/{babel.config.json → dist/babel.config.json} +0 -0
  3. package/dist/index.js +148 -0
  4. package/dist/package.json +34 -0
  5. package/dist/{Camera.js → src/Camera.js} +0 -0
  6. package/dist/{Checker.js → src/Checker.js} +0 -0
  7. package/dist/{Color.js → src/Color.js} +0 -0
  8. package/dist/{Device.js → src/Device.js} +0 -0
  9. package/dist/{EventDispatcher.js → src/EventDispatcher.js} +0 -0
  10. package/dist/{FileUpload.js → src/FileUpload.js} +0 -0
  11. package/dist/{FileUtils.js → src/FileUtils.js} +0 -0
  12. package/dist/{Slug.js → src/Slug.js} +0 -0
  13. package/dist/{Timer.js → src/Timer.js} +0 -0
  14. package/dist/{UserLS.js → src/UserLS.js} +0 -0
  15. package/dist/{Validation.js → src/Validation.js} +0 -0
  16. package/dist/{array → src/array}/index.js +0 -0
  17. package/dist/{backend → src/backend}/file/createDir.js +0 -0
  18. package/dist/{backend → src/backend}/file/fileMove.js +0 -0
  19. package/dist/{backend → src/backend}/file/findFilesByExt.js +0 -0
  20. package/dist/{backend → src/backend}/zip/extractZip.js +0 -0
  21. package/dist/{console → src/console}/enableConsole.js +0 -0
  22. package/dist/{console → src/console}/index.js +0 -0
  23. package/dist/{device → src/device}/browser.js +0 -0
  24. package/dist/{device → src/device}/camera.js +0 -0
  25. package/dist/{device → src/device}/index.js +0 -0
  26. package/dist/{math → src/math}/index.js +0 -0
  27. package/dist/{object → src/object}/index.js +0 -0
  28. package/dist/{permission → src/permission}/requestCamera.js +0 -0
  29. package/dist/{permission → src/permission}/requestDeviceOrientationControl.js +0 -0
  30. package/dist/{string → src/string}/index.js +0 -0
  31. package/dist/{string → src/string}/url.js +0 -0
  32. package/package.json +6 -2
  33. package/.eslintrc.json +0 -21
  34. package/src/Camera.js +0 -412
  35. package/src/Checker.js +0 -24
  36. package/src/Color.js +0 -81
  37. package/src/Device.js +0 -56
  38. package/src/EventDispatcher.js +0 -58
  39. package/src/FileUpload.js +0 -59
  40. package/src/FileUtils.js +0 -30
  41. package/src/Slug.js +0 -383
  42. package/src/Timer.js +0 -7
  43. package/src/UserLS.js +0 -104
  44. package/src/Validation.js +0 -35
  45. package/src/array/index.js +0 -301
  46. package/src/backend/file/createDir.js +0 -13
  47. package/src/backend/file/fileMove.js +0 -35
  48. package/src/backend/file/findFilesByExt.js +0 -42
  49. package/src/backend/zip/extractZip.js +0 -58
  50. package/src/console/enableConsole.js +0 -6
  51. package/src/console/index.js +0 -10
  52. package/src/device/browser.js +0 -29
  53. package/src/device/camera.js +0 -228
  54. package/src/device/index.js +0 -233
  55. package/src/math/index.js +0 -211
  56. package/src/object/index.js +0 -41
  57. package/src/permission/requestCamera.js +0 -43
  58. package/src/permission/requestDeviceOrientationControl.js +0 -32
  59. package/src/string/index.js +0 -228
  60. package/src/string/url.js +0 -93
package/dist/README.md ADDED
@@ -0,0 +1,3 @@
1
+ ## Support
2
+
3
+ Liên hệ [TOP GROUP Developers](mailto:dev@wearetopgroup.com) nếu cần hỗ trợ.
File without changes
package/dist/index.js ADDED
@@ -0,0 +1,148 @@
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
+ };
11
+ Object.defineProperty(exports, "Timer", {
12
+ enumerable: true,
13
+ get: function get() {
14
+ return _Timer.default;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, "requestCamera", {
18
+ enumerable: true,
19
+ get: function get() {
20
+ return _requestCamera.default;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "requestDeviceOrientationControl", {
24
+ enumerable: true,
25
+ get: function get() {
26
+ return _requestDeviceOrientationControl.default;
27
+ }
28
+ });
29
+
30
+ var _array = require("./src/array");
31
+
32
+ Object.keys(_array).forEach(function (key) {
33
+ if (key === "default" || key === "__esModule") return;
34
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
35
+ if (key in exports && exports[key] === _array[key]) return;
36
+ Object.defineProperty(exports, key, {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _array[key];
40
+ }
41
+ });
42
+ });
43
+
44
+ var _device = require("./src/device");
45
+
46
+ Object.keys(_device).forEach(function (key) {
47
+ if (key === "default" || key === "__esModule") return;
48
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
49
+ if (key in exports && exports[key] === _device[key]) return;
50
+ Object.defineProperty(exports, key, {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _device[key];
54
+ }
55
+ });
56
+ });
57
+
58
+ var _browser = require("./src/device/browser");
59
+
60
+ Object.keys(_browser).forEach(function (key) {
61
+ if (key === "default" || key === "__esModule") return;
62
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
63
+ if (key in exports && exports[key] === _browser[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _browser[key];
68
+ }
69
+ });
70
+ });
71
+
72
+ var _camera = require("./src/device/camera");
73
+
74
+ Object.keys(_camera).forEach(function (key) {
75
+ if (key === "default" || key === "__esModule") return;
76
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
77
+ if (key in exports && exports[key] === _camera[key]) return;
78
+ Object.defineProperty(exports, key, {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _camera[key];
82
+ }
83
+ });
84
+ });
85
+
86
+ var _math = require("./src/math");
87
+
88
+ Object.keys(_math).forEach(function (key) {
89
+ if (key === "default" || key === "__esModule") return;
90
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
91
+ if (key in exports && exports[key] === _math[key]) return;
92
+ Object.defineProperty(exports, key, {
93
+ enumerable: true,
94
+ get: function get() {
95
+ return _math[key];
96
+ }
97
+ });
98
+ });
99
+
100
+ var _object = require("./src/object");
101
+
102
+ Object.keys(_object).forEach(function (key) {
103
+ if (key === "default" || key === "__esModule") return;
104
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
105
+ if (key in exports && exports[key] === _object[key]) return;
106
+ Object.defineProperty(exports, key, {
107
+ enumerable: true,
108
+ get: function get() {
109
+ return _object[key];
110
+ }
111
+ });
112
+ });
113
+
114
+ var _string = require("./src/string");
115
+
116
+ Object.keys(_string).forEach(function (key) {
117
+ if (key === "default" || key === "__esModule") return;
118
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
119
+ if (key in exports && exports[key] === _string[key]) return;
120
+ Object.defineProperty(exports, key, {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _string[key];
124
+ }
125
+ });
126
+ });
127
+
128
+ var _url = require("./src/string/url");
129
+
130
+ Object.keys(_url).forEach(function (key) {
131
+ if (key === "default" || key === "__esModule") return;
132
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
133
+ if (key in exports && exports[key] === _url[key]) return;
134
+ Object.defineProperty(exports, key, {
135
+ enumerable: true,
136
+ get: function get() {
137
+ return _url[key];
138
+ }
139
+ });
140
+ });
141
+
142
+ var _Timer = _interopRequireDefault(require("./src/Timer"));
143
+
144
+ var _requestCamera = _interopRequireDefault(require("./src/permission/requestCamera"));
145
+
146
+ var _requestDeviceOrientationControl = _interopRequireDefault(require("./src/permission/requestDeviceOrientationControl"));
147
+
148
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "diginext-utils",
3
+ "version": "1.0.5",
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
+ "gsap": "^3.10.4",
24
+ "lodash": "^4.17.21"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "devDependencies": {
30
+ "@babel/cli": "^7.18.10",
31
+ "@babel/core": "^7.18.10",
32
+ "@babel/preset-env": "^7.18.10"
33
+ }
34
+ }
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,16 +1,20 @@
1
1
  {
2
2
  "name": "diginext-utils",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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 src --out-dir dist --copy-files"
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",
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
- }