diginext-utils 2.0.33 → 2.0.35

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 (184) hide show
  1. package/package.json +1 -1
  2. package/src/console/index.ts +2 -2
  3. package/src/string/url.ts +2 -2
  4. package/dist/Checker.d.ts +0 -9
  5. package/dist/Checker.js +0 -52
  6. package/dist/Checker.mjs +0 -29
  7. package/dist/EventDispatcher.d.ts +0 -13
  8. package/dist/EventDispatcher.js +0 -77
  9. package/dist/EventDispatcher.mjs +0 -54
  10. package/dist/FileUpload.d.ts +0 -12
  11. package/dist/FileUpload.js +0 -85
  12. package/dist/FileUpload.mjs +0 -62
  13. package/dist/Slug.d.ts +0 -10
  14. package/dist/Slug.js +0 -354
  15. package/dist/Slug.mjs +0 -331
  16. package/dist/Timer-7b0c4e7c.d.ts +0 -11
  17. package/dist/Timer.d.ts +0 -1
  18. package/dist/Timer.js +0 -33
  19. package/dist/Timer.mjs +0 -7
  20. package/dist/Validation.d.ts +0 -6
  21. package/dist/Validation.js +0 -56
  22. package/dist/Validation.mjs +0 -35
  23. package/dist/array-dc599632.d.ts +0 -158
  24. package/dist/array.d.ts +0 -1
  25. package/dist/array.js +0 -277
  26. package/dist/array.mjs +0 -49
  27. package/dist/browser-8d042ffe.d.ts +0 -22
  28. package/dist/camera-1a859d72.d.ts +0 -15
  29. package/dist/chunk-5NTK5JAI.mjs +0 -57
  30. package/dist/chunk-5UEMANWE.mjs +0 -91
  31. package/dist/chunk-5ZOWNKSD.mjs +0 -166
  32. package/dist/chunk-6GNGTFNC.mjs +0 -118
  33. package/dist/chunk-7MK72U4O.mjs +0 -19
  34. package/dist/chunk-7XKT3AQX.mjs +0 -17
  35. package/dist/chunk-7ZCEZM7K.mjs +0 -41
  36. package/dist/chunk-AMBWJGSW.mjs +0 -151
  37. package/dist/chunk-C7S43KGB.mjs +0 -15
  38. package/dist/chunk-CJM7T7ON.mjs +0 -24
  39. package/dist/chunk-CKILLYAP.mjs +0 -16
  40. package/dist/chunk-DX7MUT3M.mjs +0 -51
  41. package/dist/chunk-EGUJQ5VF.mjs +0 -32
  42. package/dist/chunk-ETEIHDWU.mjs +0 -25
  43. package/dist/chunk-FJXSVGL7.mjs +0 -22
  44. package/dist/chunk-GJCAEOND.mjs +0 -20
  45. package/dist/chunk-GNJDIUYM.mjs +0 -40
  46. package/dist/chunk-IA7GINWD.mjs +0 -39
  47. package/dist/chunk-JEI7BOXY.mjs +0 -21
  48. package/dist/chunk-K4KENOE6.mjs +0 -20
  49. package/dist/chunk-KMERW6KS.mjs +0 -34
  50. package/dist/chunk-KPO3RH5G.mjs +0 -27
  51. package/dist/chunk-KWG5LYNK.mjs +0 -100
  52. package/dist/chunk-NUTQDHLQ.mjs +0 -40
  53. package/dist/chunk-O64XUDAH.mjs +0 -35
  54. package/dist/chunk-OYRPWQUA.mjs +0 -257
  55. package/dist/chunk-PNZ4KGXL.mjs +0 -56
  56. package/dist/chunk-QZYX26HT.mjs +0 -24
  57. package/dist/chunk-RDGP2CKM.mjs +0 -195
  58. package/dist/chunk-VFG5VU6S.mjs +0 -12
  59. package/dist/chunk-X3IMFCZG.mjs +0 -23
  60. package/dist/chunk-ZHNGZMRD.mjs +0 -17
  61. package/dist/color.d.ts +0 -24
  62. package/dist/color.js +0 -106
  63. package/dist/color.mjs +0 -78
  64. package/dist/console/enableConsole.d.ts +0 -1
  65. package/dist/console/enableConsole.js +0 -42
  66. package/dist/console/enableConsole.mjs +0 -9
  67. package/dist/console/index.d.ts +0 -2
  68. package/dist/console/index.js +0 -61
  69. package/dist/console/index.mjs +0 -14
  70. package/dist/console/log.d.ts +0 -16
  71. package/dist/console/log.js +0 -75
  72. package/dist/console/log.mjs +0 -19
  73. package/dist/createDir-220e0081.d.ts +0 -13
  74. package/dist/device/browser.d.ts +0 -1
  75. package/dist/device/browser.js +0 -66
  76. package/dist/device/browser.mjs +0 -15
  77. package/dist/device/camera.d.ts +0 -1
  78. package/dist/device/camera.js +0 -190
  79. package/dist/device/camera.mjs +0 -8
  80. package/dist/device/index.d.ts +0 -1
  81. package/dist/device/index.js +0 -210
  82. package/dist/device/index.mjs +0 -15
  83. package/dist/device/os.d.ts +0 -12
  84. package/dist/device/os.js +0 -65
  85. package/dist/device/os.mjs +0 -33
  86. package/dist/enableConsole-ddc24282.d.ts +0 -11
  87. package/dist/file/createDir.d.ts +0 -1
  88. package/dist/file/createDir.js +0 -37
  89. package/dist/file/createDir.mjs +0 -7
  90. package/dist/file/fileMove.d.ts +0 -1
  91. package/dist/file/fileMove.js +0 -53
  92. package/dist/file/fileMove.mjs +0 -7
  93. package/dist/file/findFilesByExt.d.ts +0 -1
  94. package/dist/file/findFilesByExt.js +0 -69
  95. package/dist/file/findFilesByExt.mjs +0 -11
  96. package/dist/file/index.d.ts +0 -11
  97. package/dist/file/index.js +0 -106
  98. package/dist/file/index.mjs +0 -17
  99. package/dist/fileMove-3a09e429.d.ts +0 -13
  100. package/dist/findFilesByExt-753e91d7.d.ts +0 -24
  101. package/dist/images/index.d.ts +0 -2
  102. package/dist/images/index.js +0 -132
  103. package/dist/images/index.mjs +0 -15
  104. package/dist/images/loadImage.d.ts +0 -3
  105. package/dist/images/loadImage.js +0 -42
  106. package/dist/images/loadImage.mjs +0 -21
  107. package/dist/images/resize.d.ts +0 -3
  108. package/dist/images/resize.js +0 -64
  109. package/dist/images/resize.mjs +0 -9
  110. package/dist/images/upload.d.ts +0 -11
  111. package/dist/images/upload.js +0 -132
  112. package/dist/images/upload.mjs +0 -14
  113. package/dist/index-1f738e52.d.ts +0 -22
  114. package/dist/index-22309f0c.d.ts +0 -23
  115. package/dist/index-6ae3c86b.d.ts +0 -63
  116. package/dist/index-c8fffc86.d.ts +0 -90
  117. package/dist/index-d652ed2c.d.ts +0 -26
  118. package/dist/index.d.ts +0 -48
  119. package/dist/index.js +0 -1353
  120. package/dist/index.mjs +0 -87
  121. package/dist/json.d.ts +0 -9
  122. package/dist/json.js +0 -52
  123. package/dist/json.mjs +0 -29
  124. package/dist/math/diffDate.d.ts +0 -6
  125. package/dist/math/diffDate.js +0 -36
  126. package/dist/math/diffDate.mjs +0 -9
  127. package/dist/math/index.d.ts +0 -3
  128. package/dist/math/index.js +0 -160
  129. package/dist/math/index.mjs +0 -34
  130. package/dist/math/positiveNumber.d.ts +0 -3
  131. package/dist/math/positiveNumber.js +0 -56
  132. package/dist/math/positiveNumber.mjs +0 -10
  133. package/dist/name/en.d.ts +0 -6
  134. package/dist/name/en.js +0 -44
  135. package/dist/name/en.mjs +0 -9
  136. package/dist/name/index.d.ts +0 -3
  137. package/dist/name/index.js +0 -88
  138. package/dist/name/index.mjs +0 -20
  139. package/dist/name/vi.d.ts +0 -6
  140. package/dist/name/vi.js +0 -66
  141. package/dist/name/vi.mjs +0 -14
  142. package/dist/object-43aaaf92.d.ts +0 -80
  143. package/dist/object.d.ts +0 -1
  144. package/dist/object.js +0 -105
  145. package/dist/object.mjs +0 -21
  146. package/dist/permission/index.d.ts +0 -9
  147. package/dist/permission/index.js +0 -231
  148. package/dist/permission/index.mjs +0 -15
  149. package/dist/permission/requestCamera.d.ts +0 -1
  150. package/dist/permission/requestCamera.js +0 -54
  151. package/dist/permission/requestCamera.mjs +0 -9
  152. package/dist/permission/requestDeviceOrientationControl.d.ts +0 -1
  153. package/dist/permission/requestDeviceOrientationControl.js +0 -206
  154. package/dist/permission/requestDeviceOrientationControl.mjs +0 -10
  155. package/dist/requestCamera-32b7dfc7.d.ts +0 -14
  156. package/dist/requestDeviceOrientationControl-b6458660.d.ts +0 -11
  157. package/dist/response/index.d.ts +0 -50
  158. package/dist/response/index.js +0 -97
  159. package/dist/response/index.mjs +0 -16
  160. package/dist/string/formatNumber.d.ts +0 -7
  161. package/dist/string/formatNumber.js +0 -56
  162. package/dist/string/formatNumber.mjs +0 -10
  163. package/dist/string/generatePassword.d.ts +0 -10
  164. package/dist/string/generatePassword.js +0 -55
  165. package/dist/string/generatePassword.mjs +0 -10
  166. package/dist/string/generateUUID.d.ts +0 -3
  167. package/dist/string/generateUUID.js +0 -40
  168. package/dist/string/generateUUID.mjs +0 -9
  169. package/dist/string/index.d.ts +0 -6
  170. package/dist/string/index.js +0 -316
  171. package/dist/string/index.mjs +0 -31
  172. package/dist/string/makeDaySlug.d.ts +0 -32
  173. package/dist/string/makeDaySlug.js +0 -47
  174. package/dist/string/makeDaySlug.mjs +0 -9
  175. package/dist/string/random.d.ts +0 -15
  176. package/dist/string/random.js +0 -56
  177. package/dist/string/random.mjs +0 -19
  178. package/dist/string/trimNull.d.ts +0 -3
  179. package/dist/string/trimNull.js +0 -49
  180. package/dist/string/trimNull.mjs +0 -9
  181. package/dist/string/url.d.ts +0 -1
  182. package/dist/string/url.js +0 -126
  183. package/dist/string/url.mjs +0 -22
  184. package/dist/url-60657387.d.ts +0 -57
