@leyyo/common 1.0.11 → 1.0.13

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 (82) hide show
  1. package/dist/developer/developer.common.d.ts +2 -2
  2. package/dist/developer/developer.common.js +6 -6
  3. package/dist/developer/developer.common.js.map +1 -1
  4. package/dist/developer/index.types.d.ts +4 -4
  5. package/dist/exception/exception.js +1 -1
  6. package/dist/exception/exception.js.map +1 -1
  7. package/dist/index.d.ts +0 -2
  8. package/dist/index.js +1 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/leyyo/index.types.d.ts +0 -2
  11. package/dist/leyyo/leyyo.d.ts +0 -2
  12. package/dist/leyyo/leyyo.js +0 -3
  13. package/dist/leyyo/leyyo.js.map +1 -1
  14. package/dist/log/index.d.ts +1 -1
  15. package/dist/log/index.js +1 -1
  16. package/dist/log/index.js.map +1 -1
  17. package/dist/log/index.types.d.ts +3 -3
  18. package/dist/log/log-level.d.ts +7 -0
  19. package/dist/log/log-level.js +9 -0
  20. package/dist/log/log-level.js.map +1 -0
  21. package/dist/log/log.common.js +5 -5
  22. package/dist/log/log.common.js.map +1 -1
  23. package/dist/log/logger.instance.d.ts +2 -2
  24. package/dist/log/logger.instance.js +4 -4
  25. package/dist/log/logger.instance.js.map +1 -1
  26. package/dist/server.js +1 -1
  27. package/dist/server.js.map +1 -1
  28. package/dist/system/country-code.d.ts +4 -2
  29. package/dist/system/country-code.js +2 -1
  30. package/dist/system/country-code.js.map +1 -1
  31. package/dist/system/environment.d.ts +4 -5
  32. package/dist/system/environment.js +2 -4
  33. package/dist/system/environment.js.map +1 -1
  34. package/dist/system/language-code.d.ts +4 -5
  35. package/dist/system/language-code.js +2 -4
  36. package/dist/system/language-code.js.map +1 -1
  37. package/dist/system/locale-code.d.ts +4 -5
  38. package/dist/system/locale-code.js +2 -4
  39. package/dist/system/locale-code.js.map +1 -1
  40. package/dist/system/sys-class.d.ts +4 -2
  41. package/dist/system/sys-class.js +2 -1
  42. package/dist/system/sys-class.js.map +1 -1
  43. package/dist/system/sys-function.d.ts +4 -2
  44. package/dist/system/sys-function.js +2 -1
  45. package/dist/system/sys-function.js.map +1 -1
  46. package/dist/to/primitive.d.ts +4 -5
  47. package/dist/to/primitive.js +2 -4
  48. package/dist/to/primitive.js.map +1 -1
  49. package/dist/to/real-value.d.ts +4 -5
  50. package/dist/to/real-value.js +2 -4
  51. package/dist/to/real-value.js.map +1 -1
  52. package/dist/to/weak-false.d.ts +4 -5
  53. package/dist/to/weak-false.js +2 -4
  54. package/dist/to/weak-false.js.map +1 -1
  55. package/dist/to/weak-true.d.ts +4 -5
  56. package/dist/to/weak-true.js +3 -2
  57. package/dist/to/weak-true.js.map +1 -1
  58. package/package.json +1 -1
  59. package/dist/config/config.common.d.ts +0 -16
  60. package/dist/config/config.common.js +0 -81
  61. package/dist/config/config.common.js.map +0 -1
  62. package/dist/config/index.d.ts +0 -1
  63. package/dist/config/index.js +0 -18
  64. package/dist/config/index.js.map +0 -1
  65. package/dist/config/index.types.d.ts +0 -13
  66. package/dist/config/index.types.js +0 -3
  67. package/dist/config/index.types.js.map +0 -1
  68. package/dist/env/env.common.d.ts +0 -14
  69. package/dist/env/env.common.js +0 -52
  70. package/dist/env/env.common.js.map +0 -1
  71. package/dist/env/env.instance.d.ts +0 -5
  72. package/dist/env/env.instance.js +0 -10
  73. package/dist/env/env.instance.js.map +0 -1
  74. package/dist/env/index.d.ts +0 -1
  75. package/dist/env/index.js +0 -18
  76. package/dist/env/index.js.map +0 -1
  77. package/dist/env/index.types.d.ts +0 -20
  78. package/dist/env/index.types.js +0 -3
  79. package/dist/env/index.types.js.map +0 -1
  80. package/dist/log/severity.d.ts +0 -8
  81. package/dist/log/severity.js +0 -8
  82. package/dist/log/severity.js.map +0 -1
