@leyyo/common 1.2.7 → 1.3.2

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 (289) hide show
  1. package/README.md +395 -3
  2. package/dist/class/index.d.ts +2 -0
  3. package/dist/{list → class}/index.js +1 -1
  4. package/dist/class/index.js.map +1 -0
  5. package/dist/{list → class}/list.d.ts +1 -1
  6. package/dist/class/list.js.map +1 -0
  7. package/dist/{log → class}/logger.instance.d.ts +10 -12
  8. package/dist/class/logger.instance.js +150 -0
  9. package/dist/class/logger.instance.js.map +1 -0
  10. package/dist/common/array.fn.d.ts +46 -0
  11. package/dist/common/array.fn.js +123 -0
  12. package/dist/common/array.fn.js.map +1 -0
  13. package/dist/common/deploy.fn.d.ts +18 -0
  14. package/dist/common/deploy.fn.js +73 -0
  15. package/dist/common/deploy.fn.js.map +1 -0
  16. package/dist/common/enum.fn.d.ts +63 -0
  17. package/dist/common/enum.fn.js +191 -0
  18. package/dist/common/enum.fn.js.map +1 -0
  19. package/dist/common/error.fn.d.ts +91 -0
  20. package/dist/common/error.fn.js +400 -0
  21. package/dist/common/error.fn.js.map +1 -0
  22. package/dist/common/event.fn.d.ts +45 -0
  23. package/dist/common/event.fn.js +160 -0
  24. package/dist/common/event.fn.js.map +1 -0
  25. package/dist/common/exporter.fn.d.ts +7 -0
  26. package/dist/common/exporter.fn.js +49 -0
  27. package/dist/common/exporter.fn.js.map +1 -0
  28. package/dist/common/fqn.fn.d.ts +27 -0
  29. package/dist/common/fqn.fn.js +104 -0
  30. package/dist/common/fqn.fn.js.map +1 -0
  31. package/dist/common/index.d.ts +14 -0
  32. package/dist/{hub → common}/index.js +14 -1
  33. package/dist/common/index.js.map +1 -0
  34. package/dist/common/lifecycle.fn.d.ts +24 -0
  35. package/dist/common/lifecycle.fn.js +135 -0
  36. package/dist/common/lifecycle.fn.js.map +1 -0
  37. package/dist/common/list.fn.d.ts +47 -0
  38. package/dist/common/list.fn.js +122 -0
  39. package/dist/common/list.fn.js.map +1 -0
  40. package/dist/common/loader.fn.d.ts +15 -0
  41. package/dist/common/loader.fn.js +38 -0
  42. package/dist/common/loader.fn.js.map +1 -0
  43. package/dist/common/log.fn.d.ts +42 -0
  44. package/dist/common/log.fn.js +333 -0
  45. package/dist/common/log.fn.js.map +1 -0
  46. package/dist/common/map.fn.d.ts +46 -0
  47. package/dist/common/map.fn.js +123 -0
  48. package/dist/common/map.fn.js.map +1 -0
  49. package/dist/common/opt.fn.d.ts +48 -0
  50. package/dist/common/opt.fn.js +137 -0
  51. package/dist/common/opt.fn.js.map +1 -0
  52. package/dist/common/set.fn.d.ts +46 -0
  53. package/dist/common/set.fn.js +123 -0
  54. package/dist/common/set.fn.js.map +1 -0
  55. package/dist/common/test.fn.d.ts +26 -0
  56. package/dist/common/test.fn.js +81 -0
  57. package/dist/common/test.fn.js.map +1 -0
  58. package/dist/const/index.d.ts +23 -0
  59. package/dist/const/index.js +28 -0
  60. package/dist/const/index.js.map +1 -0
  61. package/dist/enum/index.d.ts +1 -0
  62. package/dist/{deploy → enum}/index.js +1 -1
  63. package/dist/enum/index.js.map +1 -0
  64. package/dist/{log → enum}/log-level.js +2 -2
  65. package/dist/enum/log-level.js.map +1 -0
  66. package/dist/error/caused.error.d.ts +15 -0
  67. package/dist/error/caused.error.js +24 -0
  68. package/dist/error/caused.error.js.map +1 -0
  69. package/dist/error/developer.error.d.ts +24 -0
  70. package/dist/error/developer.error.js +69 -0
  71. package/dist/error/developer.error.js.map +1 -0
  72. package/dist/error/{items/http.error.d.ts → http.error.d.ts} +1 -1
  73. package/dist/error/http.error.js +31 -0
  74. package/dist/error/http.error.js.map +1 -0
  75. package/dist/error/index.d.ts +6 -3
  76. package/dist/error/index.js +6 -3
  77. package/dist/error/index.js.map +1 -1
  78. package/dist/error/{items/invalid-value.error.js → invalid-value.error.js} +6 -2
  79. package/dist/error/invalid-value.error.js.map +1 -0
  80. package/dist/error/leyyo.error.d.ts +87 -0
  81. package/dist/error/leyyo.error.js +259 -0
  82. package/dist/error/leyyo.error.js.map +1 -0
  83. package/dist/error/{items/multiple.error.d.ts → multiple.error.d.ts} +1 -1
  84. package/dist/error/{items/multiple.error.js → multiple.error.js} +5 -4
  85. package/dist/error/multiple.error.js.map +1 -0
  86. package/dist/{util → function}/delay.js +1 -0
  87. package/dist/function/delay.js.map +1 -0
  88. package/dist/function/empty.fn.d.ts +8 -0
  89. package/dist/{util → function}/empty.fn.js +3 -2
  90. package/dist/function/empty.fn.js.map +1 -0
  91. package/dist/function/error-obj.d.ts +8 -0
  92. package/dist/function/error-obj.js +25 -0
  93. package/dist/function/error-obj.js.map +1 -0
  94. package/dist/function/error-text.d.ts +7 -0
  95. package/dist/function/error-text.js +18 -0
  96. package/dist/function/error-text.js.map +1 -0
  97. package/dist/{util → function}/extended-type.d.ts +1 -1
  98. package/dist/{util → function}/extended-type.js +6 -5
  99. package/dist/function/extended-type.js.map +1 -0
  100. package/dist/{util → function}/index.d.ts +3 -4
  101. package/dist/{util → function}/index.js +3 -4
  102. package/dist/function/index.js.map +1 -0
  103. package/dist/{util → function}/is.d.ts +6 -14
  104. package/dist/{util → function}/is.js +24 -22
  105. package/dist/function/is.js.map +1 -0
  106. package/dist/{util → function}/jitter-interval.js +1 -0
  107. package/dist/function/jitter-interval.js.map +1 -0
  108. package/dist/{util → function}/one-or-more.d.ts +1 -1
  109. package/dist/{util → function}/one-or-more.js +1 -0
  110. package/dist/function/one-or-more.js.map +1 -0
  111. package/dist/{util → function}/secure-clone.d.ts +1 -1
  112. package/dist/function/secure-clone.js.map +1 -0
  113. package/dist/function/secure-json.js.map +1 -0
  114. package/dist/index.d.ts +7 -20
  115. package/dist/index.js +7 -22
  116. package/dist/index.js.map +1 -1
  117. package/dist/index.types.d.ts +510 -0
  118. package/dist/{shared/index.types.js → index.types.js} +1 -1
  119. package/dist/index.types.js.map +1 -0
  120. package/dist/loader.d.ts +2 -0
  121. package/dist/loader.js +98 -0
  122. package/dist/loader.js.map +1 -0
  123. package/package.json +5 -3
  124. package/dist/$$leyyo-loader.d.ts +0 -1
  125. package/dist/$$leyyo-loader.js +0 -40
  126. package/dist/$$leyyo-loader.js.map +0 -1
  127. package/dist/deploy/deploy.common.d.ts +0 -34
  128. package/dist/deploy/deploy.common.js +0 -125
  129. package/dist/deploy/deploy.common.js.map +0 -1
  130. package/dist/deploy/index.d.ts +0 -1
  131. package/dist/deploy/index.js.map +0 -1
  132. package/dist/deploy/index.types.d.ts +0 -29
  133. package/dist/deploy/index.types.js +0 -3
  134. package/dist/deploy/index.types.js.map +0 -1
  135. package/dist/error/error.common.d.ts +0 -34
  136. package/dist/error/error.common.js +0 -220
  137. package/dist/error/error.common.js.map +0 -1
  138. package/dist/error/index.const.d.ts +0 -4
  139. package/dist/error/index.const.js +0 -8
  140. package/dist/error/index.const.js.map +0 -1
  141. package/dist/error/index.types.d.ts +0 -109
  142. package/dist/error/index.types.js +0 -3
  143. package/dist/error/index.types.js.map +0 -1
  144. package/dist/error/items/caused.error.d.ts +0 -6
  145. package/dist/error/items/caused.error.js +0 -11
  146. package/dist/error/items/caused.error.js.map +0 -1
  147. package/dist/error/items/developer.error.d.ts +0 -4
  148. package/dist/error/items/developer.error.js +0 -11
  149. package/dist/error/items/developer.error.js.map +0 -1
  150. package/dist/error/items/http.error.js +0 -37
  151. package/dist/error/items/http.error.js.map +0 -1
  152. package/dist/error/items/index.d.ts +0 -6
  153. package/dist/error/items/index.js +0 -23
  154. package/dist/error/items/index.js.map +0 -1
  155. package/dist/error/items/invalid-value.error.js.map +0 -1
  156. package/dist/error/items/leyyo.error.d.ts +0 -60
  157. package/dist/error/items/leyyo.error.js +0 -144
  158. package/dist/error/items/leyyo.error.js.map +0 -1
  159. package/dist/error/items/multiple.error.js.map +0 -1
  160. package/dist/event/event.common.d.ts +0 -80
  161. package/dist/event/event.common.js +0 -308
  162. package/dist/event/event.common.js.map +0 -1
  163. package/dist/event/event.error.d.ts +0 -3
  164. package/dist/event/event.error.js +0 -9
  165. package/dist/event/event.error.js.map +0 -1
  166. package/dist/event/index.d.ts +0 -2
  167. package/dist/event/index.js +0 -19
  168. package/dist/event/index.js.map +0 -1
  169. package/dist/event/index.types.d.ts +0 -265
  170. package/dist/event/index.types.js +0 -3
  171. package/dist/event/index.types.js.map +0 -1
  172. package/dist/hub/hub.channel.d.ts +0 -27
  173. package/dist/hub/hub.channel.js +0 -83
  174. package/dist/hub/hub.channel.js.map +0 -1
  175. package/dist/hub/hub.common.d.ts +0 -27
  176. package/dist/hub/hub.common.js +0 -92
  177. package/dist/hub/hub.common.js.map +0 -1
  178. package/dist/hub/index.d.ts +0 -1
  179. package/dist/hub/index.js.map +0 -1
  180. package/dist/hub/index.types.d.ts +0 -105
  181. package/dist/hub/index.types.js +0 -3
  182. package/dist/hub/index.types.js.map +0 -1
  183. package/dist/leyyo/index.d.ts +0 -1
  184. package/dist/leyyo/index.js +0 -18
  185. package/dist/leyyo/index.js.map +0 -1
  186. package/dist/leyyo/index.types.d.ts +0 -21
  187. package/dist/leyyo/index.types.js +0 -3
  188. package/dist/leyyo/index.types.js.map +0 -1
  189. package/dist/leyyo/leyyo.d.ts +0 -25
  190. package/dist/leyyo/leyyo.js +0 -62
  191. package/dist/leyyo/leyyo.js.map +0 -1
  192. package/dist/list/index.d.ts +0 -2
  193. package/dist/list/index.js.map +0 -1
  194. package/dist/list/index.types.d.ts +0 -26
  195. package/dist/list/index.types.js +0 -3
  196. package/dist/list/index.types.js.map +0 -1
  197. package/dist/list/list.js.map +0 -1
  198. package/dist/log/index.d.ts +0 -4
  199. package/dist/log/index.js +0 -21
  200. package/dist/log/index.js.map +0 -1
  201. package/dist/log/index.types.d.ts +0 -47
  202. package/dist/log/index.types.js +0 -3
  203. package/dist/log/index.types.js.map +0 -1
  204. package/dist/log/log-level.js.map +0 -1
  205. package/dist/log/log.common.d.ts +0 -15
  206. package/dist/log/log.common.js +0 -135
  207. package/dist/log/log.common.js.map +0 -1
  208. package/dist/log/logger.error.d.ts +0 -3
  209. package/dist/log/logger.error.js +0 -9
  210. package/dist/log/logger.error.js.map +0 -1
  211. package/dist/log/logger.instance.js +0 -139
  212. package/dist/log/logger.instance.js.map +0 -1
  213. package/dist/name/index.d.ts +0 -2
  214. package/dist/name/index.js +0 -19
  215. package/dist/name/index.js.map +0 -1
  216. package/dist/name/index.types.d.ts +0 -21
  217. package/dist/name/index.types.js +0 -3
  218. package/dist/name/index.types.js.map +0 -1
  219. package/dist/name/name.common.d.ts +0 -16
  220. package/dist/name/name.common.js +0 -109
  221. package/dist/name/name.common.js.map +0 -1
  222. package/dist/name/name.error.d.ts +0 -3
  223. package/dist/name/name.error.js +0 -9
  224. package/dist/name/name.error.js.map +0 -1
  225. package/dist/opt/index.d.ts +0 -1
  226. package/dist/opt/index.js +0 -18
  227. package/dist/opt/index.js.map +0 -1
  228. package/dist/opt/index.types.d.ts +0 -33
  229. package/dist/opt/index.types.js +0 -3
  230. package/dist/opt/index.types.js.map +0 -1
  231. package/dist/opt/opt.common.d.ts +0 -15
  232. package/dist/opt/opt.common.js +0 -93
  233. package/dist/opt/opt.common.js.map +0 -1
  234. package/dist/repo/index.d.ts +0 -1
  235. package/dist/repo/index.js +0 -18
  236. package/dist/repo/index.js.map +0 -1
  237. package/dist/repo/index.types.d.ts +0 -104
  238. package/dist/repo/index.types.js +0 -3
  239. package/dist/repo/index.types.js.map +0 -1
  240. package/dist/repo/repo.common.d.ts +0 -41
  241. package/dist/repo/repo.common.js +0 -146
  242. package/dist/repo/repo.common.js.map +0 -1
  243. package/dist/server.d.ts +0 -1
  244. package/dist/server.js +0 -5
  245. package/dist/server.js.map +0 -1
  246. package/dist/shared/index.d.ts +0 -5
  247. package/dist/shared/index.enum.d.ts +0 -12
  248. package/dist/shared/index.enum.js +0 -3
  249. package/dist/shared/index.enum.js.map +0 -1
  250. package/dist/shared/index.fqn.d.ts +0 -3
  251. package/dist/shared/index.fqn.js +0 -3
  252. package/dist/shared/index.fqn.js.map +0 -1
  253. package/dist/shared/index.js +0 -22
  254. package/dist/shared/index.js.map +0 -1
  255. package/dist/shared/index.json.d.ts +0 -33
  256. package/dist/shared/index.json.js +0 -3
  257. package/dist/shared/index.json.js.map +0 -1
  258. package/dist/shared/index.loader.d.ts +0 -5
  259. package/dist/shared/index.loader.js +0 -3
  260. package/dist/shared/index.loader.js.map +0 -1
  261. package/dist/shared/index.types.d.ts +0 -168
  262. package/dist/shared/index.types.js.map +0 -1
  263. package/dist/util/$define-enum.d.ts +0 -18
  264. package/dist/util/$define-enum.js +0 -28
  265. package/dist/util/$define-enum.js.map +0 -1
  266. package/dist/util/$define-error.d.ts +0 -9
  267. package/dist/util/$define-error.js +0 -25
  268. package/dist/util/$define-error.js.map +0 -1
  269. package/dist/util/$loader.d.ts +0 -18
  270. package/dist/util/$loader.js +0 -40
  271. package/dist/util/$loader.js.map +0 -1
  272. package/dist/util/delay.js.map +0 -1
  273. package/dist/util/empty.fn.d.ts +0 -8
  274. package/dist/util/empty.fn.js.map +0 -1
  275. package/dist/util/extended-type.js.map +0 -1
  276. package/dist/util/index.js.map +0 -1
  277. package/dist/util/is.js.map +0 -1
  278. package/dist/util/jitter-interval.js.map +0 -1
  279. package/dist/util/one-or-more.js.map +0 -1
  280. package/dist/util/secure-clone.js.map +0 -1
  281. package/dist/util/secure-json.js.map +0 -1
  282. /package/dist/{list → class}/list.js +0 -0
  283. /package/dist/{log → enum}/log-level.d.ts +0 -0
  284. /package/dist/error/{items/invalid-value.error.d.ts → invalid-value.error.d.ts} +0 -0
  285. /package/dist/{util → function}/delay.d.ts +0 -0
  286. /package/dist/{util → function}/jitter-interval.d.ts +0 -0
  287. /package/dist/{util → function}/secure-clone.js +0 -0
  288. /package/dist/{util → function}/secure-json.d.ts +0 -0
  289. /package/dist/{util → function}/secure-json.js +0 -0
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OptCommon = void 0;
4
- const internal_1 = require("../internal");
5
- const util_1 = require("../util");
6
- class OptCommon {
7
- constructor(lyy) {
8
- this.lyy = lyy;
9
- }
10
- fn(opt) {
11
- return opt;
12
- }
13
- check(opt) {
14
- opt = opt !== null && opt !== void 0 ? opt : {};
15
- if (typeof opt === 'function') {
16
- opt = opt();
17
- }
18
- return opt;
19
- }
20
- clone(opt) {
21
- return (0, util_1.secureClone)(this.check(opt));
22
- }
23
- append(opt, appended) {
24
- if (typeof appended === 'object' && !Array.isArray(appended)) {
25
- let o = (opt !== null && opt !== void 0 ? opt : {});
26
- for (const [k, v] of Object.entries(appended)) {
27
- if (o[k] === undefined) {
28
- o[k] = v;
29
- }
30
- else {
31
- o = this.add(o, k, v);
32
- }
33
- }
34
- return o;
35
- }
36
- return opt;
37
- }
38
- add(opt, key, value) {
39
- let o = this.check(opt);
40
- if (value === undefined || typeof key !== 'string') {
41
- return o;
42
- }
43
- if (key === 'field') {
44
- return this.field(o, value);
45
- }
46
- if (o[key] === undefined) {
47
- o[key] = value;
48
- }
49
- else if (o[key] instanceof Set) {
50
- o[key].add(value);
51
- }
52
- else {
53
- o[key] = new Set([o[key], value]);
54
- }
55
- return o;
56
- }
57
- field(opt, field) {
58
- const o = this.check(opt);
59
- const t = typeof field;
60
- if (!['string', 'number'].includes(t)) {
61
- return o;
62
- }
63
- if (o.field !== undefined) {
64
- if (typeof o.field !== 'string') {
65
- o.field = '';
66
- }
67
- }
68
- else {
69
- o.field = '';
70
- }
71
- if (o.field === '') {
72
- o.field = (t === 'string') ? field : `$.[${field}]`;
73
- }
74
- else {
75
- o.field += (t === 'string') ? `.${field}` : `[${field}]`;
76
- }
77
- return o;
78
- }
79
- // region secure
80
- get $secure() {
81
- return this;
82
- }
83
- get $back() {
84
- return this;
85
- }
86
- $init() {
87
- this.lyy.$secure.$lazyRun(() => {
88
- this.lyy.event.emit('ly:fqn:register', 'class', internal_1.FQN, OptCommon);
89
- });
90
- }
91
- }
92
- exports.OptCommon = OptCommon;
93
- //# sourceMappingURL=opt.common.js.map
@@ -1 +0,0 @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L,CAAC;aACI,CAAC;YACF,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;QACjB,CAAC;QAED,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YACjB,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAE,KAAgB,CAAC,CAAC,CAAC,MAAM,KAAK,GAAG,CAAC;QACpE,CAAC;aACI,CAAC;YACF,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC;QAC7D,CAAC;QACD,OAAO,CAAC,CAAC;IACb,CAAC;IAGD,gBAAgB;IAChB,IAAI,OAAO;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC3B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,EAAE,cAAG,EAAE,SAAS,CAAC,CAAA;QACnE,CAAC,CAAC,CAAC;IACP,CAAC;CAEJ;AA3FD,8BA2FC"}
@@ -1 +0,0 @@
1
- export * from './index.types';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./index.types"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repo/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,104 +0,0 @@
1
- import type { Dict, InitLike, ShiftMain, ShiftSecure } from "../shared";
2
- /**
3
- * Common Repository factory
4
- *
5
- * Purpose, unify all iteration based data in some place to track memory usage in your applications
6
- * */
7
- export interface RepoCommonLike extends ShiftSecure<RepoCommonSecure> {
8
- /**
9
- * Creates new array with given collection
10
- *
11
- * @param {Array<string>} names
12
- * @return {Array<any>}
13
- * */
14
- newArray<V>(...names: Array<string>): Array<V>;
15
- /**
16
- * Returns an array by given collection
17
- *
18
- * @param {symbol} collection
19
- * @return {Array<any>}
20
- *
21
- * Note:
22
- * If the array does not exist than it returns null
23
- * */
24
- getArray<V>(collection: symbol): Array<V>;
25
- /**
26
- * Creates new map with given collection
27
- *
28
- * @param {Array<string>} names
29
- * @return {Map<any, any>}
30
- * */
31
- newMap<K, V>(...names: Array<string>): Map<K, V>;
32
- /**
33
- * Returns a map by given collection
34
- *
35
- * @param {symbol} collection
36
- * @return {Map<any, any>}
37
- *
38
- * Note:
39
- * If the map does not exist than it returns null
40
- * */
41
- getMap<K, V>(collection: symbol): Map<K, V>;
42
- /**
43
- * Creates new set with given collection
44
- *
45
- * @param {Array<string>} names
46
- * @return {Set<any>}
47
- * */
48
- newSet<V>(...names: Array<string>): Set<V>;
49
- /**
50
- * Returns a set by given collection
51
- *
52
- * @param {symbol} collection
53
- * @return {Set<any>}
54
- *
55
- * Note:
56
- * If the set does not exist than it returns null
57
- * */
58
- getSet<V>(collection: symbol): Set<V>;
59
- /**
60
- * Creates new record with given collection
61
- *
62
- * @param {Array<string>} names
63
- * @return {Record<any, any>}
64
- * */
65
- newRecord<K extends string | symbol, V>(...names: Array<string>): Record<K, V>;
66
- /**
67
- * Returns a record by given collection
68
- *
69
- * @param {symbol} collection
70
- * @return {Record<any, any>}
71
- *
72
- * Note:
73
- * If the record does not exist than it returns null
74
- * */
75
- getRecord<K extends string | symbol, V>(collection: symbol): Record<K, V>;
76
- /**
77
- * Get sizes of each repository by given type and collection (optional)
78
- *
79
- * @param {RepoType} type
80
- * @param {symbol?} collection
81
- * @return {RepoItem}
82
- * */
83
- detailItem(type: RepoType, collection?: symbol): RepoItem;
84
- /**
85
- * Exports sizes of repositories by given type and collection
86
- *
87
- *
88
- * @param {RepoType?} type
89
- * @param {symbol?} collection
90
- * @return {RepoDetail}
91
- * */
92
- details(type?: RepoType, collection?: symbol): RepoDetail;
93
- }
94
- export type RepoCommonSecure = ShiftMain<RepoCommonLike> & InitLike;
95
- /**
96
- * Repo size dictionary which in corresponding type
97
- * */
98
- export type RepoItem = Dict<number>;
99
- /**
100
- * Repo export dictionary which includes items
101
- * */
102
- export type RepoDetail = Record<RepoType, RepoItem>;
103
- export type RepoType = 'array' | 'map' | 'set' | 'record';
104
- export type RepoLengthLambda = (obj: unknown) => number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/repo/index.types.ts"],"names":[],"mappings":""}
@@ -1,41 +0,0 @@
1
- import { RepoCommonLike, RepoCommonSecure, RepoDetail, RepoItem, RepoType } from "./index.types";
2
- import { LeyyoLike } from "../leyyo";
3
- /** @inheritDoc */
4
- export declare class RepoCommon implements RepoCommonLike, RepoCommonSecure {
5
- private lyy;
6
- private readonly _arrays;
7
- private readonly _maps;
8
- private readonly _sets;
9
- private readonly _records;
10
- /**
11
- * Default constructor
12
- *
13
- * Responsibilities
14
- * - Create repositories => ie: lists, arrays, maps, sets
15
- * */
16
- constructor(lyy: LeyyoLike);
17
- $init(): void;
18
- private _addDetail;
19
- /** @inheritDoc */
20
- newArray<V>(...names: Array<string>): Array<V>;
21
- /** @inheritDoc */
22
- getArray<V>(collection: symbol): Array<V>;
23
- /** @inheritDoc */
24
- newMap<K, V>(...names: Array<string>): Map<K, V>;
25
- /** @inheritDoc */
26
- getMap<K, V>(collection: symbol): Map<K, V>;
27
- /** @inheritDoc */
28
- newSet<V>(...names: Array<string>): Set<V>;
29
- /** @inheritDoc */
30
- getSet<V>(collection: symbol): Set<V>;
31
- /** @inheritDoc */
32
- newRecord<K extends string | symbol, V>(...names: Array<string>): Record<K, V>;
33
- /** @inheritDoc */
34
- getRecord<K extends string | symbol, V>(collection: symbol): Record<K, V>;
35
- /** @inheritDoc */
36
- detailItem(type: RepoType, collection?: symbol): RepoItem;
37
- /** @inheritDoc */
38
- details(type?: RepoType, collection?: symbol): RepoDetail;
39
- get $back(): RepoCommonLike;
40
- get $secure(): RepoCommonSecure;
41
- }
@@ -1,146 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RepoCommon = void 0;
4
- // noinspection JSUnusedLocalSymbols,JSUnusedGlobalSymbols
5
- /** @inheritDoc */
6
- class RepoCommon {
7
- /**
8
- * Default constructor
9
- *
10
- * Responsibilities
11
- * - Create repositories => ie: lists, arrays, maps, sets
12
- * */
13
- constructor(lyy) {
14
- this.lyy = lyy;
15
- this._arrays = new Map();
16
- this._maps = new Map();
17
- this._sets = new Map();
18
- this._records = new Map();
19
- }
20
- $init() {
21
- this.lyy.$secure.$lazyRun(() => {
22
- });
23
- }
24
- _addDetail(map, result, collection, fn) {
25
- if (!map) {
26
- if (collection) {
27
- result[collection.description] = -1;
28
- }
29
- else {
30
- result['*'] = -1;
31
- }
32
- return;
33
- }
34
- if (collection) {
35
- if (map.has(collection)) {
36
- result[collection.description] = map.get(collection).length;
37
- return;
38
- }
39
- else {
40
- result[collection.description] = -1;
41
- }
42
- return;
43
- }
44
- for (const [key, list] of map.entries()) {
45
- if (result[key.description] === undefined) {
46
- result[key.description] = fn(list);
47
- }
48
- else {
49
- result[key.description + '##' + Date.now()] = fn(list);
50
- }
51
- }
52
- }
53
- // region array
54
- /** @inheritDoc */
55
- newArray(...names) {
56
- const arr = [];
57
- this._arrays.set(Symbol.for(names.join('/')), arr);
58
- return arr;
59
- }
60
- /** @inheritDoc */
61
- getArray(collection) {
62
- return this._arrays.get(collection);
63
- }
64
- // endregion array
65
- // region map
66
- /** @inheritDoc */
67
- newMap(...names) {
68
- const map = new Map;
69
- this._maps.set(Symbol.for(names.join('/')), map);
70
- return map;
71
- }
72
- /** @inheritDoc */
73
- getMap(collection) {
74
- return this._maps.get(collection);
75
- }
76
- // endregion map
77
- // region set
78
- /** @inheritDoc */
79
- newSet(...names) {
80
- const set = new Set;
81
- this._sets.set(Symbol.for(names.join('/')), set);
82
- return set;
83
- }
84
- /** @inheritDoc */
85
- getSet(collection) {
86
- return this._sets.get(collection);
87
- }
88
- // endregion set
89
- // region record
90
- /** @inheritDoc */
91
- newRecord(...names) {
92
- const rec = {};
93
- this._records.set(Symbol.for(names.join('/')), rec);
94
- return rec;
95
- }
96
- /** @inheritDoc */
97
- getRecord(collection) {
98
- return this._records.get(collection);
99
- }
100
- // endregion record
101
- // region detail
102
- /** @inheritDoc */
103
- detailItem(type, collection) {
104
- const result = {};
105
- switch (type) {
106
- case "array":
107
- this._addDetail(this._arrays, result, collection, (v) => v.length);
108
- return result;
109
- case "map":
110
- this._addDetail(this._maps, result, collection, (v) => v.size);
111
- return result;
112
- case "record":
113
- this._addDetail(this._records, result, collection, (v) => (v && typeof v === 'object') ? Object.keys(v).length : -2);
114
- return result;
115
- case "set":
116
- this._addDetail(this._sets, result, collection, (v) => v.size);
117
- return result;
118
- default:
119
- this._addDetail(undefined, result, collection, (_v) => -2);
120
- return result;
121
- }
122
- }
123
- /** @inheritDoc */
124
- details(type, collection) {
125
- const result = {};
126
- if (type) {
127
- result[type] = this.detailItem(type, collection);
128
- }
129
- else {
130
- result['array'] = this.detailItem('array', collection);
131
- result['map'] = this.detailItem('map', collection);
132
- result['set'] = this.detailItem('set', collection);
133
- result['record'] = this.detailItem('record', collection);
134
- }
135
- return result;
136
- }
137
- // endregion detail
138
- get $back() {
139
- return this;
140
- }
141
- get $secure() {
142
- return this;
143
- }
144
- }
145
- exports.RepoCommon = RepoCommon;
146
- //# sourceMappingURL=repo.common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.common.js","sourceRoot":"","sources":["../../src/repo/repo.common.ts"],"names":[],"mappings":";;;AAIA,0DAA0D;AAC1D,kBAAkB;AAClB,MAAa,UAAU;IAMnB;;;;;SAKK;IACL,YAAoB,GAAc;QAAd,QAAG,GAAH,GAAG,CAAW;QAXjB,YAAO,GAAG,IAAI,GAAG,EAA0B,CAAC;QAC5C,UAAK,GAAG,IAAI,GAAG,EAAiC,CAAC;QACjD,UAAK,GAAG,IAAI,GAAG,EAAwB,CAAC;QACxC,aAAQ,GAAG,IAAI,GAAG,EAA0C,CAAC;IAS9E,CAAC;IAED,KAAK;QAED,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,UAAU,CAAC,GAAkB,EAAE,MAAgB,EAAE,UAAkB,EAAE,EAAoB;QAC7F,IAAI,CAAC,GAAG,EAAE,CAAC;YACP,IAAI,UAAU,EAAE,CAAC;gBACb,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YACxC,CAAC;iBACI,CAAC;gBACF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACrB,CAAC;YACD,OAAO;QACX,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACb,IAAI,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;gBACtB,MAAM,CAAC,UAAU,CAAC,WAAW,C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CAAC,CAAC;YACvD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;YACnD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;YACnD,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,mBAAmB;IAEnB,IAAI,KAAK;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA5JD,gCA4JC"}
package/dist/server.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/server.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_1 = require("./index");
4
- index_1.leyyo.log.apply({ level: 'info', message: 'message' });
5
- //# sourceMappingURL=server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;AAAA,mCAA8B;AAE9B,aAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './index.types';
2
- export * from './index.json';
3
- export * from './index.enum';
4
- export * from './index.fqn';
5
- export * from './index.loader';
@@ -1,12 +0,0 @@
1
- import type { EnumAlt, EnumLiteral, EnumMap } from "./index.types";
2
- export interface EnumCommonLike {
3
- getEnum(name: string): [EnumMap, EnumAlt?];
4
- getLiteral(name: string): [EnumLiteral, EnumAlt?];
5
- getEnumAsync(name: string): Promise<[EnumMap, EnumAlt?]>;
6
- getLiteralAsync(name: string): Promise<[EnumLiteral, EnumAlt?]>;
7
- }
8
- export interface DefineEnumLike {
9
- name: string;
10
- i18n?: unknown;
11
- alt?: EnumAlt;
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.enum.js","sourceRoot":"","sources":["../../src/shared/index.enum.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export interface FqnCommonLike {
2
- getName(value: unknown): string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.fqn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.fqn.js","sourceRoot":"","sources":["../../src/shared/index.fqn.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./index.types"), exports);
18
- __exportStar(require("./index.json"), exports);
19
- __exportStar(require("./index.enum"), exports);
20
- __exportStar(require("./index.fqn"), exports);
21
- __exportStar(require("./index.loader"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,iDAA+B"}
@@ -1,33 +0,0 @@
1
- /**
2
- * JSON Object, record of `JsonValue`
3
- *
4
- * @see #JsonValue
5
- */
6
- export type JsonObject = {
7
- [K in string]?: JsonValue;
8
- };
9
- /**
10
- * JSON Array, array of `JsonValue`
11
- *
12
- * @see #JsonValue
13
- */
14
- export type JsonArray = Array<JsonValue>;
15
- /**
16
- * JSON Primitive
17
- *
18
- * `OneOf`
19
- * @see `string`
20
- * @see `number`
21
- * @see `boolean`
22
- * @see `null`
23
- */
24
- export type JsonPrimitive = string | number | boolean | null;
25
- /**
26
- * JSON Value
27
- *
28
- * `OneOf`
29
- * @see #JsonPrimitive
30
- * @see #JsonObject
31
- * @see #JsonArray
32
- */
33
- export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.json.js","sourceRoot":"","sources":["../../src/shared/index.json.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { ClassLike, EnumLiteral, EnumMap, Fnc, Obj } from "./index.types";
2
- export type LoaderLike = Array<LoaderItem>;
3
- export type LeyyoStampLambda = () => LoaderItem;
4
- export type LeyyoStampEmpty = () => symbol;
5
- export type LoaderItem = ClassLike | Fnc | EnumMap | EnumLiteral | Obj | LeyyoStampLambda | LeyyoStampEmpty | LoaderLike;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.loader.js","sourceRoot":"","sources":["../../src/shared/index.loader.ts"],"names":[],"mappings":""}