typia 6.6.2 → 6.6.3-dev.20240801

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 (115) hide show
  1. package/lib/index.mjs +3493 -23
  2. package/lib/index.mjs.map +1 -1
  3. package/package.json +1 -1
  4. package/lib/TypeGuardError.mjs +0 -26
  5. package/lib/TypeGuardError.mjs.map +0 -1
  6. package/lib/_external/node_modules_drange_lib/index.mjs +0 -180
  7. package/lib/_external/node_modules_drange_lib/index.mjs.map +0 -1
  8. package/lib/_external/node_modules_randexp_lib/randexp.mjs +0 -270
  9. package/lib/_external/node_modules_randexp_lib/randexp.mjs.map +0 -1
  10. package/lib/_external/node_modules_ret_lib/index.mjs +0 -296
  11. package/lib/_external/node_modules_ret_lib/index.mjs.map +0 -1
  12. package/lib/_external/node_modules_ret_lib/positions.mjs +0 -11
  13. package/lib/_external/node_modules_ret_lib/positions.mjs.map +0 -1
  14. package/lib/_external/node_modules_ret_lib/sets.mjs +0 -55
  15. package/lib/_external/node_modules_ret_lib/sets.mjs.map +0 -1
  16. package/lib/_external/node_modules_ret_lib/types.mjs +0 -13
  17. package/lib/_external/node_modules_ret_lib/types.mjs.map +0 -1
  18. package/lib/_external/node_modules_ret_lib/util.mjs +0 -116
  19. package/lib/_external/node_modules_ret_lib/util.mjs.map +0 -1
  20. package/lib/_virtual/_commonjsHelpers.mjs +0 -6
  21. package/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  22. package/lib/_virtual/index.mjs +0 -4
  23. package/lib/_virtual/index.mjs.map +0 -1
  24. package/lib/_virtual/positions.mjs +0 -4
  25. package/lib/_virtual/positions.mjs.map +0 -1
  26. package/lib/_virtual/sets.mjs +0 -4
  27. package/lib/_virtual/sets.mjs.map +0 -1
  28. package/lib/_virtual/util.mjs +0 -4
  29. package/lib/_virtual/util.mjs.map +0 -1
  30. package/lib/functional/Namespace/functional.mjs +0 -8
  31. package/lib/functional/Namespace/functional.mjs.map +0 -1
  32. package/lib/functional/Namespace/http.mjs +0 -12
  33. package/lib/functional/Namespace/http.mjs.map +0 -1
  34. package/lib/functional/Namespace/index.mjs +0 -54
  35. package/lib/functional/Namespace/index.mjs.map +0 -1
  36. package/lib/functional/Namespace/json.mjs +0 -18
  37. package/lib/functional/Namespace/json.mjs.map +0 -1
  38. package/lib/functional/Namespace/misc.mjs +0 -16
  39. package/lib/functional/Namespace/misc.mjs.map +0 -1
  40. package/lib/functional/Namespace/notations.mjs +0 -24
  41. package/lib/functional/Namespace/notations.mjs.map +0 -1
  42. package/lib/functional/Namespace/protobuf.mjs +0 -22
  43. package/lib/functional/Namespace/protobuf.mjs.map +0 -1
  44. package/lib/functional/_FormDataReader/_FormDataReader.mjs +0 -64
  45. package/lib/functional/_FormDataReader/_FormDataReader.mjs.map +0 -1
  46. package/lib/functional/_HeadersReader/_HeadersReader.mjs +0 -25
  47. package/lib/functional/_HeadersReader/_HeadersReader.mjs.map +0 -1
  48. package/lib/functional/_ParameterReader/_ParameterReader.mjs +0 -25
  49. package/lib/functional/_ParameterReader/_ParameterReader.mjs.map +0 -1
  50. package/lib/functional/_ProtobufReader.mjs +0 -176
  51. package/lib/functional/_ProtobufReader.mjs.map +0 -1
  52. package/lib/functional/_ProtobufSizer.mjs +0 -131
  53. package/lib/functional/_ProtobufSizer.mjs.map +0 -1
  54. package/lib/functional/_ProtobufWriter.mjs +0 -122
  55. package/lib/functional/_ProtobufWriter.mjs.map +0 -1
  56. package/lib/functional/_QueryReader/_QueryReader.mjs +0 -38
  57. package/lib/functional/_QueryReader/_QueryReader.mjs.map +0 -1
  58. package/lib/functional/_any.mjs +0 -6
  59. package/lib/functional/_any.mjs.map +0 -1
  60. package/lib/functional/_clone.mjs +0 -62
  61. package/lib/functional/_clone.mjs.map +0 -1
  62. package/lib/functional/_convention.mjs +0 -37
  63. package/lib/functional/_convention.mjs.map +0 -1
  64. package/lib/functional/_every.mjs +0 -10
  65. package/lib/functional/_every.mjs.map +0 -1
  66. package/lib/functional/_guard.mjs +0 -18
  67. package/lib/functional/_guard.mjs.map +0 -1
  68. package/lib/functional/_is_between.mjs +0 -4
  69. package/lib/functional/_is_between.mjs.map +0 -1
  70. package/lib/functional/_join.mjs +0 -44
  71. package/lib/functional/_join.mjs.map +0 -1
  72. package/lib/functional/_number.mjs +0 -15
  73. package/lib/functional/_number.mjs.map +0 -1
  74. package/lib/functional/_report.mjs +0 -16
  75. package/lib/functional/_report.mjs.map +0 -1
  76. package/lib/functional/_rest.mjs +0 -6
  77. package/lib/functional/_rest.mjs.map +0 -1
  78. package/lib/functional/_stoll.mjs +0 -12
  79. package/lib/functional/_stoll.mjs.map +0 -1
  80. package/lib/functional/_string.mjs +0 -41
  81. package/lib/functional/_string.mjs.map +0 -1
  82. package/lib/functional/_strlen.mjs +0 -11
  83. package/lib/functional/_strlen.mjs.map +0 -1
  84. package/lib/functional/_tail.mjs +0 -7
  85. package/lib/functional/_tail.mjs.map +0 -1
  86. package/lib/functional/_throws.mjs +0 -11
  87. package/lib/functional/_throws.mjs.map +0 -1
  88. package/lib/functional/is.mjs +0 -13
  89. package/lib/functional/is.mjs.map +0 -1
  90. package/lib/functional.mjs +0 -150
  91. package/lib/functional.mjs.map +0 -1
  92. package/lib/http.mjs +0 -239
  93. package/lib/http.mjs.map +0 -1
  94. package/lib/json.mjs +0 -126
  95. package/lib/json.mjs.map +0 -1
  96. package/lib/misc.mjs +0 -154
  97. package/lib/misc.mjs.map +0 -1
  98. package/lib/module.mjs +0 -161
  99. package/lib/module.mjs.map +0 -1
  100. package/lib/notations.mjs +0 -222
  101. package/lib/notations.mjs.map +0 -1
  102. package/lib/protobuf.mjs +0 -157
  103. package/lib/protobuf.mjs.map +0 -1
  104. package/lib/reflect.mjs +0 -19
  105. package/lib/reflect.mjs.map +0 -1
  106. package/lib/tags/index.mjs +0 -2
  107. package/lib/tags/index.mjs.map +0 -1
  108. package/lib/utils/NamingConvention/NamingConvention.mjs +0 -84
  109. package/lib/utils/NamingConvention/NamingConvention.mjs.map +0 -1
  110. package/lib/utils/RandomGenerator/RandomGenerator.mjs +0 -104
  111. package/lib/utils/RandomGenerator/RandomGenerator.mjs.map +0 -1
  112. package/lib/utils/Singleton.mjs +0 -17
  113. package/lib/utils/Singleton.mjs.map +0 -1
  114. package/lib/utils/StringUtil/StringUtil.mjs +0 -4
  115. package/lib/utils/StringUtil/StringUtil.mjs.map +0 -1
