diginext-utils 3.0.3 → 3.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 (75) hide show
  1. package/dist/Checker.d.ts +4 -3
  2. package/dist/EventDispatcher.d.ts +3 -3
  3. package/dist/FileUpload.d.ts +3 -3
  4. package/dist/Slug.d.ts +4 -3
  5. package/dist/Timer-7b0c4e7c.d.ts +11 -0
  6. package/dist/Timer.d.ts +1 -4
  7. package/dist/Validation.d.ts +3 -2
  8. package/dist/array-c38eff4c.d.ts +158 -0
  9. package/dist/array.d.ts +1 -113
  10. package/dist/browser-8d042ffe.d.ts +22 -0
  11. package/dist/camera-1a859d72.d.ts +15 -0
  12. package/dist/color.d.ts +10 -9
  13. package/dist/createDir-220e0081.d.ts +13 -0
  14. package/dist/device/browser.d.ts +1 -5
  15. package/dist/device/camera.d.ts +1 -7
  16. package/dist/device/index.d.ts +1 -5
  17. package/dist/device/os.d.ts +7 -6
  18. package/dist/enableConsole-ddc24282.d.ts +11 -0
  19. package/dist/file/createDir.d.ts +1 -5
  20. package/dist/file/detectPrivateKey.d.ts +4 -3
  21. package/dist/file/detectPrivateKeyByFilePath.d.ts +3 -2
  22. package/dist/file/detectPrivateKeyByFilePath.js +3 -3
  23. package/dist/file/detectPrivateKeyByFilePath.js.map +1 -1
  24. package/dist/file/fileMove.d.ts +1 -4
  25. package/dist/file/findFilesByExt.d.ts +1 -13
  26. package/dist/file/getAllFiles.d.ts +3 -1
  27. package/dist/file/index.d.ts +6 -4
  28. package/dist/fileMove-3a09e429.d.ts +13 -0
  29. package/dist/findFilesByExt-753e91d7.d.ts +24 -0
  30. package/dist/gameboi/index.d.ts +6 -4
  31. package/dist/html/transform3dToObject.d.ts +4 -2
  32. package/dist/images/downloadByUrl.d.ts +3 -1
  33. package/dist/images/index.d.ts +2 -2
  34. package/dist/images/loadImage.d.ts +3 -1
  35. package/dist/images/resize.d.ts +3 -2
  36. package/dist/images/upload.d.ts +4 -3
  37. package/dist/index-11ec3903.d.ts +26 -0
  38. package/dist/index-1f738e52.d.ts +22 -0
  39. package/dist/index-22309f0c.d.ts +23 -0
  40. package/dist/index-3eeb7834.d.ts +90 -0
  41. package/dist/index-6ae3c86b.d.ts +63 -0
  42. package/dist/index.d.ts +30 -19
  43. package/dist/json.d.ts +4 -3
  44. package/dist/math/diffDate.d.ts +3 -2
  45. package/dist/math/index.d.ts +3 -30
  46. package/dist/math/positiveNumber.d.ts +3 -2
  47. package/dist/name/en.d.ts +4 -3
  48. package/dist/name/index.d.ts +3 -12
  49. package/dist/name/vi.d.ts +4 -3
  50. package/dist/object-210cae96.d.ts +52 -0
  51. package/dist/object.d.ts +1 -31
  52. package/dist/permission/index.d.ts +3 -2
  53. package/dist/permission/requestCamera.d.ts +1 -5
  54. package/dist/permission/requestDeviceOrientationControl.d.ts +1 -2
  55. package/dist/requestCamera-32b7dfc7.d.ts +14 -0
  56. package/dist/requestDeviceOrientationControl-b6458660.d.ts +11 -0
  57. package/dist/response/index.d.ts +7 -6
  58. package/dist/string/convertPathnameAndQuery.d.ts +4 -2
  59. package/dist/string/formatNumber.d.ts +3 -2
  60. package/dist/string/generatePassword.d.ts +3 -2
  61. package/dist/string/generateUUID.d.ts +3 -2
  62. package/dist/string/getTextBetweenCharByIndex.d.ts +3 -1
  63. package/dist/string/index.d.ts +6 -65
  64. package/dist/string/indexesOf.d.ts +3 -1
  65. package/dist/string/makeDaySlug.d.ts +4 -3
  66. package/dist/string/random.d.ts +11 -10
  67. package/dist/string/trimNull.d.ts +3 -2
  68. package/dist/string/url.d.ts +1 -22
  69. package/dist/url-0da0be84.d.ts +43 -0
  70. package/dist/xconsole/enableConsole.d.ts +1 -2
  71. package/dist/xconsole/index.d.ts +2 -11
  72. package/dist/xconsole/log.d.ts +9 -8
  73. package/esm/file/detectPrivateKeyByFilePath.js +3 -3
  74. package/esm/file/detectPrivateKeyByFilePath.js.map +1 -1
  75. package/package.json +1 -1