@@ -1,8 +1,7 @@
1
- /**
2
- * Language code items
3
- * */
4
- export declare const LanguageCodeItems: readonly ["af", "an", "ar", "as", "ast", "az", "be", "bg", "bn", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cv", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gu", "he", "hi", "hr", "hsb", "ht", "hu", "hy", "id", "is", "it", "iu", "ja", "ji", "ka", "kk", "km", "kn", "ko", "ks", "ky", "la", "lb", "lt", "lv", "mi", "mk", "ml", "mo", "mr", "ms", "mt", "my", "nb", "ne", "ng", "nl", "nn", "no", "nv", "oc", "om", "or", "pa", "pl", "pt", "qu", "rm", "ro", "ru", "sa", "sb", "sc", "sd", "sg", "si", "sk", "sl", "so", "sq", "sr", "sv", "sw", "sx", "sz", "ta", "te", "th", "tig", "tk", "tlh", "tn", "tr", "ts", "tt", "uk", "ur", "ve", "vi", "vo", "wa", "xh", "zh", "zu"];
1
+ declare const literals: readonly ["af", "an", "ar", "as", "ast", "az", "be", "bg", "bn", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cv", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gu", "he", "hi", "hr", "hsb", "ht", "hu", "hy", "id", "is", "it", "iu", "ja", "ji", "ka", "kk", "km", "kn", "ko", "ks", "ky", "la", "lb", "lt", "lv", "mi", "mk", "ml", "mo", "mr", "ms", "mt", "my", "nb", "ne", "ng", "nl", "nn", "no", "nv", "oc", "om", "or", "pa", "pl", "pt", "qu", "rm", "ro", "ru", "sa", "sb", "sc", "sd", "sg", "si", "sk", "sl", "so", "sq", "sr", "sv", "sw", "sx", "sz", "ta", "te", "th", "tig", "tk", "tlh", "tn", "tr", "ts", "tt", "uk", "ur", "ve", "vi", "vo", "wa", "xh", "zh", "zu"];
5
2
  /**
6
3
  * Language codes
7
4
  * */
