@leyyo/common 1.0.1 → 1.0.3

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 (112) hide show
  1. package/dist/assertion/common-assertion-impl.d.ts +3 -4
  2. package/dist/assertion/common-assertion-impl.js +9 -8
  3. package/dist/assertion/index-types.d.ts +6 -22
  4. package/dist/assertion/index.d.ts +0 -1
  5. package/dist/assertion/index.js +0 -1
  6. package/dist/error/common-error-impl.d.ts +6 -4
  7. package/dist/error/common-error-impl.js +8 -4
  8. package/dist/error/index-types.d.ts +5 -52
  9. package/dist/error/index.d.ts +0 -5
  10. package/dist/error/index.js +0 -5
  11. package/dist/{error → exception}/assertion-exception.d.ts +1 -1
  12. package/dist/{error → exception}/caused-exception.d.ts +1 -1
  13. package/dist/{error → exception}/developer-exception.d.ts +1 -1
  14. package/dist/{error → exception}/exception.d.ts +4 -3
  15. package/dist/{error → exception}/exception.js +4 -4
  16. package/dist/exception/index-types.d.ts +30 -0
  17. package/dist/exception/index.d.ts +6 -0
  18. package/dist/exception/index.js +22 -0
  19. package/dist/fqn/common-fqn-impl.d.ts +18 -0
  20. package/dist/fqn/common-fqn-impl.js +121 -0
  21. package/dist/fqn/index-types.d.ts +9 -0
  22. package/dist/fqn/index-types.js +2 -0
  23. package/dist/fqn/index.d.ts +2 -0
  24. package/dist/{callback → fqn}/index.js +1 -1
  25. package/dist/hook/common-hook-impl.d.ts +30 -0
  26. package/dist/hook/common-hook-impl.js +111 -0
  27. package/dist/hook/index-types.d.ts +56 -0
  28. package/dist/hook/index-types.js +2 -0
  29. package/dist/hook/index.d.ts +2 -0
  30. package/dist/hook/index.js +18 -0
  31. package/dist/index.d.ts +11 -5
  32. package/dist/index.js +19 -6
  33. package/dist/is/common-is-impl.js +6 -6
  34. package/dist/is/index-types.d.ts +2 -3
  35. package/dist/leyyo/index-types.d.ts +4 -2
  36. package/dist/leyyo/leyyo-impl.d.ts +4 -2
  37. package/dist/leyyo/leyyo-impl.js +53 -30
  38. package/dist/literal/country-code.d.ts +8 -0
  39. package/dist/literal/country-code.js +17 -0
  40. package/dist/literal/environment.d.ts +8 -0
  41. package/dist/literal/environment.js +7 -0
  42. package/dist/literal/http-method.d.ts +8 -0
  43. package/dist/literal/http-method.js +7 -0
  44. package/dist/literal/http-place.d.ts +8 -0
  45. package/dist/literal/http-place.js +7 -0
  46. package/dist/literal/index-types.d.ts +6 -0
  47. package/dist/literal/index-types.js +2 -0
  48. package/dist/literal/index.d.ts +16 -0
  49. package/dist/literal/index.js +32 -0
  50. package/dist/literal/key-value.d.ts +4 -0
  51. package/dist/literal/key-value.js +7 -0
  52. package/dist/literal/language-code.d.ts +8 -0
  53. package/dist/literal/language-code.js +12 -0
  54. package/dist/literal/locale-code.d.ts +10 -0
  55. package/dist/literal/locale-code.js +17 -0
  56. package/dist/literal/primitive.d.ts +8 -0
  57. package/dist/literal/primitive.js +7 -0
  58. package/dist/literal/real-value.d.ts +8 -0
  59. package/dist/literal/real-value.js +7 -0
  60. package/dist/literal/severity.d.ts +8 -0
  61. package/dist/literal/severity.js +7 -0
  62. package/dist/literal/storage-type.d.ts +8 -0
  63. package/dist/literal/storage-type.js +7 -0
  64. package/dist/literal/sys-class.d.ts +2 -0
  65. package/dist/literal/sys-class.js +19 -0
  66. package/dist/literal/sys-function.d.ts +2 -0
  67. package/dist/literal/sys-function.js +6 -0
  68. package/dist/literal/weak-false.d.ts +8 -0
  69. package/dist/literal/weak-false.js +7 -0
  70. package/dist/literal/weak-true.d.ts +8 -0
  71. package/dist/literal/weak-true.js +7 -0
  72. package/dist/log/common-log-impl.d.ts +3 -2
  73. package/dist/log/common-log-impl.js +6 -6
  74. package/dist/log/index-types.d.ts +2 -52
  75. package/dist/log/index-types.js +0 -1
  76. package/dist/log/index.d.ts +1 -1
  77. package/dist/log/index.js +1 -1
  78. package/dist/log/logger-impl.d.ts +3 -4
  79. package/dist/log/logger-impl.js +11 -8
  80. package/dist/{assertion → shared}/assert.js +1 -0
  81. package/dist/{aliases.d.ts → shared/index-aliases.d.ts} +1 -1
  82. package/dist/{constants.d.ts → shared/index-constants.d.ts} +1 -0
  83. package/dist/{constants.js → shared/index-constants.js} +2 -1
  84. package/dist/shared/index-types.d.ts +142 -0
  85. package/dist/shared/index-types.js +3 -0
  86. package/dist/shared/index.d.ts +5 -0
  87. package/dist/shared/index.js +21 -0
  88. package/dist/storage/common-storage-impl.d.ts +3 -3
  89. package/dist/storage/common-storage-impl.js +3 -3
  90. package/dist/storage/index-types.d.ts +3 -13
  91. package/dist/storage/index.d.ts +0 -1
  92. package/dist/storage/index.js +0 -1
  93. package/dist/to/common-to-impl.d.ts +3 -3
  94. package/dist/to/common-to-impl.js +11 -11
  95. package/dist/to/index-types.d.ts +1 -30
  96. package/package.json +1 -1
  97. package/dist/callback/common-callback-impl.d.ts +0 -31
  98. package/dist/callback/common-callback-impl.js +0 -134
  99. package/dist/callback/index-types.d.ts +0 -73
  100. package/dist/callback/index.d.ts +0 -2
  101. package/dist/literals.d.ts +0 -106
  102. package/dist/literals.js +0 -81
  103. package/dist/{error → exception}/assertion-exception.js +0 -0
  104. package/dist/{error → exception}/caused-exception.js +0 -0
  105. package/dist/{error → exception}/developer-exception.js +0 -0
  106. package/dist/{callback → exception}/index-types.js +0 -0
  107. package/dist/{error → exception}/multiple-exception.d.ts +1 -1
  108. package/dist/{error → exception}/multiple-exception.js +0 -0
  109. package/dist/{assertion → shared}/assert.d.ts +1 -1
  110. /package/dist/{aliases.js → shared/index-aliases.js} +0 -0
  111. /package/dist/{storage → shared}/list.d.ts +0 -0
  112. /package/dist/{storage → shared}/list.js +0 -0