package/dist/Checker.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Check if the object or string is in JSON format
3
3
  */
4
- export declare const isJSON: (content: object | string) => boolean;
4
+ declare const isJSON: (content: object | string) => boolean;
5
5
  declare const Checker: {
6
6
  isJSON: (content: object | string) => boolean;
7
- };
8
- export default Checker;
7
+ };
8
+
9
+ export { Checker as default, isJSON };
@@ -8,6 +8,6 @@ declare class EventDispatcher {
8
8
  type: string;
9
9
  target: any;
10
10
  }): void;
11
- }
12
- export { EventDispatcher };
13
- export default EventDispatcher;
11
+ }
12
+
13
+ export { EventDispatcher, EventDispatcher as default };
@@ -7,6 +7,6 @@ type UploadParams = {
7
7
  };
8
8
  declare const FileUpload: {
9
9
  uploadBlob(props: UploadParams): void;
10
- };
11
- export { FileUpload };
12
- export default FileUpload;
10
+ };
11
+
12
+ export { FileUpload, FileUpload as default };
package/dist/Slug.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- export declare const makeSlug: (s: string, opt?: {
1
+ declare const makeSlug: (s: string, opt?: {
2
2
  [key: string]: any;
3
3
  }) => string;
4
4
  declare const slug: {
5
5
  makeSlug: (s: string, opt?: {
6
6
  [key: string]: any;
7
7
  }) => string;
8
- };
9
- export default slug;
8
+ };
9
+
10
+ export { slug as default, makeSlug };
@@ -0,0 +1,11 @@
1
+ declare const Timer: {
2
+ wait: (ms: number) => Promise<unknown>;
3
+ };
4
+
5
+ declare namespace Timer$1 {
6
+ export {
7
+ Timer as default,
8
+ };
9
+ }
10
+
11
+ export { Timer$1 as T, Timer as a };
package/dist/Timer.d.ts CHANGED
@@ -1,4 +1 @@
1
- declare const Timer: {
2
- wait: (ms: number) => Promise<unknown>;
3
- };
4
- export default Timer;
1
+ export { a as default } from './Timer-7b0c4e7c.js';
@@ -1,5 +1,6 @@
1
1
  declare const Validation: {
2
2
  imageValidate(file: Blob): boolean;
3
3
  videoValidate(file: Blob): boolean;
4
- };
5
- export default Validation;
4
+ };
5
+
6
+ export { Validation as default };
@@ -0,0 +1,158 @@
1
+ declare const sumArray: (array: [], key: string) => number;
2
+ /**
3
+ *
4
+ * @param {Array} array
5
+ * @param {string} key
6
+ * @returns {Number}
7
+ */
8
+ declare const averageArray: (array: [], key: string) => number;
9
+ /**
10
+ *
11
+ * @param {Array} array
12
+ * @param {string} key
13
+ * @returns {Number}
14
+ */
15
+ declare const minArray: (array: [], key: string) => number;
16
+ /**
17
+ *
18
+ * @param {Array} array
19
+ * @param {string} key
20
+ * @returns {Number}
21
+ */
22
+ declare const maxArray: (array: [], key: string) => number;
23
+ /**
24
+ *
25
+ * @param {Array} array
26
+ * @param {string} key
27
+ * @returns {Array}
28
+ */
29
+ declare const sortElementByString: (array: any, key: string) => any[] | undefined;
30
+ /**
31
+ *
32
+ * @param {Array} array
33
+ * @param {string} key
34
+ * @returns {Array}
35
+ */
36
+ declare const sortElementByNumber: (array: any, key: string) => any[] | undefined;
37
+ /**
38
+ *
39
+ * @param {Array} array
40
+ * @returns {any}
41
+ */
42
+ declare const firstElement: (array: any[]) => any;
43
+ /**
44
+ *
45
+ * @param {Array} array
46
+ * @returns {any}
47
+ */
48
+ declare const lastElement: (array: any[]) => any;
49
+ /**
50
+ *
51
+ * @param {Array} array
52
+ * @returns {any}
53
+ */
54
+ declare const randomIndex: (array: any[]) => number;
55
+ /**
56
+ *
57
+ * @param {Array} array
58
+ * @returns {any}
59
+ */
60
+ declare const randomElement: (array: any[]) => any;
61
+ /**
62
+ * Remove same elements from 2 arrays
63
+ */
64
+ declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
65
+ /**
66
+ * check target == toMatch
67
+ * @param {Array} target
68
+ * @param {Array} toMatch
69
+ * @returns {Boolean}
70
+ */
71
+ declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
72
+ declare const removeItem: (item: any, array: any[]) => any[];
73
+ declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
74
+ declare const getRandom: (array: any[], n?: number) => any[];
75
+ /**
76
+ * Get an array with shuffle element
77
+ */
78
+ declare const getHalfRandom: (array: any[], n: number) => any[];
79
+ /**
80
+ * Make array shuffle itself
81
+ */
82
+ declare const shuffle: (array: any[]) => any[];
83
+ /**
84
+ *
85
+ * @param {Array} array
86
+ * @param {Number} oldIndex
87
+ * @param {Number} newIndex
88
+ * @returns {Array}
89
+ */
90
+ declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
91
+ declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
92
+ declare const xarray: {
93
+ sumArray: (array: [], key: string) => number;
94
+ averageArray: (array: [], key: string) => number;
95
+ minArray: (array: [], key: string) => number;
96
+ maxArray: (array: [], key: string) => number;
97
+ sortElementByString: (array: any, key: string) => any[] | undefined;
98
+ sortElementByNumber: (array: any, key: string) => any[] | undefined;
99
+ firstElement: (array: any[]) => any;
100
+ lastElement: (array: any[]) => any;
101
+ randomIndex: (array: any[]) => number;
102
+ randomElement: (array: any[]) => any;
103
+ mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
104
+ allMatchInArray: (target: any[], toMatch: any[]) => boolean;
105
+ removeItem: (item: any, array: any[]) => any[];
106
+ removeItemByKey: (key: string, value: any, array: any[]) => any[];
107
+ getRandom: (array: any[], n?: number) => any[];
108
+ getHalfRandom: (array: any[], n: number) => any[];
109
+ shuffle: (array: any[]) => any[];
110
+ moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
111
+ moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
112
+ };
113
+
114
+ declare const array_allMatchInArray: typeof allMatchInArray;
115
+ declare const array_averageArray: typeof averageArray;
116
+ declare const array_firstElement: typeof firstElement;
117
+ declare const array_getHalfRandom: typeof getHalfRandom;
118
+ declare const array_getRandom: typeof getRandom;
119
+ declare const array_lastElement: typeof lastElement;
120
+ declare const array_maxArray: typeof maxArray;
121
+ declare const array_mergeAndMakeUniqueElement: typeof mergeAndMakeUniqueElement;
122
+ declare const array_minArray: typeof minArray;
123
+ declare const array_moveArray: typeof moveArray;
124
+ declare const array_moveIndex: typeof moveIndex;
125
+ declare const array_randomElement: typeof randomElement;
126
+ declare const array_randomIndex: typeof randomIndex;
127
+ declare const array_removeItem: typeof removeItem;
128
+ declare const array_removeItemByKey: typeof removeItemByKey;
129
+ declare const array_shuffle: typeof shuffle;
130
+ declare const array_sortElementByNumber: typeof sortElementByNumber;
131
+ declare const array_sortElementByString: typeof sortElementByString;
132
+ declare const array_sumArray: typeof sumArray;
133
+ declare namespace array {
134
+ export {
135
+ array_allMatchInArray as allMatchInArray,
136
+ array_averageArray as averageArray,
137
+ xarray as default,
138
+ array_firstElement as firstElement,
139
+ array_getHalfRandom as getHalfRandom,
140
+ array_getRandom as getRandom,
141
+ array_lastElement as lastElement,
142
+ array_maxArray as maxArray,
143
+ array_mergeAndMakeUniqueElement as mergeAndMakeUniqueElement,
144
+ array_minArray as minArray,
145
+ array_moveArray as moveArray,
146
+ array_moveIndex as moveIndex,
147
+ array_randomElement as randomElement,
148
+ array_randomIndex as randomIndex,
149
+ array_removeItem as removeItem,
150
+ array_removeItemByKey as removeItemByKey,
151
+ array_shuffle as shuffle,
152
+ array_sortElementByNumber as sortElementByNumber,
153
+ array_sortElementByString as sortElementByString,
154
+ array_sumArray as sumArray,
155
+ };
156
+ }
157
+
158
+ export { array as a, averageArray as b, maxArray as c, sortElementByString as d, sortElementByNumber as e, firstElement as f, randomElement as g, mergeAndMakeUniqueElement as h, allMatchInArray as i, removeItem as j, removeItemByKey as k, lastElement as l, minArray as m, getRandom as n, getHalfRandom as o, shuffle as p, moveIndex as q, randomIndex as r, sumArray as s, moveArray as t, xarray as x };
package/dist/array.d.ts CHANGED
@@ -1,113 +1 @@
1
- export declare const sumArray: (array: [], key: string) => number;
2
- /**
3
- *
4
- * @param {Array} array
5
- * @param {string} key
6
- * @returns {Number}
7
- */
8
- export declare const averageArray: (array: [], key: string) => number;
9
- /**
10
- *
11
- * @param {Array} array
12
- * @param {string} key
13
- * @returns {Number}
14
- */
15
- export declare const minArray: (array: [], key: string) => number;
16
- /**
17
- *
18
- * @param {Array} array
19
- * @param {string} key
20
- * @returns {Number}
21
- */
22
- export declare const maxArray: (array: [], key: string) => number;
23
- /**
24
- *
25
- * @param {Array} array
26
- * @param {string} key
27
- * @returns {Array}
28
- */
29
- export declare const sortElementByString: (array: any, key: string) => any[] | undefined;
30
- /**
31
- *
32
- * @param {Array} array
33
- * @param {string} key
34
- * @returns {Array}
35
- */
36
- export declare const sortElementByNumber: (array: any, key: string) => any[] | undefined;
37
- /**
38
- *
39
- * @param {Array} array
40
- * @returns {any}
41
- */
42
- export declare const firstElement: (array: any[]) => any;
43
- /**
44
- *
45
- * @param {Array} array
46
- * @returns {any}
47
- */
48
- export declare const lastElement: (array: any[]) => any;
49
- /**
50
- *
51
- * @param {Array} array
52
- * @returns {any}
53
- */
54
- export declare const randomIndex: (array: any[]) => number;
55
- /**
56
- *
57
- * @param {Array} array
58
- * @returns {any}
59
- */
60
- export declare const randomElement: (array: any[]) => any;
61
- /**
62
- * Remove same elements from 2 arrays
63
- */
64
- export declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
65
- /**
66
- * check target == toMatch
67
- * @param {Array} target
68
- * @param {Array} toMatch
69
- * @returns {Boolean}
70
- */
71
- export declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
72
- export declare const removeItem: (item: any, array: any[]) => any[];
73
- export declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
74
- export declare const getRandom: (array: any[], n?: number) => any[];
75
- /**
76
- * Get an array with shuffle element
77
- */
78
- export declare const getHalfRandom: (array: any[], n: number) => any[];
79
- /**
80
- * Make array shuffle itself
81
- */
82
- export declare const shuffle: (array: any[]) => any[];
83
- /**
84
- *
85
- * @param {Array} array
86
- * @param {Number} oldIndex
87
- * @param {Number} newIndex
88
- * @returns {Array}
89
- */
90
- export declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
91
- export declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
92
- declare const xarray: {
93
- sumArray: (array: [], key: string) => number;
94
- averageArray: (array: [], key: string) => number;
95
- minArray: (array: [], key: string) => number;
96
- maxArray: (array: [], key: string) => number;
97
- sortElementByString: (array: any, key: string) => any[] | undefined;
98
- sortElementByNumber: (array: any, key: string) => any[] | undefined;
99
- firstElement: (array: any[]) => any;
100
- lastElement: (array: any[]) => any;
101
- randomIndex: (array: any[]) => number;
102
- randomElement: (array: any[]) => any;
103
- mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
104
- allMatchInArray: (target: any[], toMatch: any[]) => boolean;
105
- removeItem: (item: any, array: any[]) => any[];
106
- removeItemByKey: (key: string, value: any, array: any[]) => any[];
107
- getRandom: (array: any[], n?: number) => any[];
108
- getHalfRandom: (array: any[], n: number) => any[];
109
- shuffle: (array: any[]) => any[];
110
- moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
111
- moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
112
- };
113
- export default xarray;
1
+ export { i as allMatchInArray, b as averageArray, x as default, f as firstElement, o as getHalfRandom, n as getRandom, l as lastElement, c as maxArray, h as mergeAndMakeUniqueElement, m as minArray, t as moveArray, q as moveIndex, g as randomElement, r as randomIndex, j as removeItem, k as removeItemByKey, p as shuffle, e as sortElementByNumber, d as sortElementByString, s as sumArray } from './array-c38eff4c.js';
@@ -0,0 +1,22 @@
1
+ declare const isPotrait: () => boolean;
2
+ declare const isLandscape: () => boolean;
3
+ declare const ua: () => any;
4
+ declare const isFacebookWebview: () => boolean | undefined;
5
+ declare const isInAppWebview: () => boolean;
6
+
7
+ declare const browser_isFacebookWebview: typeof isFacebookWebview;
8
+ declare const browser_isInAppWebview: typeof isInAppWebview;
9
+ declare const browser_isLandscape: typeof isLandscape;
10
+ declare const browser_isPotrait: typeof isPotrait;
11
+ declare const browser_ua: typeof ua;
12
+ declare namespace browser {
13
+ export {
14
+ browser_isFacebookWebview as isFacebookWebview,
15
+ browser_isInAppWebview as isInAppWebview,
16
+ browser_isLandscape as isLandscape,
17
+ browser_isPotrait as isPotrait,
18
+ browser_ua as ua,
19
+ };
20
+ }
21
+
22
+ export { isLandscape as a, browser as b, isFacebookWebview as c, isInAppWebview as d, isPotrait as i, ua as u };
@@ -0,0 +1,15 @@
1
+ type GetWebcamParams = {
2
+ container?: HTMLElement;
3
+ facingMode: string;
4
+ audio: boolean;
5
+ };
6
+ declare function getWebcam(params?: GetWebcamParams): Promise<unknown> | undefined;
7
+
8
+ declare const camera_getWebcam: typeof getWebcam;
9
+ declare namespace camera {
10
+ export {
11
+ camera_getWebcam as getWebcam,
12
+ };
13
+ }
14
+
15
+ export { camera as c, getWebcam as g };
package/dist/color.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export declare const random: (hex?: boolean) => string;
2
- export declare const pSBC: (p: any, c0: any, c1?: any, l?: any) => string | null;
3
- export declare const hexToRgb: (hex: string) => {
1
+ declare const random: (hex?: boolean) => string;
2
+ declare const pSBC: (p: any, c0: any, c1?: any, l?: any) => string | null;
3
+ declare const hexToRgb: (hex: string) => {
4
4
  r: number;
5
5
  g: number;
6
6
  b: number;
7
7
  } | null;
8
- export declare const hexDarken: (hex: string, amount: number) => string | null;
9
- export declare const hexLighten: (hex: string, amount: number) => string | null;
10
- export declare const RGBToHex: (rgb: string | any) => string | null;
11
- export declare const hexToVBColor: (rrggbb: string) => number;
8
+ declare const hexDarken: (hex: string, amount: number) => string | null;
9
+ declare const hexLighten: (hex: string, amount: number) => string | null;
10
+ declare const RGBToHex: (rgb: string | any) => string | null;
11
+ declare const hexToVBColor: (rrggbb: string) => number;
12
12
  declare const color: {
13
13
  random: (hex?: boolean) => string;
14
14
  pSBC: (p: any, c0: any, c1?: any, l?: any) => string | null;
@@ -21,5 +21,6 @@ declare const color: {
21
21
  hexLighten: (hex: string, amount: number) => string | null;
22
22
  RGBToHex: (rgb: string | any) => string | null;
23
23
  hexToVBColor: (rrggbb: string) => number;
24
- };
25
- export default color;
24
+ };
25
+
26
+ export { RGBToHex, color as default, hexDarken, hexLighten, hexToRgb, hexToVBColor, pSBC, random };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Create new directory
3
+ */
4
+ declare function createDir(path: string): true | undefined;
5
+
6
+ declare const createDir$1_createDir: typeof createDir;
7
+ declare namespace createDir$1 {
8
+ export {
9
+ createDir$1_createDir as createDir,
10
+ };
11
+ }
12
+
13
+ export { createDir as a, createDir$1 as c };
@@ -1,5 +1 @@
1
- export declare const isPotrait: () => boolean;
2
- export declare const isLandscape: () => boolean;
3
- export declare const ua: () => any;
4
- export declare const isFacebookWebview: () => boolean | undefined;
5
- export declare const isInAppWebview: () => boolean;
1
+ export { c as isFacebookWebview, d as isInAppWebview, a as isLandscape, i as isPotrait, u as ua } from '../browser-8d042ffe.js';
@@ -1,7 +1 @@
1
- type GetWebcamParams = {
2
- container?: HTMLElement;
3
- facingMode: string;
4
- audio: boolean;
5
- };
6
- export declare function getWebcam(params?: GetWebcamParams): Promise<unknown> | undefined;
7
- export {};
1
+ export { g as getWebcam } from '../camera-1a859d72.js';
@@ -1,5 +1 @@
1
- export declare const isIos: () => boolean | null;
2
- export declare const isAndroid: () => boolean | null;
3
- export declare const isTablet: () => boolean | null;
4
- export declare const isMobile: () => boolean | null;
5
- export declare const checkOS: () => any;
1
+ export { e as checkOS, a as isAndroid, i as isIos, c as isMobile, b as isTablet } from '../index-1f738e52.js';
@@ -1,11 +1,12 @@
1
- export declare function getOS(): "android" | "win" | "aix" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "cygwin" | "netbsd" | "mac";
2
- export declare function isWin(): boolean;
3
- export declare function isMac(): boolean;
4
- export declare function isLinux(): boolean;
1
+ declare function getOS(): "aix" | "android" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "cygwin" | "netbsd" | "mac" | "win";
2
+ declare function isWin(): boolean;
3
+ declare function isMac(): boolean;
4
+ declare function isLinux(): boolean;
5
5
  declare const _default: {
6
6
  getOS: typeof getOS;
7
7
  isWin: typeof isWin;
8
8
  isMac: typeof isMac;
9
9
  isLinux: typeof isLinux;
10
- };
11
- export default _default;
10
+ };
11
+
12
+ export { _default as default, getOS, isLinux, isMac, isWin };
@@ -0,0 +1,11 @@
1
+ declare function enableConsole(): Console;
2
+
3
+ declare const enableConsole$1_enableConsole: typeof enableConsole;
4
+ declare namespace enableConsole$1 {
5
+ export {
6
+ enableConsole as default,
7
+ enableConsole$1_enableConsole as enableConsole,
8
+ };
9
+ }
10
+
11
+ export { enableConsole as a, enableConsole$1 as e };
@@ -1,5 +1 @@
1
- /**
2
- * Create new directory
3
- */
4
- declare function createDir(path: string): true | undefined;
5
- export { createDir };
1
+ export { a as createDir } from '../createDir-220e0081.js';
@@ -1,5 +1,6 @@
1
- export default function detectPrivateKey(dirPath: string): {
1
+ declare function detectPrivateKey(dirPath: string): {
2
2
  status: boolean;
3
3
  list: string[];
4
- };
5
- export { detectPrivateKey };
4
+ };
5
+
6
+ export { detectPrivateKey as default, detectPrivateKey };
@@ -1,2 +1,3 @@
1
- export default function detectPrivateKeyByFilePath(_path: string): boolean;
2
- export { detectPrivateKeyByFilePath };
1
+ declare function detectPrivateKeyByFilePath(_path: string): boolean;
2
+
3
+ export { detectPrivateKeyByFilePath as default, detectPrivateKeyByFilePath };
@@ -8,11 +8,11 @@ const fs_1 = __importDefault(require("fs"));
8
8
  function detectPrivateKeyByFilePath(_path) {
9
9
  //
10
10
  if (!fs_1.default.existsSync(_path))
11
- return false;
11
+ return true;
12
12
  const fileContents = fs_1.default.readFileSync(_path);
13
13
  switch (true) {
14
- case fileContents.includes("-----BEGIN "):
15
- case fileContents.includes("SECRET=") && !fileContents.includes("SECRET=\n") && !fileContents.includes("SECRET=*"):
14
+ case fileContents.includes(`${`-----`}BEGIN `):
15
+ case _path.includes(".env") && fileContents.includes("SECRET=") && !fileContents.includes("SECRET=\n") && !fileContents.includes("SECRET=*"):
16
16
  return false;
17
17
  default:
18
18
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"detectPrivateKeyByFilePath.js","sourceRoot":"","sources":["../../src/file/detectPrivateKeyByFilePath.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEpB,SAAwB,0BAA0B,CAAC,KAAa;IAC/D,EAAE;IACF,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAExC,MAAM,YAAY,GAAG,YAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAE5C,QAAQ,IAAI,EAAE;QACb,KAAK,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC1C,KAAK,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC;YACjH,OAAO,KAAK,CAAC;QACd;YACC,MAAM;KACP;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAfD,6CAeC;AAEQ,gEAA0B"}
1
+ {"version":3,"file":"detectPrivateKeyByFilePath.js","sourceRoot":"","sources":["../../src/file/detectPrivateKeyByFilePath.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEpB,SAAwB,0BAA0B,CAAC,KAAa;IAC/D,EAAE;IACF,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEvC,MAAM,YAAY,GAAG,YAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC5C,QAAQ,IAAI,EAAE;QACb,KAAK,YAAY,CAAC,QAAQ,CAAC,GAAG,OAAO,QAAQ,CAAC,CAAC;QAC/C,KAAK,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC;YAC3I,OAAO,KAAK,CAAC;QACd;YACC,MAAM;KACP;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAdD,6CAcC;AAEQ,gEAA0B"}
@@ -1,4 +1 @@
1
- /**
2
- * Move file to another location.
3
- */
4
- export declare function fileMove(oldPath: string, newPath: string, callback: any): void;
1
+ export { a as fileMove } from '../fileMove-3a09e429.js';
@@ -1,13 +1 @@
1
- /**
2
- * This is an alias of "findFileByExt()"
3
- */
4
- export declare const forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
5
- /**
6
- * This is an alias of "forEachFileByExt()"
7
- */
8
- export declare const findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
9
- declare const fileExt: {
10
- findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
11
- forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
12
- };
13
- export default fileExt;
1
+ export { a as default, c as findFileByExt, b as forEachFileByExt } from '../findFilesByExt-753e91d7.js';
@@ -1 +1,3 @@
1
- export default function getAllFiles(dirPath: string, skipDotStart?: true): Array<string>;
1
+ declare function getAllFiles(dirPath: string, skipDotStart?: true): Array<string>;
2
+
3
+ export { getAllFiles as default };
@@ -1,9 +1,11 @@
1
- import { createDir } from "./createDir";
2
- import { fileMove } from "./fileMove";
1
+ import { a as createDir } from '../createDir-220e0081.js';
2
+ import { a as fileMove } from '../fileMove-3a09e429.js';
3
+
3
4
  declare const xfile: {
4
5
  findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
5
6
  forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
6
7
  createDir: typeof createDir;
7
8
  fileMove: typeof fileMove;
8
- };
9
- export default xfile;
9
+ };
10
+
11
+ export { xfile as default };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Move file to another location.
3
+ */
4
+ declare function fileMove(oldPath: string, newPath: string, callback: any): void;
5
+
6
+ declare const fileMove$1_fileMove: typeof fileMove;
7
+ declare namespace fileMove$1 {
8
+ export {
9
+ fileMove$1_fileMove as fileMove,
10
+ };
11
+ }
12
+
13
+ export { fileMove as a, fileMove$1 as f };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This is an alias of "findFileByExt()"
3
+ */
4
+ declare const forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
5
+ /**
6
+ * This is an alias of "forEachFileByExt()"
7
+ */
8
+ declare const findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
9
+ declare const fileExt: {
10
+ findFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
11
+ forEachFileByExt: (base: string, ext: string, cb: (path: string) => {}) => void;
12
+ };
13
+
14
+ declare const findFilesByExt_findFileByExt: typeof findFileByExt;
15
+ declare const findFilesByExt_forEachFileByExt: typeof forEachFileByExt;
16
+ declare namespace findFilesByExt {
17
+ export {
18
+ fileExt as default,
19
+ findFilesByExt_findFileByExt as findFileByExt,
20
+ findFilesByExt_forEachFileByExt as forEachFileByExt,
21
+ };
22
+ }
23
+
24
+ export { fileExt as a, forEachFileByExt as b, findFileByExt as c, findFilesByExt as f };
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- import EventEmitter from "events";
3
- export default class GameBoi extends EventEmitter {
1
+ import EventEmitter from 'events';
2
+
3
+ declare class GameBoi extends EventEmitter {
4
4
  #private;
5
5
  constructor();
6
6
  isConnected: boolean;
@@ -9,4 +9,6 @@ export default class GameBoi extends EventEmitter {
9
9
  onDisconnect(): void;
10
10
  gameLoop(): void;
11
11
  dispose(): void;
12
- }
12
+ }
13
+
14
+ export { GameBoi as default };
@@ -1,5 +1,7 @@
1
- export default function transform3dToObject(element: HTMLElement): {
1
+ declare function transform3dToObject(element: HTMLElement): {
2
2
  x: any;
3
3
  y: any;
4
4
  z: any;
5
- };
5
+ };
6
+
7
+ export { transform3dToObject as default };