@leyyo/common 1.2.6 → 1.3.1

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 (282) hide show
  1. package/README.md +395 -3
  2. package/dist/class/index.d.ts +2 -0
  3. package/dist/{opt → class}/index.js +2 -1
  4. package/dist/class/index.js.map +1 -0
  5. package/dist/class/list.d.ts +13 -0
  6. package/dist/class/list.js +37 -0
  7. package/dist/class/list.js.map +1 -0
  8. package/dist/{log → class}/logger.instance.d.ts +10 -12
  9. package/dist/class/logger.instance.js +150 -0
  10. package/dist/class/logger.instance.js.map +1 -0
  11. package/dist/common/array.fn.d.ts +46 -0
  12. package/dist/common/array.fn.js +123 -0
  13. package/dist/common/array.fn.js.map +1 -0
  14. package/dist/common/deploy.fn.d.ts +18 -0
  15. package/dist/common/deploy.fn.js +73 -0
  16. package/dist/common/deploy.fn.js.map +1 -0
  17. package/dist/common/enum.fn.d.ts +63 -0
  18. package/dist/common/enum.fn.js +191 -0
  19. package/dist/common/enum.fn.js.map +1 -0
  20. package/dist/common/error.fn.d.ts +91 -0
  21. package/dist/common/error.fn.js +400 -0
  22. package/dist/common/error.fn.js.map +1 -0
  23. package/dist/common/event.fn.d.ts +45 -0
  24. package/dist/common/event.fn.js +160 -0
  25. package/dist/common/event.fn.js.map +1 -0
  26. package/dist/common/exporter.fn.d.ts +7 -0
  27. package/dist/common/exporter.fn.js +49 -0
  28. package/dist/common/exporter.fn.js.map +1 -0
  29. package/dist/common/fqn.fn.d.ts +27 -0
  30. package/dist/common/fqn.fn.js +104 -0
  31. package/dist/common/fqn.fn.js.map +1 -0
  32. package/dist/common/index.d.ts +14 -0
  33. package/dist/{hub → common}/index.js +14 -1
  34. package/dist/common/index.js.map +1 -0
  35. package/dist/common/lifecycle.fn.d.ts +24 -0
  36. package/dist/common/lifecycle.fn.js +135 -0
  37. package/dist/common/lifecycle.fn.js.map +1 -0
  38. package/dist/common/list.fn.d.ts +47 -0
  39. package/dist/common/list.fn.js +122 -0
  40. package/dist/common/list.fn.js.map +1 -0
  41. package/dist/common/loader.fn.d.ts +15 -0
  42. package/dist/common/loader.fn.js +38 -0
  43. package/dist/common/loader.fn.js.map +1 -0
  44. package/dist/common/log.fn.d.ts +21 -0
  45. package/dist/common/log.fn.js +321 -0
  46. package/dist/common/log.fn.js.map +1 -0
  47. package/dist/common/map.fn.d.ts +46 -0
  48. package/dist/common/map.fn.js +123 -0
  49. package/dist/common/map.fn.js.map +1 -0
  50. package/dist/common/opt.fn.d.ts +48 -0
  51. package/dist/common/opt.fn.js +137 -0
  52. package/dist/common/opt.fn.js.map +1 -0
  53. package/dist/common/set.fn.d.ts +46 -0
  54. package/dist/common/set.fn.js +123 -0
  55. package/dist/common/set.fn.js.map +1 -0
  56. package/dist/common/test.fn.d.ts +26 -0
  57. package/dist/common/test.fn.js +81 -0
  58. package/dist/common/test.fn.js.map +1 -0
  59. package/dist/const/index.d.ts +23 -0
  60. package/dist/const/index.js +28 -0
  61. package/dist/const/index.js.map +1 -0
  62. package/dist/enum/index.d.ts +1 -0
  63. package/dist/{deploy → enum}/index.js +1 -1
  64. package/dist/enum/index.js.map +1 -0
  65. package/dist/{log → enum}/log-level.js +2 -2
  66. package/dist/enum/log-level.js.map +1 -0
  67. package/dist/error/caused.error.d.ts +15 -0
  68. package/dist/error/caused.error.js +24 -0
  69. package/dist/error/caused.error.js.map +1 -0
  70. package/dist/error/developer.error.d.ts +24 -0
  71. package/dist/error/developer.error.js +69 -0
  72. package/dist/error/developer.error.js.map +1 -0
  73. package/dist/error/{items/http.error.d.ts → http.error.d.ts} +1 -1
  74. package/dist/error/http.error.js +31 -0
  75. package/dist/error/http.error.js.map +1 -0
  76. package/dist/error/index.d.ts +6 -3
  77. package/dist/error/index.js +6 -3
  78. package/dist/error/index.js.map +1 -1
  79. package/dist/error/{items/invalid-value.error.js → invalid-value.error.js} +6 -2
  80. package/dist/error/invalid-value.error.js.map +1 -0
  81. package/dist/error/leyyo.error.d.ts +87 -0
  82. package/dist/error/leyyo.error.js +259 -0
  83. package/dist/error/leyyo.error.js.map +1 -0
  84. package/dist/error/{items/multiple.error.d.ts → multiple.error.d.ts} +1 -1
  85. package/dist/error/{items/multiple.error.js → multiple.error.js} +5 -4
  86. package/dist/error/multiple.error.js.map +1 -0
  87. package/dist/{util → function}/delay.js +1 -0
  88. package/dist/function/delay.js.map +1 -0
  89. package/dist/function/empty.fn.d.ts +8 -0
  90. package/dist/{util → function}/empty.fn.js +3 -2
  91. package/dist/function/empty.fn.js.map +1 -0
  92. package/dist/function/error-obj.d.ts +8 -0
  93. package/dist/function/error-obj.js +25 -0
  94. package/dist/function/error-obj.js.map +1 -0
  95. package/dist/function/error-text.d.ts +7 -0
  96. package/dist/function/error-text.js +18 -0
  97. package/dist/function/error-text.js.map +1 -0
  98. package/dist/function/extended-type.d.ts +8 -0
  99. package/dist/function/extended-type.js +56 -0
  100. package/dist/function/extended-type.js.map +1 -0
  101. package/dist/{util → function}/index.d.ts +4 -4
  102. package/dist/{util → function}/index.js +4 -4
  103. package/dist/function/index.js.map +1 -0
  104. package/dist/{util → function}/is.d.ts +12 -13
  105. package/dist/function/is.js +89 -0
  106. package/dist/function/is.js.map +1 -0
  107. package/dist/{util → function}/jitter-interval.js +1 -0
  108. package/dist/function/jitter-interval.js.map +1 -0
  109. package/dist/{util → function}/one-or-more.d.ts +1 -1
  110. package/dist/{util → function}/one-or-more.js +1 -0
  111. package/dist/function/one-or-more.js.map +1 -0
  112. package/dist/{util → function}/secure-clone.d.ts +1 -1
  113. package/dist/function/secure-clone.js.map +1 -0
  114. package/dist/function/secure-json.js.map +1 -0
  115. package/dist/index.d.ts +7 -19
  116. package/dist/index.js +7 -21
  117. package/dist/index.js.map +1 -1
  118. package/dist/index.types.d.ts +510 -0
  119. package/dist/{shared/index.types.js → index.types.js} +1 -1
  120. package/dist/index.types.js.map +1 -0
  121. package/dist/loader.d.ts +2 -0
  122. package/dist/loader.js +98 -0
  123. package/dist/loader.js.map +1 -0
  124. package/package.json +5 -3
  125. package/dist/$$leyyo-loader.d.ts +0 -1
  126. package/dist/$$leyyo-loader.js +0 -40
  127. package/dist/$$leyyo-loader.js.map +0 -1
  128. package/dist/deploy/deploy.common.d.ts +0 -34
  129. package/dist/deploy/deploy.common.js +0 -125
  130. package/dist/deploy/deploy.common.js.map +0 -1
  131. package/dist/deploy/index.d.ts +0 -1
  132. package/dist/deploy/index.js.map +0 -1
  133. package/dist/deploy/index.types.d.ts +0 -29
  134. package/dist/deploy/index.types.js +0 -3
  135. package/dist/deploy/index.types.js.map +0 -1
  136. package/dist/error/error.common.d.ts +0 -34
  137. package/dist/error/error.common.js +0 -220
  138. package/dist/error/error.common.js.map +0 -1
  139. package/dist/error/index.const.d.ts +0 -4
  140. package/dist/error/index.const.js +0 -8
  141. package/dist/error/index.const.js.map +0 -1
  142. package/dist/error/index.types.d.ts +0 -109
  143. package/dist/error/index.types.js +0 -3
  144. package/dist/error/index.types.js.map +0 -1
  145. package/dist/error/items/caused.error.d.ts +0 -6
  146. package/dist/error/items/caused.error.js +0 -11
  147. package/dist/error/items/caused.error.js.map +0 -1
  148. package/dist/error/items/developer.error.d.ts +0 -4
  149. package/dist/error/items/developer.error.js +0 -11
  150. package/dist/error/items/developer.error.js.map +0 -1
  151. package/dist/error/items/http.error.js +0 -37
  152. package/dist/error/items/http.error.js.map +0 -1
  153. package/dist/error/items/index.d.ts +0 -6
  154. package/dist/error/items/index.js +0 -23
  155. package/dist/error/items/index.js.map +0 -1
  156. package/dist/error/items/invalid-value.error.js.map +0 -1
  157. package/dist/error/items/leyyo.error.d.ts +0 -60
  158. package/dist/error/items/leyyo.error.js +0 -144
  159. package/dist/error/items/leyyo.error.js.map +0 -1
  160. package/dist/error/items/multiple.error.js.map +0 -1
  161. package/dist/event/event.common.d.ts +0 -80
  162. package/dist/event/event.common.js +0 -308
  163. package/dist/event/event.common.js.map +0 -1
  164. package/dist/event/event.error.d.ts +0 -3
  165. package/dist/event/event.error.js +0 -9
  166. package/dist/event/event.error.js.map +0 -1
  167. package/dist/event/index.d.ts +0 -2
  168. package/dist/event/index.js +0 -19
  169. package/dist/event/index.js.map +0 -1
  170. package/dist/event/index.types.d.ts +0 -265
  171. package/dist/event/index.types.js +0 -3
  172. package/dist/event/index.types.js.map +0 -1
  173. package/dist/hub/hub.channel.d.ts +0 -27
  174. package/dist/hub/hub.channel.js +0 -83
  175. package/dist/hub/hub.channel.js.map +0 -1
  176. package/dist/hub/hub.common.d.ts +0 -27
  177. package/dist/hub/hub.common.js +0 -92
  178. package/dist/hub/hub.common.js.map +0 -1
  179. package/dist/hub/index.d.ts +0 -1
  180. package/dist/hub/index.js.map +0 -1
  181. package/dist/hub/index.types.d.ts +0 -105
  182. package/dist/hub/index.types.js +0 -3
  183. package/dist/hub/index.types.js.map +0 -1
  184. package/dist/leyyo/index.d.ts +0 -1
  185. package/dist/leyyo/index.js +0 -18
  186. package/dist/leyyo/index.js.map +0 -1
  187. package/dist/leyyo/index.types.d.ts +0 -21
  188. package/dist/leyyo/index.types.js +0 -3
  189. package/dist/leyyo/index.types.js.map +0 -1
  190. package/dist/leyyo/leyyo.d.ts +0 -25
  191. package/dist/leyyo/leyyo.js +0 -62
  192. package/dist/leyyo/leyyo.js.map +0 -1
  193. package/dist/log/index.d.ts +0 -4
  194. package/dist/log/index.js +0 -21
  195. package/dist/log/index.js.map +0 -1
  196. package/dist/log/index.types.d.ts +0 -47
  197. package/dist/log/index.types.js +0 -3
  198. package/dist/log/index.types.js.map +0 -1
  199. package/dist/log/log-level.js.map +0 -1
  200. package/dist/log/log.common.d.ts +0 -15
  201. package/dist/log/log.common.js +0 -135
  202. package/dist/log/log.common.js.map +0 -1
  203. package/dist/log/logger.error.d.ts +0 -3
  204. package/dist/log/logger.error.js +0 -9
  205. package/dist/log/logger.error.js.map +0 -1
  206. package/dist/log/logger.instance.js +0 -139
  207. package/dist/log/logger.instance.js.map +0 -1
  208. package/dist/name/index.d.ts +0 -2
  209. package/dist/name/index.js +0 -19
  210. package/dist/name/index.js.map +0 -1
  211. package/dist/name/index.types.d.ts +0 -21
  212. package/dist/name/index.types.js +0 -3
  213. package/dist/name/index.types.js.map +0 -1
  214. package/dist/name/name.common.d.ts +0 -16
  215. package/dist/name/name.common.js +0 -109
  216. package/dist/name/name.common.js.map +0 -1
  217. package/dist/name/name.error.d.ts +0 -3
  218. package/dist/name/name.error.js +0 -9
  219. package/dist/name/name.error.js.map +0 -1
  220. package/dist/opt/index.d.ts +0 -1
  221. package/dist/opt/index.js.map +0 -1
  222. package/dist/opt/index.types.d.ts +0 -33
  223. package/dist/opt/index.types.js +0 -3
  224. package/dist/opt/index.types.js.map +0 -1
  225. package/dist/opt/opt.common.d.ts +0 -15
  226. package/dist/opt/opt.common.js +0 -93
  227. package/dist/opt/opt.common.js.map +0 -1
  228. package/dist/repo/index.d.ts +0 -1
  229. package/dist/repo/index.js +0 -18
  230. package/dist/repo/index.js.map +0 -1
  231. package/dist/repo/index.types.d.ts +0 -104
  232. package/dist/repo/index.types.js +0 -3
  233. package/dist/repo/index.types.js.map +0 -1
  234. package/dist/repo/repo.common.d.ts +0 -41
  235. package/dist/repo/repo.common.js +0 -146
  236. package/dist/repo/repo.common.js.map +0 -1
  237. package/dist/server.d.ts +0 -1
  238. package/dist/server.js +0 -5
  239. package/dist/server.js.map +0 -1
  240. package/dist/shared/index.d.ts +0 -5
  241. package/dist/shared/index.enum.d.ts +0 -7
  242. package/dist/shared/index.enum.js +0 -3
  243. package/dist/shared/index.enum.js.map +0 -1
  244. package/dist/shared/index.fqn.d.ts +0 -3
  245. package/dist/shared/index.fqn.js +0 -3
  246. package/dist/shared/index.fqn.js.map +0 -1
  247. package/dist/shared/index.js +0 -22
  248. package/dist/shared/index.js.map +0 -1
  249. package/dist/shared/index.json.d.ts +0 -33
  250. package/dist/shared/index.json.js +0 -3
  251. package/dist/shared/index.json.js.map +0 -1
  252. package/dist/shared/index.loader.d.ts +0 -5
  253. package/dist/shared/index.loader.js +0 -3
  254. package/dist/shared/index.loader.js.map +0 -1
  255. package/dist/shared/index.types.d.ts +0 -168
  256. package/dist/shared/index.types.js.map +0 -1
  257. package/dist/util/$define-error.d.ts +0 -9
  258. package/dist/util/$define-error.js +0 -25
  259. package/dist/util/$define-error.js.map +0 -1
  260. package/dist/util/$enum-name.d.ts +0 -16
  261. package/dist/util/$enum-name.js +0 -18
  262. package/dist/util/$enum-name.js.map +0 -1
  263. package/dist/util/$loader.d.ts +0 -18
  264. package/dist/util/$loader.js +0 -40
  265. package/dist/util/$loader.js.map +0 -1
  266. package/dist/util/delay.js.map +0 -1
  267. package/dist/util/empty.fn.d.ts +0 -8
  268. package/dist/util/empty.fn.js.map +0 -1
  269. package/dist/util/index.js.map +0 -1
  270. package/dist/util/is.js +0 -68
  271. package/dist/util/is.js.map +0 -1
  272. package/dist/util/jitter-interval.js.map +0 -1
  273. package/dist/util/one-or-more.js.map +0 -1
  274. package/dist/util/secure-clone.js.map +0 -1
  275. package/dist/util/secure-json.js.map +0 -1
  276. /package/dist/{log → enum}/log-level.d.ts +0 -0
  277. /package/dist/error/{items/invalid-value.error.d.ts → invalid-value.error.d.ts} +0 -0
  278. /package/dist/{util → function}/delay.d.ts +0 -0
  279. /package/dist/{util → function}/jitter-interval.d.ts +0 -0
  280. /package/dist/{util → function}/secure-clone.js +0 -0
  281. /package/dist/{util → function}/secure-json.d.ts +0 -0
  282. /package/dist/{util → function}/secure-json.js +0 -0