package/dist/literals.js DELETED
@@ -1,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocaleCodeItems = exports.LanguageCodeItems = exports.CountryCodeItems = exports.EnvironmentItems = exports.SeverityItems = exports.HttpPlaceItems = exports.HttpMethodItems = exports.WeakFalseItems = exports.WeakTrueItems = exports.KeyValueItems = exports.RealValueItems = exports.PrimitiveItems = exports.StorageTypeItems = void 0;
4
- // noinspection JSUnusedGlobalSymbols
5
- /**
6
- * Weak True items
7
- * */
8
- exports.StorageTypeItems = ['array', 'list', 'map', 'set'];
9
- /**
10
- * Weak True items
11
- * */
12
- exports.PrimitiveItems = ['string', 'number', 'boolean'];
13
- /**
14
- * Weak True items
15
- * */
16
- exports.RealValueItems = ['string', 'number', 'bigint', 'boolean', 'object', 'function'];
17
- /**
18
- * Weak True items
19
- * */
20
- exports.KeyValueItems = ['string', 'number'];
21
- /**
22
- * Weak True items
23
- * */
24
- exports.WeakTrueItems = ['1', 'true', 't', 'yes', 'y', 'on'];
25
- /**
26
- * Weak False items
27
- * */
28
- exports.WeakFalseItems = ['0', '-1', 'false', 'f', 'no', 'n', 'off'];
29
- /**
30
- * Http Method items
31
- * */
32
- exports.HttpMethodItems = ['delete', 'get', 'head', 'link', 'options', 'patch', 'post', 'purge', 'put', 'unlink'];
33
- /**
34
- * Http Place items
35
- * */
36
- exports.HttpPlaceItems = ['query', 'body', 'header', 'path'];
37
- /**
38
- * Severity items
39
- * */
40
- exports.SeverityItems = ['debug', 'error', 'fatal', 'info', 'log', 'trace', 'warn'];
41
- /**
42
- * Environment items
43
- * */
44
- exports.EnvironmentItems = ['automation', 'development', 'local', 'production', 'staging', 'test'];
45
- /**
46
- * Country code items
47
- * */
48
- exports.CountryCodeItems = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AN', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX',
49
- 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BM', 'BN', 'BO', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD',
50
- 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CS', 'CU', 'CV', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC',
51
- 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN',
52
- 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS',
53
- 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS',
54
- 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX',
55
- 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM',
56
- 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM',
57
- 'SN', 'SO', 'SR', 'ST', 'SV', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ',
58
- 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'];
59
- /**
60
- * Language code items
61
- * */
62
- exports.LanguageCodeItems = ['af', 'an', 'ar', 'as', 'ast', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs',
63
- 'cv', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'fr', 'fur', 'fy', 'ga', 'gd', 'gl', 'gu', 'he', 'hi',
64
- 'hr', 'hsb', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'iu', 'ja', 'ji', 'ka', 'kk', 'km', 'kn', 'ko', 'ks', 'ky', 'la', 'lb', 'lt', 'lv', 'mi',
65
- 'mk', 'ml', 'mo', 'mr', 'ms', 'mt', 'my', 'nb', 'ne', 'ng', 'nl', 'nn', 'no', 'nv', 'oc', 'om', 'or', 'pa', 'pl', 'pt', 'qu', 'rm', 'ro',
66
- 'ru', 'sa', 'sb', 'sc', 'sd', 'sg', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'sv', 'sw', 'sx', 'sz', 'ta', 'te', 'th', 'tig', 'tk', 'tlh',
67
- 'tn', 'tr', 'ts', 'tt', 'uk', 'ur', 've', 'vi', 'vo', 'wa', 'xh', 'zh', 'zu'];
68
- /**
69
- * Locale code items
70
- * */
71
- exports.LocaleCodeItems = ['af', 'an', 'ar', 'ar-ae', 'ar-bh', 'ar-dz', 'ar-eg', 'ar-iq', 'ar-jo', 'ar-kw', 'ar-lb', 'ar-ly',
72
- 'ar-ma', 'ar-om', 'ar-qa', 'ar-sa', 'ar-sy', 'ar-tn', 'ar-ye', 'as', 'ast', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'ce', 'ch',
73
- 'co', 'cr', 'cs', 'cv', 'cy', 'da', 'de', 'de-at', 'de-ch', 'de-de', 'de-li', 'de-lu', 'el', 'en', 'en-au', 'en-bz', 'en-ca',
74
- 'en-gb', 'en-ie', 'en-jm', 'en-nz', 'en-ph', 'en-tt', 'en-us', 'en-za', 'en-zw', 'eo', 'es', 'es-ar', 'es-bo', 'es-cl', 'es-co',
75
- 'es-cr', 'es-do', 'es-ec', 'es-es', 'es-gt', 'es-hn', 'es-mx', 'es-ni', 'es-pa', 'es-pe', 'es-pr', 'es-py', 'es-sv', 'es-uy',
76
- 'es-ve', 'et', 'eu', 'fa', 'fa-ir', 'fi', 'fj', 'fo', 'fr', 'fr-be', 'fr-ca', 'fr-ch', 'fr-fr', 'fr-lu', 'fr-mc', 'fur', 'fy', 'ga',
77
- 'gd', 'gd-ie', 'gl', 'gu', 'he', 'hi', 'hr', 'hsb', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'it-ch', 'iu', 'ja', 'ji', 'ka', 'kk', 'km',
78
- 'kn', 'ko', 'ko-kp', 'ko-kr', 'ks', 'ky', 'la', 'lb', 'lt', 'lv', 'mi', 'mk', 'ml', 'mo', 'mr', 'ms', 'mt', 'my', 'nb', 'ne', 'ng', 'nl',
79
- 'nl-be', 'nn', 'no', 'nv', 'oc', 'om', 'or', 'pa', 'pa-in', 'pa-pk', 'pl', 'pt', 'pt-br', 'qu', 'rm', 'ro', 'ro-mo', 'ru', 'ru-mo',
80
- 'sa', 'sb', 'sc', 'sd', 'sg', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'sv', 'sv-fi', 'sv-sv', 'sw', 'sx', 'sz', 'ta', 'te', 'th', 'tig',
81
- 'tk', 'tlh', 'tn', 'tr', 'ts', 'tt', 'uk', 'ur', 've', 'vi', 'vo', 'wa', 'xh', 'zh', 'zh-cn', 'zh-hk', 'zh-sg', 'zh-tw', 'zu'];
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import { ExceptionLike } from "./index-types";
2
1
  import { Exception } from "./exception";
2
+ import { ExceptionLike } from "./index-types";
3
3
  export declare class MultipleException extends Exception {
4
4
  protected _errors: Array<ExceptionLike>;
5
5
  constructor(...errors: Array<Error>);
File without changes
@@ -1,5 +1,5 @@
1
- import { AssertionOpt } from "./index-types";
2
1
  import { Leyyo } from "../leyyo";
2
+ import { AssertionOpt } from "./index-types";
3
3
  export declare function assert(flag: boolean, message?: string): void;
4
4
  export declare function assert(flag: boolean, opt?: AssertionOpt): void;
5
5
  export declare function assert(flag: boolean, fn?: Function): void;
File without changes
File without changes
File without changes