8
- export type LanguageCode = typeof LanguageCodeItems[number];
5
+ export type LanguageCode = typeof literals[number];
6
+ export declare const LanguageCodeItems: ReadonlyArray<LanguageCode>;
7
+ export {};
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LanguageCodeItems = void 0;
4
- /**
5
- * Language code items
6
- * */
7
- exports.LanguageCodeItems = ['af', 'an', 'ar', 'as', 'ast', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs',
4
+ const literals = ['af', 'an', 'ar', 'as', 'ast', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs',
8
5
  'cv', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'fr', 'fur', 'fy', 'ga', 'gd', 'gl', 'gu', 'he', 'hi',
9
6
  'hr', 'hsb', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'iu', 'ja', 'ji', 'ka', 'kk', 'km', 'kn', 'ko', 'ks', 'ky', 'la', 'lb', 'lt', 'lv', 'mi',
10
7
  'mk', 'ml', 'mo', 'mr', 'ms', 'mt', 'my', 'nb', 'ne', 'ng', 'nl', 'nn', 'no', 'nv', 'oc', 'om', 'or', 'pa', 'pl', 'pt', 'qu', 'rm', 'ro',
11
8
  'ru', 'sa', 'sb', 'sc', 'sd', 'sg', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'sv', 'sw', 'sx', 'sz', 'ta', 'te', 'th', 'tig', 'tk', 'tlh',
12
9
  'tn', 'tr', 'ts', 'tt', 'uk', 'ur', 've', 'vi', 'vo', 'wa', 'xh', 'zh', 'zu'];
10
+ exports.LanguageCodeItems = literals;
13
11
  //# sourceMappingURL=language-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"language-code.js","sourceRoot":"","sources":["../../src/system/language-code.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,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IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IACxI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK;IACpI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAK9E,QAAA,iBAAiB,GAAG,QAAuC,CAAC"}
@@ -1,10 +1,9 @@
1
- /**
2
- * Locale code items
3
- * */
4
- export declare const LocaleCodeItems: readonly ["af", "an", "ar", "ar-ae", "ar-bh", "ar-dz", "ar-eg", "ar-iq", "ar-jo", "ar-kw", "ar-lb", "ar-ly", "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", "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", "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", "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", "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", "gd", "gd-ie", "gl", "gu", "he", "hi", "hr", "hsb", "ht", "hu", "hy", "id", "is", "it", "it-ch", "iu", "ja", "ji", "ka", "kk", "km", "kn", "ko", "ko-kp", "ko-kr", "ks", "ky", "la", "lb", "lt", "lv", "mi", "mk", "ml", "mo", "mr", "ms", "mt", "my", "nb", "ne", "ng", "nl", "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", "sa", "sb", "sc", "sd", "sg", "si", "sk", "sl", "so", "sq", "sr", "sv", "sv-fi", "sv-sv", "sw", "sx", "sz", "ta", "te", "th", "tig", "tk", "tlh", "tn", "tr", "ts", "tt", "uk", "ur", "ve", "vi", "vo", "wa", "xh", "zh", "zh-cn", "zh-hk", "zh-sg", "zh-tw", "zu"];
1
+ declare const literals: readonly ["af", "an", "ar", "ar-ae", "ar-bh", "ar-dz", "ar-eg", "ar-iq", "ar-jo", "ar-kw", "ar-lb", "ar-ly", "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", "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", "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", "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", "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", "gd", "gd-ie", "gl", "gu", "he", "hi", "hr", "hsb", "ht", "hu", "hy", "id", "is", "it", "it-ch", "iu", "ja", "ji", "ka", "kk", "km", "kn", "ko", "ko-kp", "ko-kr", "ks", "ky", "la", "lb", "lt", "lv", "mi", "mk", "ml", "mo", "mr", "ms", "mt", "my", "nb", "ne", "ng", "nl", "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", "sa", "sb", "sc", "sd", "sg", "si", "sk", "sl", "so", "sq", "sr", "sv", "sv-fi", "sv-sv", "sw", "sx", "sz", "ta", "te", "th", "tig", "tk", "tlh", "tn", "tr", "ts", "tt", "uk", "ur", "ve", "vi", "vo", "wa", "xh", "zh", "zh-cn", "zh-hk", "zh-sg", "zh-tw", "zu"];
5
2
  /**
6
3
  * Locale codes
7
4
  *
8
5
  * Pattern: [Language Code]-[Country Code]
9
6
  * */
10
- export type LocaleCode = typeof LocaleCodeItems[number];
7
+ export type LocaleCode = typeof literals[number];
8
+ export declare const LocaleCodeItems: ReadonlyArray<LocaleCode>;
9
+ export {};
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LocaleCodeItems = void 0;
4
- /**
5
- * Locale code items
6
- * */
7
- exports.LocaleCodeItems = ['af', 'an', 'ar', 'ar-ae', 'ar-bh', 'ar-dz', 'ar-eg', 'ar-iq', 'ar-jo', 'ar-kw', 'ar-lb', 'ar-ly',
4
+ const literals = ['af', 'an', 'ar', 'ar-ae', 'ar-bh', 'ar-dz', 'ar-eg', 'ar-iq', 'ar-jo', 'ar-kw', 'ar-lb', 'ar-ly',
8
5
  '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',
9
6
  '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',
10
7
  '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',
@@ -15,4 +12,5 @@ exports.LocaleCodeItems = ['af', 'an', 'ar', 'ar-ae', 'ar-bh', 'ar-dz', 'ar-eg',
15
12
  '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',
16
13
  'sa', 'sb', 'sc', 'sd', 'sg', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'sv', 'sv-fi', 'sv-sv', 'sw', 'sx', 'sz', 'ta', 'te', 'th', 'tig',
17
14
  'tk', 'tlh', 'tn', 'tr', 'ts', 'tt', 'uk', 'ur', 've', 'vi', 'vo', 'wa', 'xh', 'zh', 'zh-cn', 'zh-hk', 'zh-sg', 'zh-tw', 'zu'];
15
+ exports.LocaleCodeItems = literals;
18
16
  //# sourceMappingURL=locale-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale-code.js","sourceRoot":"","sources":["../../src/system/locale-code.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;IAC7H,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IAChI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,E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AAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO;IAClI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;IACnI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAU,CAAC;AAO/H,QAAA,eAAe,GAAG,QAAqC,CAAC"}
@@ -1,2 +1,4 @@
1
- export declare const SysClassItems: readonly ["Function", "Object", "Boolean", "Symbol", "Error", "AggregateError", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Number", "BigInt", "Math", "Date", "String", "RegExp", "Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array", "Map", "Set", "WeakMap", "WeakSet", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Reflect", "Proxy", "Intl", "Intl.Collator", "Intl.DateTimeFormat", "Intl.ListFormat", "Intl.NumberFormat", "Intl.PluralRules", "Intl.RelativeTimeFormat", "Intl.Locale", "WebAssembly", "WebAssembly.Module", "WebAssembly.Instance", "WebAssembly.Memory", "WebAssembly.Table", "WebAssembly.CompileError", "WebAssembly.LinkError", "WebAssembly.RuntimeError"];
2
- export type SysClass = typeof SysClassItems[number];
1
+ declare const literals: readonly ["Function", "Object", "Boolean", "Symbol", "Error", "AggregateError", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Number", "BigInt", "Math", "Date", "String", "RegExp", "Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array", "Map", "Set", "WeakMap", "WeakSet", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Reflect", "Proxy", "Intl", "Intl.Collator", "Intl.DateTimeFormat", "Intl.ListFormat", "Intl.NumberFormat", "Intl.PluralRules", "Intl.RelativeTimeFormat", "Intl.Locale", "WebAssembly", "WebAssembly.Module", "WebAssembly.Instance", "WebAssembly.Memory", "WebAssembly.Table", "WebAssembly.CompileError", "WebAssembly.LinkError", "WebAssembly.RuntimeError"];
2
+ export type SysClass = typeof literals[number];
3
+ export declare const SysClassItems: ReadonlyArray<SysClass>;
4
+ export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SysClassItems = void 0;
4
- exports.SysClassItems = [
4
+ const literals = [
5
5
  'Function', 'Object', 'Boolean', 'Symbol',
6
6
  'Error', 'AggregateError', 'EvalError', 'InternalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError',
7
7
  `Number`, `BigInt`, `Math`, `Date`,
@@ -17,4 +17,5 @@ exports.SysClassItems = [
17
17
  'WebAssembly', 'WebAssembly.Module', 'WebAssembly.Instance', 'WebAssembly.Memory', 'WebAssembly.Table',
18
18
  'WebAssembly.CompileError', 'WebAssembly.LinkError', 'WebAssembly.RuntimeError'
19
19
  ];
20
+ exports.SysClassItems = literals;
20
21
  //# sourceMappingURL=sys-class.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sys-class.js","sourceRoot":"","sources":["../../src/system/sys-class.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IACzC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU;IAC/H,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;IAClC,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY;IACrE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB;IAC7G,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAElC,aAAa,EAAE,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM;IAEjE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB;IACxG,SAAS,EAAE,OAAO;IAElB,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,mBAAmB;IACtF,kBAAkB,EAAE,yBAAyB,EAAE,aAAa;IAE5D,aAAa,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,mBAAmB;IACtG,0BAA0B,EAAE,uBAAuB,EAAE,0BAA0B;CACzE,CAAC"}
1
+ {"version":3,"file":"sys-class.js","sourceRoot":"","sources":["../../src/system/sys-class.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG;IACb,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IACzC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU;IAC/H,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;IAClC,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY;IACrE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB;IAC7G,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAElC,aAAa,EAAE,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM;IAEjE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB;IACxG,SAAS,EAAE,OAAO;IAElB,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,mBAAmB;IACtF,kBAAkB,EAAE,yBAAyB,EAAE,aAAa;IAE5D,aAAa,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,mBAAmB;IACtG,0BAA0B,EAAE,uBAAuB,EAAE,0BAA0B;CACzE,CAAC;AAEE,QAAA,aAAa,GAAG,QAAmC,CAAC"}
@@ -1,2 +1,4 @@
1
- export declare const SysFunctionItems: readonly ["constructor", "__defineGetter__", "__defineSetter__", "hasOwnProperty", "__lookupGetter__", "__lookupSetter__", "isPrototypeOf", "propertyIsEnumerable", "toString", "valueOf", "__proto__", "toLocaleString", "toJSON", "__esModule"];
2
- export type SysFunction = typeof SysFunctionItems[number];
1
+ declare const literals: readonly ["constructor", "__defineGetter__", "__defineSetter__", "hasOwnProperty", "__lookupGetter__", "__lookupSetter__", "isPrototypeOf", "propertyIsEnumerable", "toString", "valueOf", "__proto__", "toLocaleString", "toJSON", "__esModule"];
2
+ export type SysFunction = typeof literals[number];
3
+ export declare const SysFunctionItems: ReadonlyArray<SysFunction>;
4
+ export {};
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SysFunctionItems = void 0;
4
- exports.SysFunctionItems = ['constructor', '__defineGetter__', '__defineSetter__', 'hasOwnProperty',
4
+ const literals = ['constructor', '__defineGetter__', '__defineSetter__', 'hasOwnProperty',
5
5
  '__lookupGetter__', '__lookupSetter__', 'isPrototypeOf', 'propertyIsEnumerable',
6
6
  'toString', 'valueOf', '__proto__', 'toLocaleString', 'toJSON', '__esModule'];
7
+ exports.SysFunctionItems = literals;
7
8
  //# sourceMappingURL=sys-function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sys-function.js","sourceRoot":"","sources":["../../src/system/sys-function.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB;IACpG,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB;IAC/E,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC"}
1
+ {"version":3,"file":"sys-function.js","sourceRoot":"","sources":["../../src/system/sys-function.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB;IACrF,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB;IAC/E,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;AAE9E,QAAA,gBAAgB,GAAG,QAAsC,CAAC"}
@@ -1,8 +1,7 @@
1
- /**
2
- * Primitive items
3
- * */
4
- export declare const PrimitiveItems: readonly ["string", "number", "boolean"];
1
+ declare const literals: readonly ["string", "number", "boolean"];
5
2
  /**
6
3
  * Primitive
7
4
  * */
8
- export type Primitive = typeof PrimitiveItems[number];
5
+ export type Primitive = typeof literals[number];
6
+ export declare const PrimitiveItems: ReadonlyArray<Primitive>;
7
+ export {};
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrimitiveItems = void 0;
4
- /**
5
- * Primitive items
6
- * */
7
- exports.PrimitiveItems = ['string', 'number', 'boolean'];
4
+ const literals = ['string', 'number', 'boolean'];
5
+ exports.PrimitiveItems = literals;
8
6
  //# sourceMappingURL=primitive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../src/to/primitive.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,cAAc,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC"}
1
+ {"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../src/to/primitive.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAK7C,QAAA,cAAc,GAAG,QAAoC,CAAC"}
@@ -1,8 +1,7 @@
1
- /**
2
- * Real Value items
3
- * */
4
- export declare const RealValueItems: readonly ["string", "number", "bigint", "boolean", "object", "function"];
1
+ declare const literals: readonly ["string", "number", "bigint", "boolean", "object", "function"];
5
2
  /**
6
3
  * Real Value
7
4
  * */
8
- export type RealValue = typeof RealValueItems[number];
5
+ export type RealValue = typeof literals[number];
6
+ export declare const RealValueItems: ReadonlyArray<RealValue>;
7
+ export {};
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RealValueItems = void 0;
4
- /**
5
- * Real Value items
6
- * */
7
- exports.RealValueItems = ['string', 'number', 'bigint', 'boolean', 'object', 'function'];
4
+ const literals = ['string', 'number', 'bigint', 'boolean', 'object', 'function'];
5
+ exports.RealValueItems = literals;
8
6
  //# sourceMappingURL=real-value.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"real-value.js","sourceRoot":"","sources":["../../src/to/real-value.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,cAAc,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC"}
1
+ {"version":3,"file":"real-value.js","sourceRoot":"","sources":["../../src/to/real-value.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;AAK7E,QAAA,cAAc,GAAG,QAAoC,CAAC"}
@@ -1,8 +1,7 @@
1
- /**
2
- * Weak False items
3
- * */
4
- export declare const WeakFalseItems: readonly ["0", "-1", "false", "f", "no", "n", "off"];
1
+ declare const literals: readonly ["0", "-1", "false", "f", "no", "n", "off"];
5
2
  /**
6
3
  * Weak False
7
4
  * */
8
- export type WeakFalse = typeof WeakFalseItems[number];
5
+ export type WeakFalse = typeof literals[number];
6
+ export declare const WeakFalseItems: ReadonlyArray<WeakFalse>;
7
+ export {};
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WeakFalseItems = void 0;
4
- /**
5
- * Weak False items
6
- * */
7
- exports.WeakFalseItems = ['0', '-1', 'false', 'f', 'no', 'n', 'off'];
4
+ const literals = ['0', '-1', 'false', 'f', 'no', 'n', 'off'];
5
+ exports.WeakFalseItems = literals;
8
6
  //# sourceMappingURL=weak-false.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"weak-false.js","sourceRoot":"","sources":["../../src/to/weak-false.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,cAAc,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAU,CAAC"}
1
+ {"version":3,"file":"weak-false.js","sourceRoot":"","sources":["../../src/to/weak-false.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAU,CAAC;AAKzD,QAAA,cAAc,GAAG,QAAoC,CAAC"}
@@ -1,8 +1,7 @@
1
- /**
2
- * Weak True items
3
- * */
4
- export declare const WeakTrueItems: readonly ["1", "true", "t", "yes", "y", "on"];
5
1
  /**
6
2
  * Weak True
7
3
  * */
8
- export type WeakTrue = typeof WeakTrueItems[number];
4
+ declare const literals: readonly ["1", "true", "t", "yes", "y", "on"];
5
+ export type WeakTrue = typeof literals[number];
6
+ export declare const WeakTrueItems: ReadonlyArray<WeakTrue>;
7
+ export {};
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WeakTrueItems = void 0;
4
4
  /**
5
- * Weak True items
5
+ * Weak True
6
6
  * */
7
- exports.WeakTrueItems = ['1', 'true', 't', 'yes', 'y', 'on'];
7
+ const literals = ['1', 'true', 't', 'yes', 'y', 'on'];
8
+ exports.WeakTrueItems = literals;
8
9
  //# sourceMappingURL=weak-true.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"weak-true.js","sourceRoot":"","sources":["../../src/to/weak-true.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACQ,QAAA,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAU,CAAC"}
1
+ {"version":3,"file":"weak-true.js","sourceRoot":"","sources":["../../src/to/weak-true.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACL,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAU,CAAC;AAElD,QAAA,aAAa,GAAG,QAAmC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leyyo/common",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Common library",
5
5
  "keywords": [
6
6
  "common"
@@ -1,16 +0,0 @@
1
- import type { ConfigCommonLike, ConfigCommonSecure } from "./index.types";
2
- import type { LeyyoLike } from "../leyyo";
3
- import type { Dict } from "../shared";
4
- export declare class ConfigCommon implements ConfigCommonLike, ConfigCommonSecure {
5
- private lyy;
6
- private value;
7
- constructor(lyy: LeyyoLike);
8
- get<R = Dict>(pck?: string): R;
9
- private _read;
10
- read(): void;
11
- toJSON(): unknown;
12
- get $secure(): ConfigCommonSecure;
13
- get $back(): ConfigCommonLike;
14
- $init(): void;
15
- $update(value: Dict): void;
16
- }
@@ -1,81 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConfigCommon = void 0;
7
- const internal_1 = require("../internal");
8
- const yaml_1 = __importDefault(require("yaml"));
9
- const fs_1 = __importDefault(require("fs"));
10
- const node_path_1 = __importDefault(require("node:path"));
11
- class ConfigCommon {
12
- constructor(lyy) {
13
- this.lyy = lyy;
14
- }
15
- get(pck) {
16
- if (!this.value) {
17
- return undefined;
18
- }
19
- if (typeof pck === 'string') {
20
- if (!this.value[pck]) {
21
- return undefined;
22
- }
23
- return this.value[pck];
24
- }
25
- return this.value;
26
- }
27
- _read(folder, name) {
28
- const fullPath = node_path_1.default.normalize(`${folder}/leyyo${name}.yaml`);
29
- if (fs_1.default.existsSync(fullPath)) {
30
- const file = fs_1.default.readFileSync(fullPath, 'utf8');
31
- if (typeof file === 'string') {
32
- const value = yaml_1.default.parse(file);
33
- if (this.lyy.is.bareObject(value)) {
34
- this.value = value;
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- read() {
42
- let myEnv = {};
43
- if (this.lyy.is.object(process.env)) {
44
- myEnv = process.env;
45
- }
46
- const name = typeof myEnv.LEYYO_CONFIG === 'string' ? `.${myEnv.LEYYO_CONFIG}` : '';
47
- const parts = node_path_1.default.normalize(myEnv.PWD).split('/');
48
- let count = 0;
49
- while (count < 3) {
50
- if (this._read(parts.join('/'), name)) {
51
- break;
52
- }
53
- parts.pop();
54
- count++;
55
- }
56
- }
57
- toJSON() {
58
- var _a;
59
- return (_a = this.value) !== null && _a !== void 0 ? _a : { '_version': '0.0.0', warn: 'no-file' };
60
- }
61
- // region secure
62
- get $secure() {
63
- return this;
64
- }
65
- get $back() {
66
- return this;
67
- }
68
- $init() {
69
- this.read();
70
- this.lyy.$secure.$lazyRun(() => {
71
- this.lyy.fqn.register(null, ConfigCommon, 'class', internal_1.FQN);
72
- });
73
- }
74
- $update(value) {
75
- if (this.lyy.is.bareObject(value)) {
76
- this.value = value;
77
- }
78
- }
79
- }
80
- exports.ConfigCommon = ConfigCommon;
81
- //# sourceMappingURL=config.common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.common.js","sourceRoot":"","sources":["../../src/config/config.common.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAgC;AAChC,gDAAuB;AACvB,4CAAmB;AACnB,0DAA6B;AAM7B,MAAa,YAAY;IAGrB,YAAoB,GAAc;QAAd,QAAG,GAAH,GAAG,CAAW;IAClC,CAAC;IAED,GAAG,CAAW,GAAY;QACtB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBACnB,OAAO,SAAS,CAAC;YACrB,CAAC;YACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAM,CAAC;QAChC,CAAC;QACD,OAAO,IAAI,CAAC,KAAU,C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AE,IAAI,CAAC,EAAE,CAAC;gBACpC,MAAM;YACV,CAAC;YACD,KAAK,CAAC,GAAG,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;QACZ,CAAC;IACL,CAAC;IACD,MAAM;;QACF,OAAO,MAAA,IAAI,CAAC,KAAK,mCAAI,EAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAC,CAAC;IAChE,CAAC;IACD,gBAAgB;IAEhB,IAAI,OAAO;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,cAAG,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CAAC,KAAW;QACf,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;IACL,CAAC;CAGJ;AA5ED,oCA4EC"}
@@ -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/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,13 +0,0 @@
1
- import type { Dict, InitLike, ShiftMain, ShiftSecure } from "../shared";
2
- export interface ConfigCommonLike extends ShiftSecure<ConfigCommonSecure> {
3
- read(): void;
4
- get<R = Dict>(pck?: string): R;
5
- toJSON(): unknown;
6
- }
7
- export interface ConfigCommonSecure extends ShiftMain<ConfigCommonLike>, InitLike {
8
- $update(value: Dict): void;
9
- }
10
- export interface ConfigBasic {
11
- LEYYO_CONFIG: string;
12
- PWD: string;
13
- }
@@ -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/config/index.types.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { EnvCommonLike, EnvCommonSecure } from "./index.types";
2
- import type { LeyyoLike } from "../leyyo";
3
- import { EnvInstance } from "./env.instance";
4
- export declare class EnvCommon implements EnvCommonLike, EnvCommonSecure {
5
- private lyy;
6
- private _instances;
7
- private _keys;
8
- constructor(lyy: LeyyoLike);
9
- build<K extends string = string>(pck: string): EnvInstance<K>;
10
- $addKey(key: string, pck: string): void;
11
- get $secure(): EnvCommonSecure;
12
- get $back(): EnvCommonLike;
13
- $init(): void;
14
- }
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnvCommon = void 0;
4
- const internal_1 = require("../internal");
5
- const env_instance_1 = require("./env.instance");
6
- const WHERE = `${internal_1.FQN}.EnvCommon`;
7
- class EnvCommon {
8
- constructor(lyy) {
9
- this.lyy = lyy;
10
- }
11
- build(pck) {
12
- if (!this._instances) {
13
- this._instances = this.lyy.repo.newMap(`${WHERE}.instances`);
14
- }
15
- this.lyy.assertion.text(pck, () => {
16
- return { field: 'package', where: WHERE };
17
- });
18
- if (this._instances.has(pck)) {
19
- throw this.lyy.dev.developerError2(internal_1.FQN, 701, { message: 'Package name is duplicated', value: pck, where: WHERE });
20
- }
21
- const ins = new env_instance_1.EnvInstance(pck);
22
- this._instances.set(pck, ins);
23
- return ins;
24
- }
25
- $addKey(key, pck) {
26
- if (!this._keys) {
27
- this._keys = this.lyy.repo.newMap(`${WHERE}.keys`);
28
- }
29
- if (!this._keys.has(key)) {
30
- this._keys.set(key, [pck]);
31
- }
32
- else {
33
- const packages = this._keys.get(key);
34
- if (!packages.includes(pck)) {
35
- packages.push(pck);
36
- }
37
- }
38
- }
39
- get $secure() {
40
- return this;
41
- }
42
- get $back() {
43
- return this;
44
- }
45
- $init() {
46
- this.lyy.$secure.$lazyRun(() => {
47
- this.lyy.fqn.register(null, EnvCommon, 'class', internal_1.FQN);
48
- });
49
- }
50
- }
51
- exports.EnvCommon = EnvCommon;
52
- //# sourceMappingURL=env.common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.common.js","sourceRoot":"","sources":["../../src/env/env.common.ts"],"names":[],"mappings":";;;AAAA,0CAAgC;AAIhC,iDAA2C;AAE3C,MAAM,KAAK,GAAG,GAAG,cAAG,YAAY,CAAC;AACjC,MAAa,SAAS;IAKlB,YAAoB,GAAc;QAAd,QAAG,GAAH,GAAG,CAAW;IAElC,CAAC;IAED,KAAK,CAA4B,GAAW;QACxC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAA0B,GAAG,KAAK,YAAY,CAAC,CAAC;QAC1F,CAAC;QACD,I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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,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,cAAG,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AApDD,8BAoDC"}
@@ -1,5 +0,0 @@
1
- import type { EnvInstanceLike } from "./index.types";
2
- export declare class EnvInstance<K extends string = string> implements EnvInstanceLike<K> {
3
- private readonly pck;
4
- constructor(pck: string);
5
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnvInstance = void 0;
4
- class EnvInstance {
5
- constructor(pck) {
6
- this.pck = pck;
7
- }
8
- }
9
- exports.EnvInstance = EnvInstance;
10
- //# sourceMappingURL=env.instance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.instance.js","sourceRoot":"","sources":["../../src/env/env.instance.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IAEpB,YAA6B,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;IACxC,CAAC;CAEJ;AALD,kCAKC"}
@@ -1 +0,0 @@
1
- export * from './index.types';
package/dist/env/index.js DELETED
@@ -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/env/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,20 +0,0 @@
1
- import type { InitLike, ShiftMain, ShiftSecure } from "../shared";
2
- export type EnvPrimitiveValue = string | number | boolean;
3
- export type EnvLike<K extends string = string> = Record<K, EnvItem>;
4
- export interface EnvItem {
5
- ota?(v: boolean): unknown;
6
- def?(v: unknown): unknown;
7
- cast?(fn: (v: unknown) => unknown): void;
8
- assert?(fn: (v: unknown) => void): void;
9
- }
10
- export interface EnvInstanceLike<K extends string = string> {
11
- }
12
- export interface EnvCommonLike extends ShiftSecure<EnvCommonSecure> {
13
- build<K extends string = string>(pck: string): EnvInstanceLike<K>;
14
- }
15
- /**
16
- * Secure assertion methods
17
- * */
18
- export interface EnvCommonSecure extends ShiftMain<EnvCommonLike>, InitLike {
19
- $addKey(key: string, pck: string): void;
20
- }