@@ -1,55 +0,0 @@
1
- import { __exports as sets } from '../../_virtual/sets.mjs';
2
- import { t as types$1 } from './types.mjs';
3
-
4
- const types = types$1;
5
-
6
- const INTS = () => [{ type: types.RANGE , from: 48, to: 57 }];
7
-
8
- const WORDS = () => {
9
- return [
10
- { type: types.CHAR, value: 95 },
11
- { type: types.RANGE, from: 97, to: 122 },
12
- { type: types.RANGE, from: 65, to: 90 }
13
- ].concat(INTS());
14
- };
15
-
16
- const WHITESPACE = () => {
17
- return [
18
- { type: types.CHAR, value: 9 },
19
- { type: types.CHAR, value: 10 },
20
- { type: types.CHAR, value: 11 },
21
- { type: types.CHAR, value: 12 },
22
- { type: types.CHAR, value: 13 },
23
- { type: types.CHAR, value: 32 },
24
- { type: types.CHAR, value: 160 },
25
- { type: types.CHAR, value: 5760 },
26
- { type: types.RANGE, from: 8192, to: 8202 },
27
- { type: types.CHAR, value: 8232 },
28
- { type: types.CHAR, value: 8233 },
29
- { type: types.CHAR, value: 8239 },
30
- { type: types.CHAR, value: 8287 },
31
- { type: types.CHAR, value: 12288 },
32
- { type: types.CHAR, value: 65279 }
33
- ];
34
- };
35
-
36
- const NOTANYCHAR = () => {
37
- return [
38
- { type: types.CHAR, value: 10 },
39
- { type: types.CHAR, value: 13 },
40
- { type: types.CHAR, value: 8232 },
41
- { type: types.CHAR, value: 8233 },
42
- ];
43
- };
44
-
45
- // Predefined class objects.
46
- sets.words = () => ({ type: types.SET, set: WORDS(), not: false });
47
- sets.notWords = () => ({ type: types.SET, set: WORDS(), not: true });
48
- sets.ints = () => ({ type: types.SET, set: INTS(), not: false });
49
- sets.notInts = () => ({ type: types.SET, set: INTS(), not: true });
50
- sets.whitespace = () => ({ type: types.SET, set: WHITESPACE(), not: false });
51
- sets.notWhitespace = () => ({ type: types.SET, set: WHITESPACE(), not: true });
52
- sets.anyChar = () => ({ type: types.SET, set: NOTANYCHAR(), not: true });
53
-
54
- export { sets as default };
55
- //# sourceMappingURL=sets.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sets.mjs","sources":["../../../node_modules/ret/lib/sets.js"],"sourcesContent":["const types = require('./types');\n\nconst INTS = () => [{ type: types.RANGE , from: 48, to: 57 }];\n\nconst WORDS = () => {\n return [\n { type: types.CHAR, value: 95 },\n { type: types.RANGE, from: 97, to: 122 },\n { type: types.RANGE, from: 65, to: 90 }\n ].concat(INTS());\n};\n\nconst WHITESPACE = () => {\n return [\n { type: types.CHAR, value: 9 },\n { type: types.CHAR, value: 10 },\n { type: types.CHAR, value: 11 },\n { type: types.CHAR, value: 12 },\n { type: types.CHAR, value: 13 },\n { type: types.CHAR, value: 32 },\n { type: types.CHAR, value: 160 },\n { type: types.CHAR, value: 5760 },\n { type: types.RANGE, from: 8192, to: 8202 },\n { type: types.CHAR, value: 8232 },\n { type: types.CHAR, value: 8233 },\n { type: types.CHAR, value: 8239 },\n { type: types.CHAR, value: 8287 },\n { type: types.CHAR, value: 12288 },\n { type: types.CHAR, value: 65279 }\n ];\n};\n\nconst NOTANYCHAR = () => {\n return [\n { type: types.CHAR, value: 10 },\n { type: types.CHAR, value: 13 },\n { type: types.CHAR, value: 8232 },\n { type: types.CHAR, value: 8233 },\n ];\n};\n\n// Predefined class objects.\nexports.words = () => ({ type: types.SET, set: WORDS(), not: false });\nexports.notWords = () => ({ type: types.SET, set: WORDS(), not: true });\nexports.ints = () => ({ type: types.SET, set: INTS(), not: false });\nexports.notInts = () => ({ type: types.SET, set: INTS(), not: true });\nexports.whitespace = () => ({ type: types.SET, set: WHITESPACE(), not: false });\nexports.notWhitespace = () => ({ type: types.SET, set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,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;AACtE,IAAA,CAAA,QAAgB,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;AACxE,IAAA,CAAA,IAAY,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;AACpE,IAAA,CAAA,OAAe,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;AACtE,IAAA,CAAA,UAAkB,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;AAChF,IAAA,CAAA,aAAqB,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;AAClF,IAAA,CAAA,OAAe,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;;;;","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- var types = {
2
- ROOT : 0,
3
- GROUP : 1,
4
- POSITION : 2,
5
- SET : 3,
6
- RANGE : 4,
7
- REPETITION : 5,
8
- REFERENCE : 6,
9
- CHAR : 7,
10
- };
11
-
12
- export { types as t };
13
- //# sourceMappingURL=types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.mjs","sources":["../../../node_modules/ret/lib/types.js"],"sourcesContent":["module.exports = {\n ROOT : 0,\n GROUP : 1,\n POSITION : 2,\n SET : 3,\n RANGE : 4,\n REPETITION : 5,\n REFERENCE : 6,\n CHAR : 7,\n};\n"],"names":[],"mappings":"AAAA,IAAA,KAAc,GAAG;AACjB,EAAE,IAAI,SAAS,CAAC;AAChB,EAAE,KAAK,QAAQ,CAAC;AAChB,EAAE,QAAQ,KAAK,CAAC;AAChB,EAAE,GAAG,UAAU,CAAC;AAChB,EAAE,KAAK,QAAQ,CAAC;AAChB,EAAE,UAAU,GAAG,CAAC;AAChB,EAAE,SAAS,IAAI,CAAC;AAChB,EAAE,IAAI,SAAS,CAAC;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,116 +0,0 @@
1
- import { __exports as util } from '../../_virtual/util.mjs';
2
- import { t as types } from './types.mjs';
3
- import './sets.mjs';
4
- import { __exports as sets } from '../../_virtual/sets.mjs';
5
-
6
- (function (exports) {
7
- const types$1 = types;
8
- const sets$1 = sets;
9
-
10
-
11
- const CTRL = '@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?';
12
- const SLSH = { '0': 0, 't': 9, 'n': 10, 'v': 11, 'f': 12, 'r': 13 };
13
-
14
- /**
15
- * Finds character representations in str and convert all to
16
- * their respective characters
17
- *
18
- * @param {String} str
19
- * @return {String}
20
- */
21
- exports.strToChars = function(str) {
22
- /* jshint maxlen: false */
23
- var chars_regex = /(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;
24
- str = str.replace(chars_regex, function(s, b, lbs, a16, b16, c8, dctrl, eslsh) {
25
- if (lbs) {
26
- return s;
27
- }
28
-
29
- var code = b ? 8 :
30
- a16 ? parseInt(a16, 16) :
31
- b16 ? parseInt(b16, 16) :
32
- c8 ? parseInt(c8, 8) :
33
- dctrl ? CTRL.indexOf(dctrl) :
34
- SLSH[eslsh];
35
-
36
- var c = String.fromCharCode(code);
37
-
38
- // Escape special regex characters.
39
- if (/[[\]{}^$.|?*+()]/.test(c)) {
40
- c = '\\' + c;
41
- }
42
-
43
- return c;
44
- });
45
-
46
- return str;
47
- };
48
-
49
-
50
- /**
51
- * turns class into tokens
52
- * reads str until it encounters a ] not preceeded by a \
53
- *
54
- * @param {String} str
55
- * @param {String} regexpStr
56
- * @return {Array.<Array.<Object>, Number>}
57
- */
58
- exports.tokenizeClass = (str, regexpStr) => {
59
- /* jshint maxlen: false */
60
- var tokens = [];
61
- var regexp = /\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;
62
- var rs, c;
63
-
64
-
65
- while ((rs = regexp.exec(str)) != null) {
66
- if (rs[1]) {
67
- tokens.push(sets$1.words());
68
-
69
- } else if (rs[2]) {
70
- tokens.push(sets$1.ints());
71
-
72
- } else if (rs[3]) {
73
- tokens.push(sets$1.whitespace());
74
-
75
- } else if (rs[4]) {
76
- tokens.push(sets$1.notWords());
77
-
78
- } else if (rs[5]) {
79
- tokens.push(sets$1.notInts());
80
-
81
- } else if (rs[6]) {
82
- tokens.push(sets$1.notWhitespace());
83
-
84
- } else if (rs[7]) {
85
- tokens.push({
86
- type: types$1.RANGE,
87
- from: (rs[8] || rs[9]).charCodeAt(0),
88
- to: rs[10].charCodeAt(0),
89
- });
90
-
91
- } else if ((c = rs[12])) {
92
- tokens.push({
93
- type: types$1.CHAR,
94
- value: c.charCodeAt(0),
95
- });
96
-
97
- } else {
98
- return [tokens, regexp.lastIndex];
99
- }
100
- }
101
-
102
- exports.error(regexpStr, 'Unterminated character class');
103
- };
104
-
105
-
106
- /**
107
- * Shortcut to throw errors.
108
- *
109
- * @param {String} regexp
110
- * @param {String} msg
111
- */
112
- exports.error = (regexp, msg) => {
113
- throw new SyntaxError('Invalid regular expression: /' + regexp + '/: ' + msg);
114
- };
115
- } (util));
116
- //# sourceMappingURL=util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.mjs","sources":["../../../node_modules/ret/lib/util.js"],"sourcesContent":["const types = require('./types');\nconst sets = require('./sets');\n\n\nconst CTRL = '@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^ ?';\nconst SLSH = { '0': 0, 't': 9, 'n': 10, 'v': 11, 'f': 12, 'r': 13 };\n\n/**\n * Finds character representations in str and convert all to\n * their respective characters\n *\n * @param {String} str\n * @return {String}\n */\nexports.strToChars = function(str) {\n /* jshint maxlen: false */\n var chars_regex = /(\\[\\\\b\\])|(\\\\)?\\\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\\\\]^?])|([0tnvfr]))/g;\n str = str.replace(chars_regex, function(s, b, lbs, a16, b16, c8, dctrl, eslsh) {\n if (lbs) {\n return s;\n }\n\n var code = b ? 8 :\n a16 ? parseInt(a16, 16) :\n b16 ? parseInt(b16, 16) :\n c8 ? parseInt(c8, 8) :\n dctrl ? CTRL.indexOf(dctrl) :\n SLSH[eslsh];\n\n var c = String.fromCharCode(code);\n\n // Escape special regex characters.\n if (/[[\\]{}^$.|?*+()]/.test(c)) {\n c = '\\\\' + c;\n }\n\n return c;\n });\n\n return str;\n};\n\n\n/**\n * turns class into tokens\n * reads str until it encounters a ] not preceeded by a \\\n *\n * @param {String} str\n * @param {String} regexpStr\n * @return {Array.<Array.<Object>, Number>}\n */\nexports.tokenizeClass = (str, regexpStr) => {\n /* jshint maxlen: false */\n var tokens = [];\n var regexp = /\\\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\\\)(.)|([^\\]\\\\]))-(?:\\\\)?([^\\]]))|(\\])|(?:\\\\)?([^])/g;\n var rs, c;\n\n\n while ((rs = regexp.exec(str)) != null) {\n if (rs[1]) {\n tokens.push(sets.words());\n\n } else if (rs[2]) {\n tokens.push(sets.ints());\n\n } else if (rs[3]) {\n tokens.push(sets.whitespace());\n\n } else if (rs[4]) {\n tokens.push(sets.notWords());\n\n } else if (rs[5]) {\n tokens.push(sets.notInts());\n\n } else if (rs[6]) {\n tokens.push(sets.notWhitespace());\n\n } else if (rs[7]) {\n tokens.push({\n type: types.RANGE,\n from: (rs[8] || rs[9]).charCodeAt(0),\n to: rs[10].charCodeAt(0),\n });\n\n } else if ((c = rs[12])) {\n tokens.push({\n type: types.CHAR,\n value: c.charCodeAt(0),\n });\n\n } else {\n return [tokens, regexp.lastIndex];\n }\n }\n\n exports.error(regexpStr, 'Unterminated character class');\n};\n\n\n/**\n * Shortcut to throw errors.\n *\n * @param {String} regexp\n * @param {String} msg\n */\nexports.error = (regexp, msg) => {\n throw new SyntaxError('Invalid regular expression: /' + regexp + '/: ' + msg);\n};\n"],"names":["types","require$$0","sets","require$$1"],"mappings":";;;;;;CAAA,MAAMA,OAAK,GAAGC,KAAkB,CAAC;CACjC,MAAMC,MAAI,IAAIC,IAAiB,CAAC;AAChC;AACA;CACA,MAAM,IAAI,GAAG,oCAAoC,CAAC;CAClD,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,OAAqB,CAAA,UAAA,GAAA,SAAS,GAAG,EAAE;AACnC;AACA,GAAE,IAAI,WAAW,GAAG,8FAA8F,CAAC;GACjH,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;KAC7E,IAAI,GAAG,EAAE;OACP,OAAO,CAAC,CAAC;MACV;AACL;AACA,KAAI,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC;AACpB,OAAM,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC;AAC/B,OAAM,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE,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MAAM,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC;EAC/E,CAAA;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- function getDefaultExportFromCjs (x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
- }
4
-
5
- export { getDefaultExportFromCjs };
6
- //# sourceMappingURL=_commonjsHelpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,4 +0,0 @@
1
- var lib = {exports: {}};
2
-
3
- export { lib as __module };
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var positions = {};
2
-
3
- export { positions as __exports };
4
- //# sourceMappingURL=positions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"positions.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var sets = {};
2
-
3
- export { sets as __exports };
4
- //# sourceMappingURL=sets.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sets.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var util = {};
2
-
3
- export { util as __exports };
4
- //# sourceMappingURL=util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,8 +0,0 @@
1
- import { TypeGuardError } from '../../TypeGuardError.mjs';
2
-
3
- const functionalAssert = () => ({
4
- errorFactory: (p) => new TypeGuardError(p),
5
- });
6
-
7
- export { functionalAssert };
8
- //# sourceMappingURL=functional.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functional.mjs","sources":["../../../src/functional/Namespace/functional.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEa,MAAA,gBAAgB,GAAG,OAAO;IACrC,YAAY,EAAE,CAAC,CAAwB,KAAK,IAAI,cAAc,CAAC,CAAC,CAAC;AAClE,CAAA;;;;"}
@@ -1,12 +0,0 @@
1
- import * as $FormDataReader from '../_FormDataReader/_FormDataReader.mjs';
2
- import * as $HeadersReader from '../_HeadersReader/_HeadersReader.mjs';
3
- import * as $ParameterReader from '../_ParameterReader/_ParameterReader.mjs';
4
- import * as $QueryReader from '../_QueryReader/_QueryReader.mjs';
5
-
6
- const formData = () => $FormDataReader;
7
- const headers = () => $HeadersReader;
8
- const parameter = () => $ParameterReader;
9
- const query = () => $QueryReader;
10
-
11
- export { formData, headers, parameter, query };
12
- //# sourceMappingURL=http.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.mjs","sources":["../../../src/functional/Namespace/http.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;MAKa,QAAQ,GAAG,MAAM,gBAAgB;MACjC,OAAO,GAAG,MAAM,eAAe;MAC/B,SAAS,GAAG,MAAM,iBAAiB;MACnC,KAAK,GAAG,MAAM;;;;"}
@@ -1,54 +0,0 @@
1
- import * as RandomGenerator from '../../utils/RandomGenerator/RandomGenerator.mjs';
2
- import { pick } from '../../utils/RandomGenerator/RandomGenerator.mjs';
3
- import { $every } from '../_every.mjs';
4
- import { $guard } from '../_guard.mjs';
5
- import { $join } from '../_join.mjs';
6
- import { $report } from '../_report.mjs';
7
- import { TypeGuardError } from '../../TypeGuardError.mjs';
8
- import { is } from '../is.mjs';
9
-
10
- const assert = (method) => ({
11
- ...is(),
12
- join: $join,
13
- every: $every,
14
- guard: $guard(`typia.${method}`),
15
- predicate: (matched, exceptionable, closure) => {
16
- if (matched === false && exceptionable === true)
17
- throw new TypeGuardError({
18
- ...closure(),
19
- method: `typia.${method}`,
20
- });
21
- return matched;
22
- },
23
- });
24
- const validate = () => ({
25
- ...is(),
26
- join: $join,
27
- report: $report,
28
- predicate: (res) => (matched, exceptionable, closure) => {
29
- // CHECK FAILURE
30
- if (matched === false && exceptionable === true)
31
- (() => {
32
- res.success &&= false;
33
- const errorList = res.errors;
34
- // TRACE ERROR
35
- const error = closure();
36
- if (errorList.length) {
37
- const last = errorList[errorList.length - 1].path;
38
- if (last.length >= error.path.length &&
39
- last.substring(0, error.path.length) === error.path)
40
- return;
41
- }
42
- errorList.push(error);
43
- return;
44
- })();
45
- return matched;
46
- },
47
- });
48
- const random = () => ({
49
- generator: RandomGenerator,
50
- pick: pick,
51
- });
52
-
53
- export { assert, is, random, validate };
54
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/functional/Namespace/index.ts"],"sourcesContent":[null],"names":["RandomGenerator.pick"],"mappings":";;;;;;;;;MAmBa,MAAM,GAAG,CAAC,MAAc,MAAM;AACzC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,KAAK,EAAE,MAAM,CAAC,CAAS,MAAA,EAAA,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,CACT,OAAgB,EAChB,aAAsB,EACtB,OAAoD,KACzC;AACX,QAAA,IAAI,OAAO,KAAK,KAAK,IAAI,aAAa,KAAK,IAAI;YAC7C,MAAM,IAAI,cAAc,CAAC;AACvB,gBAAA,GAAG,OAAO,EAAE;gBACZ,MAAM,EAAE,CAAS,MAAA,EAAA,MAAM,CAAE,CAAA;AAC1B,aAAA,CAAC,CAAC;AACL,QAAA,OAAO,OAAO,CAAC;KAChB;AACF,CAAA,EAAE;AAEU,MAAA,QAAQ,GAAG,OAAO;AAC7B,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,SAAS,EACP,CAAC,GAAgB,KACjB,CACE,OAAgB,EAChB,aAAsB,EACtB,OAAiC,KAC/B;;AAEF,QAAA,IAAI,OAAO,KAAK,KAAK,IAAI,aAAa,KAAK,IAAI;AAC7C,YAAA,CAAC,MAAK;AACJ,gBAAA,GAAG,CAAC,OAAO,KAAK,KAAK,CAAC;AACtB,gBAAA,MAAM,SAAS,GAAI,GAA4B,CAAC,MAAM,CAAC;;AAGvD,gBAAA,MAAM,KAAK,GAAG,OAAO,EAAE,CAAC;AACxB,gBAAA,IAAI,SAAS,CAAC,MAAM,EAAE;AACpB,oBAAA,MAAM,IAAI,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,IAAI,CAAC;oBACnD,IACE,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM;AAChC,wBAAA,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,IAAI;wBAEnD,OAAO;iBACV;AACD,gBAAA,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACtB,OAAO;aACR,GAAG,CAAC;AACP,QAAA,OAAO,OAAO,CAAC;KAChB;AACJ,CAAA,EAAE;AAEU,MAAA,MAAM,GAAG,OAAO;AAC3B,IAAA,SAAS,EAAE,eAAe;IAC1B,IAAI,EAAEA,IAAoB;AAC3B,CAAA;;;;"}
@@ -1,18 +0,0 @@
1
- import { $number } from '../_number.mjs';
2
- import { $rest } from '../_rest.mjs';
3
- import { $string } from '../_string.mjs';
4
- import { $tail } from '../_tail.mjs';
5
- import { $throws } from '../_throws.mjs';
6
- import { is } from '../is.mjs';
7
-
8
- const stringify = (method) => ({
9
- ...is(),
10
- number: $number,
11
- string: $string,
12
- tail: $tail,
13
- rest: $rest,
14
- throws: $throws(`json.${method}`),
15
- });
16
-
17
- export { stringify };
18
- //# sourceMappingURL=json.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.mjs","sources":["../../../src/functional/Namespace/json.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;MAOa,SAAS,GAAG,CAAC,MAAc,MAAM;AAC5C,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,MAAM,EAAE,OAAO,CAAC,CAAQ,KAAA,EAAA,MAAM,EAAE,CAAC;AAClC,CAAA;;;;"}
@@ -1,16 +0,0 @@
1
- import { $any } from '../_any.mjs';
2
- import { $throws } from '../_throws.mjs';
3
- import { is } from '../is.mjs';
4
-
5
- const clone = (method) => ({
6
- ...is(),
7
- throws: $throws(`misc.${method}`),
8
- any: $any,
9
- });
10
- const prune = (method) => ({
11
- ...is(),
12
- throws: $throws(`misc.${method}`),
13
- });
14
-
15
- export { clone, prune };
16
- //# sourceMappingURL=misc.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"misc.mjs","sources":["../../../src/functional/Namespace/misc.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;MAIa,KAAK,GAAG,CAAC,MAAc,MAAM;AACxC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,MAAM,EAAE,OAAO,CAAC,CAAQ,KAAA,EAAA,MAAM,EAAE,CAAC;AACjC,IAAA,GAAG,EAAE,IAAI;AACV,CAAA,EAAE;MAEU,KAAK,GAAG,CAAC,MAAc,MAAM;AACxC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,MAAM,EAAE,OAAO,CAAC,CAAQ,KAAA,EAAA,MAAM,EAAE,CAAC;AAClC,CAAA;;;;"}
@@ -1,24 +0,0 @@
1
- import { camel as camel$1, pascal as pascal$1, snake as snake$1 } from '../../utils/NamingConvention/NamingConvention.mjs';
2
- import { $convention } from '../_convention.mjs';
3
- import { $throws } from '../_throws.mjs';
4
- import { is } from '../is.mjs';
5
-
6
- const camel = (method) => ({
7
- ...base(method),
8
- any: $convention(camel$1),
9
- });
10
- const pascal = (method) => ({
11
- ...base(method),
12
- any: $convention(pascal$1),
13
- });
14
- const snake = (method) => ({
15
- ...base(method),
16
- any: $convention(snake$1),
17
- });
18
- const base = (method) => ({
19
- ...is(),
20
- throws: $throws(`notations.${method}`),
21
- });
22
-
23
- export { camel, pascal, snake };
24
- //# sourceMappingURL=notations.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notations.mjs","sources":["../../../src/functional/Namespace/notations.ts"],"sourcesContent":[null],"names":["NamingConvention.camel","NamingConvention.pascal","NamingConvention.snake"],"mappings":";;;;;MAMa,KAAK,GAAG,CAAC,MAAc,MAAM;IACxC,GAAG,IAAI,CAAC,MAAM,CAAC;AACf,IAAA,GAAG,EAAE,WAAW,CAACA,OAAsB,CAAC;AACzC,CAAA,EAAE;MACU,MAAM,GAAG,CAAC,MAAc,MAAM;IACzC,GAAG,IAAI,CAAC,MAAM,CAAC;AACf,IAAA,GAAG,EAAE,WAAW,CAACC,QAAuB,CAAC;AAC1C,CAAA,EAAE;MACU,KAAK,GAAG,CAAC,MAAc,MAAM;IACxC,GAAG,IAAI,CAAC,MAAM,CAAC;AACf,IAAA,GAAG,EAAE,WAAW,CAACC,OAAsB,CAAC;AACzC,CAAA,EAAE;AAEH,MAAM,IAAI,GAAG,CAAC,MAAc,MAAM;AAChC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,MAAM,EAAE,OAAO,CAAC,CAAa,UAAA,EAAA,MAAM,EAAE,CAAC;AACvC,CAAA,CAAC;;;;"}
@@ -1,22 +0,0 @@
1
- import { $ProtobufReader } from '../_ProtobufReader.mjs';
2
- import { $ProtobufSizer } from '../_ProtobufSizer.mjs';
3
- import { $ProtobufWriter } from '../_ProtobufWriter.mjs';
4
- import { $strlen } from '../_strlen.mjs';
5
- import { $throws } from '../_throws.mjs';
6
- import { is } from '../is.mjs';
7
-
8
- const decode = (method) => ({
9
- ...is(),
10
- Reader: $ProtobufReader,
11
- throws: $throws(`protobuf.${method}`),
12
- });
13
- const encode = (method) => ({
14
- ...is(),
15
- Sizer: $ProtobufSizer,
16
- Writer: $ProtobufWriter,
17
- strlen: $strlen,
18
- throws: $throws(method),
19
- });
20
-
21
- export { decode, encode };
22
- //# sourceMappingURL=protobuf.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protobuf.mjs","sources":["../../../src/functional/Namespace/protobuf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;MAOa,MAAM,GAAG,CAAC,MAAc,MAAM;AACzC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,MAAM,EAAE,OAAO,CAAC,CAAY,SAAA,EAAA,MAAM,EAAE,CAAC;AACtC,CAAA,EAAE;MAEU,MAAM,GAAG,CAAC,MAAc,MAAM;AACzC,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,KAAK,EAAE,cAAc;AACrB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;AACxB,CAAA;;;;"}
@@ -1,64 +0,0 @@
1
- const boolean = (input) => input instanceof File
2
- ? input
3
- : input === null
4
- ? undefined
5
- : input === "null"
6
- ? null
7
- : input.length === 0
8
- ? true
9
- : input === "true" || input === "1"
10
- ? true
11
- : input === "false" || input === "0"
12
- ? false
13
- : input; // wrong type
14
- const number = (input) => input instanceof File
15
- ? input
16
- : !!input?.length
17
- ? input === "null"
18
- ? null
19
- : toNumber(input)
20
- : undefined;
21
- const bigint = (input) => input instanceof File
22
- ? input
23
- : !!input?.length
24
- ? input === "null"
25
- ? null
26
- : toBigint(input)
27
- : undefined;
28
- const string = (input) => input instanceof File
29
- ? input
30
- : input === null
31
- ? undefined
32
- : input === "null"
33
- ? null
34
- : input;
35
- const array = (input, alternative) => input.length ? input : alternative;
36
- const blob = (input) => input instanceof Blob
37
- ? input
38
- : input === null
39
- ? undefined
40
- : input === "null"
41
- ? null
42
- : input;
43
- const file = (input) => input instanceof File
44
- ? input
45
- : input === null
46
- ? undefined
47
- : input === "null"
48
- ? null
49
- : input;
50
- const toNumber = (str) => {
51
- const value = Number(str);
52
- return isNaN(value) ? str : value;
53
- };
54
- const toBigint = (str) => {
55
- try {
56
- return BigInt(str);
57
- }
58
- catch {
59
- return str;
60
- }
61
- };
62
-
63
- export { array, bigint, blob, boolean, file, number, string };
64
- //# sourceMappingURL=_FormDataReader.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_FormDataReader.mjs","sources":["../../../src/functional/$FormDataReader/$FormDataReader.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAa,MAAA,OAAO,GAAG,CACrB,KAA2B,KAE3B,KAAK,YAAY,IAAI;AACnB,MAAG,KAAa;MACd,KAAK,KAAK,IAAI;AACd,UAAE,SAAS;UACT,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;AACN,cAAE,KAAK,CAAC,MAAM,KAAK,CAAC;AAClB,kBAAE,IAAI;AACN,kBAAE,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG;AACjC,sBAAE,IAAI;AACN,sBAAE,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,GAAG;AAClC,0BAAE,KAAK;AACP,0BAAG,MAAc;AAElB,MAAA,MAAM,GAAG,CACpB,KAA2B,KAE3B,KAAK,YAAY,IAAI;AACnB,MAAG,KAAa;AAChB,MAAE,CAAC,CAAC,KAAK,EAAE,MAAM;UACb,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;AACN,cAAG,QAAQ,CAAC,KAAK,CAAS;UAC1B,UAAU;AAEL,MAAA,MAAM,GAAG,CACpB,KAA2B,KAE3B,KAAK,YAAY,IAAI;AACnB,MAAG,KAAa;AAChB,MAAE,CAAC,CAAC,KAAK,EAAE,MAAM;UACb,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;AACN,cAAG,QAAQ,CAAC,KAAK,CAAS;UAC1B,UAAU;AAEL,MAAA,MAAM,GAAG,CACpB,KAA2B,KAE3B,KAAK,YAAY,IAAI;AACnB,MAAG,KAAa;MACd,KAAK,KAAK,IAAI;AACd,UAAE,SAAS;UACT,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;cACJ,MAAM;MAEH,KAAK,GAAG,CAAC,KAAY,EAAE,WAA6B,KAC/D,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,YAAY;AAExB,MAAA,IAAI,GAAG,CAAC,KAA2B,KAC9C,KAAK,YAAY,IAAI;AACnB,MAAE,KAAK;MACL,KAAK,KAAK,IAAI;AACd,UAAE,SAAS;UACT,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;cACH,MAAc;AAEZ,MAAA,IAAI,GAAG,CAAC,KAA2B,KAC9C,KAAK,YAAY,IAAI;AACnB,MAAE,KAAK;MACL,KAAK,KAAK,IAAI;AACd,UAAE,SAAS;UACT,KAAK,KAAK,MAAM;AAChB,cAAE,IAAI;cACH,MAAc;AAEzB,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,MAAM,KAAK,GAAW,MAAM,CAAC,GAAG,CAAC,CAAC;AAClC,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,IAAI;AACF,QAAA,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACpB;AAAC,IAAA,MAAM;AACN,QAAA,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;;;;"}
@@ -1,25 +0,0 @@
1
- const boolean = (value) => value !== undefined
2
- ? value === "true"
3
- ? true
4
- : value === "false"
5
- ? false
6
- : value
7
- : undefined;
8
- const bigint = (value) => value !== undefined ? toBigint(value) : undefined;
9
- const number = (value) => value !== undefined ? toNumber(value) : undefined;
10
- const string = (value) => value;
11
- const toBigint = (str) => {
12
- try {
13
- return BigInt(str);
14
- }
15
- catch {
16
- return str;
17
- }
18
- };
19
- const toNumber = (str) => {
20
- const value = Number(str);
21
- return isNaN(value) ? str : value;
22
- };
23
-
24
- export { bigint, boolean, number, string };
25
- //# sourceMappingURL=_HeadersReader.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_HeadersReader.mjs","sources":["../../../src/functional/$HeadersReader/$HeadersReader.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAa,MAAA,OAAO,GAAG,CAAC,KAAyB,KAC/C,KAAK,KAAK,SAAS;MACf,KAAK,KAAK,MAAM;AAChB,UAAE,IAAI;UACJ,KAAK,KAAK,OAAO;AACjB,cAAE,KAAK;AACP,cAAE,KAAK;MACT,UAAU;MACH,MAAM,GAAG,CAAC,KAAyB,KAC9C,KAAK,KAAK,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,UAAU;MACvC,MAAM,GAAG,CAAC,KAAyB,KAC9C,KAAK,KAAK,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,UAAU;AACvC,MAAA,MAAM,GAAG,CAAC,KAAyB,KAAK,MAAM;AAE3D,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,IAAI;AACF,QAAA,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACpB;AAAC,IAAA,MAAM;AACN,QAAA,OAAO,GAAG,CAAC;KACZ;AACH,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,MAAM,KAAK,GAAW,MAAM,CAAC,GAAG,CAAC,CAAC;AAClC,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC;AACpC,CAAC;;;;"}
@@ -1,25 +0,0 @@
1
- const boolean = (value) => value !== "null"
2
- ? value === "true" || value === "1"
3
- ? true
4
- : value === "false" || value === "0"
5
- ? false
6
- : value
7
- : null;
8
- const bigint = (value) => value !== "null" ? toBigint(value) : null;
9
- const number = (value) => value !== "null" ? toNumber(value) : null;
10
- const string = (value) => (value !== "null" ? value : null);
11
- const toNumber = (str) => {
12
- const value = Number(str);
13
- return isNaN(value) ? str : value;
14
- };
15
- const toBigint = (str) => {
16
- try {
17
- return BigInt(str);
18
- }
19
- catch {
20
- return str;
21
- }
22
- };
23
-
24
- export { bigint, boolean, number, string };
25
- //# sourceMappingURL=_ParameterReader.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_ParameterReader.mjs","sources":["../../../src/functional/$ParameterReader/$ParameterReader.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAa,MAAA,OAAO,GAAG,CAAC,KAAa,KACnC,KAAK,KAAK,MAAM;AACd,MAAE,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG;AACjC,UAAE,IAAI;AACN,UAAE,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,GAAG;AAClC,cAAE,KAAK;AACP,cAAE,KAAK;MACT,KAAK;MAEE,MAAM,GAAG,CAAC,KAAa,KAClC,KAAK,KAAK,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK;MAE/B,MAAM,GAAG,CAAC,KAAa,KAClC,KAAK,KAAK,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK;MAE/B,MAAM,GAAG,CAAC,KAAa,MAAM,KAAK,KAAK,MAAM,GAAG,KAAK,GAAG,IAAI,EAAE;AAE3E,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,MAAM,KAAK,GAAW,MAAM,CAAC,GAAG,CAAC,CAAC;AAClC,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,GAAW,KAAqB;AAChD,IAAA,IAAI;AACF,QAAA,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACpB;AAAC,IAAA,MAAM;AACN,QAAA,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;;;;"}