@@ -1,168 +0,0 @@
1
- export type HttpStatus = number;
2
- export type BasicType = 'undefined' | 'string' | 'object' | 'number' | 'boolean' | 'function' | 'symbol' | 'bigint';
3
- export type ExtendedType = BasicType | 'array' | 'class' | 'null' | 'empty' | 'nan' | 'integer' | 'date' | 'enum';
4
- export type KeyValue = string | number;
5
- export type AnyKey = string | number | symbol;
6
- export type Obj = Object & {};
7
- export type Dict<T = unknown> = Record<KeyValue, T>;
8
- export type Arr<T = unknown> = Array<T>;
9
- export type Id = string | number;
10
- export type Integer = number;
11
- export type Float = number;
12
- export type Alpha = string;
13
- export type Text = string;
14
- export type Digit = string;
15
- export type Title = string;
16
- export type Description = string;
17
- export type RichText = string;
18
- export type Uuid = string;
19
- export type Host = string;
20
- export type Url = string;
21
- export type Email = string;
22
- export type Folder = string;
23
- export type Timestamp = number;
24
- export type IsoDatetime = string;
25
- export type IsoDate = string;
26
- export type IsoTime = string;
27
- export type Fnc<R = unknown> = ((...args: Arr) => R) & Function;
28
- export type Async<R = unknown> = ((...args: Arr) => Promise<R>) & AsyncGeneratorFunction;
29
- export interface Abstract<T = {}> extends Function {
30
- prototype: T;
31
- readonly name: string;
32
- readonly length: number;
33
- bind(thisArg: unknown, ...args: Arr): unknown;
34
- apply(thisArg: unknown, args: Arr): unknown;
35
- call(thisArg: unknown, ...args: Arr): unknown;
36
- }
37
- export interface ClassLike<T = {}> extends Abstract<T> {
38
- new (...args: Arr): T;
39
- }
40
- export type TypeOf<C = ClassLike> = C extends ClassLike<infer T> ? T : C;
41
- export declare namespace Express {
42
- interface Request {
43
- custom?: Dict;
44
- }
45
- interface Response {
46
- custom?: Dict;
47
- }
48
- }
49
- export interface Describable {
50
- description: string;
51
- }
52
- export interface Nameable {
53
- name: string;
54
- }
55
- export interface HasId {
56
- id?: string | number;
57
- }
58
- export type TypeOfMethod<T, M extends keyof T> = T[M] extends Function ? T[M] : never;
59
- export type TypeOfFnc<F extends Fnc> = F extends (...args: Arr) => infer R ? R : never;
60
- export type TypeOfAsync<F extends Async> = TypeOfPromise<TypeOfFnc<F>>;
61
- export type TypeOfPromise<P> = P extends Promise<infer R> ? R : P;
62
- /**
63
- * String keys of a interface
64
- * - Note: keyof keywords returns string|number|symbol, but it's ignore nuöber and symbol keys
65
- * */
66
- export type StrKey<T> = Extract<keyof T, string>;
67
- /**
68
- * Serialized version of another type
69
- */
70
- export type Serialized<T> = {
71
- [P in keyof T]: T[P];
72
- };
73
- /**
74
- * Makes mutable an interface
75
- *
76
- * @see Readonly
77
- * */
78
- export type Mutable<A> = {
79
- -readonly [K in keyof A]: A[K];
80
- };
81
- export type KeyOf<T> = keyof T;
82
- export type Keys<T> = Array<keyof T>;
83
- export type ValueOf<T> = T[KeyOf<T>];
84
- export type Values<T> = Array<T[KeyOf<T>]>;
85
- export type OneOrMore<T> = T | Array<T>;
86
- export type SetOrMore<T> = T | Set<T>;
87
- /**
88
- * An interface which contains secure mode members and provides to shift to main mode
89
- * */
90
- export interface ShiftSecure<S extends ShiftMain<any>> {
91
- /**
92
- * Shifts to secure mode
93
- * */
94
- get $secure(): S;
95
- }
96
- /**
97
- * An interface which contains main mode members and provides to shift to secure mode
98
- *
99
- * IT's so useful to hide some public members
100
- * - to see clean auto-completed members in IDE
101
- * - to indicated that secure mode members should be used in special cases
102
- * */
103
- export interface ShiftMain<M extends ShiftSecure<any>> {
104
- /**
105
- * Shifts to main mode
106
- * */
107
- get $back(): M;
108
- }
109
- /**
110
- * An interface which provides to flat generic interfaces/classes to prevent verbose casting commands
111
- * */
112
- export interface ShiftFlat<D> {
113
- /**
114
- * Flats current classes, or eliminate generic parameters
115
- * */
116
- get $flat(): D;
117
- }
118
- /**
119
- * Useful interface which provides initialization state for instances
120
- * */
121
- export interface InitLike {
122
- /**
123
- * Initializes the instance
124
- * */
125
- $init(...args: Arr): void;
126
- }
127
- export type EnumMap<E extends KeyValue = KeyValue> = {
128
- [K in E]: KeyValue;
129
- };
130
- export type EnumAlt<E extends KeyValue = KeyValue> = Dict<E>;
131
- export type EnumLiteral<E extends KeyValue = KeyValue> = Array<E> | ReadonlyArray<E>;
132
- export type IgnoreFieldsByType<T, I> = {
133
- [K in keyof T]: T[K] extends I ? K : never;
134
- }[keyof T];
135
- export type ReplaceType<T, O, N> = {
136
- [P in keyof T]: T[P] extends O ? N : T[P];
137
- };
138
- export type SameType<A, T> = {
139
- [K in keyof A]: T;
140
- };
141
- export type PickByType<T, I> = {
142
- [K in keyof T]: T[K] extends I ? K : never;
143
- };
144
- export type PickKeyByType<T, I> = PickByType<T, I>[keyof T];
145
- export type OmitByType<T, I> = {
146
- [K in keyof T]: T[K] extends I ? never : K;
147
- };
148
- export type OmitKeysByType<T, I> = OmitByType<T, I>[keyof T];
149
- export type ValueOrCallback<T> = T | ValueCallback<T> | ValueCallbackAsync<T>;
150
- export type ValueCallback<T> = () => T;
151
- export type ValueCallbackAsync<T> = () => Promise<T>;
152
- export type MaximumOneOf<T, K extends keyof T = keyof T> = K extends keyof T ? {
153
- [P in K]: T[K];
154
- } & Partial<Record<Exclude<keyof T, K>, never>> : never;
155
- export type OneOf<Obj> = ValueOf<OneOfByKey<Obj>>;
156
- export type Xor<A, B> = XorIn<A & {
157
- [K in keyof B]?: undefined;
158
- }> | XorIn<B & {
159
- [K in keyof A]?: undefined;
160
- }>;
161
- type OneOnly<T, K extends keyof T> = Omit<T, Exclude<keyof T, K>> | Pick<T, K>;
162
- type OneOfByKey<T> = {
163
- [key in keyof T]: OneOnly<T, key>;
164
- };
165
- type XorIn<T> = {
166
- [K in keyof T]: T[K];
167
- } & unknown;
168
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/shared/index.types.ts"],"names":[],"mappings":";AAAA,qCAAqC;;AAsNrC,YAAY;AAGZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BE"}
@@ -1,9 +0,0 @@
1
- import type { ClassLike } from "../shared";
2
- import { type DefineErrorLike } from "../error";
3
- /**
4
- * Set name of classic enumeration
5
- *
6
- * @param {ClassLike} clazz - error class
7
- * @param {DefineErrorLike} opt - options
8
- * */
9
- export declare function $defineError(clazz: ClassLike, opt: DefineErrorLike): void;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$defineError = $defineError;
4
- const error_1 = require("../error");
5
- const is_1 = require("./is");
6
- /**
7
- * Set name of classic enumeration
8
- *
9
- * @param {ClassLike} clazz - error class
10
- * @param {DefineErrorLike} opt - options
11
- * */
12
- function $defineError(clazz, opt) {
13
- if ((0, is_1.isFilledObj)(opt) && typeof clazz === 'function') {
14
- if ((0, is_1.isText)(opt.message)) {
15
- clazz[error_1.LY_ERROR_DEFAULT_MESSAGE] = opt.message;
16
- }
17
- if (!(0, is_1.isEmpty)(opt.emit)) {
18
- clazz[error_1.LY_ERROR_EMIT] = opt.emit;
19
- }
20
- if (!(0, is_1.isEmpty)(opt.i18n)) {
21
- clazz[error_1.LY_ERROR_DECORATE_I18N] = opt.i18n;
22
- }
23
- }
24
- }
25
- //# sourceMappingURL=$define-error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$define-error.js","sourceRoot":"","sources":["../../src/util/$define-error.ts"],"names":[],"mappings":";;AAUA,oCAYC;AArBD,oCAA+G;AAC/G,6BAAkD;AAElD;;;;;KAKK;AACL,SAAgB,YAAY,CAAC,KAAgB,EAAE,GAAoB;IAC/D,IAAI,IAAA,gBAAW,EAAC,GAAG,CAAC,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;QAClD,IAAI,IAAA,WAAM,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,gCAAwB,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;QAClD,CAAC;QACD,IAAI,CAAC,IAAA,YAAO,EAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,KAAK,CAAC,qBAAa,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;QACpC,CAAC;QACD,IAAI,CAAC,IAAA,YAAO,EAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,KAAK,CAAC,8BAAsB,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;QAC7C,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { EnumLiteral, EnumMap } from "../shared";
2
- export declare const LY_ENUM_NAME: unique symbol;
3
- /**
4
- * Set name of classic enumeration
5
- *
6
- * @param {EnumMap} map - enum definition
7
- * @param {string} name - basic name of enum without fqn
8
- * */
9
- export declare function $enumName(map: EnumMap, name: string): void;
10
- /**
11
- * Set name of literal enumeration
12
- *
13
- * @param {EnumLiteral} literals - literal readonly array
14
- * @param {string} name - basic name of enum without fqn
15
- * */
16
- export declare function $enumName(literals: EnumLiteral, name: string): void;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LY_ENUM_NAME = void 0;
4
- exports.$enumName = $enumName;
5
- const is_1 = require("./is");
6
- exports.LY_ENUM_NAME = Symbol.for('leyyo/enum.name');
7
- /**
8
- * Set name of any enumeration
9
- *
10
- * @param {(EnumMap|EnumLiteral)} p1 - map or literal readonly array
11
- * @param {string} name - basic name of enum without fqn
12
- * */
13
- function $enumName(p1, name) {
14
- if (((0, is_1.isFilledObj)(p1) || (0, is_1.isFilledArr)(p1)) && (0, is_1.isText)(name)) {
15
- p1[exports.LY_ENUM_NAME] = name;
16
- }
17
- }
18
- //# sourceMappingURL=$enum-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$enum-name.js","sourceRoot":"","sources":["../../src/util/$enum-name.ts"],"names":[],"mappings":";;;AA2BA,8BAIC;AA9BD,6BAAsD;AAEzC,QAAA,YAAY,GAAkB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAkBzE;;;;;KAKK;AACL,SAAgB,SAAS,CAAC,EAAuB,EAAE,IAAY;IAC3D,IAAI,CAAC,IAAA,gBAAW,EAAC,EAAE,CAAC,IAAI,IAAA,gBAAW,EAAC,EAAE,CAAC,CAAC,IAAI,IAAA,WAAM,EAAC,IAAI,CAAC,EAAE,CAAC;QACvD,EAAE,CAAC,oBAAY,CAAC,GAAG,IAAI,CAAC;IAC5B,CAAC;AACL,CAAC"}
@@ -1,18 +0,0 @@
1
- import { LeyyoStampEmpty, LeyyoStampLambda, LoaderItem, LoaderLike } from "../shared";
2
- export declare const LY_LOADER_NAME: unique symbol;
3
- export declare const LY_LOADER_STAMP: unique symbol;
4
- export declare const LY_LOADER_EMPTY: unique symbol;
5
- /**
6
- * Set name of a loader
7
- *
8
- * @param {string} fqn - component name
9
- * @param {...LoaderItem[]} items - items
10
- * */
11
- export declare function $loader(fqn: string, ...items: Array<LoaderItem>): LoaderLike;
12
- /**
13
- * Stamp an instance for loader
14
- *
15
- * @param {function} fn - callback function to save
16
- * @return {(LeyyoStampLambda | LeyyoStampEmpty)} - stamped function
17
- * */
18
- export declare function $stamp(fn: LeyyoStampLambda): LeyyoStampLambda | LeyyoStampEmpty;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LY_LOADER_EMPTY = exports.LY_LOADER_STAMP = exports.LY_LOADER_NAME = void 0;
4
- exports.$loader = $loader;
5
- exports.$stamp = $stamp;
6
- const is_1 = require("./is");
7
- exports.LY_LOADER_NAME = Symbol.for('leyyo/loader.name');
8
- exports.LY_LOADER_STAMP = Symbol.for('leyyo/loader.stamp');
9
- exports.LY_LOADER_EMPTY = Symbol.for('leyyo/loader.empty');
10
- /**
11
- * Set name of a loader
12
- *
13
- * @param {string} fqn - component name
14
- * @param {...LoaderItem[]} items - items
15
- * */
16
- function $loader(fqn, ...items) {
17
- if (!(0, is_1.isText)(fqn)) {
18
- fqn = `leyyo/@${Date.now()}`;
19
- }
20
- if (!(0, is_1.isFilledArr)(items)) {
21
- items = [];
22
- }
23
- const loader = [...items];
24
- loader[exports.LY_LOADER_NAME] = fqn;
25
- return loader;
26
- }
27
- /**
28
- * Stamp an instance for loader
29
- *
30
- * @param {function} fn - callback function to save
31
- * @return {(LeyyoStampLambda | LeyyoStampEmpty)} - stamped function
32
- * */
33
- function $stamp(fn) {
34
- if (typeof fn === 'function') {
35
- fn[exports.LY_LOADER_STAMP] = true;
36
- return fn;
37
- }
38
- return (() => exports.LY_LOADER_EMPTY);
39
- }
40
- //# sourceMappingURL=$loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$loader.js","sourceRoot":"","sources":["../../src/util/$loader.ts"],"names":[],"mappings":";;;AAaA,0BAUC;AAQD,wBAMC;AApCD,6BAAyC;AAE5B,QAAA,cAAc,GAAkB,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAChE,QAAA,eAAe,GAAkB,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAClE,QAAA,eAAe,GAAkB,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAE/E;;;;;KAKK;AACL,SAAgB,OAAO,CAAC,GAAW,EAAE,GAAG,KAAwB;IAC5D,IAAI,CAAC,IAAA,WAAM,EAAC,GAAG,CAAC,EAAE,CAAC;QACf,GAAG,GAAG,UAAU,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;IACjC,CAAC;IACD,IAAI,CAAC,IAAA,gBAAW,EAAC,KAAK,CAAC,EAAE,CAAC;QACtB,KAAK,GAAG,EAAE,CAAC;IACf,CAAC;IACD,MAAM,MAAM,GAAe,CAAC,GAAG,KAAK,CAAC,CAAC;IACtC,MAAM,CAAC,sBAAc,CAAC,GAAG,GAAG,CAAC;IAC7B,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;KAKK;AACL,SAAgB,MAAM,CAAC,EAAoB;IACvC,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;QAC3B,EAAE,CAAC,uBAAe,CAAC,GAAG,IAAI,CAAC;QAC3B,OAAO,EAAE,CAAC;IACd,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,uBAAe,CAAoB,CAAC;AACtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../src/util/delay.ts"],"names":[],"mappings":";;AAQA,sBAQC;AAhBD;;;;;;;KAOK;AACL,SAAgB,KAAK,CAAgB,OAAgB,EAAE,QAAY;IAC/D,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,GAAG,EAAE,EAAE,CAAC;QAC9C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAK,CAAC,CAAC;IAChD,CAAC;SACI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,IAAI,OAAO,CAAI,GAAG,EAAE,CAAC,UAAU,CAAC,GAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AACxE,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Arr } from "../shared";
2
- /**
3
- * Empty function, it can be more useful sometimes
4
- *
5
- * @param {Arr} args - insignificant parameters
6
- * @return {any}
7
- * */
8
- export declare function emptyFn<R = unknown>(...args: Arr): R | void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.fn.js","sourceRoot":"","sources":["../../src/util/empty.fn.ts"],"names":[],"mappings":";;AAQA,0BAA6D;AAN7D;;;;;KAKK;AACL,SAAgB,OAAO,CAAc,GAAG,IAAS,IAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,4CAA0B;AAE1B,0CAAwB;AACxB,6CAA2B;AAC3B,uCAAqB;AACrB,oDAAkC;AAClC,4CAA0B;AAC1B,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B"}
package/dist/util/is.js DELETED
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEmpty = exports.isText = exports.isFilledArr = exports.isFilledObj = exports.isObj = exports.EMPTY_VALUES_STR = exports.EMPTY_VALUES = void 0;
4
- /**
5
- * Normal empty values
6
- * */
7
- exports.EMPTY_VALUES = [null, undefined];
8
- /**
9
- * Empty values with empty string
10
- * */
11
- exports.EMPTY_VALUES_STR = [null, undefined, ''];
12
- /**
13
- * Is bare object?
14
- * Means:
15
- * - `constructor === "Object"`
16
- *
17
- * @param {any} obj - given value
18
- * @return {boolean} - is bare object?
19
- * */
20
- const isObj = (obj) => obj && typeof obj === 'object' && !Array.isArray(obj);
21
- exports.isObj = isObj;
22
- /**
23
- * Is filled object?
24
- * Means:
25
- * - `constructor === "Object"`
26
- * - `obj.keys.length > 0`
27
- *
28
- * @param {any} obj - given value
29
- * @return {boolean} - is filled object?
30
- * */
31
- const isFilledObj = (obj) => (0, exports.isObj)(obj) && Object.keys(obj).length > 0;
32
- exports.isFilledObj = isFilledObj;
33
- /**
34
- * Is filled array?
35
- * Means
36
- * - `constructor === "Array"`
37
- * - `arr.length > 0`
38
- *
39
- * @param {any} arr - given value
40
- * @return {boolean} - is filled array?
41
- * */
42
- const isFilledArr = (arr) => Array.isArray(arr) && arr.length > 0;
43
- exports.isFilledArr = isFilledArr;
44
- /**
45
- * Is text?
46
- * Means:
47
- * - `typeof === "string"`
48
- * - `not empty string`
49
- * - `not starts/ends with space`
50
- *
51
- * @param {any} str - given value
52
- * @return {boolean} - is text?
53
- * */
54
- const isText = (str) => typeof str === 'string' && str !== '' && str.trim() === str;
55
- exports.isText = isText;
56
- /**
57
- * Is empty?
58
- * Means:
59
- * - `not null`
60
- * - `not undefined`
61
- * - `not empty string`
62
- *
63
- * @param {any} value - given value
64
- * @return {boolean} - is empty?
65
- * */
66
- const isEmpty = (value) => exports.EMPTY_VALUES.includes(value) || (typeof value === 'string' && value.trim() === '');
67
- exports.isEmpty = isEmpty;
68
- //# sourceMappingURL=is.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is.js","sourceRoot":"","sources":["../../src/util/is.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,YAAY,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAE9C;;KAEK;AACQ,QAAA,gBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CA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AO,CAAC,CAAC;QACzD,OAAO,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpE,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,WAAW,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,OAAO,GAAG,CAAC;IACxD,CAAC;AACL,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes