@biorate/config 1.156.2 → 2.0.0
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/.reporters.json +6 -0
- package/CHANGELOG.md +329 -0
- package/dist/src/config.js +2 -2
- package/dist/src/config.js.map +1 -1
- package/dist/src/template.js +7 -10
- package/dist/src/template.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/.nyc_output/9f7d89a3-51a5-4036-8f03-551f0982a642.json +0 -1
- package/.nyc_output/ef4e718e-7a4e-4185-88e2-32f661b4fbc2.json +0 -1
- package/.nyc_output/processinfo/9f7d89a3-51a5-4036-8f03-551f0982a642.json +0 -1
- package/.nyc_output/processinfo/ef4e718e-7a4e-4185-88e2-32f661b4fbc2.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/config/index.html +0 -116
- package/coverage/lcov-report/config/index.ts.html +0 -88
- package/coverage/lcov-report/config/src/errors.ts.html +0 -109
- package/coverage/lcov-report/config/src/index.html +0 -131
- package/coverage/lcov-report/config/src/index.ts.html +0 -502
- package/coverage/lcov-report/config.ts.html +0 -118
- package/coverage/lcov-report/errors.ts.html +0 -118
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -176
- package/coverage/lcov-report/index.ts.html +0 -118
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/reg-exp-ext.ts.html +0 -118
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/template.ts.html +0 -118
- package/coverage/lcov.info +0 -226
- package/dist/src/interfaces.js +0 -3
- package/dist/src/interfaces.js.map +0 -1
package/.reporters.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,335 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 2.0.0 (2026-02-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- .npmrc ([51785c1](https://github.com/biorate/core/commit/51785c175101225ae3cef838967b401417e68126))
|
|
11
|
+
- root .mocharc .nycrc.json ([236c00d](https://github.com/biorate/core/commit/236c00d3b1db3c4417ab3c07206b812cbcb10000))
|
|
12
|
+
- root .mocharc .nycrc.json ([6e906e9](https://github.com/biorate/core/commit/6e906e962d10360051c97a11df8516784895c3d8))
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **config:** @{} = ${} template added ([744286f](https://github.com/biorate/core/commit/744286f5728828eb4b230d07c7c9872f442da6be))
|
|
17
|
+
- **config:** @{} = ${} template added ([904fe69](https://github.com/biorate/core/commit/904fe698a4e605e9bf381abcbbab5e4d189c5c8b))
|
|
18
|
+
- update "main" value in package.json ([89de1e3](https://github.com/biorate/core/commit/89de1e3203bcd5123587d046c9277a304bbe4008))
|
|
19
|
+
|
|
20
|
+
## 1.156.2 (2025-09-18)
|
|
21
|
+
|
|
22
|
+
# 1.156.0 (2025-09-18)
|
|
23
|
+
|
|
24
|
+
# 1.120.0 (2025-04-29)
|
|
25
|
+
|
|
26
|
+
# 1.104.0 (2025-02-28)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
- migration to pnpm ([18c83a3](https://github.com/biorate/core/commit/18c83a30319fdfe0d9d2c5ebd94f5fba499e06cd))
|
|
31
|
+
|
|
32
|
+
## 1.102.1 (2025-02-28)
|
|
33
|
+
|
|
34
|
+
# 1.102.0 (2025-02-28)
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
- migration to pnpm ([462d120](https://github.com/biorate/core/commit/462d12068108fc6977906f4e379da6917aca42c3))
|
|
39
|
+
|
|
40
|
+
# 1.100.0 (2025-02-26)
|
|
41
|
+
|
|
42
|
+
# 1.96.0 (2024-12-26)
|
|
43
|
+
|
|
44
|
+
## 1.95.1 (2024-12-26)
|
|
45
|
+
|
|
46
|
+
# 1.95.0 (2024-12-26)
|
|
47
|
+
|
|
48
|
+
## 1.93.1 (2024-12-19)
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
- **config:** tests ([05e3b13](https://github.com/biorate/core/commit/05e3b13f88b8894358892fd7f8d98f13d11fd2ce))
|
|
53
|
+
|
|
54
|
+
# 1.93.0 (2024-12-19)
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
- **config:** fix template default value ([20fcc27](https://github.com/biorate/core/commit/20fcc2760689ee2e5a90de0cf8e28beb32797414))
|
|
59
|
+
|
|
60
|
+
## 1.91.5 (2024-12-06)
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
- **config:** types + regexpext ([609e939](https://github.com/biorate/core/commit/609e939dc4e5558191bef31e1ddcc635337dec76))
|
|
65
|
+
|
|
66
|
+
## 1.91.4 (2024-12-06)
|
|
67
|
+
|
|
68
|
+
### Bug Fixes
|
|
69
|
+
|
|
70
|
+
- **config:** types + regexpext ([c7f4c07](https://github.com/biorate/core/commit/c7f4c07f6fb02080e3f3f8dd90ad19e7f090029e))
|
|
71
|
+
|
|
72
|
+
## 1.91.3 (2024-12-06)
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
- **config:** types + regexpext ([f11042f](https://github.com/biorate/core/commit/f11042ffb83adf67e33feea54f98148ef8bfb830))
|
|
77
|
+
|
|
78
|
+
## 1.91.2 (2024-12-06)
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
- **config:** types + regexpext ([c3f9eef](https://github.com/biorate/core/commit/c3f9eeff88c02c7415a337e2d40cc62ea4daffdf))
|
|
83
|
+
|
|
84
|
+
## 1.91.1 (2024-12-06)
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
- **config:** doc ([ad409ae](https://github.com/biorate/core/commit/ad409aeb5b1a5141e1410724a58e2db7a270c805))
|
|
89
|
+
|
|
90
|
+
# 1.91.0 (2024-12-05)
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
- **config:** add empty template ([62ae333](https://github.com/biorate/core/commit/62ae333924f234d526df391a99575cce7ae33471))
|
|
95
|
+
|
|
96
|
+
# 1.90.0 (2024-12-05)
|
|
97
|
+
|
|
98
|
+
### Features
|
|
99
|
+
|
|
100
|
+
- **config:** RegExp and Function (R{...}, F{...}) templates added ([ac7e6aa](https://github.com/biorate/core/commit/ac7e6aafc80b3a9957469379bd58d7c2946ee7be))
|
|
101
|
+
|
|
102
|
+
## 1.76.3 (2024-07-11)
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
- **config:** README.md ([4495108](https://github.com/biorate/core/commit/4495108346ce8a1d3604560992c36827cd7d8a39))
|
|
107
|
+
|
|
108
|
+
## 1.65.4 (2024-03-26)
|
|
109
|
+
|
|
110
|
+
# 1.54.0 (2024-01-11)
|
|
111
|
+
|
|
112
|
+
## 1.42.2 (2023-09-07)
|
|
113
|
+
|
|
114
|
+
## 1.42.1 (2023-09-04)
|
|
115
|
+
|
|
116
|
+
## 1.38.4 (2023-08-11)
|
|
117
|
+
|
|
118
|
+
### Bug Fixes
|
|
119
|
+
|
|
120
|
+
- **config:** types fix ([0c0f606](https://github.com/biorate/core/commit/0c0f60680c8068ee22616c547493ee698fe7a05c))
|
|
121
|
+
|
|
122
|
+
## 1.38.3 (2023-08-10)
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
- **config:** types ([60004a7](https://github.com/biorate/core/commit/60004a726301aad2a2c7a62157a9b702ada88993))
|
|
127
|
+
|
|
128
|
+
## 1.38.2 (2023-08-10)
|
|
129
|
+
|
|
130
|
+
### Bug Fixes
|
|
131
|
+
|
|
132
|
+
- **config:** types ([9722b70](https://github.com/biorate/core/commit/9722b7020f0906aceb2e3a440531cca06f7c2cc4))
|
|
133
|
+
|
|
134
|
+
## 1.38.1 (2023-08-10)
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
- **config:** npmignore ([3292d09](https://github.com/biorate/core/commit/3292d09e1bd5e610210dff2b8ffacab62d58182c))
|
|
139
|
+
|
|
140
|
+
## 1.30.12 (2023-07-18)
|
|
141
|
+
|
|
142
|
+
# 1.29.0 (2023-05-05)
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
- **shutdown-hook:** allSettled startegy ([acc63c9](https://github.com/biorate/core/commit/acc63c9758ea8af95ded947184379b741837d1de))
|
|
147
|
+
|
|
148
|
+
## 1.28.2 (2023-05-05)
|
|
149
|
+
|
|
150
|
+
## 1.28.1 (2023-05-05)
|
|
151
|
+
|
|
152
|
+
# 1.28.0 (2023-05-04)
|
|
153
|
+
|
|
154
|
+
## 1.27.2 (2023-04-20)
|
|
155
|
+
|
|
156
|
+
## 1.27.1 (2023-04-17)
|
|
157
|
+
|
|
158
|
+
# 1.27.0 (2023-04-17)
|
|
159
|
+
|
|
160
|
+
# 1.26.0 (2023-04-14)
|
|
161
|
+
|
|
162
|
+
# 1.24.0 (2023-02-01)
|
|
163
|
+
|
|
164
|
+
## 1.11.2 (2022-09-21)
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
- **axios, kafka:** logic fixes ([5b83869](https://github.com/biorate/core/commit/5b8386953ce1d63783f380ca8fc36fb324a963b1))
|
|
169
|
+
|
|
170
|
+
## 1.11.1 (2022-09-21)
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
- **axios, kafka:** logic fixes ([d48fff0](https://github.com/biorate/core/commit/d48fff0ebc75566b59aff08e17372ac97b595b30))
|
|
175
|
+
|
|
176
|
+
# 1.11.0 (2022-09-21)
|
|
177
|
+
|
|
178
|
+
# 1.7.0 (2022-09-08)
|
|
179
|
+
|
|
180
|
+
### Features
|
|
181
|
+
|
|
182
|
+
- **config:** link template ([b1ea054](https://github.com/biorate/core/commit/b1ea054ebe6953e0fb7073cc1c6b273df06a7cf3))
|
|
183
|
+
|
|
184
|
+
# 1.6.0 (2022-09-08)
|
|
185
|
+
|
|
186
|
+
### Features
|
|
187
|
+
|
|
188
|
+
- **config-loader:** concept added ([0e58d55](https://github.com/biorate/core/commit/0e58d5509323aa0a0a7689642708788e2188db7b))
|
|
189
|
+
|
|
190
|
+
# 1.4.0 (2022-08-15)
|
|
191
|
+
|
|
192
|
+
## 1.2.2 (2022-08-11)
|
|
193
|
+
|
|
194
|
+
# 1.0.0 (2022-07-10)
|
|
195
|
+
|
|
196
|
+
## 0.30.19 (2022-07-10)
|
|
197
|
+
|
|
198
|
+
## 0.30.11 (2022-06-24)
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
- **config:** npmignore fix ([1ef9a50](https://github.com/biorate/core/commit/1ef9a509fc5764dd6111e4fec0fbe9ae7f2e2a6f))
|
|
203
|
+
|
|
204
|
+
## 0.30.10 (2022-06-24)
|
|
205
|
+
|
|
206
|
+
### Bug Fixes
|
|
207
|
+
|
|
208
|
+
- **config:** strict types ([5c4a1fd](https://github.com/biorate/core/commit/5c4a1fd6f8008538fb13f6a303909730f7bc2d31))
|
|
209
|
+
|
|
210
|
+
## 0.30.9 (2022-06-23)
|
|
211
|
+
|
|
212
|
+
### Bug Fixes
|
|
213
|
+
|
|
214
|
+
- **config:** strict types ([d1e286e](https://github.com/biorate/core/commit/d1e286e9016938cb663ee8bcceb6c06b0dbfdb18))
|
|
215
|
+
|
|
216
|
+
## 0.30.7 (2022-06-23)
|
|
217
|
+
|
|
218
|
+
## 0.30.6 (2022-06-23)
|
|
219
|
+
|
|
220
|
+
## 0.30.5 (2022-06-23)
|
|
221
|
+
|
|
222
|
+
## 0.30.4 (2022-06-23)
|
|
223
|
+
|
|
224
|
+
## 0.30.2 (2022-06-22)
|
|
225
|
+
|
|
226
|
+
# 0.30.0 (2022-06-20)
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
- \*.ts into npmignore ([6a6be03](https://github.com/biorate/core/commit/6a6be030a1e8923df4b03d518f08618e759d06fa))
|
|
231
|
+
|
|
232
|
+
## 0.29.1 (2022-06-20)
|
|
233
|
+
|
|
234
|
+
# 0.29.0 (2022-06-20)
|
|
235
|
+
|
|
236
|
+
### Bug Fixes
|
|
237
|
+
|
|
238
|
+
- \*.ts into npmignore ([f6e68b3](https://github.com/biorate/core/commit/f6e68b3a2291e7bfa013674db857db7879a26033))
|
|
239
|
+
|
|
240
|
+
# 0.28.0 (2022-05-06)
|
|
241
|
+
|
|
242
|
+
# 0.27.0 (2022-05-06)
|
|
243
|
+
|
|
244
|
+
# 0.26.0 (2022-04-25)
|
|
245
|
+
|
|
246
|
+
# 0.25.0 (2022-04-25)
|
|
247
|
+
|
|
248
|
+
### Features
|
|
249
|
+
|
|
250
|
+
- **schema-registry:** api fix ([8631389](https://github.com/biorate/core/commit/8631389036e4c0d1f0a9ec0ccab5a0a2800c4dab))
|
|
251
|
+
|
|
252
|
+
### BREAKING CHANGES
|
|
253
|
+
|
|
254
|
+
- **schema-registry:** api fix according axios fatch interface change
|
|
255
|
+
|
|
256
|
+
# 0.24.0 (2022-04-25)
|
|
257
|
+
|
|
258
|
+
# 0.23.0 (2022-04-11)
|
|
259
|
+
|
|
260
|
+
# 0.22.0 (2022-04-08)
|
|
261
|
+
|
|
262
|
+
# 0.21.0 (2022-04-08)
|
|
263
|
+
|
|
264
|
+
# 0.20.0 (2022-04-08)
|
|
265
|
+
|
|
266
|
+
# 0.19.0 (2022-04-07)
|
|
267
|
+
|
|
268
|
+
## 0.18.2 (2022-03-18)
|
|
269
|
+
|
|
270
|
+
# 0.18.0 (2022-02-05)
|
|
271
|
+
|
|
272
|
+
## 0.17.1 (2022-02-04)
|
|
273
|
+
|
|
274
|
+
### Bug Fixes
|
|
275
|
+
|
|
276
|
+
- **config:** constructor tests fix ([7fe53b4](https://github.com/biorate/core/commit/7fe53b48d127dbcbf8f0cc7cc448a85819ef56ae))
|
|
277
|
+
|
|
278
|
+
# 0.17.0 (2022-02-04)
|
|
279
|
+
|
|
280
|
+
### Features
|
|
281
|
+
|
|
282
|
+
- **config:** remove constructor logic, add injectable ([69391d9](https://github.com/biorate/core/commit/69391d9aa250dd87b734df6e3d0a6b7937a2e69b))
|
|
283
|
+
|
|
284
|
+
## 0.16.1 (2022-02-01)
|
|
285
|
+
|
|
286
|
+
### Bug Fixes
|
|
287
|
+
|
|
288
|
+
- publishConfig added in package.json ([716a064](https://github.com/biorate/core/commit/716a06429e1a4325f50cf94b804f1d70d8a58cf5))
|
|
289
|
+
|
|
290
|
+
# 0.16.0 (2022-02-01)
|
|
291
|
+
|
|
292
|
+
### Bug Fixes
|
|
293
|
+
|
|
294
|
+
- **config:** IConfig interface added ([b6e6bf1](https://github.com/biorate/core/commit/b6e6bf1fe267f0d87ad69581698ea72c90f5969d))
|
|
295
|
+
|
|
296
|
+
# 0.15.0 (2022-01-31)
|
|
297
|
+
|
|
298
|
+
# 0.14.0 (2021-12-31)
|
|
299
|
+
|
|
300
|
+
# 0.13.0 (2021-12-31)
|
|
301
|
+
|
|
302
|
+
## 0.12.4 (2021-12-25)
|
|
303
|
+
|
|
304
|
+
## 0.12.3 (2021-12-25)
|
|
305
|
+
|
|
306
|
+
## 0.12.2 (2021-12-25)
|
|
307
|
+
|
|
308
|
+
### Bug Fixes
|
|
309
|
+
|
|
310
|
+
- **all:** homepage and repository in package.json added ([532c5a0](https://github.com/biorate/core/commit/532c5a08ed8cd9c1590134699c074c2021bcbbff))
|
|
311
|
+
|
|
312
|
+
## 0.12.1 (2021-12-25)
|
|
313
|
+
|
|
314
|
+
# 0.12.0 (2021-12-25)
|
|
315
|
+
|
|
316
|
+
## 0.11.1 (2021-10-16)
|
|
317
|
+
|
|
318
|
+
# 0.11.0 (2021-10-16)
|
|
319
|
+
|
|
320
|
+
## 0.10.2 (2021-09-27)
|
|
321
|
+
|
|
322
|
+
### Bug Fixes
|
|
323
|
+
|
|
324
|
+
- **config:** d.ts annotation ([29e65c9](https://github.com/biorate/core/commit/29e65c9d12c0bb13f54a1ca34128d53c5b5b006d))
|
|
325
|
+
|
|
326
|
+
## 0.10.1 (2021-09-27)
|
|
327
|
+
|
|
328
|
+
# 0.10.0 (2021-09-24)
|
|
329
|
+
|
|
330
|
+
### Features
|
|
331
|
+
|
|
332
|
+
- **config:** release ([f7ba2b9](https://github.com/biorate/core/commit/f7ba2b91a8a5c766c4440dfc0243d42a7cc833b9))
|
|
333
|
+
- **config:** release ([0fce238](https://github.com/biorate/core/commit/0fce238c553057a6eec7fa3ddb2e2448d79eb3d2))
|
|
334
|
+
|
|
6
335
|
## [1.156.2](https://github.com/biorate/core/compare/v1.156.1...v1.156.2) (2025-09-18)
|
|
7
336
|
|
|
8
337
|
**Note:** Version bump only for package @biorate/config
|
package/dist/src/config.js
CHANGED
|
@@ -58,6 +58,7 @@ let Config = class Config {
|
|
|
58
58
|
(0, lodash_1.merge)(this.data, data);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
exports.Config = Config;
|
|
61
62
|
Config.Template = {
|
|
62
63
|
string: true,
|
|
63
64
|
link: true,
|
|
@@ -65,8 +66,7 @@ Config.Template = {
|
|
|
65
66
|
function: true,
|
|
66
67
|
empty: true,
|
|
67
68
|
};
|
|
68
|
-
Config = __decorate([
|
|
69
|
+
exports.Config = Config = __decorate([
|
|
69
70
|
(0, inversion_1.injectable)()
|
|
70
71
|
], Config);
|
|
71
|
-
exports.Config = Config;
|
|
72
72
|
//# sourceMappingURL=config.js.map
|
package/dist/src/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAgD;AAChD,mCAA4D;AAC5D,qCAAqC;AACrC,yCAAsC;AACtC,qCAAoD;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAgD;AAChD,mCAA4D;AAC5D,qCAAqC;AACrC,yCAAsC;AACtC,qCAAoD;AAI7C,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QAeK,SAAI,GAAG,EAAE,CAAC;IA6HtB,CAAC;IAxHW,QAAQ,CAAc,KAAa,EAAE,GAAO;QACpD,MAAM,MAAM,GAAY,EAAE,KAAK,EAAE,CAAC;QAClC,mBAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/C,mBAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7C,mBAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/C,mBAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACjD,mBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QAC9C,OAAO,MAAM,CAAC,KAAK,CAAC;IACtB,CAAC;IAKS,UAAU,CAAc,MAAe,EAAE,GAAO;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,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,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;CACZ,AAN8B,CAM7B;iBAVS,MAAM;IADlB,IAAA,sBAAU,GAAE;GACA,MAAM,CA4IlB"}
|
package/dist/src/template.js
CHANGED
|
@@ -7,43 +7,40 @@ class Template {
|
|
|
7
7
|
static string(value, result, def) {
|
|
8
8
|
if (!config_1.Config.Template.string)
|
|
9
9
|
return;
|
|
10
|
-
let regExp =
|
|
10
|
+
let regExp = /[\$@]{([^}{]+)+?}/g, res;
|
|
11
11
|
while ((res = regExp.exec(value)))
|
|
12
12
|
if (this.has(res[1]))
|
|
13
13
|
result.value = result.value.replace(res[0], String(this.get(res[1], def)));
|
|
14
14
|
}
|
|
15
15
|
static link(value, result, def) {
|
|
16
|
-
var _a;
|
|
17
16
|
if (!config_1.Config.Template.link)
|
|
18
17
|
return;
|
|
19
18
|
let regExp = /^#{([^}{]+)+?}$/g;
|
|
20
|
-
const match =
|
|
19
|
+
const match = regExp.exec(value)?.[1];
|
|
21
20
|
if (match)
|
|
22
21
|
result.value = this.get(match, def);
|
|
23
22
|
}
|
|
24
23
|
static regexp(value, result, def) {
|
|
25
|
-
var _a;
|
|
26
24
|
if (!config_1.Config.Template.regexp)
|
|
27
25
|
return;
|
|
28
26
|
let regExp = /^R\{\/(.*?)\/([^\/]*)}$/;
|
|
29
27
|
const match = regExp.exec(value);
|
|
30
|
-
if (match
|
|
31
|
-
result.value = new reg_exp_ext_1.RegExpExt(match
|
|
28
|
+
if (match?.[1])
|
|
29
|
+
result.value = new reg_exp_ext_1.RegExpExt(match?.[1], match?.[2] ?? '');
|
|
32
30
|
}
|
|
33
31
|
static function(value, result, def) {
|
|
34
32
|
if (!config_1.Config.Template.function)
|
|
35
33
|
return;
|
|
36
34
|
let regExp = /^F\{([^=>]+) => ([^}]+)}$/g;
|
|
37
35
|
const match = regExp.exec(value);
|
|
38
|
-
if (
|
|
39
|
-
result.value = (new Function(...match
|
|
36
|
+
if (match?.[1] && match?.[2])
|
|
37
|
+
result.value = (new Function(...match?.[1].trim().split(/\s*,\s*/), match?.[2].trim()).bind({}));
|
|
40
38
|
}
|
|
41
39
|
static empty(value, result, def) {
|
|
42
|
-
var _a;
|
|
43
40
|
if (!config_1.Config.Template.empty)
|
|
44
41
|
return;
|
|
45
42
|
let regExp = /^!{([^}{]+)+?}$/g;
|
|
46
|
-
const match =
|
|
43
|
+
const match = regExp.exec(value)?.[1];
|
|
47
44
|
if (match) {
|
|
48
45
|
if (match === 'object')
|
|
49
46
|
result.value = {};
|
package/dist/src/template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/template.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAClC,+CAA0C;AAG1C,MAAa,QAAQ;IACZ,MAAM,CAAC,MAAM,CAElB,KAAa,EACb,MAAe,EACf,GAAO;QAEP,IAAI,CAAC,eAAM,CAAC,QAAQ,CAAC,MAAM;YAAE,OAAO;QACpC,IAAI,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/template.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAClC,+CAA0C;AAG1C,MAAa,QAAQ;IACZ,MAAM,CAAC,MAAM,CAElB,KAAa,EACb,MAAe,EACf,GAAO;QAEP,IAAI,CAAC,eAAM,CAAC,QAAQ,CAAC,MAAM;YAAE,OAAO;QACpC,IAAI,MAAM,GAAG,oBAAoB,EAC/B,GAAG,CAAC;QACN,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAClB,MAAM,CAAC,KAAK,GAAY,MAAM,CAAC,KAAM,CAAC,OAAO,CAC3C,GAAG,CAAC,CAAC,CAAC,EACN,MAAM,CAAC,IAAI,CAAC,GAAG,CAAI,GAAG,CAAC,CAAC,CAAC,EAAE,GA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