@adviser/cement 0.5.3 → 0.5.4

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 (383) hide show
  1. package/cjs/base-basic-sys-abstraction.test.cjs +12 -13
  2. package/cjs/base-basic-sys-abstraction.test.cjs.map +1 -1
  3. package/cjs/bin2text.test.cjs +15 -14
  4. package/cjs/bin2text.test.cjs.map +1 -1
  5. package/cjs/coerce-binary.test.cjs +16 -15
  6. package/cjs/coerce-binary.test.cjs.map +1 -1
  7. package/cjs/crypto.test.cjs +9 -8
  8. package/cjs/crypto.test.cjs.map +1 -1
  9. package/cjs/future.test.cjs +12 -11
  10. package/cjs/future.test.cjs.map +1 -1
  11. package/cjs/http_header.test.cjs +13 -13
  12. package/cjs/http_header.test.cjs.map +1 -1
  13. package/cjs/index.cjs +3 -0
  14. package/cjs/index.cjs.map +1 -1
  15. package/cjs/index.d.ts +3 -0
  16. package/cjs/index.d.ts.map +1 -1
  17. package/cjs/is-json.test.cjs +59 -58
  18. package/cjs/is-json.test.cjs.map +1 -1
  19. package/cjs/is-promise.test.cjs +19 -19
  20. package/cjs/is-promise.test.cjs.map +1 -1
  21. package/cjs/json-en-decoder.test.cjs +13 -12
  22. package/cjs/json-en-decoder.test.cjs.map +1 -1
  23. package/cjs/keyed-ng.test.cjs +21 -21
  24. package/cjs/keyed-ng.test.cjs.map +1 -1
  25. package/cjs/logger.test.cjs +178 -179
  26. package/cjs/logger.test.cjs.map +1 -1
  27. package/cjs/lru-map-set.test.cjs +67 -66
  28. package/cjs/lru-map-set.test.cjs.map +1 -1
  29. package/cjs/mutable-url.test.cjs +44 -44
  30. package/cjs/mutable-url.test.cjs.map +1 -1
  31. package/cjs/node-fs/mock-file-service.test.cjs +7 -6
  32. package/cjs/node-fs/mock-file-service.test.cjs.map +1 -1
  33. package/cjs/node-fs/node-sys-abstraction.test.cjs +13 -12
  34. package/cjs/node-fs/node-sys-abstraction.test.cjs.map +1 -1
  35. package/cjs/on-func.test.cjs +42 -43
  36. package/cjs/on-func.test.cjs.map +1 -1
  37. package/cjs/on-func.test.d.ts.map +1 -1
  38. package/cjs/option.cjs +2 -2
  39. package/cjs/option.cjs.map +1 -1
  40. package/cjs/option.d.ts +1 -1
  41. package/cjs/option.d.ts.map +1 -1
  42. package/cjs/path-ops.test.cjs +40 -39
  43. package/cjs/path-ops.test.cjs.map +1 -1
  44. package/cjs/poller.test.cjs +51 -51
  45. package/cjs/poller.test.cjs.map +1 -1
  46. package/cjs/promise-sleep.test.cjs +35 -34
  47. package/cjs/promise-sleep.test.cjs.map +1 -1
  48. package/cjs/resolve-once.cjs.map +1 -1
  49. package/cjs/resolve-once.d.ts +3 -6
  50. package/cjs/resolve-once.d.ts.map +1 -1
  51. package/cjs/resolve-once.test.cjs +301 -296
  52. package/cjs/resolve-once.test.cjs.map +1 -1
  53. package/cjs/result.test.cjs +68 -44
  54. package/cjs/result.test.cjs.map +1 -1
  55. package/cjs/sys-env.test.cjs +67 -66
  56. package/cjs/sys-env.test.cjs.map +1 -1
  57. package/cjs/test/mock-logger.test.cjs +14 -13
  58. package/cjs/test/mock-logger.test.cjs.map +1 -1
  59. package/cjs/timeouted.test.cjs +313 -313
  60. package/cjs/timeouted.test.cjs.map +1 -1
  61. package/cjs/tracer.test.cjs +32 -31
  62. package/cjs/tracer.test.cjs.map +1 -1
  63. package/cjs/txt-en-decoder.test.cjs +31 -31
  64. package/cjs/txt-en-decoder.test.cjs.map +1 -1
  65. package/cjs/uri.test.cjs +239 -239
  66. package/cjs/uri.test.cjs.map +1 -1
  67. package/cjs/utils/consume.test.cjs +22 -22
  68. package/cjs/utils/consume.test.cjs.map +1 -1
  69. package/cjs/utils/rebuffer.test.cjs +40 -39
  70. package/cjs/utils/rebuffer.test.cjs.map +1 -1
  71. package/cjs/utils/relative-path.test.cjs +125 -124
  72. package/cjs/utils/relative-path.test.cjs.map +1 -1
  73. package/cjs/utils/sorted-object.test.cjs +8 -7
  74. package/cjs/utils/sorted-object.test.cjs.map +1 -1
  75. package/cjs/utils/stream-map.test.cjs +32 -31
  76. package/cjs/utils/stream-map.test.cjs.map +1 -1
  77. package/cjs/utils/stream2string.test.cjs +5 -5
  78. package/cjs/utils/stream2string.test.cjs.map +1 -1
  79. package/cjs/utils/string2stream.test.cjs +5 -5
  80. package/cjs/utils/string2stream.test.cjs.map +1 -1
  81. package/cjs/utils/stripper.test.cjs +21 -20
  82. package/cjs/utils/stripper.test.cjs.map +1 -1
  83. package/cjs/utils/to-sorted.test.cjs +27 -27
  84. package/cjs/utils/to-sorted.test.cjs.map +1 -1
  85. package/cjs/version.cjs +1 -1
  86. package/cjs/wait-for-value.cjs +49 -0
  87. package/cjs/wait-for-value.cjs.map +1 -0
  88. package/cjs/wait-for-value.d.ts +13 -0
  89. package/cjs/wait-for-value.d.ts.map +1 -0
  90. package/cjs/wait-for-value.test.cjs +86 -0
  91. package/cjs/wait-for-value.test.cjs.map +1 -0
  92. package/cjs/wait-for-value.test.d.ts +2 -0
  93. package/cjs/wait-for-value.test.d.ts.map +1 -0
  94. package/deno.json +1 -1
  95. package/esm/base-basic-sys-abstraction.test.js +1 -2
  96. package/esm/base-basic-sys-abstraction.test.js.map +1 -1
  97. package/esm/bin2text.test.js +2 -1
  98. package/esm/bin2text.test.js.map +1 -1
  99. package/esm/coerce-binary.test.js +1 -0
  100. package/esm/coerce-binary.test.js.map +1 -1
  101. package/esm/crypto.test.js +2 -1
  102. package/esm/crypto.test.js.map +1 -1
  103. package/esm/future.test.js +1 -0
  104. package/esm/future.test.js.map +1 -1
  105. package/esm/http_header.test.js +1 -1
  106. package/esm/http_header.test.js.map +1 -1
  107. package/esm/index.d.ts +3 -0
  108. package/esm/index.d.ts.map +1 -1
  109. package/esm/index.js +3 -0
  110. package/esm/index.js.map +1 -1
  111. package/esm/is-json.test.js +2 -1
  112. package/esm/is-json.test.js.map +1 -1
  113. package/esm/is-promise.test.js +2 -2
  114. package/esm/is-promise.test.js.map +1 -1
  115. package/esm/json-en-decoder.test.js +2 -1
  116. package/esm/json-en-decoder.test.js.map +1 -1
  117. package/esm/keyed-ng.test.js +2 -2
  118. package/esm/keyed-ng.test.js.map +1 -1
  119. package/esm/load-asset.test.js +2 -3
  120. package/esm/load-asset.test.js.map +1 -1
  121. package/esm/logger.test.js +2 -3
  122. package/esm/logger.test.js.map +1 -1
  123. package/esm/lru-map-set.test.js +1 -0
  124. package/esm/lru-map-set.test.js.map +1 -1
  125. package/esm/mutable-url.test.js +1 -1
  126. package/esm/mutable-url.test.js.map +1 -1
  127. package/esm/node-fs/mock-file-service.test.js +1 -0
  128. package/esm/node-fs/mock-file-service.test.js.map +1 -1
  129. package/esm/node-fs/node-sys-abstraction.test.js +1 -0
  130. package/esm/node-fs/node-sys-abstraction.test.js.map +1 -1
  131. package/esm/on-func.test.d.ts.map +1 -1
  132. package/esm/on-func.test.js +2 -3
  133. package/esm/on-func.test.js.map +1 -1
  134. package/esm/option.d.ts +1 -1
  135. package/esm/option.d.ts.map +1 -1
  136. package/esm/option.js +2 -2
  137. package/esm/option.js.map +1 -1
  138. package/esm/path-ops.test.js +2 -1
  139. package/esm/path-ops.test.js.map +1 -1
  140. package/esm/poller.test.js +2 -2
  141. package/esm/poller.test.js.map +1 -1
  142. package/esm/promise-sleep.test.js +2 -1
  143. package/esm/promise-sleep.test.js.map +1 -1
  144. package/esm/resolve-once.d.ts +3 -6
  145. package/esm/resolve-once.d.ts.map +1 -1
  146. package/esm/resolve-once.js.map +1 -1
  147. package/esm/resolve-once.test.js +9 -4
  148. package/esm/resolve-once.test.js.map +1 -1
  149. package/esm/result.test.js +25 -1
  150. package/esm/result.test.js.map +1 -1
  151. package/esm/sys-env.test.js +1 -0
  152. package/esm/sys-env.test.js.map +1 -1
  153. package/esm/test/mock-logger.test.js +1 -0
  154. package/esm/test/mock-logger.test.js.map +1 -1
  155. package/esm/timeouted.test.js +2 -2
  156. package/esm/timeouted.test.js.map +1 -1
  157. package/esm/tracer.test.js +1 -0
  158. package/esm/tracer.test.js.map +1 -1
  159. package/esm/txt-en-decoder.test.js +2 -2
  160. package/esm/txt-en-decoder.test.js.map +1 -1
  161. package/esm/uri.test.js +2 -2
  162. package/esm/uri.test.js.map +1 -1
  163. package/esm/utils/consume.test.js +2 -2
  164. package/esm/utils/consume.test.js.map +1 -1
  165. package/esm/utils/rebuffer.test.js +2 -1
  166. package/esm/utils/rebuffer.test.js.map +1 -1
  167. package/esm/utils/relative-path.test.js +2 -1
  168. package/esm/utils/relative-path.test.js.map +1 -1
  169. package/esm/utils/sorted-object.test.js +2 -1
  170. package/esm/utils/sorted-object.test.js.map +1 -1
  171. package/esm/utils/stream-map.test.js +2 -1
  172. package/esm/utils/stream-map.test.js.map +1 -1
  173. package/esm/utils/stream2string.test.js +2 -2
  174. package/esm/utils/stream2string.test.js.map +1 -1
  175. package/esm/utils/string2stream.test.js +2 -2
  176. package/esm/utils/string2stream.test.js.map +1 -1
  177. package/esm/utils/stripper.test.js +2 -1
  178. package/esm/utils/stripper.test.js.map +1 -1
  179. package/esm/utils/to-sorted.test.js +2 -2
  180. package/esm/utils/to-sorted.test.js.map +1 -1
  181. package/esm/version.js +1 -1
  182. package/esm/wait-for-value.d.ts +13 -0
  183. package/esm/wait-for-value.d.ts.map +1 -0
  184. package/esm/wait-for-value.js +45 -0
  185. package/esm/wait-for-value.js.map +1 -0
  186. package/esm/wait-for-value.test.d.ts +2 -0
  187. package/esm/wait-for-value.test.d.ts.map +1 -0
  188. package/esm/wait-for-value.test.js +84 -0
  189. package/esm/wait-for-value.test.js.map +1 -0
  190. package/package.json +1 -1
  191. package/src/index.ts +3 -0
  192. package/src/option.ts +2 -2
  193. package/src/resolve-once.ts +11 -60
  194. package/src/wait-for-value.ts +111 -0
  195. package/ts/cjs/base-basic-sys-abstraction.test.js +12 -13
  196. package/ts/cjs/base-basic-sys-abstraction.test.js.map +1 -1
  197. package/ts/cjs/bin2text.test.js +15 -14
  198. package/ts/cjs/bin2text.test.js.map +1 -1
  199. package/ts/cjs/coerce-binary.test.js +16 -15
  200. package/ts/cjs/coerce-binary.test.js.map +1 -1
  201. package/ts/cjs/crypto.test.js +9 -8
  202. package/ts/cjs/crypto.test.js.map +1 -1
  203. package/ts/cjs/future.test.js +12 -11
  204. package/ts/cjs/future.test.js.map +1 -1
  205. package/ts/cjs/http_header.test.js +13 -13
  206. package/ts/cjs/http_header.test.js.map +1 -1
  207. package/ts/cjs/index.d.ts +3 -0
  208. package/ts/cjs/index.d.ts.map +1 -1
  209. package/ts/cjs/index.js +3 -0
  210. package/ts/cjs/index.js.map +1 -1
  211. package/ts/cjs/is-json.test.js +59 -58
  212. package/ts/cjs/is-json.test.js.map +1 -1
  213. package/ts/cjs/is-promise.test.js +19 -19
  214. package/ts/cjs/is-promise.test.js.map +1 -1
  215. package/ts/cjs/json-en-decoder.test.js +13 -12
  216. package/ts/cjs/json-en-decoder.test.js.map +1 -1
  217. package/ts/cjs/keyed-ng.test.js +21 -21
  218. package/ts/cjs/keyed-ng.test.js.map +1 -1
  219. package/ts/cjs/logger.test.js +178 -179
  220. package/ts/cjs/logger.test.js.map +1 -1
  221. package/ts/cjs/lru-map-set.test.js +67 -66
  222. package/ts/cjs/lru-map-set.test.js.map +1 -1
  223. package/ts/cjs/mutable-url.test.js +44 -44
  224. package/ts/cjs/mutable-url.test.js.map +1 -1
  225. package/ts/cjs/node-fs/mock-file-service.test.js +7 -6
  226. package/ts/cjs/node-fs/mock-file-service.test.js.map +1 -1
  227. package/ts/cjs/node-fs/node-sys-abstraction.test.js +13 -12
  228. package/ts/cjs/node-fs/node-sys-abstraction.test.js.map +1 -1
  229. package/ts/cjs/on-func.test.d.ts.map +1 -1
  230. package/ts/cjs/on-func.test.js +42 -43
  231. package/ts/cjs/on-func.test.js.map +1 -1
  232. package/ts/cjs/option.d.ts +1 -1
  233. package/ts/cjs/option.d.ts.map +1 -1
  234. package/ts/cjs/option.js +2 -2
  235. package/ts/cjs/option.js.map +1 -1
  236. package/ts/cjs/path-ops.test.js +40 -39
  237. package/ts/cjs/path-ops.test.js.map +1 -1
  238. package/ts/cjs/poller.test.js +51 -51
  239. package/ts/cjs/poller.test.js.map +1 -1
  240. package/ts/cjs/promise-sleep.test.js +35 -34
  241. package/ts/cjs/promise-sleep.test.js.map +1 -1
  242. package/ts/cjs/resolve-once.d.ts +3 -6
  243. package/ts/cjs/resolve-once.d.ts.map +1 -1
  244. package/ts/cjs/resolve-once.js.map +1 -1
  245. package/ts/cjs/resolve-once.test.js +301 -296
  246. package/ts/cjs/resolve-once.test.js.map +1 -1
  247. package/ts/cjs/result.test.js +68 -44
  248. package/ts/cjs/result.test.js.map +1 -1
  249. package/ts/cjs/sys-env.test.js +67 -66
  250. package/ts/cjs/sys-env.test.js.map +1 -1
  251. package/ts/cjs/test/mock-logger.test.js +14 -13
  252. package/ts/cjs/test/mock-logger.test.js.map +1 -1
  253. package/ts/cjs/timeouted.test.js +313 -313
  254. package/ts/cjs/timeouted.test.js.map +1 -1
  255. package/ts/cjs/tracer.test.js +32 -31
  256. package/ts/cjs/tracer.test.js.map +1 -1
  257. package/ts/cjs/txt-en-decoder.test.js +31 -31
  258. package/ts/cjs/txt-en-decoder.test.js.map +1 -1
  259. package/ts/cjs/uri.test.js +239 -239
  260. package/ts/cjs/uri.test.js.map +1 -1
  261. package/ts/cjs/utils/consume.test.js +22 -22
  262. package/ts/cjs/utils/consume.test.js.map +1 -1
  263. package/ts/cjs/utils/rebuffer.test.js +40 -39
  264. package/ts/cjs/utils/rebuffer.test.js.map +1 -1
  265. package/ts/cjs/utils/relative-path.test.js +125 -124
  266. package/ts/cjs/utils/relative-path.test.js.map +1 -1
  267. package/ts/cjs/utils/sorted-object.test.js +8 -7
  268. package/ts/cjs/utils/sorted-object.test.js.map +1 -1
  269. package/ts/cjs/utils/stream-map.test.js +32 -31
  270. package/ts/cjs/utils/stream-map.test.js.map +1 -1
  271. package/ts/cjs/utils/stream2string.test.js +5 -5
  272. package/ts/cjs/utils/stream2string.test.js.map +1 -1
  273. package/ts/cjs/utils/string2stream.test.js +5 -5
  274. package/ts/cjs/utils/string2stream.test.js.map +1 -1
  275. package/ts/cjs/utils/stripper.test.js +21 -20
  276. package/ts/cjs/utils/stripper.test.js.map +1 -1
  277. package/ts/cjs/utils/to-sorted.test.js +27 -27
  278. package/ts/cjs/utils/to-sorted.test.js.map +1 -1
  279. package/ts/cjs/version.js +1 -1
  280. package/ts/cjs/wait-for-value.d.ts +13 -0
  281. package/ts/cjs/wait-for-value.d.ts.map +1 -0
  282. package/ts/cjs/wait-for-value.js +49 -0
  283. package/ts/cjs/wait-for-value.js.map +1 -0
  284. package/ts/cjs/wait-for-value.test.d.ts +2 -0
  285. package/ts/cjs/wait-for-value.test.d.ts.map +1 -0
  286. package/ts/cjs/wait-for-value.test.js +86 -0
  287. package/ts/cjs/wait-for-value.test.js.map +1 -0
  288. package/ts/esm/base-basic-sys-abstraction.test.js +1 -2
  289. package/ts/esm/base-basic-sys-abstraction.test.js.map +1 -1
  290. package/ts/esm/bin2text.test.js +2 -1
  291. package/ts/esm/bin2text.test.js.map +1 -1
  292. package/ts/esm/coerce-binary.test.js +1 -0
  293. package/ts/esm/coerce-binary.test.js.map +1 -1
  294. package/ts/esm/crypto.test.js +2 -1
  295. package/ts/esm/crypto.test.js.map +1 -1
  296. package/ts/esm/future.test.js +1 -0
  297. package/ts/esm/future.test.js.map +1 -1
  298. package/ts/esm/http_header.test.js +1 -1
  299. package/ts/esm/http_header.test.js.map +1 -1
  300. package/ts/esm/index.d.ts +3 -0
  301. package/ts/esm/index.d.ts.map +1 -1
  302. package/ts/esm/index.js +3 -0
  303. package/ts/esm/index.js.map +1 -1
  304. package/ts/esm/is-json.test.js +2 -1
  305. package/ts/esm/is-json.test.js.map +1 -1
  306. package/ts/esm/is-promise.test.js +2 -2
  307. package/ts/esm/is-promise.test.js.map +1 -1
  308. package/ts/esm/json-en-decoder.test.js +2 -1
  309. package/ts/esm/json-en-decoder.test.js.map +1 -1
  310. package/ts/esm/keyed-ng.test.js +2 -2
  311. package/ts/esm/keyed-ng.test.js.map +1 -1
  312. package/ts/esm/load-asset.test.js +2 -3
  313. package/ts/esm/load-asset.test.js.map +1 -1
  314. package/ts/esm/logger.test.js +2 -3
  315. package/ts/esm/logger.test.js.map +1 -1
  316. package/ts/esm/lru-map-set.test.js +1 -0
  317. package/ts/esm/lru-map-set.test.js.map +1 -1
  318. package/ts/esm/mutable-url.test.js +1 -1
  319. package/ts/esm/mutable-url.test.js.map +1 -1
  320. package/ts/esm/node-fs/mock-file-service.test.js +1 -0
  321. package/ts/esm/node-fs/mock-file-service.test.js.map +1 -1
  322. package/ts/esm/node-fs/node-sys-abstraction.test.js +1 -0
  323. package/ts/esm/node-fs/node-sys-abstraction.test.js.map +1 -1
  324. package/ts/esm/on-func.test.d.ts.map +1 -1
  325. package/ts/esm/on-func.test.js +2 -3
  326. package/ts/esm/on-func.test.js.map +1 -1
  327. package/ts/esm/option.d.ts +1 -1
  328. package/ts/esm/option.d.ts.map +1 -1
  329. package/ts/esm/option.js +2 -2
  330. package/ts/esm/option.js.map +1 -1
  331. package/ts/esm/path-ops.test.js +2 -1
  332. package/ts/esm/path-ops.test.js.map +1 -1
  333. package/ts/esm/poller.test.js +2 -2
  334. package/ts/esm/poller.test.js.map +1 -1
  335. package/ts/esm/promise-sleep.test.js +2 -1
  336. package/ts/esm/promise-sleep.test.js.map +1 -1
  337. package/ts/esm/resolve-once.d.ts +3 -6
  338. package/ts/esm/resolve-once.d.ts.map +1 -1
  339. package/ts/esm/resolve-once.js.map +1 -1
  340. package/ts/esm/resolve-once.test.js +9 -4
  341. package/ts/esm/resolve-once.test.js.map +1 -1
  342. package/ts/esm/result.test.js +25 -1
  343. package/ts/esm/result.test.js.map +1 -1
  344. package/ts/esm/sys-env.test.js +1 -0
  345. package/ts/esm/sys-env.test.js.map +1 -1
  346. package/ts/esm/test/mock-logger.test.js +1 -0
  347. package/ts/esm/test/mock-logger.test.js.map +1 -1
  348. package/ts/esm/timeouted.test.js +2 -2
  349. package/ts/esm/timeouted.test.js.map +1 -1
  350. package/ts/esm/tracer.test.js +1 -0
  351. package/ts/esm/tracer.test.js.map +1 -1
  352. package/ts/esm/txt-en-decoder.test.js +2 -2
  353. package/ts/esm/txt-en-decoder.test.js.map +1 -1
  354. package/ts/esm/uri.test.js +2 -2
  355. package/ts/esm/uri.test.js.map +1 -1
  356. package/ts/esm/utils/consume.test.js +2 -2
  357. package/ts/esm/utils/consume.test.js.map +1 -1
  358. package/ts/esm/utils/rebuffer.test.js +2 -1
  359. package/ts/esm/utils/rebuffer.test.js.map +1 -1
  360. package/ts/esm/utils/relative-path.test.js +2 -1
  361. package/ts/esm/utils/relative-path.test.js.map +1 -1
  362. package/ts/esm/utils/sorted-object.test.js +2 -1
  363. package/ts/esm/utils/sorted-object.test.js.map +1 -1
  364. package/ts/esm/utils/stream-map.test.js +2 -1
  365. package/ts/esm/utils/stream-map.test.js.map +1 -1
  366. package/ts/esm/utils/stream2string.test.js +2 -2
  367. package/ts/esm/utils/stream2string.test.js.map +1 -1
  368. package/ts/esm/utils/string2stream.test.js +2 -2
  369. package/ts/esm/utils/string2stream.test.js.map +1 -1
  370. package/ts/esm/utils/stripper.test.js +2 -1
  371. package/ts/esm/utils/stripper.test.js.map +1 -1
  372. package/ts/esm/utils/to-sorted.test.js +2 -2
  373. package/ts/esm/utils/to-sorted.test.js.map +1 -1
  374. package/ts/esm/version.js +1 -1
  375. package/ts/esm/wait-for-value.d.ts +13 -0
  376. package/ts/esm/wait-for-value.d.ts.map +1 -0
  377. package/ts/esm/wait-for-value.js +45 -0
  378. package/ts/esm/wait-for-value.js.map +1 -0
  379. package/ts/esm/wait-for-value.test.d.ts +2 -0
  380. package/ts/esm/wait-for-value.test.d.ts.map +1 -0
  381. package/ts/esm/wait-for-value.test.js +84 -0
  382. package/ts/esm/wait-for-value.test.js.map +1 -0
  383. package/tsconfig.json +1 -1
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const cement_1 = require("@adviser/cement");
4
- const console_write_stream_js_1 = require("./utils/console-write-stream.js");
5
- const stripper_js_1 = require("./utils/stripper.js");
6
- describe("TestLogger", () => {
4
+ const vitest_1 = require("vitest");
5
+ (0, vitest_1.describe)("TestLogger", () => {
7
6
  let logCollector;
8
7
  let logger;
9
- beforeEach(() => {
8
+ (0, vitest_1.beforeEach)(() => {
10
9
  logCollector = new cement_1.LogCollector();
11
10
  logger = new cement_1.LoggerImpl({
12
11
  out: logCollector,
@@ -14,65 +13,65 @@ describe("TestLogger", () => {
14
13
  levelHandler: new cement_1.LevelHandlerImpl(),
15
14
  });
16
15
  });
17
- describe("Error()", () => {
18
- it("should set the level attribute to error", async () => {
16
+ (0, vitest_1.describe)("Error()", () => {
17
+ (0, vitest_1.it)("should set the level attribute to error", async () => {
19
18
  logger.Error().Msg("");
20
19
  await logger.Flush();
21
- expect(logCollector.Logs()).toEqual([{ level: "error" }]);
20
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ level: "error" }]);
22
21
  });
23
- it("should set the error message", async () => {
22
+ (0, vitest_1.it)("should set the error message", async () => {
24
23
  logger.Err(new Error("test")).Msg("");
25
24
  await logger.Flush();
26
- expect(logCollector.Logs()).toEqual([{ error: "test" }]);
25
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ error: "test" }]);
27
26
  });
28
- it("should set the error from string", async () => {
27
+ (0, vitest_1.it)("should set the error from string", async () => {
29
28
  logger.Err("test").Msg("");
30
29
  await logger.Flush();
31
- expect(logCollector.Logs()).toEqual([{ error: "test" }]);
30
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ error: "test" }]);
32
31
  });
33
- it("should set the error from bool", async () => {
32
+ (0, vitest_1.it)("should set the error from bool", async () => {
34
33
  logger.Err(false).Msg("");
35
34
  await logger.Flush();
36
- expect(logCollector.Logs()).toEqual([{ error: false }]);
35
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ error: false }]);
37
36
  });
38
37
  });
39
- describe("Info()", () => {
40
- it("should set the level attribute to info", async () => {
38
+ (0, vitest_1.describe)("Info()", () => {
39
+ (0, vitest_1.it)("should set the level attribute to info", async () => {
41
40
  logger.Info().Msg("");
42
41
  await logger.Flush();
43
- expect(logCollector.Logs()).toEqual([{ level: "info" }]);
42
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ level: "info" }]);
44
43
  });
45
44
  });
46
- describe("Any()", () => {
47
- it("should set the Any attribute", async () => {
45
+ (0, vitest_1.describe)("Any()", () => {
46
+ (0, vitest_1.it)("should set the Any attribute", async () => {
48
47
  logger.Any("key", "value").Msg("");
49
48
  await logger.Flush();
50
- expect(logCollector.Logs()).toEqual([{ key: "value" }]);
49
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ key: "value" }]);
51
50
  });
52
51
  });
53
- describe("Dur()", () => {
54
- it("should set the Dur attribute", async () => {
52
+ (0, vitest_1.describe)("Dur()", () => {
53
+ (0, vitest_1.it)("should set the Dur attribute", async () => {
55
54
  logger.Dur("key", 123).Msg("");
56
55
  await logger.Flush();
57
- expect(logCollector.Logs()).toEqual([{ key: "123ms" }]);
56
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ key: "123ms" }]);
58
57
  });
59
58
  });
60
- describe("Uint64()", () => {
61
- it("should set the Uint64 / number attribute", async () => {
59
+ (0, vitest_1.describe)("Uint64()", () => {
60
+ (0, vitest_1.it)("should set the Uint64 / number attribute", async () => {
62
61
  logger.Uint64("Hey", 123).Msg("");
63
62
  await logger.Flush();
64
- expect(logCollector.Logs()).toEqual([{ Hey: 123 }]);
63
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ Hey: 123 }]);
65
64
  });
66
65
  });
67
- describe("Str()", () => {
68
- it("should set the String attribute", async () => {
66
+ (0, vitest_1.describe)("Str()", () => {
67
+ (0, vitest_1.it)("should set the String attribute", async () => {
69
68
  logger.Str("key", "value").Msg("");
70
69
  await logger.Flush();
71
- expect(logCollector.Logs()).toEqual([{ key: "value" }]);
70
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ key: "value" }]);
72
71
  });
73
72
  });
74
- describe("With()", () => {
75
- it("should return a new logger with the same attributes", async () => {
73
+ (0, vitest_1.describe)("With()", () => {
74
+ (0, vitest_1.it)("should return a new logger with the same attributes", async () => {
76
75
  const log = logger.With().Str("key", "value").Logger();
77
76
  const newLogger = log.With().Str("str", "str").Logger();
78
77
  logger.Msg("logger1");
@@ -82,7 +81,7 @@ describe("TestLogger", () => {
82
81
  log.Info().Msg("log1");
83
82
  log.Info().Msg("log2");
84
83
  await log.Flush();
85
- expect(logCollector.Logs()).toEqual([
84
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
86
85
  { msg: "logger1" },
87
86
  { msg: "logger2" },
88
87
  { key: "value", msg: "newLogger1", str: "str" },
@@ -92,8 +91,8 @@ describe("TestLogger", () => {
92
91
  ]);
93
92
  });
94
93
  });
95
- describe("Timestamp()", () => {
96
- it("should set the Timestamp attribute", async () => {
94
+ (0, vitest_1.describe)("Timestamp()", () => {
95
+ (0, vitest_1.it)("should set the Timestamp attribute", async () => {
97
96
  const WithConstant = logger.With().Str("key", "withconstant").Str("key1", "anotherone").Logger();
98
97
  const timelog = WithConstant.With().Timestamp().Str("key", "withconstant2").Logger();
99
98
  timelog.Msg("1");
@@ -101,7 +100,7 @@ describe("TestLogger", () => {
101
100
  timelog.Timestamp().Msg("3");
102
101
  await timelog.Flush();
103
102
  const timer = (0, cement_1.TimeFactory)(cement_1.TimeMode.STEP);
104
- expect(logCollector.Logs()).toEqual([
103
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
105
104
  {
106
105
  key: "withconstant2",
107
106
  key1: "anotherone",
@@ -122,14 +121,14 @@ describe("TestLogger", () => {
122
121
  },
123
122
  ]);
124
123
  });
125
- it("should NOT set the Timestamp attribute", async () => {
124
+ (0, vitest_1.it)("should NOT set the Timestamp attribute", async () => {
126
125
  const timelog = logger.With().Logger();
127
126
  timelog.Msg("1");
128
127
  timelog.Msg("2");
129
128
  timelog.Timestamp().Msg("3");
130
129
  await timelog.Flush();
131
130
  const timer = (0, cement_1.TimeFactory)(cement_1.TimeMode.STEP);
132
- expect(logCollector.Logs()).toEqual([
131
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
133
132
  { msg: "1" },
134
133
  { msg: "2" },
135
134
  {
@@ -139,13 +138,13 @@ describe("TestLogger", () => {
139
138
  ]);
140
139
  });
141
140
  });
142
- it("remove empty msg", async () => {
141
+ (0, vitest_1.it)("remove empty msg", async () => {
143
142
  const log = logger;
144
143
  log.Warn().Msg();
145
144
  await log.Flush();
146
- expect(logCollector.Logs()).toEqual([{ level: "warn" }]);
145
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([{ level: "warn" }]);
147
146
  });
148
- it("check log level", async () => {
147
+ (0, vitest_1.it)("check log level", async () => {
149
148
  const log = logger.With().Module("test").Logger().With().Logger();
150
149
  log.Warn().Msg("Warn");
151
150
  log.Info().Msg("Info");
@@ -163,14 +162,14 @@ describe("TestLogger", () => {
163
162
  { msg: "WithLevel", level: "error", module: "test" },
164
163
  { level: "info", module: "test", msg: "Simple", what: "the" },
165
164
  ];
166
- expect(logCollector.Logs()).toEqual(expected);
165
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual(expected);
167
166
  logCollector.Logs().splice(0, logCollector.Logs().length);
168
167
  logger.With().Logger().SetDebug("test");
169
168
  log.Debug().Msg("Debug1");
170
169
  await log.Flush();
171
- expect(logCollector.Logs()).toEqual([...expected, { msg: "Debug1", level: "debug", module: "test" }]);
170
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([...expected, { msg: "Debug1", level: "debug", module: "test" }]);
172
171
  });
173
- it("should flush all logs", async () => {
172
+ (0, vitest_1.it)("should flush all logs", async () => {
174
173
  const log = new cement_1.LoggerImpl();
175
174
  log.Info().Msg("1");
176
175
  log.Info().Msg("2");
@@ -178,7 +177,7 @@ describe("TestLogger", () => {
178
177
  log.Info().Msg("DONE");
179
178
  return log.Flush();
180
179
  });
181
- it("carry debug", async () => {
180
+ (0, vitest_1.it)("carry debug", async () => {
182
181
  const log = logger;
183
182
  log.Module("xxx").SetDebug("yyy", ["i , xxx"]);
184
183
  log.Debug().Msg("Debug1");
@@ -191,7 +190,7 @@ describe("TestLogger", () => {
191
190
  log.Debug().Msg("Top");
192
191
  next1.Debug().Msg("Next1");
193
192
  await log.Flush();
194
- expect(logCollector.Logs()).toEqual([
193
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
195
194
  {
196
195
  level: "debug",
197
196
  module: "xxx",
@@ -223,22 +222,22 @@ describe("TestLogger", () => {
223
222
  },
224
223
  ]);
225
224
  });
226
- it("should return an Error on Msg", async () => {
225
+ (0, vitest_1.it)("should return an Error on Msg", async () => {
227
226
  const log = logger;
228
227
  log.Module("xxx").SetDebug("xxx");
229
228
  log.Debug().Msg("Debug1");
230
- expect(JSON.parse(log.Debug().Msg("Debug2").AsError().message)).toEqual({
229
+ (0, vitest_1.expect)(JSON.parse(log.Debug().Msg("Debug2").AsError().message)).toEqual({
231
230
  level: "debug",
232
231
  module: "xxx",
233
232
  msg: "Debug2",
234
233
  });
235
- expect(JSON.parse(log.Info().Msg("Info2").AsError().message)).toEqual({
234
+ (0, vitest_1.expect)(JSON.parse(log.Info().Msg("Info2").AsError().message)).toEqual({
236
235
  level: "info",
237
236
  module: "xxx",
238
237
  msg: "Info2",
239
238
  });
240
239
  await log.Flush();
241
- expect(logCollector.Logs()).toEqual([
240
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
242
241
  {
243
242
  level: "debug",
244
243
  module: "xxx",
@@ -256,7 +255,7 @@ describe("TestLogger", () => {
256
255
  },
257
256
  ]);
258
257
  });
259
- it("top should enable modules wildcard", async () => {
258
+ (0, vitest_1.it)("top should enable modules wildcard", async () => {
260
259
  const log = logger;
261
260
  const xxxModule = log.With().Module("xxx").Logger();
262
261
  log.Debug().Msg("log-Msg0");
@@ -271,7 +270,7 @@ describe("TestLogger", () => {
271
270
  log.Debug().Msg("log-Msg1");
272
271
  xxxModule.Debug().Msg("xxx-log-Msg1");
273
272
  await log.Flush();
274
- expect(logCollector.Logs()).toEqual([
273
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
275
274
  {
276
275
  level: "debug",
277
276
  msg: "log-Msg",
@@ -288,7 +287,7 @@ describe("TestLogger", () => {
288
287
  },
289
288
  ]);
290
289
  });
291
- it("down should enable modules wildcard", async () => {
290
+ (0, vitest_1.it)("down should enable modules wildcard", async () => {
292
291
  const log = logger;
293
292
  const xxxModule = log.With().Module("xxx").Logger();
294
293
  log.Debug().Msg("log-Msg");
@@ -303,7 +302,7 @@ describe("TestLogger", () => {
303
302
  xxxModule.Debug().Msg("xxx-log-Msg2");
304
303
  yyyModule.Debug().Msg("yyy-log-Msg2");
305
304
  await log.Flush();
306
- expect(logCollector.Logs()).toEqual([
305
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
307
306
  {
308
307
  level: "debug",
309
308
  msg: "log-Msg1",
@@ -320,13 +319,13 @@ describe("TestLogger", () => {
320
319
  },
321
320
  ]);
322
321
  });
323
- it("global set debug on modules", async () => {
322
+ (0, vitest_1.it)("global set debug on modules", async () => {
324
323
  const log = logger;
325
324
  const xxxModule = log.With().Module("xxx").Logger();
326
325
  log.Debug().Msg("log-Msg");
327
326
  xxxModule.Debug().Msg("xxx-log-Msg");
328
327
  await log.Flush();
329
- expect(logCollector.Logs()).toEqual([]);
328
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([]);
330
329
  xxxModule.EnableLevel(cement_1.Level.DEBUG, "yyy", "xxx");
331
330
  const yyyModule = log.With().Module("yyy").Logger();
332
331
  yyyModule.Debug().Msg("yyy-log-Msg");
@@ -337,7 +336,7 @@ describe("TestLogger", () => {
337
336
  xxxModule.Debug().Msg("xxx-log-Msg2");
338
337
  log.Debug().Msg("log-Msg3");
339
338
  await log.Flush();
340
- expect(logCollector.Logs()).toEqual([
339
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
341
340
  {
342
341
  level: "debug",
343
342
  module: "yyy",
@@ -355,33 +354,33 @@ describe("TestLogger", () => {
355
354
  },
356
355
  ]);
357
356
  });
358
- it("global Check", () => {
357
+ (0, vitest_1.it)("global Check", () => {
359
358
  const g1 = new cement_1.LoggerImpl().EnableLevel(cement_1.Level.DEBUG);
360
359
  const g2 = new cement_1.LoggerImpl();
361
360
  const g3 = g2.With().Module("X").Logger();
362
- expect(g1.levelHandler).toBe(g2.levelHandler);
363
- expect(g1.levelHandler).toBe(g3.levelHandler);
364
- expect(g1.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
365
- expect(g2.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
366
- expect(g3.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
361
+ (0, vitest_1.expect)(g1.levelHandler).toBe(g2.levelHandler);
362
+ (0, vitest_1.expect)(g1.levelHandler).toBe(g3.levelHandler);
363
+ (0, vitest_1.expect)(g1.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
364
+ (0, vitest_1.expect)(g2.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
365
+ (0, vitest_1.expect)(g3.levelHandler._globalLevels.has(cement_1.Level.DEBUG)).toBeTruthy();
367
366
  });
368
- it("isLogger", () => {
367
+ (0, vitest_1.it)("isLogger", () => {
369
368
  const log = new cement_1.LoggerImpl();
370
- expect((0, cement_1.IsLogger)(log)).toBeTruthy();
371
- expect((0, cement_1.IsLogger)({
369
+ (0, vitest_1.expect)((0, cement_1.IsLogger)(log)).toBeTruthy();
370
+ (0, vitest_1.expect)((0, cement_1.IsLogger)({
372
371
  Info: () => log.Info(),
373
372
  Flush: () => log.Flush(),
374
373
  With: () => log.With(),
375
374
  })).toBeFalsy();
376
375
  });
377
- it("bool", async () => {
376
+ (0, vitest_1.it)("bool", async () => {
378
377
  const log = logger;
379
378
  log.Info().Bool("true", true).Msg("1");
380
379
  log.Info().Bool("false", false).Msg("2");
381
380
  log.Info().Bool("true", "wurst").Msg("3");
382
381
  log.Info().Bool("false", null).Msg("4");
383
382
  await log.Flush();
384
- expect(logCollector.Logs()).toEqual([
383
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
385
384
  {
386
385
  level: "info",
387
386
  msg: "1",
@@ -404,14 +403,14 @@ describe("TestLogger", () => {
404
403
  },
405
404
  ]);
406
405
  });
407
- it("int", async () => {
406
+ (0, vitest_1.it)("int", async () => {
408
407
  const log = logger;
409
408
  log.Info().Int("1", 1).Msg("1");
410
409
  log.Info().Int("2", 2).Msg("2");
411
410
  log.Info().Int("3", 3).Msg("3");
412
411
  log.Info().Int("4", 4).Msg("4");
413
412
  await log.Flush();
414
- expect(logCollector.Logs()).toEqual([
413
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
415
414
  {
416
415
  "1": 1,
417
416
  level: "info",
@@ -434,14 +433,14 @@ describe("TestLogger", () => {
434
433
  },
435
434
  ]);
436
435
  });
437
- it("int", async () => {
436
+ (0, vitest_1.it)("int", async () => {
438
437
  const log = logger;
439
438
  log.Info().Int("1", 1).Msg("1");
440
439
  log.Info().Int("2", 2).Msg("2");
441
440
  log.Info().Int("3", 3).Msg("3");
442
441
  log.Info().Int("4", 4).Msg("4");
443
442
  await log.Flush();
444
- expect(logCollector.Logs()).toEqual([
443
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
445
444
  {
446
445
  "1": 1,
447
446
  level: "info",
@@ -464,7 +463,7 @@ describe("TestLogger", () => {
464
463
  },
465
464
  ]);
466
465
  });
467
- it("ref", async () => {
466
+ (0, vitest_1.it)("ref", async () => {
468
467
  const log = logger;
469
468
  let value = 4711;
470
469
  const fn = () => "" + value++;
@@ -473,7 +472,7 @@ describe("TestLogger", () => {
473
472
  log.Info().Ref("3", fn).Msg("3");
474
473
  log.Info().Ref("4", fn).Msg("4");
475
474
  await log.Flush();
476
- expect(logCollector.Logs()).toEqual([
475
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
477
476
  {
478
477
  "1": "4711",
479
478
  level: "info",
@@ -496,12 +495,12 @@ describe("TestLogger", () => {
496
495
  },
497
496
  ]);
498
497
  });
499
- it("result", async () => {
498
+ (0, vitest_1.it)("result", async () => {
500
499
  const log = logger;
501
500
  log.Info().Result("res.ok", cement_1.Result.Ok(4711)).Msg("1");
502
501
  log.Info().Result("res.err", cement_1.Result.Err("Error")).Msg("2");
503
502
  await log.Flush();
504
- expect(logCollector.Logs()).toEqual([
503
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
505
504
  {
506
505
  level: "info",
507
506
  msg: "1",
@@ -514,14 +513,14 @@ describe("TestLogger", () => {
514
513
  },
515
514
  ]);
516
515
  });
517
- it("url", async () => {
516
+ (0, vitest_1.it)("url", async () => {
518
517
  const log = logger;
519
518
  const url = cement_1.ReadonlyURL.fromThrow("http://localhost:8080");
520
519
  log.Info().Url(url).Msg("1");
521
520
  url.searchParams.set("test", "1");
522
521
  log.Info().Url(url).Msg("2");
523
522
  await log.Flush();
524
- expect(logCollector.Logs()).toEqual([
523
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
525
524
  {
526
525
  level: "info",
527
526
  msg: "1",
@@ -534,11 +533,11 @@ describe("TestLogger", () => {
534
533
  },
535
534
  ]);
536
535
  });
537
- it("str", async () => {
536
+ (0, vitest_1.it)("str", async () => {
538
537
  const log = logger;
539
538
  log.Error().Str("1", undefined).Msg("1");
540
539
  await log.Flush();
541
- expect(logCollector.Logs()).toEqual([
540
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
542
541
  {
543
542
  "1": "--Falsy--",
544
543
  level: "error",
@@ -546,7 +545,7 @@ describe("TestLogger", () => {
546
545
  },
547
546
  ]);
548
547
  });
549
- it("len", async () => {
548
+ (0, vitest_1.it)("len", async () => {
550
549
  const log = logger;
551
550
  for (const key of [undefined, "key"]) {
552
551
  log.Info().Len(undefined, key).Msg("undefined");
@@ -571,7 +570,7 @@ describe("TestLogger", () => {
571
570
  log.Info().Len({ a: 1 }, key).Msg("object");
572
571
  }
573
572
  await log.Flush();
574
- expect(logCollector.Logs()).toEqual(Array.from(["len", "key"])
573
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual(Array.from(["len", "key"])
575
574
  .map((key) => [
576
575
  {
577
576
  [key]: -1,
@@ -616,7 +615,7 @@ describe("TestLogger", () => {
616
615
  ])
617
616
  .flat());
618
617
  });
619
- it("wildcard debug", async () => {
618
+ (0, vitest_1.it)("wildcard debug", async () => {
620
619
  const m1 = logger.With().Module("m1").Logger();
621
620
  const m2 = logger.With().Module("m2").Logger();
622
621
  m1.Debug().Msg("m1");
@@ -625,7 +624,7 @@ describe("TestLogger", () => {
625
624
  m1.Debug().Msg("m3");
626
625
  m2.Debug().Msg("m4");
627
626
  await logger.Flush();
628
- expect(logCollector.Logs()).toEqual([
627
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
629
628
  {
630
629
  level: "debug",
631
630
  module: "m1",
@@ -638,7 +637,7 @@ describe("TestLogger", () => {
638
637
  },
639
638
  ]);
640
639
  });
641
- it("array setDebug could receive anything", () => {
640
+ (0, vitest_1.it)("array setDebug could receive anything", () => {
642
641
  function c(u) {
643
642
  return u;
644
643
  }
@@ -651,7 +650,7 @@ describe("TestLogger", () => {
651
650
  " testx",
652
651
  "test1x , , test2x,, test3x ,,,morex",
653
652
  ]);
654
- expect(Array.from(logger.levelHandler._modules.keys())).toEqual([
653
+ (0, vitest_1.expect)(Array.from(logger.levelHandler._modules.keys())).toEqual([
655
654
  "test",
656
655
  "test1",
657
656
  "test2",
@@ -664,7 +663,7 @@ describe("TestLogger", () => {
664
663
  "morex",
665
664
  ]);
666
665
  });
667
- it("object setDebug could receive anything", async () => {
666
+ (0, vitest_1.it)("object setDebug could receive anything", async () => {
668
667
  logger
669
668
  .Error()
670
669
  .Any("sock", {
@@ -677,7 +676,7 @@ describe("TestLogger", () => {
677
676
  })
678
677
  .Msg("1");
679
678
  await logger.Flush();
680
- expect(logCollector.Logs()).toEqual([
679
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
681
680
  {
682
681
  level: "error",
683
682
  msg: "1",
@@ -692,7 +691,7 @@ describe("TestLogger", () => {
692
691
  },
693
692
  ]);
694
693
  });
695
- it("don't serialize json on string", async () => {
694
+ (0, vitest_1.it)("don't serialize json on string", async () => {
696
695
  logger
697
696
  .Error()
698
697
  .Err(new Error(JSON.stringify({ o: { h: 1 } })))
@@ -700,7 +699,7 @@ describe("TestLogger", () => {
700
699
  .Str("bla", '{a":1}')
701
700
  .Msg("1");
702
701
  await logger.Flush();
703
- expect(logCollector.Logs()).toEqual([
702
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
704
703
  {
705
704
  level: "error",
706
705
  error: { o: { h: 1 } },
@@ -710,7 +709,7 @@ describe("TestLogger", () => {
710
709
  },
711
710
  ]);
712
711
  });
713
- it("see exposed Stack", async () => {
712
+ (0, vitest_1.it)("see exposed Stack", async () => {
714
713
  const e = new Error("test");
715
714
  logger.Error().Err(e).Msg("1");
716
715
  logger.SetExposeStack(true);
@@ -720,7 +719,7 @@ describe("TestLogger", () => {
720
719
  await logger.Flush();
721
720
  const logs = logCollector.Logs();
722
721
  logs[1].stack = logs[1].stack?.map((s) => s.toLowerCase());
723
- expect(logs).toEqual([
722
+ (0, vitest_1.expect)(logs).toEqual([
724
723
  {
725
724
  error: "test",
726
725
  level: "error",
@@ -739,37 +738,37 @@ describe("TestLogger", () => {
739
738
  },
740
739
  ]);
741
740
  });
742
- it("which writer for which runtime", () => {
741
+ (0, vitest_1.it)("which writer for which runtime", () => {
743
742
  const logger = new cement_1.LoggerImpl();
744
743
  if ((0, cement_1.runtimeFn)().isNodeIsh) {
745
- expect(logger._logWriter._out instanceof WritableStream).toBeTruthy();
744
+ (0, vitest_1.expect)(logger._logWriter._out instanceof WritableStream).toBeTruthy();
746
745
  logger.Info().Msg("Running in Node");
747
746
  }
748
747
  if ((0, cement_1.runtimeFn)().isBrowser) {
749
- expect(logger._logWriter._out.constructor.name).toBe("ConsoleWriterStream");
748
+ (0, vitest_1.expect)(logger._logWriter._out.constructor.name).toBe("ConsoleWriterStream");
750
749
  logger.Info().Msg("Running in Browser");
751
750
  }
752
751
  });
753
- it("browser format to console.log(msg, obj)", async () => {
752
+ (0, vitest_1.it)("browser format to console.log(msg, obj)", async () => {
754
753
  if ((0, cement_1.runtimeFn)().isBrowser) {
755
754
  const logParams = {
756
- log: vi.fn(),
757
- error: vi.fn(),
758
- warn: vi.fn(),
755
+ log: vitest_1.vi.fn(),
756
+ error: vitest_1.vi.fn(),
757
+ warn: vitest_1.vi.fn(),
759
758
  };
760
759
  const logger = new cement_1.LoggerImpl({
761
- out: new console_write_stream_js_1.ConsoleWriterStream(logParams),
760
+ out: new cement_1.ConsoleWriterStream(logParams),
762
761
  }).SetDebug("*");
763
762
  logger.Debug().Msg("msg debug");
764
763
  logger.Error().Msg("msg error");
765
764
  logger.Warn().Msg("msg warn");
766
765
  await logger.Flush();
767
- expect(logParams.log).toBeCalledWith("msg debug", { level: "debug" });
768
- expect(logParams.error).toBeCalledWith("msg error", { level: "error" });
769
- expect(logParams.warn).toBeCalledWith("msg warn", { level: "warn" });
766
+ (0, vitest_1.expect)(logParams.log).toBeCalledWith("msg debug", { level: "debug" });
767
+ (0, vitest_1.expect)(logParams.error).toBeCalledWith("msg error", { level: "error" });
768
+ (0, vitest_1.expect)(logParams.warn).toBeCalledWith("msg warn", { level: "warn" });
770
769
  }
771
770
  });
772
- it("self-ref", async () => {
771
+ (0, vitest_1.it)("self-ref", async () => {
773
772
  const nested = {
774
773
  m: 2,
775
774
  mfn: (0, cement_1.logValue)(() => 23, logger.levelHandler),
@@ -788,7 +787,7 @@ describe("TestLogger", () => {
788
787
  })
789
788
  .Msg("1");
790
789
  await logger.Flush();
791
- expect(logCollector.Logs()).toEqual([
790
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
792
791
  {
793
792
  level: "error",
794
793
  msg: "1",
@@ -808,35 +807,35 @@ describe("TestLogger", () => {
808
807
  },
809
808
  ]);
810
809
  });
811
- it("serialize json as string", () => {
810
+ (0, vitest_1.it)("serialize json as string", () => {
812
811
  const suri = "file://./doof?test=1";
813
812
  const auri = JSON.stringify({ uri: suri });
814
813
  const buri = cement_1.BuildURI.from(suri);
815
814
  const uri = cement_1.URI.from(suri);
816
- expect(JSON.stringify({ uri: buri })).toEqual(auri);
817
- expect(JSON.stringify({ uri })).toEqual(auri);
815
+ (0, vitest_1.expect)(JSON.stringify({ uri: buri })).toEqual(auri);
816
+ (0, vitest_1.expect)(JSON.stringify({ uri })).toEqual(auri);
818
817
  });
819
- it("emits attributes", () => {
818
+ (0, vitest_1.it)("emits attributes", () => {
820
819
  const log = logger
821
820
  .With()
822
821
  .Str("str", "a str")
823
822
  .Ref("bla", () => "blub")
824
823
  .Any("what", { a: 1 })
825
824
  .Logger();
826
- expect(log.Attributes()).toEqual({ str: "a str", what: { a: 1 }, bla: "blub" });
825
+ (0, vitest_1.expect)(log.Attributes()).toEqual({ str: "a str", what: { a: 1 }, bla: "blub" });
827
826
  const tlog = log.With().Timestamp().Logger();
828
827
  const refTime = (0, cement_1.BasicSysAbstractionFactory)({ TimeMode: cement_1.TimeMode.STEP }).Time();
829
- expect(tlog.Attributes()).toEqual({
828
+ (0, vitest_1.expect)(tlog.Attributes()).toEqual({
830
829
  str: "a str",
831
830
  what: { a: 1 },
832
831
  bla: "blub",
833
832
  ts: refTime.Now().toISOString(),
834
833
  });
835
834
  });
836
- it("Url could receive URL", async () => {
835
+ (0, vitest_1.it)("Url could receive URL", async () => {
837
836
  logger.Info().Url(new URL("http://localhost:8080")).Msg("1");
838
837
  await logger.Flush();
839
- expect(logCollector.Logs()).toEqual([
838
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
840
839
  {
841
840
  level: "info",
842
841
  msg: "1",
@@ -844,10 +843,10 @@ describe("TestLogger", () => {
844
843
  },
845
844
  ]);
846
845
  });
847
- it("Url could receive String", async () => {
846
+ (0, vitest_1.it)("Url could receive String", async () => {
848
847
  logger.Info().Url("http://localhost:8080").Msg("1");
849
848
  await logger.Flush();
850
- expect(logCollector.Logs()).toEqual([
849
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
851
850
  {
852
851
  level: "info",
853
852
  msg: "1",
@@ -855,11 +854,11 @@ describe("TestLogger", () => {
855
854
  },
856
855
  ]);
857
856
  });
858
- it("error could receive Result", async () => {
857
+ (0, vitest_1.it)("error could receive Result", async () => {
859
858
  logger.Info().Error().Err(cement_1.Result.Err("xxxxx")).Msg("1");
860
859
  logger.Info().Error().Err(cement_1.Result.Ok("yyyyy")).Msg("2");
861
860
  await logger.Flush();
862
- expect(logCollector.Logs()).toEqual([
861
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
863
862
  {
864
863
  error: "xxxxx",
865
864
  level: "error",
@@ -872,7 +871,7 @@ describe("TestLogger", () => {
872
871
  },
873
872
  ]);
874
873
  });
875
- it("introspect json", async () => {
874
+ (0, vitest_1.it)("introspect json", async () => {
876
875
  logger
877
876
  .Info()
878
877
  .Str("bla", JSON.stringify({ a: 4711 }))
@@ -881,7 +880,7 @@ describe("TestLogger", () => {
881
880
  })
882
881
  .Msg(JSON.stringify(["x", 4712, { a: 4711 }, '{"d":4711}', '{"a":4711}']));
883
882
  await logger.Flush();
884
- expect(logCollector.Logs()).toEqual([
883
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
885
884
  {
886
885
  bla: { a: 4711 },
887
886
  level: "info",
@@ -914,14 +913,14 @@ describe("TestLogger", () => {
914
913
  },
915
914
  ]);
916
915
  });
917
- it("introspect uint8array", async () => {
916
+ (0, vitest_1.it)("introspect uint8array", async () => {
918
917
  logger
919
918
  .Info()
920
919
  .Any("fhex", new Uint8Array(new Array(36).fill(1).map((_, i) => i)))
921
920
  .Any("hex", { a: new Uint8Array(new Array(36).fill(1).map((_, i) => i)) })
922
921
  .Msg("1");
923
922
  await logger.Flush();
924
- expect(logCollector.Logs()).toEqual([
923
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
925
924
  {
926
925
  fhex: [
927
926
  "0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................",
@@ -940,7 +939,7 @@ describe("TestLogger", () => {
940
939
  },
941
940
  ]);
942
941
  });
943
- it("my own json formatter", async () => {
942
+ (0, vitest_1.it)("my own json formatter", async () => {
944
943
  logger.SetExposeStack(true).SetFormatter(new cement_1.JSONFormatter(logger.TxtEnDe(), 2));
945
944
  logger
946
945
  .Error()
@@ -957,7 +956,7 @@ describe("TestLogger", () => {
957
956
  })
958
957
  .Msg("hello");
959
958
  await logger.Flush();
960
- expect(logCollector.Logs(true)).toEqual([
959
+ (0, vitest_1.expect)(logCollector.Logs(true)).toEqual([
961
960
  "{",
962
961
  ' "level": "error",',
963
962
  ' "bla": "blub",',
@@ -995,21 +994,21 @@ describe("TestLogger", () => {
995
994
  "}",
996
995
  ]);
997
996
  });
998
- it("AsError", () => {
997
+ (0, vitest_1.it)("AsError", () => {
999
998
  const error = logger.Error().Msg("AsError").AsError();
1000
- expect(error).toBeInstanceOf(Error);
1001
- expect(error.message).toBe('{"level":"error","msg":"AsError"}\n');
999
+ (0, vitest_1.expect)(error).toBeInstanceOf(Error);
1000
+ (0, vitest_1.expect)(error.message).toBe('{"level":"error","msg":"AsError"}\n');
1002
1001
  });
1003
- it("ResultError", () => {
1002
+ (0, vitest_1.it)("ResultError", () => {
1004
1003
  const fn = () => {
1005
1004
  return logger.Error().Msg("AsError").ResultError();
1006
1005
  };
1007
1006
  const res = fn();
1008
- expect(cement_1.Result.Is(res)).toBeTruthy();
1009
- expect(res.isErr()).toBeTruthy();
1010
- expect(res.Err().message).toBe('{"level":"error","msg":"AsError"}\n');
1007
+ (0, vitest_1.expect)(cement_1.Result.Is(res)).toBeTruthy();
1008
+ (0, vitest_1.expect)(res.isErr()).toBeTruthy();
1009
+ (0, vitest_1.expect)(res.Err().message).toBe('{"level":"error","msg":"AsError"}\n');
1011
1010
  });
1012
- it("receive object", async () => {
1011
+ (0, vitest_1.it)("receive object", async () => {
1013
1012
  logger
1014
1013
  .Error()
1015
1014
  .Str({ blaStr: "blub", blaStr2: "blub2" })
@@ -1019,7 +1018,7 @@ describe("TestLogger", () => {
1019
1018
  .Any({ blaAny: { a: 1 }, blaAny2: { b: 2 } })
1020
1019
  .Msg("hello");
1021
1020
  await logger.Flush();
1022
- expect(logCollector.Logs()).toEqual([
1021
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1023
1022
  {
1024
1023
  blaAny: {
1025
1024
  a: 1,
@@ -1039,7 +1038,7 @@ describe("TestLogger", () => {
1039
1038
  },
1040
1039
  ]);
1041
1040
  });
1042
- it("my own yaml formatter", async () => {
1041
+ (0, vitest_1.it)("my own yaml formatter", async () => {
1043
1042
  const log = logger.SetExposeStack(true).SetFormatter(new cement_1.YAMLFormatter(logger.TxtEnDe(), 2)).With().Logger();
1044
1043
  log
1045
1044
  .Error()
@@ -1056,7 +1055,7 @@ describe("TestLogger", () => {
1056
1055
  })
1057
1056
  .Msg("hello");
1058
1057
  await log.Flush();
1059
- expect(logCollector.Logs(true)).toEqual([
1058
+ (0, vitest_1.expect)(logCollector.Logs(true)).toEqual([
1060
1059
  "---",
1061
1060
  "level: error",
1062
1061
  "bla: blub",
@@ -1086,7 +1085,7 @@ describe("TestLogger", () => {
1086
1085
  "msg: hello",
1087
1086
  ]);
1088
1087
  });
1089
- it("Pairing", async () => {
1088
+ (0, vitest_1.it)("Pairing", async () => {
1090
1089
  logger
1091
1090
  .Error()
1092
1091
  .Pair({
@@ -1101,7 +1100,7 @@ describe("TestLogger", () => {
1101
1100
  })
1102
1101
  .Msg("1");
1103
1102
  await logger.Flush();
1104
- expect(logCollector.Logs(true)).toEqual([
1103
+ (0, vitest_1.expect)(logCollector.Logs(true)).toEqual([
1105
1104
  JSON.stringify({
1106
1105
  level: "error",
1107
1106
  str: "blub",
@@ -1126,7 +1125,7 @@ describe("TestLogger", () => {
1126
1125
  return this.#url;
1127
1126
  }
1128
1127
  }
1129
- describe("fetch-formatter", () => {
1128
+ (0, vitest_1.describe)("fetch-formatter", () => {
1130
1129
  const resp = new TestResponse("body", {
1131
1130
  status: 200,
1132
1131
  statusText: "OK",
@@ -1146,7 +1145,7 @@ describe("TestLogger", () => {
1146
1145
  });
1147
1146
  async function fixupLogs() {
1148
1147
  await logger.Flush();
1149
- return (0, stripper_js_1.stripper)([
1148
+ return (0, cement_1.stripper)([
1150
1149
  "isReloadNavigation",
1151
1150
  "reason",
1152
1151
  "targetAddressSpace",
@@ -1168,9 +1167,9 @@ describe("TestLogger", () => {
1168
1167
  "referrerPolicy",
1169
1168
  ], logCollector.Logs());
1170
1169
  }
1171
- it("ok-the-res", async () => {
1170
+ (0, vitest_1.it)("ok-the-res", async () => {
1172
1171
  logger.Error().Any("res", { the: resp }).Msg("ok-the-res");
1173
- expect(await fixupLogs()).toEqual([
1172
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1174
1173
  {
1175
1174
  level: "error",
1176
1175
  res: {
@@ -1191,9 +1190,9 @@ describe("TestLogger", () => {
1191
1190
  },
1192
1191
  ]);
1193
1192
  });
1194
- it("ok-the-req", async () => {
1193
+ (0, vitest_1.it)("ok-the-req", async () => {
1195
1194
  logger.Error().Any("req", { the: req }).Msg("ok-the-req");
1196
- expect(await fixupLogs()).toEqual([
1195
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1197
1196
  {
1198
1197
  level: "error",
1199
1198
  msg: "ok-the-req",
@@ -1216,12 +1215,12 @@ describe("TestLogger", () => {
1216
1215
  },
1217
1216
  ]);
1218
1217
  });
1219
- it("the-req-res", async () => {
1218
+ (0, vitest_1.it)("the-req-res", async () => {
1220
1219
  logger
1221
1220
  .Error()
1222
1221
  .Any("req-res", { the: { req, res: resp } })
1223
1222
  .Msg("ok-the-req-res");
1224
- expect(await fixupLogs()).toEqual([
1223
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1225
1224
  {
1226
1225
  level: "error",
1227
1226
  msg: "ok-the-req-res",
@@ -1258,9 +1257,9 @@ describe("TestLogger", () => {
1258
1257
  },
1259
1258
  ]);
1260
1259
  });
1261
- it("result-req-res", async () => {
1260
+ (0, vitest_1.it)("result-req-res", async () => {
1262
1261
  logger.Error().Http(cement_1.Result.Ok(resp)).Msg("-1");
1263
- expect(await fixupLogs()).toEqual([
1262
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1264
1263
  {
1265
1264
  Http: {
1266
1265
  body: ">Stream<",
@@ -1279,18 +1278,18 @@ describe("TestLogger", () => {
1279
1278
  },
1280
1279
  ]);
1281
1280
  });
1282
- it("0", async () => {
1281
+ (0, vitest_1.it)("0", async () => {
1283
1282
  logger.Error().Http().Msg("0");
1284
- expect(await fixupLogs()).toEqual([
1283
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1285
1284
  {
1286
1285
  level: "error",
1287
1286
  msg: "0",
1288
1287
  },
1289
1288
  ]);
1290
1289
  });
1291
- it("1", async () => {
1290
+ (0, vitest_1.it)("1", async () => {
1292
1291
  logger.Error().Http(resp, req, "Https").Msg("1");
1293
- expect(await fixupLogs()).toEqual([
1292
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1294
1293
  {
1295
1294
  Https: {
1296
1295
  req: {
@@ -1325,9 +1324,9 @@ describe("TestLogger", () => {
1325
1324
  },
1326
1325
  ]);
1327
1326
  });
1328
- it("1.1", async () => {
1327
+ (0, vitest_1.it)("1.1", async () => {
1329
1328
  logger.Error().Http("Yolo", cement_1.Result.Ok(req), cement_1.Result.Ok(resp)).Msg("1.1");
1330
- expect(await fixupLogs()).toEqual([
1329
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1331
1330
  {
1332
1331
  Yolo: {
1333
1332
  req: {
@@ -1362,9 +1361,9 @@ describe("TestLogger", () => {
1362
1361
  },
1363
1362
  ]);
1364
1363
  });
1365
- it("1.2", async () => {
1364
+ (0, vitest_1.it)("1.2", async () => {
1366
1365
  logger.Error().Http("Yerr", cement_1.Result.Err("e1"), cement_1.Result.Err("e2")).Msg("1.2");
1367
- expect(await fixupLogs()).toEqual([
1366
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1368
1367
  {
1369
1368
  error: ["e1", "e2"],
1370
1369
  level: "error",
@@ -1372,9 +1371,9 @@ describe("TestLogger", () => {
1372
1371
  },
1373
1372
  ]);
1374
1373
  });
1375
- it("2", async () => {
1374
+ (0, vitest_1.it)("2", async () => {
1376
1375
  logger.Error().Http(req, "Https").Msg("2");
1377
- expect(await fixupLogs()).toEqual([
1376
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1378
1377
  {
1379
1378
  Https: {
1380
1379
  body: ">Stream<",
@@ -1395,9 +1394,9 @@ describe("TestLogger", () => {
1395
1394
  },
1396
1395
  ]);
1397
1396
  });
1398
- it("3", async () => {
1397
+ (0, vitest_1.it)("3", async () => {
1399
1398
  logger.Error().Any("HttpReq", req).Msg("3");
1400
- expect(await fixupLogs()).toEqual([
1399
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1401
1400
  {
1402
1401
  HttpReq: {
1403
1402
  body: ">Stream<",
@@ -1418,9 +1417,9 @@ describe("TestLogger", () => {
1418
1417
  },
1419
1418
  ]);
1420
1419
  });
1421
- it("4", async () => {
1420
+ (0, vitest_1.it)("4", async () => {
1422
1421
  logger.Error().Any("HttpRes", resp).Msg("4");
1423
- expect(await fixupLogs()).toEqual([
1422
+ (0, vitest_1.expect)(await fixupLogs()).toEqual([
1424
1423
  {
1425
1424
  HttpRes: {
1426
1425
  body: ">Stream<",
@@ -1440,13 +1439,13 @@ describe("TestLogger", () => {
1440
1439
  ]);
1441
1440
  });
1442
1441
  });
1443
- it("use toJSON", async () => {
1442
+ (0, vitest_1.it)("use toJSON", async () => {
1444
1443
  logger
1445
1444
  .Error()
1446
1445
  .Any("res", { uri: cement_1.URI.from("https://doof.de?x=4&a=b") })
1447
1446
  .Msg("ok");
1448
1447
  await logger.Flush();
1449
- expect(logCollector.Logs(true)).toEqual([
1448
+ (0, vitest_1.expect)(logCollector.Logs(true)).toEqual([
1450
1449
  {
1451
1450
  level: "error",
1452
1451
  res: {
@@ -1467,13 +1466,13 @@ describe("TestLogger", () => {
1467
1466
  throw new Error("test");
1468
1467
  }
1469
1468
  }
1470
- it("throw in toString", async () => {
1469
+ (0, vitest_1.it)("throw in toString", async () => {
1471
1470
  logger
1472
1471
  .Error()
1473
1472
  .Any("res", new Test(1, cement_1.URI.from("https://doof.de")))
1474
1473
  .Msg("ok");
1475
1474
  await logger.Flush();
1476
- expect(logCollector.Logs(true)).toEqual([
1475
+ (0, vitest_1.expect)(logCollector.Logs(true)).toEqual([
1477
1476
  {
1478
1477
  level: "error",
1479
1478
  res: "LogValue:test",
@@ -1481,13 +1480,13 @@ describe("TestLogger", () => {
1481
1480
  },
1482
1481
  ].map((i) => JSON.stringify(i)));
1483
1482
  });
1484
- it("if uint8array is json do not hexdump", async () => {
1483
+ (0, vitest_1.it)("if uint8array is json do not hexdump", async () => {
1485
1484
  logger
1486
1485
  .Error()
1487
1486
  .Any("res", (0, cement_1.TxtEnDecoderSingleton)().encode(JSON.stringify({ a: 1, b: { c: "x" } })))
1488
1487
  .Msg("ok");
1489
1488
  await logger.Flush();
1490
- expect(logCollector.Logs()).toEqual([
1489
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1491
1490
  {
1492
1491
  level: "error",
1493
1492
  msg: "ok",
@@ -1500,7 +1499,7 @@ describe("TestLogger", () => {
1500
1499
  },
1501
1500
  ]);
1502
1501
  });
1503
- it("Result received ResolveError with Error is Object", async () => {
1502
+ (0, vitest_1.it)("Result received ResolveError with Error is Object", async () => {
1504
1503
  const x = cement_1.Result.Err({
1505
1504
  type: "error",
1506
1505
  tid: "z3AHk4H2a8",
@@ -1509,7 +1508,7 @@ describe("TestLogger", () => {
1509
1508
  });
1510
1509
  logger.Error().Result("res", x).Msg("1");
1511
1510
  await logger.Flush();
1512
- expect(logCollector.Logs()).toEqual([
1511
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1513
1512
  {
1514
1513
  error: {
1515
1514
  message: "Method not implemented.",
@@ -1522,7 +1521,7 @@ describe("TestLogger", () => {
1522
1521
  },
1523
1522
  ]);
1524
1523
  });
1525
- it("default ignore _attributes in any", async () => {
1524
+ (0, vitest_1.it)("default ignore _attributes in any", async () => {
1526
1525
  logger
1527
1526
  .Error()
1528
1527
  .Any("res", {
@@ -1542,7 +1541,7 @@ describe("TestLogger", () => {
1542
1541
  })
1543
1542
  .Msg("1");
1544
1543
  await logger.Flush();
1545
- expect(logCollector.Logs()).toEqual([
1544
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1546
1545
  {
1547
1546
  level: "error",
1548
1547
  msg: "1",
@@ -1558,14 +1557,14 @@ describe("TestLogger", () => {
1558
1557
  },
1559
1558
  ]);
1560
1559
  });
1561
- it("switch of ignore _attributes in any", async () => {
1560
+ (0, vitest_1.it)("switch of ignore _attributes in any", async () => {
1562
1561
  logger.SetIgnoreAttribute();
1563
1562
  logger
1564
1563
  .Error()
1565
1564
  .Any("res", { test: { _attributes: 1, jo: 42 }, _bla: 5 })
1566
1565
  .Msg("1");
1567
1566
  await logger.Flush();
1568
- expect(logCollector.Logs()).toEqual([
1567
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1569
1568
  {
1570
1569
  level: "error",
1571
1570
  msg: "1",
@@ -1579,12 +1578,12 @@ describe("TestLogger", () => {
1579
1578
  },
1580
1579
  ]);
1581
1580
  });
1582
- it("error with cause", async () => {
1581
+ (0, vitest_1.it)("error with cause", async () => {
1583
1582
  const e = new Error("test");
1584
1583
  e.cause = "yes -- cause";
1585
1584
  logger.Error().Err(e).Msg("1");
1586
1585
  await logger.Flush();
1587
- expect(logCollector.Logs()).toEqual([
1586
+ (0, vitest_1.expect)(logCollector.Logs()).toEqual([
1588
1587
  {
1589
1588
  error: {
1590
1589
  cause: "yes -- cause",
@@ -1609,7 +1608,7 @@ describe("TestLogger", () => {
1609
1608
  const parts = date.split(" - ")[1].replace("ms", "").trim();
1610
1609
  return parseFloat(parts);
1611
1610
  }
1612
- it("handles time and timeEnd", async () => {
1611
+ (0, vitest_1.it)("handles time and timeEnd", async () => {
1613
1612
  const log = logger.With().Logger();
1614
1613
  log.TimerStart("start").Msg("start");
1615
1614
  await new Promise((resolve) => setTimeout(resolve, 3));
@@ -1620,12 +1619,12 @@ describe("TestLogger", () => {
1620
1619
  log.TimerEnd("middle").Msg("end middle");
1621
1620
  await log.Flush();
1622
1621
  const logs = logCollector.Logs();
1623
- expect(splitDateGetTime(logs[0].start)).toBeLessThan(splitDateGetTime(logs[1].middle));
1624
- expect(splitDateGetTime(logs[1].middle)).toBeLessThan(splitDateGetTime(logs[2].start));
1625
- expect(splitDateGetTime(logs[2].start)).toBeLessThan(splitDateGetTime(logs[3].middle));
1626
- expect(splitMs(logs[2].start)).toBeGreaterThan(0);
1627
- expect(splitMs(logs[3].middle)).toBeGreaterThan(0);
1628
- expect(logs).toEqual([
1622
+ (0, vitest_1.expect)(splitDateGetTime(logs[0].start)).toBeLessThan(splitDateGetTime(logs[1].middle));
1623
+ (0, vitest_1.expect)(splitDateGetTime(logs[1].middle)).toBeLessThan(splitDateGetTime(logs[2].start));
1624
+ (0, vitest_1.expect)(splitDateGetTime(logs[2].start)).toBeLessThan(splitDateGetTime(logs[3].middle));
1625
+ (0, vitest_1.expect)(splitMs(logs[2].start)).toBeGreaterThan(0);
1626
+ (0, vitest_1.expect)(splitMs(logs[3].middle)).toBeGreaterThan(0);
1627
+ (0, vitest_1.expect)(logs).toEqual([
1629
1628
  {
1630
1629
  msg: "start",
1631
1630
  start: logs[0].start,