prototype-helper 0.4.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +7 -7
- package/LICENSE +21 -21
- package/README.md +701 -686
- package/biome.json +43 -0
- package/dist/extension/array.test.d.ts +1 -0
- package/dist/extension/object.d.ts +6 -0
- package/dist/index.js +8 -10
- package/dist/interface/array.d.ts +5 -4
- package/dist/interface/number.d.ts +3 -3
- package/dist/interface/string.d.ts +2 -2
- package/dist/override/math.d.ts +7 -1
- package/dist/utils/binarySearch.d.ts +4 -0
- package/dist/utils/mostFrequent.d.ts +4 -0
- package/lint-result.txt +496 -0
- package/package.json +12 -48
- package/tsconfig.json +33 -48
- package/dist/extension/array.js +0 -118
- package/dist/extension/array.js.map +0 -1
- package/dist/extension/array.test.js +0 -238
- package/dist/extension/array.test.js.map +0 -1
- package/dist/extension/index.js +0 -7
- package/dist/extension/index.js.map +0 -1
- package/dist/extension/number.js +0 -96
- package/dist/extension/number.js.map +0 -1
- package/dist/extension/number.test.js +0 -234
- package/dist/extension/number.test.js.map +0 -1
- package/dist/extension/object.js +0 -13
- package/dist/extension/object.js.map +0 -1
- package/dist/extension/string.js +0 -59
- package/dist/extension/string.js.map +0 -1
- package/dist/extension/string.test.js +0 -116
- package/dist/extension/string.test.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interface/array.js +0 -2
- package/dist/interface/array.js.map +0 -1
- package/dist/interface/index.js +0 -6
- package/dist/interface/index.js.map +0 -1
- package/dist/interface/number.js +0 -3
- package/dist/interface/number.js.map +0 -1
- package/dist/interface/object.js +0 -6
- package/dist/interface/object.js.map +0 -1
- package/dist/interface/string.js +0 -2
- package/dist/interface/string.js.map +0 -1
- package/dist/override/console.js +0 -71
- package/dist/override/console.js.map +0 -1
- package/dist/override/index.js +0 -6
- package/dist/override/index.js.map +0 -1
- package/dist/override/linq.d.ts +0 -1
- package/dist/override/linq.js +0 -3
- package/dist/override/linq.js.map +0 -1
- package/dist/override/math.js +0 -24
- package/dist/override/math.js.map +0 -1
- package/dist/test.js +0 -123
- package/dist/test.js.map +0 -1
- package/dist/utils/deepCopy.d.ts +0 -2
- package/dist/utils/deepCopy.js +0 -14
- package/dist/utils/deepCopy.js.map +0 -1
- package/dist/utils/math.js +0 -21
- package/dist/utils/math.js.map +0 -1
- package/dist/utils/valid.js +0 -14
- package/dist/utils/valid.js.map +0 -1
- package/yarn-error.log +0 -4329
package/lint-result.txt
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
.\src\extension\number.ts format ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺??
|
|
2
|
+
횞 Formatter would have printed the following content:
|
|
3
|
+
|
|
4
|
+
68 68 ??
|
|
5
|
+
69 69 ?? Number.prototype.addSymbol = function (space = "") {
|
|
6
|
+
70 ??- 쨌쨌return쨌`${
|
|
7
|
+
71 ??- 쨌쨌쨌쨌Number(this)쨌>쨌0쨌?쨌"+"쨌:쨌Number(this)쨌<쨌0쨌?쨌"-"쨌:쨌""
|
|
8
|
+
72 ??- 쨌쨌}${space}${Math.abs(Number(this))}`;
|
|
9
|
+
70 ??+ 쨌쨌return쨌`${Number(this)쨌>쨌0쨌?쨌"+"쨌:쨌Number(this)쨌<쨌0쨌?쨌"-"쨌:쨌""}${space}${Math.abs(Number(this))}`;
|
|
10
|
+
73 71 ?? };
|
|
11
|
+
74 72 ??
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.\src\extension\string.ts format ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺??
|
|
15
|
+
횞 Formatter would have printed the following content:
|
|
16
|
+
|
|
17
|
+
1 1 ?? import { isNumber } from "../utils/valid";
|
|
18
|
+
2 2 ??
|
|
19
|
+
3 ??- String.prototype.leadingChars쨌=쨌function쨌(
|
|
20
|
+
4 ??- 쨌쨌chars:쨌string쨌|쨌number,
|
|
21
|
+
5 ??- 쨌쨌length:쨌number
|
|
22
|
+
6 ??- ):쨌string쨌{
|
|
23
|
+
3 ??+ String.prototype.leadingChars쨌=쨌function쨌(chars:쨌string쨌|쨌number,쨌length:쨌number):쨌string쨌{
|
|
24
|
+
7 4 ?? return (chars.toString().repeat(length) + this).substr(-length);
|
|
25
|
+
8 5 ?? };
|
|
26
|
+
쨌쨌쨌쨌쨌 ??
|
|
27
|
+
24 21 ??
|
|
28
|
+
25 22 ?? const neg = point[0].indexOf("-") === 0;
|
|
29
|
+
26 ??- 쨌쨌let쨌result쨌=쨌Math.abs(Number(point[0]))
|
|
30
|
+
27 ??- 쨌쨌쨌쨌.toNumber()
|
|
31
|
+
28 ??- 쨌쨌쨌쨌.toString()
|
|
32
|
+
29 ??- 쨌쨌쨌쨌.padStart(length,쨌"0");
|
|
33
|
+
23 ??+ 쨌쨌let쨌result쨌=쨌Math.abs(Number(point[0])).toNumber().toString().padStart(length,쨌"0");
|
|
34
|
+
30 24 ?? if (point.length === 2) result += `.${point[1]}`;
|
|
35
|
+
31 25 ?? if (neg) result = `-${result}`;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
.\src\override\console.ts format ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺??
|
|
39
|
+
횞 Formatter would have printed the following content:
|
|
40
|
+
|
|
41
|
+
29 29 ?? function getTime() {
|
|
42
|
+
30 30 ?? const nowDate = new Date();
|
|
43
|
+
31 ??- 쨌쨌return쨌`${nowDate.getHours().fixNumber(2)}:${nowDate
|
|
44
|
+
32 ??- 쨌쨌쨌쨌.getMinutes()
|
|
45
|
+
33 ??- 쨌쨌쨌쨌.fixNumber(2)}:${nowDate
|
|
46
|
+
31 ??+ 쨌쨌return쨌`${nowDate.getHours().fixNumber(2)}:${nowDate.getMinutes().fixNumber(2)}:${nowDate
|
|
47
|
+
34 32 ?? .getSeconds()
|
|
48
|
+
35 33 ?? .fixNumber(2)}:${`${nowDate.getMilliseconds()}`.fixNumber(3)}`;
|
|
49
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
50
|
+
50 48 ?? // rightLogList.push([message, ...optionalParams]);
|
|
51
|
+
51 49 ??
|
|
52
|
+
52 ??- 쨌쨌temp[type](
|
|
53
|
+
53 ??- 쨌쨌쨌쨌`${color[0]}[${getTime()}]\x1b[0m\x1b[37m`,
|
|
54
|
+
54 ??- 쨌쨌쨌쨌message,
|
|
55
|
+
55 ??- 쨌쨌쨌쨌...optionalParams
|
|
56
|
+
56 ??- 쨌쨌);
|
|
57
|
+
50 ??+ 쨌쨌temp[type](`${color[0]}[${getTime()}]\x1b[0m\x1b[37m`,쨌message,쨌...optionalParams);
|
|
58
|
+
57 51 ?? }
|
|
59
|
+
58 52 ??
|
|
60
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
61
|
+
77 71 ?? console.log = (message?: any, ...optionalParams: any[]) => {
|
|
62
|
+
78 72 ?? if (
|
|
63
|
+
79 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&
|
|
64
|
+
80 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.development.log)쨌||
|
|
65
|
+
73 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&쨌consoleOption.development.log)쨌||
|
|
66
|
+
81 74 ?? (process.env.NODE_ENV === "production" && consoleOption.production.log) ||
|
|
67
|
+
82 75 ?? !process.env.NODE_ENV
|
|
68
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
69
|
+
86 79 ?? console.info = (message?: any, ...optionalParams: any[]) => {
|
|
70
|
+
87 80 ?? if (
|
|
71
|
+
88 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&
|
|
72
|
+
89 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.development.info)쨌||
|
|
73
|
+
90 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&
|
|
74
|
+
91 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.production.info)쨌||
|
|
75
|
+
81 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&쨌consoleOption.development.info)쨌||
|
|
76
|
+
82 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&쨌consoleOption.production.info)쨌||
|
|
77
|
+
92 83 ?? !process.env.NODE_ENV
|
|
78
|
+
93 84 ?? )
|
|
79
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
80
|
+
96 87 ?? console.warn = (message?: any, ...optionalParams: any[]) => {
|
|
81
|
+
97 88 ?? if (
|
|
82
|
+
98 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&
|
|
83
|
+
99 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.development.warn)쨌||
|
|
84
|
+
100 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&
|
|
85
|
+
101 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.production.warn)쨌||
|
|
86
|
+
89 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&쨌consoleOption.development.warn)쨌||
|
|
87
|
+
90 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&쨌consoleOption.production.warn)쨌||
|
|
88
|
+
102 91 ?? !process.env.NODE_ENV
|
|
89
|
+
103 92 ?? )
|
|
90
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
91
|
+
106 95 ?? console.error = (message?: any, ...optionalParams: any[]) => {
|
|
92
|
+
107 96 ?? if (
|
|
93
|
+
108 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&
|
|
94
|
+
109 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.development.error)쨌||
|
|
95
|
+
110 ??- 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&
|
|
96
|
+
111 ??- 쨌쨌쨌쨌쨌쨌쨌쨌consoleOption.production.error)쨌||
|
|
97
|
+
97 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"development"쨌&&쨌consoleOption.development.error)쨌||
|
|
98
|
+
98 ??+ 쨌쨌쨌쨌쨌쨌(process.env.NODE_ENV쨌===쨌"production"쨌&&쨌consoleOption.production.error)쨌||
|
|
99
|
+
112 99 ?? !process.env.NODE_ENV
|
|
100
|
+
113 100 ?? )
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.\src\extension\array.ts format ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
104
|
+
|
|
105
|
+
횞 Formatter would have printed the following content:
|
|
106
|
+
|
|
107
|
+
6 6 ?? Array.prototype.singleOrDefault = function (predicate, defaultValue = null) {
|
|
108
|
+
7 7 ?? const isset = this.where(predicate);
|
|
109
|
+
8 ??- 쨌쨌if쨌(isset.length쨌>=쨌2)
|
|
110
|
+
9 ??- 쨌쨌쨌쨌throw쨌new쨌Error("single:sequence쨌contains쨌more쨌than쨌one쨌element.");
|
|
111
|
+
8 ??+ 쨌쨌if쨌(isset.length쨌>=쨌2)쨌throw쨌new쨌Error("single:sequence쨌contains쨌more쨌than쨌one쨌element.");
|
|
112
|
+
10 9 ??
|
|
113
|
+
11 10 ?? return isset.length ? isset[0] : defaultValue;
|
|
114
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
115
|
+
69 68 ?? };
|
|
116
|
+
70 69 ??
|
|
117
|
+
71 ??- Array.prototype.firstOrDefault쨌=쨌function쨌(
|
|
118
|
+
72 ??- 쨌쨌predicate?:쨌any,
|
|
119
|
+
73 ??- 쨌쨌defaultValue쨌=쨌null
|
|
120
|
+
74 ??- )쨌{
|
|
121
|
+
70 ??+ Array.prototype.firstOrDefault쨌=쨌function쨌(predicate?:쨌any,쨌defaultValue쨌=쨌null)쨌{
|
|
122
|
+
75 71 ?? if (predicate == null) predicate = () => true;
|
|
123
|
+
76 72 ?? const isset = this.where(predicate);
|
|
124
|
+
쨌쨌쨌쨌쨌쨌쨌 ??
|
|
125
|
+
80 76 ?? if (predicate == null) predicate = () => true;
|
|
126
|
+
81 77 ?? const isset = this.firstOrDefault(predicate);
|
|
127
|
+
82 ??- 쨌쨌if쨌(isset쨌==쨌null)
|
|
128
|
+
83 ??- 쨌쨌쨌쨌throw쨌new쨌Error("first:No쨌element쨌satisfies쨌the쨌condition.");
|
|
129
|
+
78 ??+ 쨌쨌if쨌(isset쨌==쨌null)쨌throw쨌new쨌Error("first:No쨌element쨌satisfies쨌the쨌condition.");
|
|
130
|
+
84 79 ??
|
|
131
|
+
85 80 ?? return isset;
|
|
132
|
+
86 81 ?? };
|
|
133
|
+
87 82 ??
|
|
134
|
+
88 ??- Array.prototype.lastOrDefault쨌=쨌function쨌(
|
|
135
|
+
89 ??- 쨌쨌predicate?:쨌any,
|
|
136
|
+
90 ??- 쨌쨌defaultValue쨌=쨌null
|
|
137
|
+
91 ??- )쨌{
|
|
138
|
+
83 ??+ Array.prototype.lastOrDefault쨌=쨌function쨌(predicate?:쨌any,쨌defaultValue쨌=쨌null)쨌{
|
|
139
|
+
92 84 ?? if (predicate == null) predicate = () => true;
|
|
140
|
+
93 85 ?? const isset = this.where(predicate);
|
|
141
|
+
94 ??- 쨌쨌return쨌isset쨌==쨌null쨌||쨌isset.length쨌===쨌0
|
|
142
|
+
95 ??- 쨌쨌쨌쨌?쨌defaultValue
|
|
143
|
+
96 ??- 쨌쨌쨌쨌:쨌isset[isset.length쨌-쨌1];
|
|
144
|
+
86 ??+ 쨌쨌return쨌isset쨌==쨌null쨌||쨌isset.length쨌===쨌0쨌?쨌defaultValue쨌:쨌isset[isset.length쨌-쨌1];
|
|
145
|
+
97 87 ?? };
|
|
146
|
+
98 88 ?? Array.prototype.last = function (predicate?: any) {
|
|
147
|
+
99 89 ?? if (predicate == null) predicate = () => true;
|
|
148
|
+
100 90 ?? const isset = this.lastOrDefault(predicate);
|
|
149
|
+
101 ??- 쨌쨌if쨌(isset쨌==쨌null)
|
|
150
|
+
102 ??- 쨌쨌쨌쨌throw쨌new쨌Error("last:No쨌element쨌satisfies쨌the쨌condition.");
|
|
151
|
+
91 ??+ 쨌쨌if쨌(isset쨌==쨌null)쨌throw쨌new쨌Error("last:No쨌element쨌satisfies쨌the쨌condition.");
|
|
152
|
+
103 92 ??
|
|
153
|
+
104 93 ?? return isset;
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
.\src\utils\camelcase.js:7:39 lint/style/useTemplate FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺??
|
|
157
|
+
횞 Template literals are preferred over string concatenation.
|
|
158
|
+
|
|
159
|
+
5 ??const SEPARATORS = /[_.\- ]+/;
|
|
160
|
+
6 ??
|
|
161
|
+
> 7 ??const LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
162
|
+
?? ^^^^^^^^^^^^^^^^^^^^^^^
|
|
163
|
+
8 ??const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
164
|
+
9 ??const NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
165
|
+
|
|
166
|
+
i Unsafe fix: Use a template literal.
|
|
167
|
+
|
|
168
|
+
5 5 ?? const SEPARATORS = /[_.\- ]+/;
|
|
169
|
+
6 6 ??
|
|
170
|
+
7 ??- const쨌LEADING_SEPARATORS쨌=쨌new쨌RegExp("^"쨌+쨌SEPARATORS.source);
|
|
171
|
+
7 ??+ const쨌LEADING_SEPARATORS쨌=쨌new쨌RegExp(`^${SEPARATORS.source}`);
|
|
172
|
+
8 8 ?? const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
173
|
+
9 9 ?? const NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
.\src\utils\camelcase.js:9:43 lint/style/useTemplate FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺??
|
|
177
|
+
횞 Template literals are preferred over string concatenation.
|
|
178
|
+
|
|
179
|
+
7 ??const LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
180
|
+
8 ??const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
181
|
+
> 9 ??const NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
182
|
+
?? ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
183
|
+
10 ??
|
|
184
|
+
11 ??const preserveCamelCase = (string, toLowerCase, toUpperCase) => {
|
|
185
|
+
|
|
186
|
+
i Unsafe fix: Use a template literal.
|
|
187
|
+
|
|
188
|
+
7 7 ?? const LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
189
|
+
8 8 ?? const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
190
|
+
9 ??- const쨌NUMBERS_AND_IDENTIFIER쨌=쨌new쨌RegExp("\\d+"쨌+쨌IDENTIFIER.source,쨌"gu");
|
|
191
|
+
9 ??+ const쨌NUMBERS_AND_IDENTIFIER쨌=쨌new쨌RegExp(`\\d+${IDENTIFIER.source}`,쨌"gu");
|
|
192
|
+
10 10 ??
|
|
193
|
+
11 11 ?? const preserveCamelCase = (string, toLowerCase, toUpperCase) => {
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
.\src\utils\camelcase.js:20:16 lint/style/useTemplate FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
197
|
+
|
|
198
|
+
횞 Template literals are preferred over string concatenation.
|
|
199
|
+
|
|
200
|
+
19 ?? if (isLastCharLower && UPPERCASE.test(character)) {
|
|
201
|
+
> 20 ?? string = string.slice(0, index) + "-" + string.slice(index);
|
|
202
|
+
?? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
203
|
+
21 ?? isLastCharLower = false;
|
|
204
|
+
22 ?? isLastLastCharUpper = isLastCharUpper;
|
|
205
|
+
|
|
206
|
+
i Unsafe fix: Use a template literal.
|
|
207
|
+
|
|
208
|
+
18 18 ??
|
|
209
|
+
19 19 ?? if (isLastCharLower && UPPERCASE.test(character)) {
|
|
210
|
+
20 ??- 쨌쨌쨌쨌쨌쨌string쨌=쨌string.slice(0,쨌index)쨌+쨌"-"쨌+쨌string.slice(index);
|
|
211
|
+
20 ??+ 쨌쨌쨌쨌쨌쨌string쨌=쨌`${string.slice(0,쨌index)}-${string.slice(index)}`;
|
|
212
|
+
21 21 ?? isLastCharLower = false;
|
|
213
|
+
22 22 ?? isLastLastCharUpper = isLastCharUpper;
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
.\src\utils\camelcase.js:26:16 lint/style/useTemplate FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
217
|
+
|
|
218
|
+
횞 Template literals are preferred over string concatenation.
|
|
219
|
+
|
|
220
|
+
24 ?? index++;
|
|
221
|
+
25 ?? } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
222
|
+
> 26 ?? string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
|
|
223
|
+
?? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
224
|
+
27 ?? isLastLastCharUpper = isLastCharUpper;
|
|
225
|
+
28 ?? isLastCharUpper = false;
|
|
226
|
+
|
|
227
|
+
i Unsafe fix: Use a template literal.
|
|
228
|
+
|
|
229
|
+
24 24 ?? index++;
|
|
230
|
+
25 25 ?? } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
231
|
+
26 ??- 쨌쨌쨌쨌쨌쨌string쨌=쨌string.slice(0,쨌index쨌-쨌1)쨌+쨌"-"쨌+쨌string.slice(index쨌-쨌1);
|
|
232
|
+
26 ??+ 쨌쨌쨌쨌쨌쨌string쨌=쨌`${string.slice(0,쨌index쨌-쨌1)}-${string.slice(index쨌-쨌1)}`;
|
|
233
|
+
27 27 ?? isLastLastCharUpper = isLastCharUpper;
|
|
234
|
+
28 28 ?? isLastCharUpper = false;
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
.\src\extension\number.test.ts:9:13 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
238
|
+
|
|
239
|
+
횞 Prefer constants from the standard library.
|
|
240
|
+
|
|
241
|
+
7 ??describe("Number.prototype.toNumber", () => {
|
|
242
|
+
8 ?? test("converts to number", () => {
|
|
243
|
+
> 9 ?? expect((3.141592).toNumber()).toBe(3.141592);
|
|
244
|
+
?? ^^^^^^^^
|
|
245
|
+
10 ?? expect((12345).toNumber()).toBe(12345);
|
|
246
|
+
11 ?? expect("3.14".toNumber()).toBe(3.14);
|
|
247
|
+
|
|
248
|
+
i Unsafe fix: Use Math.PI instead.
|
|
249
|
+
|
|
250
|
+
7 7 ?? describe("Number.prototype.toNumber", () => {
|
|
251
|
+
8 8 ?? test("converts to number", () => {
|
|
252
|
+
9 ??- 쨌쨌쨌쨌expect((3.141592).toNumber()).toBe(3.141592);
|
|
253
|
+
9 ??+ 쨌쨌쨌쨌expect((Math.PI).toNumber()).toBe(3.141592);
|
|
254
|
+
10 10 ?? expect((12345).toNumber()).toBe(12345);
|
|
255
|
+
11 11 ?? expect("3.14".toNumber()).toBe(3.14);
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
.\src\extension\number.test.ts:9:40 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
259
|
+
|
|
260
|
+
횞 Prefer constants from the standard library.
|
|
261
|
+
|
|
262
|
+
7 ??describe("Number.prototype.toNumber", () => {
|
|
263
|
+
8 ?? test("converts to number", () => {
|
|
264
|
+
> 9 ?? expect((3.141592).toNumber()).toBe(3.141592);
|
|
265
|
+
?? ^^^^^^^^
|
|
266
|
+
10 ?? expect((12345).toNumber()).toBe(12345);
|
|
267
|
+
11 ?? expect("3.14".toNumber()).toBe(3.14);
|
|
268
|
+
|
|
269
|
+
i Unsafe fix: Use Math.PI instead.
|
|
270
|
+
|
|
271
|
+
7 7 ?? describe("Number.prototype.toNumber", () => {
|
|
272
|
+
8 8 ?? test("converts to number", () => {
|
|
273
|
+
9 ??- 쨌쨌쨌쨌expect((3.141592).toNumber()).toBe(3.141592);
|
|
274
|
+
9 ??+ 쨌쨌쨌쨌expect((3.141592).toNumber()).toBe(Math.PI);
|
|
275
|
+
10 10 ?? expect((12345).toNumber()).toBe(12345);
|
|
276
|
+
11 11 ?? expect("3.14".toNumber()).toBe(3.14);
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
.\src\extension\number.test.ts:20:13 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
280
|
+
|
|
281
|
+
횞 Prefer constants from the standard library.
|
|
282
|
+
|
|
283
|
+
18 ??describe("Number.prototype.toDecimal", () => {
|
|
284
|
+
19 ?? test("converts to Decimal", () => {
|
|
285
|
+
> 20 ?? expect((3.141592).toDecimal()).toStrictEqual(new Decimal(3.141592));
|
|
286
|
+
?? ^^^^^^^^
|
|
287
|
+
21 ?? expect((12345).toDecimal()).toStrictEqual(new Decimal(12345));
|
|
288
|
+
22 ?? expect(Number.NaN.toDecimal().isNaN()).toBeTruthy();
|
|
289
|
+
|
|
290
|
+
i Unsafe fix: Use Math.PI instead.
|
|
291
|
+
|
|
292
|
+
18 18 ?? describe("Number.prototype.toDecimal", () => {
|
|
293
|
+
19 19 ?? test("converts to Decimal", () => {
|
|
294
|
+
20 ??- 쨌쨌쨌쨌expect((3.141592).toDecimal()).toStrictEqual(new쨌Decimal(3.141592));
|
|
295
|
+
20 ??+ 쨌쨌쨌쨌expect((Math.PI).toDecimal()).toStrictEqual(new쨌Decimal(3.141592));
|
|
296
|
+
21 21 ?? expect((12345).toDecimal()).toStrictEqual(new Decimal(12345));
|
|
297
|
+
22 22 ?? expect(Number.NaN.toDecimal().isNaN()).toBeTruthy();
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
.\src\extension\number.test.ts:20:62 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
301
|
+
|
|
302
|
+
횞 Prefer constants from the standard library.
|
|
303
|
+
|
|
304
|
+
18 ??describe("Number.prototype.toDecimal", () => {
|
|
305
|
+
19 ?? test("converts to Decimal", () => {
|
|
306
|
+
> 20 ?? expect((3.141592).toDecimal()).toStrictEqual(new Decimal(3.141592));
|
|
307
|
+
?? ^^^^^^^^
|
|
308
|
+
21 ?? expect((12345).toDecimal()).toStrictEqual(new Decimal(12345));
|
|
309
|
+
22 ?? expect(Number.NaN.toDecimal().isNaN()).toBeTruthy();
|
|
310
|
+
|
|
311
|
+
i Unsafe fix: Use Math.PI instead.
|
|
312
|
+
|
|
313
|
+
18 18 ?? describe("Number.prototype.toDecimal", () => {
|
|
314
|
+
19 19 ?? test("converts to Decimal", () => {
|
|
315
|
+
20 ??- 쨌쨌쨌쨌expect((3.141592).toDecimal()).toStrictEqual(new쨌Decimal(3.141592));
|
|
316
|
+
20 ??+ 쨌쨌쨌쨌expect((3.141592).toDecimal()).toStrictEqual(new쨌Decimal(Math.PI));
|
|
317
|
+
21 21 ?? expect((12345).toDecimal()).toStrictEqual(new Decimal(12345));
|
|
318
|
+
22 22 ?? expect(Number.NaN.toDecimal().isNaN()).toBeTruthy();
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
.\src\extension\number.test.ts:73:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
322
|
+
|
|
323
|
+
횞 Prefer constants from the standard library.
|
|
324
|
+
|
|
325
|
+
71 ?? expect((100).toNumber()).toEqual(100);
|
|
326
|
+
72 ?? expect((0).toNumber()).toEqual(0);
|
|
327
|
+
> 73 ?? expect((3.1415).toNumber()).toEqual(3.1415);
|
|
328
|
+
?? ^^^^^^
|
|
329
|
+
74 ?? expect((-10).toNumber()).toEqual(-10);
|
|
330
|
+
75 ?? });
|
|
331
|
+
|
|
332
|
+
i Unsafe fix: Use Math.PI instead.
|
|
333
|
+
|
|
334
|
+
71 71 ?? expect((100).toNumber()).toEqual(100);
|
|
335
|
+
72 72 ?? expect((0).toNumber()).toEqual(0);
|
|
336
|
+
73 ??- 쨌쨌쨌쨌쨌쨌expect((3.1415).toNumber()).toEqual(3.1415);
|
|
337
|
+
73 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).toNumber()).toEqual(3.1415);
|
|
338
|
+
74 74 ?? expect((-10).toNumber()).toEqual(-10);
|
|
339
|
+
75 75 ?? });
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
.\src\extension\number.test.ts:73:43 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
343
|
+
|
|
344
|
+
횞 Prefer constants from the standard library.
|
|
345
|
+
|
|
346
|
+
71 ?? expect((100).toNumber()).toEqual(100);
|
|
347
|
+
72 ?? expect((0).toNumber()).toEqual(0);
|
|
348
|
+
> 73 ?? expect((3.1415).toNumber()).toEqual(3.1415);
|
|
349
|
+
?? ^^^^^^
|
|
350
|
+
74 ?? expect((-10).toNumber()).toEqual(-10);
|
|
351
|
+
75 ?? });
|
|
352
|
+
|
|
353
|
+
i Unsafe fix: Use Math.PI instead.
|
|
354
|
+
|
|
355
|
+
71 71 ?? expect((100).toNumber()).toEqual(100);
|
|
356
|
+
72 72 ?? expect((0).toNumber()).toEqual(0);
|
|
357
|
+
73 ??- 쨌쨌쨌쨌쨌쨌expect((3.1415).toNumber()).toEqual(3.1415);
|
|
358
|
+
73 ??+ 쨌쨌쨌쨌쨌쨌expect((3.1415).toNumber()).toEqual(Math.PI);
|
|
359
|
+
74 74 ?? expect((-10).toNumber()).toEqual(-10);
|
|
360
|
+
75 75 ?? });
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
.\src\extension\number.test.ts:131:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
364
|
+
|
|
365
|
+
횞 Prefer constants from the standard library.
|
|
366
|
+
|
|
367
|
+
129 ?? expect((10).pow(2)).toEqual(100);
|
|
368
|
+
130 ?? expect((2).pow(10)).toEqual(1024);
|
|
369
|
+
> 131 ?? expect((3.1415).pow(2)).toEqual(9.86902225);
|
|
370
|
+
?? ^^^^^^
|
|
371
|
+
132 ?? });
|
|
372
|
+
133 ?? });
|
|
373
|
+
|
|
374
|
+
i Unsafe fix: Use Math.PI instead.
|
|
375
|
+
|
|
376
|
+
129 129 ?? expect((10).pow(2)).toEqual(100);
|
|
377
|
+
130 130 ?? expect((2).pow(10)).toEqual(1024);
|
|
378
|
+
131 ??- 쨌쨌쨌쨌쨌쨌expect((3.1415).pow(2)).toEqual(9.86902225);
|
|
379
|
+
131 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).pow(2)).toEqual(9.86902225);
|
|
380
|
+
132 132 ?? });
|
|
381
|
+
133 133 ?? });
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
.\src\extension\number.test.ts:139:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
385
|
+
|
|
386
|
+
횞 Prefer constants from the standard library.
|
|
387
|
+
|
|
388
|
+
137 ?? expect((10).normalize()).toEqual(100);
|
|
389
|
+
138 ?? expect((2).normalize()).toEqual(4);
|
|
390
|
+
> 139 ?? expect((3.1415).normalize()).toEqual(9.86902225);
|
|
391
|
+
?? ^^^^^^
|
|
392
|
+
140 ?? });
|
|
393
|
+
141 ?? });
|
|
394
|
+
|
|
395
|
+
i Unsafe fix: Use Math.PI instead.
|
|
396
|
+
|
|
397
|
+
137 137 ?? expect((10).normalize()).toEqual(100);
|
|
398
|
+
138 138 ?? expect((2).normalize()).toEqual(4);
|
|
399
|
+
139 ??- 쨌쨌쨌쨌쨌쨌expect((3.1415).normalize()).toEqual(9.86902225);
|
|
400
|
+
139 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).normalize()).toEqual(9.86902225);
|
|
401
|
+
140 140 ?? });
|
|
402
|
+
141 141 ?? });
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
.\src\extension\number.test.ts:241:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
406
|
+
|
|
407
|
+
횞 Prefer constants from the standard library.
|
|
408
|
+
|
|
409
|
+
239 ?? describe("Number.prototype", () => {
|
|
410
|
+
240 ?? test("ceil", () => {
|
|
411
|
+
> 241 ?? expect((3.14159).ceil()).toBe(4);
|
|
412
|
+
?? ^^^^^^^
|
|
413
|
+
242 ?? expect((3.14159).ceil(1)).toBe(3.2);
|
|
414
|
+
243 ?? expect((1234).ceil(-2)).toBe(1300);
|
|
415
|
+
|
|
416
|
+
i Unsafe fix: Use Math.PI instead.
|
|
417
|
+
|
|
418
|
+
239 239 ?? describe("Number.prototype", () => {
|
|
419
|
+
240 240 ?? test("ceil", () => {
|
|
420
|
+
241 ??- 쨌쨌쨌쨌쨌쨌expect((3.14159).ceil()).toBe(4);
|
|
421
|
+
241 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).ceil()).toBe(4);
|
|
422
|
+
242 242 ?? expect((3.14159).ceil(1)).toBe(3.2);
|
|
423
|
+
243 243 ?? expect((1234).ceil(-2)).toBe(1300);
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
The number of diagnostics exceeds the number allowed by Biome.
|
|
427
|
+
Diagnostics not shown: 4.
|
|
428
|
+
Checked 27 files in 22ms. No fixes applied.
|
|
429
|
+
Found 24 errors.
|
|
430
|
+
.\src\extension\number.test.ts:242:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
431
|
+
|
|
432
|
+
횞 Prefer constants from the standard library.
|
|
433
|
+
|
|
434
|
+
240 ?? test("ceil", () => {
|
|
435
|
+
241 ?? expect((3.14159).ceil()).toBe(4);
|
|
436
|
+
> 242 ?? expect((3.14159).ceil(1)).toBe(3.2);
|
|
437
|
+
?? ^^^^^^^
|
|
438
|
+
243 ?? expect((1234).ceil(-2)).toBe(1300);
|
|
439
|
+
244 ?? });
|
|
440
|
+
|
|
441
|
+
i Unsafe fix: Use Math.PI instead.
|
|
442
|
+
|
|
443
|
+
240 240 ?? test("ceil", () => {
|
|
444
|
+
241 241 ?? expect((3.14159).ceil()).toBe(4);
|
|
445
|
+
242 ??- 쨌쨌쨌쨌쨌쨌expect((3.14159).ceil(1)).toBe(3.2);
|
|
446
|
+
242 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).ceil(1)).toBe(3.2);
|
|
447
|
+
243 243 ?? expect((1234).ceil(-2)).toBe(1300);
|
|
448
|
+
244 244 ?? });
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
.\src\extension\number.test.ts:247:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
452
|
+
|
|
453
|
+
횞 Prefer constants from the standard library.
|
|
454
|
+
|
|
455
|
+
246 ?? test("floor", () => {
|
|
456
|
+
> 247 ?? expect((3.14159).floor()).toBe(3);
|
|
457
|
+
?? ^^^^^^^
|
|
458
|
+
248 ?? expect((3.14159).floor(1)).toBe(3.1);
|
|
459
|
+
249 ?? expect((1234).floor(-2)).toBe(1200);
|
|
460
|
+
|
|
461
|
+
i Unsafe fix: Use Math.PI instead.
|
|
462
|
+
|
|
463
|
+
245 245 ??
|
|
464
|
+
246 246 ?? test("floor", () => {
|
|
465
|
+
247 ??- 쨌쨌쨌쨌쨌쨌expect((3.14159).floor()).toBe(3);
|
|
466
|
+
247 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).floor()).toBe(3);
|
|
467
|
+
248 248 ?? expect((3.14159).floor(1)).toBe(3.1);
|
|
468
|
+
249 249 ?? expect((1234).floor(-2)).toBe(1200);
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
.\src\extension\number.test.ts:248:15 lint/suspicious/noApproximativeNumericConstant FIXABLE ?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
472
|
+
|
|
473
|
+
횞 Prefer constants from the standard library.
|
|
474
|
+
|
|
475
|
+
246 ?? test("floor", () => {
|
|
476
|
+
247 ?? expect((3.14159).floor()).toBe(3);
|
|
477
|
+
> 248 ?? expect((3.14159).floor(1)).toBe(3.1);
|
|
478
|
+
?? ^^^^^^^
|
|
479
|
+
249 ?? expect((1234).floor(-2)).toBe(1200);
|
|
480
|
+
250 ?? });
|
|
481
|
+
|
|
482
|
+
i Unsafe fix: Use Math.PI instead.
|
|
483
|
+
|
|
484
|
+
246 246 ?? test("floor", () => {
|
|
485
|
+
247 247 ?? expect((3.14159).floor()).toBe(3);
|
|
486
|
+
248 ??- 쨌쨌쨌쨌쨌쨌expect((3.14159).floor(1)).toBe(3.1);
|
|
487
|
+
248 ??+ 쨌쨌쨌쨌쨌쨌expect((Math.PI).floor(1)).toBe(3.1);
|
|
488
|
+
249 249 ?? expect((1234).floor(-2)).toBe(1200);
|
|
489
|
+
250 250 ?? });
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
check ?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺?곣봺
|
|
493
|
+
|
|
494
|
+
횞 Some errors were emitted while running checks.
|
|
495
|
+
|
|
496
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prototype-helper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,55 +26,19 @@
|
|
|
26
26
|
"deep-clone": "^3.0.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@types/node": "^
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"nodemon": "^1.19.4",
|
|
34
|
-
"supertest": "^6.2.4",
|
|
35
|
-
"ts-jest": "^27.1.5",
|
|
36
|
-
"ts-loader": "^6.2.2",
|
|
37
|
-
"ts-node": "^10.9.1",
|
|
38
|
-
"typescript": "^4.8.4"
|
|
29
|
+
"@biomejs/biome": "^1.9.4",
|
|
30
|
+
"@types/node": "^22.0.0",
|
|
31
|
+
"bun-types": "^1.3.5",
|
|
32
|
+
"typescript": "^5.0.0"
|
|
39
33
|
},
|
|
40
34
|
"scripts": {
|
|
41
|
-
"build": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
35
|
+
"build": "bun test && tsc",
|
|
36
|
+
"bundle": "tsc --declaration --emitDeclarationOnly --outDir dist && bun build src/index.ts --minify --target=bun --outfile dist/index.js",
|
|
37
|
+
"dev": "bun --watch ./src/test.ts",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"lint": "biome check .",
|
|
40
|
+
"lint:fix": "biome check --write .",
|
|
41
|
+
"format": "biome format --write .",
|
|
44
42
|
"publish": "npm publish"
|
|
45
|
-
},
|
|
46
|
-
"nodemonConfig": {
|
|
47
|
-
"ignore": [
|
|
48
|
-
"**/*.test.ts",
|
|
49
|
-
"**/*.spec.ts",
|
|
50
|
-
".git",
|
|
51
|
-
"node_modules"
|
|
52
|
-
],
|
|
53
|
-
"watch": [
|
|
54
|
-
"src"
|
|
55
|
-
],
|
|
56
|
-
"ext": "ts"
|
|
57
|
-
},
|
|
58
|
-
"jest": {
|
|
59
|
-
"transform": {
|
|
60
|
-
"^.+\\.ts$": "ts-jest"
|
|
61
|
-
},
|
|
62
|
-
"testRegex": "\\.test\\.ts$",
|
|
63
|
-
"moduleFileExtensions": [
|
|
64
|
-
"ts",
|
|
65
|
-
"tsx",
|
|
66
|
-
"js",
|
|
67
|
-
"json"
|
|
68
|
-
],
|
|
69
|
-
"moduleDirectories": [
|
|
70
|
-
"node_modules",
|
|
71
|
-
"bower_components",
|
|
72
|
-
"src"
|
|
73
|
-
],
|
|
74
|
-
"globals": {
|
|
75
|
-
"ts-jest": {
|
|
76
|
-
"diagnostics": true
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
43
|
}
|
|
80
44
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,48 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"outDir": "./dist",
|
|
5
|
-
"target": "ES2016",
|
|
6
|
-
"module": "commonjs",
|
|
7
|
-
"moduleResolution": "Node",
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"lib": [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"**/*.spec.ts"
|
|
35
|
-
],
|
|
36
|
-
"typeRoots": [
|
|
37
|
-
"./node_modules/@types"
|
|
38
|
-
],
|
|
39
|
-
"types": [
|
|
40
|
-
"@types/node",
|
|
41
|
-
"./types.d.ts"
|
|
42
|
-
],
|
|
43
|
-
"repository": {
|
|
44
|
-
"type": "git",
|
|
45
|
-
"url": "git+https://github.com/k22pr/ts-proto"
|
|
46
|
-
},
|
|
47
|
-
"license": "MIT"
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"target": "ES2016",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"moduleResolution": "Node",
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"lib": ["es2016"],
|
|
10
|
+
"paths": {
|
|
11
|
+
"@/*": ["/src/*"],
|
|
12
|
+
"~/*": ["/src/*"]
|
|
13
|
+
},
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"experimentalDecorators": true,
|
|
17
|
+
"emitDecoratorMetadata": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"allowSyntheticDefaultImports": true,
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"declaration": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"types": ["bun-types", "bun-types/test-globals"]
|
|
24
|
+
},
|
|
25
|
+
"include": ["./src/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules", "**/*.spec.ts"],
|
|
27
|
+
"typeRoots": ["./node_modules/@types"],
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/k22pr/ts-proto"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT"
|
|
33
|
+
}
|