package/dist/index.mjs DELETED
@@ -1,87 +0,0 @@
1
- import {
2
- name_exports
3
- } from "./chunk-CJM7T7ON.mjs";
4
- import "./chunk-K4KENOE6.mjs";
5
- import "./chunk-ETEIHDWU.mjs";
6
- import {
7
- string_exports
8
- } from "./chunk-5ZOWNKSD.mjs";
9
- import "./chunk-7XKT3AQX.mjs";
10
- import "./chunk-7MK72U4O.mjs";
11
- import "./chunk-C7S43KGB.mjs";
12
- import "./chunk-QZYX26HT.mjs";
13
- import "./chunk-KPO3RH5G.mjs";
14
- import "./chunk-CKILLYAP.mjs";
15
- import {
16
- requestDeviceOrientationControl_exports
17
- } from "./chunk-7ZCEZM7K.mjs";
18
- import {
19
- device_exports
20
- } from "./chunk-RDGP2CKM.mjs";
21
- import {
22
- createDir_exports
23
- } from "./chunk-X3IMFCZG.mjs";
24
- import {
25
- fileMove_exports
26
- } from "./chunk-IA7GINWD.mjs";
27
- import {
28
- findFilesByExt_exports
29
- } from "./chunk-PNZ4KGXL.mjs";
30
- import {
31
- url_exports
32
- } from "./chunk-KWG5LYNK.mjs";
33
- import {
34
- Timer_exports
35
- } from "./chunk-GJCAEOND.mjs";
36
- import {
37
- console_exports
38
- } from "./chunk-O64XUDAH.mjs";
39
- import {
40
- enableConsole_exports
41
- } from "./chunk-FJXSVGL7.mjs";
42
- import {
43
- browser_exports
44
- } from "./chunk-DX7MUT3M.mjs";
45
- import {
46
- camera_exports
47
- } from "./chunk-AMBWJGSW.mjs";
48
- import {
49
- requestCamera_exports
50
- } from "./chunk-NUTQDHLQ.mjs";
51
- import {
52
- array_exports
53
- } from "./chunk-OYRPWQUA.mjs";
54
- import {
55
- math_exports
56
- } from "./chunk-6GNGTFNC.mjs";
57
- import "./chunk-VFG5VU6S.mjs";
58
- import "./chunk-JEI7BOXY.mjs";
59
- import {
60
- object_exports
61
- } from "./chunk-5UEMANWE.mjs";
62
- import "./chunk-ZHNGZMRD.mjs";
63
-
64
- // src/index.ts
65
- var utils = {
66
- xname: name_exports,
67
- array: array_exports,
68
- device: device_exports,
69
- console: console_exports,
70
- browser: browser_exports,
71
- camera: camera_exports,
72
- math: math_exports,
73
- object: object_exports,
74
- string: string_exports,
75
- url: url_exports,
76
- createDir: createDir_exports,
77
- fileMove: fileMove_exports,
78
- findFilesByExt: findFilesByExt_exports,
79
- Timer: Timer_exports,
80
- requestCamera: requestCamera_exports,
81
- requestDeviceOrientationControl: requestDeviceOrientationControl_exports,
82
- enableConsole: enableConsole_exports
83
- };
84
- var src_default = utils;
85
- export {
86
- src_default as default
87
- };
package/dist/json.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Check if the object or string is in JSON format
3
- */
4
- declare const isValid: (content: object | string) => boolean;
5
- declare const xjson: {
6
- isValid: (content: object | string) => boolean;
7
- };
8
-
9
- export { xjson as default, isValid };
package/dist/json.js DELETED
@@ -1,52 +0,0 @@
1
- "use strict";
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/json.ts
21
- var json_exports = {};
22
- __export(json_exports, {
23
- default: () => json_default,
24
- isValid: () => isValid
25
- });
26
- module.exports = __toCommonJS(json_exports);
27
- var isValid = (content) => {
28
- if (typeof content == "object") {
29
- try {
30
- content = JSON.stringify(content);
31
- } catch (err) {
32
- return false;
33
- }
34
- }
35
- if (typeof content == "string") {
36
- try {
37
- content = JSON.parse(content);
38
- } catch (err) {
39
- return false;
40
- }
41
- }
42
- if (typeof content != "object") {
43
- return false;
44
- }
45
- return true;
46
- };
47
- var xjson = { isValid };
48
- var json_default = xjson;
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- isValid
52
- });
package/dist/json.mjs DELETED
@@ -1,29 +0,0 @@
1
- import "./chunk-ZHNGZMRD.mjs";
2
-
3
- // src/json.ts
4
- var isValid = (content) => {
5
- if (typeof content == "object") {
6
- try {
7
- content = JSON.stringify(content);
8
- } catch (err) {
9
- return false;
10
- }
11
- }
12
- if (typeof content == "string") {
13
- try {
14
- content = JSON.parse(content);
15
- } catch (err) {
16
- return false;
17
- }
18
- }
19
- if (typeof content != "object") {
20
- return false;
21
- }
22
- return true;
23
- };
24
- var xjson = { isValid };
25
- var json_default = xjson;
26
- export {
27
- json_default as default,
28
- isValid
29
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns amount of different days between 2 dates
3
- */
4
- declare function diffDate(date1: string, date2: string): number;
5
-
6
- export { diffDate as default, diffDate };
@@ -1,36 +0,0 @@
1
- "use strict";
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/math/diffDate.ts
21
- var diffDate_exports = {};
22
- __export(diffDate_exports, {
23
- default: () => diffDate_default,
24
- diffDate: () => diffDate
25
- });
26
- module.exports = __toCommonJS(diffDate_exports);
27
- function diffDate(date1, date2) {
28
- date1 = date1 || new Date().toString();
29
- date2 = date2 || new Date().toString();
30
- return (new Date(date2).getTime() - new Date(date1).getTime()) / (24 * 60 * 60 * 1e3);
31
- }
32
- var diffDate_default = diffDate;
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- diffDate
36
- });
@@ -1,9 +0,0 @@
1
- import {
2
- diffDate,
3
- diffDate_default
4
- } from "../chunk-VFG5VU6S.mjs";
5
- import "../chunk-ZHNGZMRD.mjs";
6
- export {
7
- diffDate_default as default,
8
- diffDate
9
- };
@@ -1,3 +0,0 @@
1
- import './diffDate.js';
2
- import './positiveNumber.js';
3
- export { j as angleBetweenPoints, g as clamp, x as default, i as degBetweenPoints, h as degBetweenPoints360, e as degToRad, k as distance2Point, f as radToDeg, a as rand, d as randFloat, b as randHalt, c as randInt, r as randRound } from '../index-6ae3c86b.js';
@@ -1,160 +0,0 @@
1
- "use strict";
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/math/index.ts
21
- var math_exports = {};
22
- __export(math_exports, {
23
- angleBetweenPoints: () => angleBetweenPoints,
24
- clamp: () => clamp,
25
- default: () => math_default,
26
- degBetweenPoints: () => degBetweenPoints,
27
- degBetweenPoints360: () => degBetweenPoints360,
28
- degToRad: () => degToRad,
29
- distance2Point: () => distance2Point,
30
- radToDeg: () => radToDeg,
31
- rand: () => rand,
32
- randFloat: () => randFloat,
33
- randHalt: () => randHalt,
34
- randInt: () => randInt,
35
- randRound: () => randRound
36
- });
37
- module.exports = __toCommonJS(math_exports);
38
-
39
- // src/math/diffDate.ts
40
- function diffDate(date1, date2) {
41
- date1 = date1 || new Date().toString();
42
- date2 = date2 || new Date().toString();
43
- return (new Date(date2).getTime() - new Date(date1).getTime()) / (24 * 60 * 60 * 1e3);
44
- }
45
-
46
- // src/object.ts
47
- var isNull = (object) => {
48
- if (typeof object == "undefined")
49
- return true;
50
- if (object == "")
51
- return true;
52
- if (Array.isArray(object))
53
- return object.length == 0;
54
- if (JSON.stringify(object) == "{}")
55
- return true;
56
- return object == null;
57
- };
58
-
59
- // src/math/positiveNumber.ts
60
- function positiveNumber(number) {
61
- if (isNull(number))
62
- return 0;
63
- if (!Number.isFinite(Number(number)))
64
- return 0;
65
- number = Number(number);
66
- if (number < 0)
67
- return 0;
68
- return number;
69
- }
70
-
71
- // src/math/index.ts
72
- var DEG2RAD = Math.PI / 180;
73
- var RAD2DEG = 180 / Math.PI;
74
- var randRound = (number) => {
75
- return Math.round(Math.random() * number);
76
- };
77
- var rand = (number) => {
78
- return (Math.random() - Math.random()) * number;
79
- };
80
- var randHalt = (number) => {
81
- var rand2 = Math.random() - Math.random();
82
- var res;
83
- if (rand2 > 0) {
84
- res = rand2 * (number / 2) + number / 2;
85
- } else {
86
- res = rand2 * (number / 2) - number / 2;
87
- }
88
- return Math.abs(res);
89
- };
90
- var randInt = (low, high) => {
91
- return low + Math.floor(Math.random() * (high - low + 1));
92
- };
93
- var randFloat = (low, high) => {
94
- return low + Math.random() * (high - low);
95
- };
96
- var degToRad = (degrees) => {
97
- return degrees * DEG2RAD;
98
- };
99
- var radToDeg = (radians) => {
100
- return radians * RAD2DEG;
101
- };
102
- var clamp = (value, min, max) => {
103
- const result = Math.max(min, Math.min(max, value));
104
- return Number.isFinite(result) ? result : 0;
105
- };
106
- var degBetweenPoints360 = (cx, cy, ex, ey) => {
107
- let theta = degBetweenPoints(cx, cy, ex, ey);
108
- if (theta < 0)
109
- theta = 360 + theta;
110
- return Number.isFinite(theta) ? theta : 0;
111
- };
112
- var degBetweenPoints = (cx, cy, ex, ey) => {
113
- const dy = ey - cy;
114
- const dx = ex - cx;
115
- let theta = Math.atan2(dy, dx);
116
- theta *= 180 / Math.PI;
117
- return Number.isFinite(theta) ? theta : 0;
118
- };
119
- var angleBetweenPoints = (cx, cy, ex, ey) => {
120
- const dy = ey - cy;
121
- const dx = ex - cx;
122
- let theta = Math.atan2(dy, dx);
123
- theta *= 180 / Math.PI;
124
- return Number.isFinite(theta) ? theta : 0;
125
- };
126
- var distance2Point = (x1, y1, x2, y2) => {
127
- const dist = Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
128
- return Number.isFinite(dist) ? dist : 0;
129
- };
130
- var xmath = {
131
- rand,
132
- randRound,
133
- randHalt,
134
- randInt,
135
- randFloat,
136
- degToRad,
137
- radToDeg,
138
- degBetweenPoints360,
139
- degBetweenPoints,
140
- angleBetweenPoints,
141
- distance2Point,
142
- diffDate,
143
- positiveNumber
144
- };
145
- var math_default = xmath;
146
- // Annotate the CommonJS export names for ESM import in node:
147
- 0 && (module.exports = {
148
- angleBetweenPoints,
149
- clamp,
150
- degBetweenPoints,
151
- degBetweenPoints360,
152
- degToRad,
153
- distance2Point,
154
- radToDeg,
155
- rand,
156
- randFloat,
157
- randHalt,
158
- randInt,
159
- randRound
160
- });
@@ -1,34 +0,0 @@
1
- import {
2
- angleBetweenPoints,
3
- clamp,
4
- degBetweenPoints,
5
- degBetweenPoints360,
6
- degToRad,
7
- distance2Point,
8
- math_default,
9
- radToDeg,
10
- rand,
11
- randFloat,
12
- randHalt,
13
- randInt,
14
- randRound
15
- } from "../chunk-6GNGTFNC.mjs";
16
- import "../chunk-VFG5VU6S.mjs";
17
- import "../chunk-JEI7BOXY.mjs";
18
- import "../chunk-5UEMANWE.mjs";
19
- import "../chunk-ZHNGZMRD.mjs";
20
- export {
21
- angleBetweenPoints,
22
- clamp,
23
- math_default as default,
24
- degBetweenPoints,
25
- degBetweenPoints360,
26
- degToRad,
27
- distance2Point,
28
- radToDeg,
29
- rand,
30
- randFloat,
31
- randHalt,
32
- randInt,
33
- randRound
34
- };
@@ -1,3 +0,0 @@
1
- declare function positiveNumber(number: number): number;
2
-
3
- export { positiveNumber as default, positiveNumber };
@@ -1,56 +0,0 @@
1
- "use strict";
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/math/positiveNumber.ts
21
- var positiveNumber_exports = {};
22
- __export(positiveNumber_exports, {
23
- default: () => positiveNumber_default,
24
- positiveNumber: () => positiveNumber
25
- });
26
- module.exports = __toCommonJS(positiveNumber_exports);
27
-
28
- // src/object.ts
29
- var isNull = (object) => {
30
- if (typeof object == "undefined")
31
- return true;
32
- if (object == "")
33
- return true;
34
- if (Array.isArray(object))
35
- return object.length == 0;
36
- if (JSON.stringify(object) == "{}")
37
- return true;
38
- return object == null;
39
- };
40
-
41
- // src/math/positiveNumber.ts
42
- function positiveNumber(number) {
43
- if (isNull(number))
44
- return 0;
45
- if (!Number.isFinite(Number(number)))
46
- return 0;
47
- number = Number(number);
48
- if (number < 0)
49
- return 0;
50
- return number;
51
- }
52
- var positiveNumber_default = positiveNumber;
53
- // Annotate the CommonJS export names for ESM import in node:
54
- 0 && (module.exports = {
55
- positiveNumber
56
- });
@@ -1,10 +0,0 @@
1
- import {
2
- positiveNumber,
3
- positiveNumber_default
4
- } from "../chunk-JEI7BOXY.mjs";
5
- import "../chunk-5UEMANWE.mjs";
6
- import "../chunk-ZHNGZMRD.mjs";
7
- export {
8
- positiveNumber_default as default,
9
- positiveNumber
10
- };
package/dist/name/en.d.ts DELETED
@@ -1,6 +0,0 @@
1
- declare function generateName(): string;
2
- declare const NameEN: {
3
- generateName: typeof generateName;
4
- };
5
-
6
- export { NameEN as default, generateName };