@adviser/cement 0.4.6 → 0.4.8

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 (505) hide show
  1. package/base-basic-sys-abstraction.test.d.ts +2 -0
  2. package/base-basic-sys-abstraction.test.d.ts.map +1 -0
  3. package/base-basic-sys-abstraction.test.js +88 -0
  4. package/base-basic-sys-abstraction.test.js.map +1 -0
  5. package/{base-sys-abstraction-h0dB3nZ5.d.ts → base-sys-abstraction.d.ts} +23 -22
  6. package/base-sys-abstraction.d.ts.map +1 -0
  7. package/base-sys-abstraction.js +193 -0
  8. package/base-sys-abstraction.js.map +1 -0
  9. package/bin2text.d.ts +3 -0
  10. package/bin2text.d.ts.map +1 -0
  11. package/bin2text.js +43 -0
  12. package/bin2text.js.map +1 -0
  13. package/bin2text.test.d.ts +2 -0
  14. package/bin2text.test.d.ts.map +1 -0
  15. package/bin2text.test.js +51 -0
  16. package/bin2text.test.js.map +1 -0
  17. package/cf/cf-basic-sys-abstraction.d.ts +14 -0
  18. package/cf/cf-basic-sys-abstraction.d.ts.map +1 -0
  19. package/cf/cf-basic-sys-abstraction.js +67 -0
  20. package/cf/cf-basic-sys-abstraction.js.map +1 -0
  21. package/cf/cf-env-actions.d.ts +16 -0
  22. package/cf/cf-env-actions.d.ts.map +1 -0
  23. package/cf/cf-env-actions.js +53 -0
  24. package/cf/cf-env-actions.js.map +1 -0
  25. package/cf/index.d.ts +3 -30
  26. package/cf/index.d.ts.map +1 -0
  27. package/cf/index.js +2 -11
  28. package/cf/index.js.map +1 -1
  29. package/cf-test-main.d.ts +5 -0
  30. package/cf-test-main.d.ts.map +1 -0
  31. package/cf-test-main.js +12 -0
  32. package/cf-test-main.js.map +1 -0
  33. package/coerce-binary.d.ts +6 -0
  34. package/coerce-binary.d.ts.map +1 -0
  35. package/coerce-binary.js +32 -0
  36. package/coerce-binary.js.map +1 -0
  37. package/coerce-binary.test.d.ts +2 -0
  38. package/coerce-binary.test.d.ts.map +1 -0
  39. package/coerce-binary.test.js +39 -0
  40. package/coerce-binary.test.js.map +1 -0
  41. package/crypto.d.ts +76 -0
  42. package/crypto.d.ts.map +1 -0
  43. package/crypto.js +22 -0
  44. package/crypto.js.map +1 -0
  45. package/crypto.test.d.ts +2 -0
  46. package/crypto.test.d.ts.map +1 -0
  47. package/crypto.test.js +21 -0
  48. package/crypto.test.js.map +1 -0
  49. package/deno/deno-basic-sys-abstraction.d.ts +14 -0
  50. package/deno/deno-basic-sys-abstraction.d.ts.map +1 -0
  51. package/deno/deno-basic-sys-abstraction.js +35 -0
  52. package/deno/deno-basic-sys-abstraction.js.map +1 -0
  53. package/deno/deno-env-actions.d.ts +23 -0
  54. package/deno/deno-env-actions.d.ts.map +1 -0
  55. package/deno/deno-env-actions.js +40 -0
  56. package/deno/deno-env-actions.js.map +1 -0
  57. package/deno/deno-file-service.d.ts +17 -0
  58. package/deno/deno-file-service.d.ts.map +1 -0
  59. package/deno/deno-file-service.js +67 -0
  60. package/deno/deno-file-service.js.map +1 -0
  61. package/deno/deno-sys-abstraction.d.ts +19 -0
  62. package/deno/deno-sys-abstraction.d.ts.map +1 -0
  63. package/deno/deno-sys-abstraction.js +96 -0
  64. package/deno/deno-sys-abstraction.js.map +1 -0
  65. package/deno/index.d.ts +3 -37
  66. package/deno/index.d.ts.map +1 -0
  67. package/deno/index.js +2 -179
  68. package/deno/index.js.map +1 -1
  69. package/file-service.d.ts +17 -0
  70. package/file-service.d.ts.map +1 -0
  71. package/file-service.js +2 -0
  72. package/file-service.js.map +1 -0
  73. package/future.d.ts +8 -0
  74. package/future.d.ts.map +1 -0
  75. package/future.js +25 -0
  76. package/future.js.map +1 -0
  77. package/future.test.d.ts +2 -0
  78. package/future.test.d.ts.map +1 -0
  79. package/future.test.js +32 -0
  80. package/future.test.js.map +1 -0
  81. package/http_header.d.ts +29 -0
  82. package/http_header.d.ts.map +1 -0
  83. package/http_header.js +157 -0
  84. package/http_header.js.map +1 -0
  85. package/http_header.test.d.ts +2 -0
  86. package/http_header.test.d.ts.map +1 -0
  87. package/http_header.test.js +96 -0
  88. package/http_header.test.js.map +1 -0
  89. package/index.d.ts +29 -396
  90. package/index.d.ts.map +1 -0
  91. package/index.js +28 -609
  92. package/index.js.map +1 -1
  93. package/is-promise.d.ts +4 -0
  94. package/is-promise.d.ts.map +1 -0
  95. package/is-promise.js +10 -0
  96. package/is-promise.js.map +1 -0
  97. package/is-promise.test.d.ts +2 -0
  98. package/is-promise.test.d.ts.map +1 -0
  99. package/is-promise.test.js +48 -0
  100. package/is-promise.test.js.map +1 -0
  101. package/json-en-decoder.d.ts +12 -0
  102. package/json-en-decoder.d.ts.map +1 -0
  103. package/json-en-decoder.js +42 -0
  104. package/json-en-decoder.js.map +1 -0
  105. package/json-en-decoder.test.d.ts +2 -0
  106. package/json-en-decoder.test.d.ts.map +1 -0
  107. package/json-en-decoder.test.js +18 -0
  108. package/json-en-decoder.test.js.map +1 -0
  109. package/log-level-impl.d.ts +17 -0
  110. package/log-level-impl.d.ts.map +1 -0
  111. package/log-level-impl.js +75 -0
  112. package/log-level-impl.js.map +1 -0
  113. package/log-writer-impl.d.ts +11 -0
  114. package/log-writer-impl.d.ts.map +1 -0
  115. package/log-writer-impl.js +52 -0
  116. package/log-writer-impl.js.map +1 -0
  117. package/logger-impl.d.ts +75 -0
  118. package/logger-impl.d.ts.map +1 -0
  119. package/logger-impl.js +505 -0
  120. package/logger-impl.js.map +1 -0
  121. package/logger.d.ts +97 -0
  122. package/logger.d.ts.map +1 -0
  123. package/logger.js +150 -0
  124. package/logger.js.map +1 -0
  125. package/logger.test.d.ts +2 -0
  126. package/logger.test.d.ts.map +1 -0
  127. package/logger.test.js +1577 -0
  128. package/logger.test.js.map +1 -0
  129. package/lru-map-set.d.ts +33 -0
  130. package/lru-map-set.d.ts.map +1 -0
  131. package/lru-map-set.js +116 -0
  132. package/lru-map-set.js.map +1 -0
  133. package/lru-map-set.test.d.ts +2 -0
  134. package/lru-map-set.test.d.ts.map +1 -0
  135. package/lru-map-set.test.js +81 -0
  136. package/lru-map-set.test.js.map +1 -0
  137. package/node/index.d.ts +4 -45
  138. package/node/index.d.ts.map +1 -0
  139. package/node/index.js +3 -222
  140. package/node/index.js.map +1 -1
  141. package/node/mock-file-service.d.ts +11 -0
  142. package/node/mock-file-service.d.ts.map +1 -0
  143. package/node/mock-file-service.js +31 -0
  144. package/node/mock-file-service.js.map +1 -0
  145. package/node/mock-file-service.test.d.ts +2 -0
  146. package/node/mock-file-service.test.d.ts.map +1 -0
  147. package/node/mock-file-service.test.js +31 -0
  148. package/node/mock-file-service.test.js.map +1 -0
  149. package/node/node-basic-sys-abstraction.d.ts +25 -0
  150. package/node/node-basic-sys-abstraction.d.ts.map +1 -0
  151. package/node/node-basic-sys-abstraction.js +45 -0
  152. package/node/node-basic-sys-abstraction.js.map +1 -0
  153. package/node/node-env-actions.d.ts +15 -0
  154. package/node/node-env-actions.d.ts.map +1 -0
  155. package/node/node-env-actions.js +38 -0
  156. package/node/node-env-actions.js.map +1 -0
  157. package/node/node-file-service.d.ts +16 -0
  158. package/node/node-file-service.d.ts.map +1 -0
  159. package/node/node-file-service.js +72 -0
  160. package/node/node-file-service.js.map +1 -0
  161. package/node/node-sys-abstraction.d.ts +19 -0
  162. package/node/node-sys-abstraction.d.ts.map +1 -0
  163. package/node/node-sys-abstraction.js +95 -0
  164. package/node/node-sys-abstraction.js.map +1 -0
  165. package/node/node-sys-abstraction.test.d.ts +2 -0
  166. package/node/node-sys-abstraction.test.d.ts.map +1 -0
  167. package/node/node-sys-abstraction.test.js +83 -0
  168. package/node/node-sys-abstraction.test.js.map +1 -0
  169. package/option.d.ts +26 -0
  170. package/option.d.ts.map +1 -0
  171. package/option.js +54 -0
  172. package/option.js.map +1 -0
  173. package/package.json +4 -10
  174. package/path-ops.d.ts +7 -0
  175. package/path-ops.d.ts.map +1 -0
  176. package/path-ops.js +35 -0
  177. package/path-ops.js.map +1 -0
  178. package/path-ops.test.d.ts +2 -0
  179. package/path-ops.test.d.ts.map +1 -0
  180. package/path-ops.test.js +39 -0
  181. package/path-ops.test.js.map +1 -0
  182. package/resolve-once.d.ts +59 -0
  183. package/resolve-once.d.ts.map +1 -0
  184. package/resolve-once.js +212 -0
  185. package/resolve-once.js.map +1 -0
  186. package/resolve-once.test.d.ts +2 -0
  187. package/resolve-once.test.d.ts.map +1 -0
  188. package/resolve-once.test.js +392 -0
  189. package/resolve-once.test.js.map +1 -0
  190. package/result.d.ts +34 -0
  191. package/result.d.ts.map +1 -0
  192. package/result.js +94 -0
  193. package/result.js.map +1 -0
  194. package/result.test.d.ts +2 -0
  195. package/result.test.d.ts.map +1 -0
  196. package/result.test.js +83 -0
  197. package/result.test.js.map +1 -0
  198. package/runtime.d.ts +9 -0
  199. package/runtime.d.ts.map +1 -0
  200. package/runtime.js +33 -0
  201. package/runtime.js.map +1 -0
  202. package/src/jsr.json +1 -1
  203. package/src/uri.ts +66 -37
  204. package/sys-abstraction.d.ts +43 -0
  205. package/sys-abstraction.d.ts.map +1 -0
  206. package/sys-abstraction.js +28 -0
  207. package/sys-abstraction.js.map +1 -0
  208. package/sys-env.d.ts +46 -0
  209. package/sys-env.d.ts.map +1 -0
  210. package/sys-env.js +161 -0
  211. package/sys-env.js.map +1 -0
  212. package/sys-env.test.d.ts +2 -0
  213. package/sys-env.test.d.ts.map +1 -0
  214. package/sys-env.test.js +170 -0
  215. package/sys-env.test.js.map +1 -0
  216. package/test/index.d.ts +3 -4
  217. package/test/index.d.ts.map +1 -0
  218. package/test/index.js +2 -13
  219. package/test/index.js.map +1 -1
  220. package/test/log-write-stream.d.ts +27 -0
  221. package/test/log-write-stream.d.ts.map +1 -0
  222. package/test/log-write-stream.js +78 -0
  223. package/test/log-write-stream.js.map +1 -0
  224. package/test/mock-logger.d.ts +14 -0
  225. package/test/mock-logger.d.ts.map +1 -0
  226. package/test/mock-logger.js +29 -0
  227. package/test/mock-logger.js.map +1 -0
  228. package/test/mock-logger.test.d.ts +2 -0
  229. package/test/mock-logger.test.d.ts.map +1 -0
  230. package/test/mock-logger.test.js +63 -0
  231. package/test/mock-logger.test.js.map +1 -0
  232. package/test/test-exit-handler.d.ts +2 -0
  233. package/test/test-exit-handler.d.ts.map +1 -0
  234. package/test/test-exit-handler.js +61 -0
  235. package/test/test-exit-handler.js.map +1 -0
  236. package/time.d.ts +14 -0
  237. package/time.d.ts.map +1 -0
  238. package/time.js +13 -0
  239. package/time.js.map +1 -0
  240. package/tracer.d.ts +59 -0
  241. package/tracer.d.ts.map +1 -0
  242. package/tracer.js +174 -0
  243. package/tracer.js.map +1 -0
  244. package/tracer.test.d.ts +2 -0
  245. package/tracer.test.d.ts.map +1 -0
  246. package/tracer.test.js +304 -0
  247. package/tracer.test.js.map +1 -0
  248. package/ts/smoke/smoke.js +1 -1
  249. package/ts/smoke/smoke.js.map +1 -1
  250. package/ts/src/base-sys-abstraction.js +20 -8
  251. package/ts/src/base-sys-abstraction.js.map +1 -1
  252. package/ts/src/cf/cf-basic-sys-abstraction.js +3 -3
  253. package/ts/src/cf/cf-basic-sys-abstraction.js.map +1 -1
  254. package/ts/src/cf/cf-env-actions.js +3 -1
  255. package/ts/src/cf/cf-env-actions.js.map +1 -1
  256. package/ts/src/coerce-binary.js +1 -1
  257. package/ts/src/coerce-binary.js.map +1 -1
  258. package/ts/src/deno/deno-basic-sys-abstraction.js +3 -3
  259. package/ts/src/deno/deno-basic-sys-abstraction.js.map +1 -1
  260. package/ts/src/deno/deno-env-actions.js +3 -9
  261. package/ts/src/deno/deno-env-actions.js.map +1 -1
  262. package/ts/src/deno/deno-file-service.js +2 -0
  263. package/ts/src/deno/deno-file-service.js.map +1 -1
  264. package/ts/src/deno/deno-sys-abstraction.js +21 -21
  265. package/ts/src/deno/deno-sys-abstraction.js.map +1 -1
  266. package/ts/src/future.js +13 -26
  267. package/ts/src/future.js.map +1 -1
  268. package/ts/src/http_header.js +2 -3
  269. package/ts/src/http_header.js.map +1 -1
  270. package/ts/src/json-en-decoder.js +3 -2
  271. package/ts/src/json-en-decoder.js.map +1 -1
  272. package/ts/src/log-level-impl.js +4 -6
  273. package/ts/src/log-level-impl.js.map +1 -1
  274. package/ts/src/log-writer-impl.js +9 -5
  275. package/ts/src/log-writer-impl.js.map +1 -1
  276. package/ts/src/logger-impl.js +15 -5
  277. package/ts/src/logger-impl.js.map +1 -1
  278. package/ts/src/logger.js +3 -3
  279. package/ts/src/logger.js.map +1 -1
  280. package/ts/src/logger.test.js +7 -19
  281. package/ts/src/logger.test.js.map +1 -1
  282. package/ts/src/lru-map-set.js +3 -1
  283. package/ts/src/lru-map-set.js.map +1 -1
  284. package/ts/src/node/mock-file-service.js +1 -4
  285. package/ts/src/node/mock-file-service.js.map +1 -1
  286. package/ts/src/node/node-basic-sys-abstraction.js +4 -3
  287. package/ts/src/node/node-basic-sys-abstraction.js.map +1 -1
  288. package/ts/src/node/node-env-actions.js +3 -9
  289. package/ts/src/node/node-env-actions.js.map +1 -1
  290. package/ts/src/node/node-file-service.js +1 -0
  291. package/ts/src/node/node-file-service.js.map +1 -1
  292. package/ts/src/node/node-sys-abstraction.js +21 -21
  293. package/ts/src/node/node-sys-abstraction.js.map +1 -1
  294. package/ts/src/option.js +1 -0
  295. package/ts/src/option.js.map +1 -1
  296. package/ts/src/path-ops.js +21 -30
  297. package/ts/src/path-ops.js.map +1 -1
  298. package/ts/src/resolve-once.js +17 -13
  299. package/ts/src/resolve-once.js.map +1 -1
  300. package/ts/src/result.js +2 -0
  301. package/ts/src/result.js.map +1 -1
  302. package/ts/src/sys-abstraction.js +1 -1
  303. package/ts/src/sys-abstraction.js.map +1 -1
  304. package/ts/src/sys-env.js +2 -1
  305. package/ts/src/sys-env.js.map +1 -1
  306. package/ts/src/sys-env.test.js +6 -19
  307. package/ts/src/sys-env.test.js.map +1 -1
  308. package/ts/src/test/log-write-stream.js +10 -6
  309. package/ts/src/test/log-write-stream.js.map +1 -1
  310. package/ts/src/test/mock-logger.js +6 -6
  311. package/ts/src/test/mock-logger.js.map +1 -1
  312. package/ts/src/test/test-exit-handler.js +1 -2
  313. package/ts/src/test/test-exit-handler.js.map +1 -1
  314. package/ts/src/tracer.js +10 -3
  315. package/ts/src/tracer.js.map +1 -1
  316. package/ts/src/tracer.test.js +5 -9
  317. package/ts/src/tracer.test.js.map +1 -1
  318. package/ts/src/txt-en-decoder.js +2 -4
  319. package/ts/src/txt-en-decoder.js.map +1 -1
  320. package/ts/src/types.js +2 -6
  321. package/ts/src/types.js.map +1 -1
  322. package/ts/src/uri.d.ts +5 -0
  323. package/ts/src/uri.d.ts.map +1 -1
  324. package/ts/src/uri.js +57 -34
  325. package/ts/src/uri.js.map +1 -1
  326. package/ts/src/uri.test.js +47 -0
  327. package/ts/src/uri.test.js.map +1 -1
  328. package/ts/src/utils/console-write-stream.js +8 -5
  329. package/ts/src/utils/console-write-stream.js.map +1 -1
  330. package/ts/src/utils/fanout-write-stream.js +4 -1
  331. package/ts/src/utils/fanout-write-stream.js.map +1 -1
  332. package/ts/src/utils/rebuffer.test.js +1 -1
  333. package/ts/src/utils/rebuffer.test.js.map +1 -1
  334. package/ts/src/utils/relative-path.js +1 -0
  335. package/ts/src/utils/relative-path.js.map +1 -1
  336. package/ts/src/utils/stream-map.test.js +1 -1
  337. package/ts/src/utils/stream-map.test.js.map +1 -1
  338. package/ts/src/web/web-basic-sys-abstraction.js +3 -3
  339. package/ts/src/web/web-basic-sys-abstraction.js.map +1 -1
  340. package/ts/src/web/web-env-actions.js +2 -1
  341. package/ts/src/web/web-env-actions.js.map +1 -1
  342. package/txt-en-decoder.d.ts +11 -0
  343. package/txt-en-decoder.d.ts.map +1 -0
  344. package/txt-en-decoder.js +37 -0
  345. package/txt-en-decoder.js.map +1 -0
  346. package/txt-en-decoder.test.d.ts +2 -0
  347. package/txt-en-decoder.test.d.ts.map +1 -0
  348. package/txt-en-decoder.test.js +48 -0
  349. package/txt-en-decoder.test.js.map +1 -0
  350. package/types.d.ts +16 -0
  351. package/types.d.ts.map +1 -0
  352. package/types.js +11 -0
  353. package/types.js.map +1 -0
  354. package/uri.d.ts +137 -0
  355. package/uri.d.ts.map +1 -0
  356. package/uri.js +567 -0
  357. package/uri.js.map +1 -0
  358. package/uri.test.d.ts +2 -0
  359. package/uri.test.d.ts.map +1 -0
  360. package/uri.test.js +633 -0
  361. package/uri.test.js.map +1 -0
  362. package/utils/coerce-uint8.d.ts +8 -0
  363. package/utils/coerce-uint8.d.ts.map +1 -0
  364. package/utils/coerce-uint8.js +34 -0
  365. package/utils/coerce-uint8.js.map +1 -0
  366. package/utils/console-write-stream.d.ts +21 -0
  367. package/utils/console-write-stream.d.ts.map +1 -0
  368. package/utils/console-write-stream.js +66 -0
  369. package/utils/console-write-stream.js.map +1 -0
  370. package/utils/fanout-write-stream.d.ts +12 -0
  371. package/utils/fanout-write-stream.d.ts.map +1 -0
  372. package/utils/fanout-write-stream.js +27 -0
  373. package/utils/fanout-write-stream.js.map +1 -0
  374. package/utils/get-params-result.d.ts +8 -0
  375. package/utils/get-params-result.d.ts.map +1 -0
  376. package/utils/get-params-result.js +45 -0
  377. package/utils/get-params-result.js.map +1 -0
  378. package/utils/index.d.ts +12 -3
  379. package/utils/index.d.ts.map +1 -0
  380. package/utils/index.js +11 -50
  381. package/utils/index.js.map +1 -1
  382. package/utils/rebuffer.d.ts +3 -0
  383. package/utils/rebuffer.d.ts.map +1 -0
  384. package/utils/rebuffer.js +66 -0
  385. package/utils/rebuffer.js.map +1 -0
  386. package/utils/rebuffer.test.d.ts +2 -0
  387. package/utils/rebuffer.test.d.ts.map +1 -0
  388. package/utils/rebuffer.test.js +77 -0
  389. package/utils/rebuffer.test.js.map +1 -0
  390. package/utils/relative-path.d.ts +18 -0
  391. package/utils/relative-path.d.ts.map +1 -0
  392. package/utils/relative-path.js +148 -0
  393. package/utils/relative-path.js.map +1 -0
  394. package/utils/relative-path.test.d.ts +2 -0
  395. package/utils/relative-path.test.d.ts.map +1 -0
  396. package/utils/relative-path.test.js +187 -0
  397. package/utils/relative-path.test.js.map +1 -0
  398. package/utils/sorted-objec.test.d.ts +2 -0
  399. package/utils/sorted-objec.test.d.ts.map +1 -0
  400. package/utils/sorted-objec.test.js +20 -0
  401. package/utils/sorted-objec.test.js.map +1 -0
  402. package/utils/sorted-object.d.ts +4 -0
  403. package/utils/sorted-object.d.ts.map +1 -0
  404. package/utils/sorted-object.js +16 -0
  405. package/utils/sorted-object.js.map +1 -0
  406. package/utils/stream-map.d.ts +9 -0
  407. package/utils/stream-map.d.ts.map +1 -0
  408. package/utils/stream-map.js +63 -0
  409. package/utils/stream-map.js.map +1 -0
  410. package/utils/stream-map.test.d.ts +2 -0
  411. package/utils/stream-map.test.d.ts.map +1 -0
  412. package/utils/stream-map.test.js +87 -0
  413. package/utils/stream-map.test.js.map +1 -0
  414. package/utils/stream-test-helper.d.ts +17 -0
  415. package/utils/stream-test-helper.d.ts.map +1 -0
  416. package/utils/stream-test-helper.js +45 -0
  417. package/utils/stream-test-helper.js.map +1 -0
  418. package/utils/stream2string.d.ts +3 -0
  419. package/utils/stream2string.d.ts.map +1 -0
  420. package/utils/stream2string.js +48 -0
  421. package/utils/stream2string.js.map +1 -0
  422. package/utils/stream2string.test.d.ts +2 -0
  423. package/utils/stream2string.test.d.ts.map +1 -0
  424. package/utils/stream2string.test.js +29 -0
  425. package/utils/stream2string.test.js.map +1 -0
  426. package/utils/string2stream.d.ts +4 -0
  427. package/utils/string2stream.d.ts.map +1 -0
  428. package/utils/string2stream.js +13 -0
  429. package/utils/string2stream.js.map +1 -0
  430. package/utils/string2stream.test.d.ts +2 -0
  431. package/utils/string2stream.test.d.ts.map +1 -0
  432. package/utils/string2stream.test.js +6 -0
  433. package/utils/string2stream.test.js.map +1 -0
  434. package/utils/stripper.d.ts +3 -0
  435. package/utils/stripper.d.ts.map +1 -0
  436. package/utils/stripper.js +59 -0
  437. package/utils/stripper.js.map +1 -0
  438. package/utils/stripper.test.d.ts +2 -0
  439. package/utils/stripper.test.d.ts.map +1 -0
  440. package/utils/stripper.test.js +128 -0
  441. package/utils/stripper.test.js.map +1 -0
  442. package/utils/uint8array-equal.d.ts +2 -0
  443. package/utils/uint8array-equal.d.ts.map +1 -0
  444. package/utils/uint8array-equal.js +12 -0
  445. package/utils/uint8array-equal.js.map +1 -0
  446. package/version.d.ts +2 -0
  447. package/version.d.ts.map +1 -0
  448. package/version.js +4 -0
  449. package/version.js.map +1 -0
  450. package/web/index.d.ts +2 -7
  451. package/web/index.d.ts.map +1 -0
  452. package/web/index.js +1 -7
  453. package/web/index.js.map +1 -1
  454. package/web/web-basic-sys-abstraction.d.ts +4 -0
  455. package/web/web-basic-sys-abstraction.d.ts.map +1 -0
  456. package/web/web-basic-sys-abstraction.js +45 -0
  457. package/web/web-basic-sys-abstraction.js.map +1 -0
  458. package/web/web-env-actions.d.ts +14 -0
  459. package/web/web-env-actions.d.ts.map +1 -0
  460. package/web/web-env-actions.js +36 -0
  461. package/web/web-env-actions.js.map +1 -0
  462. package/base-sys-abstraction-DgTynXGV.d.cts +0 -95
  463. package/cf/index.cjs +0 -1110
  464. package/cf/index.cjs.map +0 -1
  465. package/cf/index.d.cts +0 -30
  466. package/chunk-FOALXQST.js +0 -89
  467. package/chunk-FOALXQST.js.map +0 -1
  468. package/chunk-FURW5CDL.js +0 -792
  469. package/chunk-FURW5CDL.js.map +0 -1
  470. package/chunk-NJMNJYN2.js +0 -270
  471. package/chunk-NJMNJYN2.js.map +0 -1
  472. package/chunk-NTOGMD33.js +0 -684
  473. package/chunk-NTOGMD33.js.map +0 -1
  474. package/chunk-O3CWMM7E.js +0 -1678
  475. package/chunk-O3CWMM7E.js.map +0 -1
  476. package/deno/index.cjs +0 -1280
  477. package/deno/index.cjs.map +0 -1
  478. package/deno/index.d.cts +0 -37
  479. package/get-params-result-4xHM5s4_.d.cts +0 -71
  480. package/get-params-result-4xHM5s4_.d.ts +0 -71
  481. package/index-CMLb7JSe.d.ts +0 -97
  482. package/index-DL2hPDP5.d.cts +0 -296
  483. package/index-DTF3tq6t.d.ts +0 -296
  484. package/index-LQOsS7gM.d.cts +0 -97
  485. package/index.cjs +0 -4006
  486. package/index.cjs.map +0 -1
  487. package/index.d.cts +0 -396
  488. package/metafile-cjs.json +0 -1
  489. package/metafile-esm.json +0 -1
  490. package/node/index.cjs +0 -1335
  491. package/node/index.cjs.map +0 -1
  492. package/node/index.d.cts +0 -45
  493. package/stripper-BpBUUZ9p.d.cts +0 -4
  494. package/stripper-BpBUUZ9p.d.ts +0 -4
  495. package/sys-abstraction-CeAxxg9H.d.ts +0 -117
  496. package/sys-abstraction-DDAwGTnk.d.cts +0 -117
  497. package/test/index.cjs +0 -2991
  498. package/test/index.cjs.map +0 -1
  499. package/test/index.d.cts +0 -4
  500. package/utils/index.cjs +0 -778
  501. package/utils/index.cjs.map +0 -1
  502. package/utils/index.d.cts +0 -3
  503. package/web/index.cjs +0 -1153
  504. package/web/index.cjs.map +0 -1
  505. package/web/index.d.cts +0 -7
package/chunk-FURW5CDL.js DELETED
@@ -1,792 +0,0 @@
1
- import {
2
- ConsoleWriterStream,
3
- KeyedResolvOnce,
4
- ResolveOnce,
5
- TxtEnDecoderSingleton,
6
- __privateAdd,
7
- __privateGet,
8
- getParamsResult
9
- } from "./chunk-NTOGMD33.js";
10
-
11
- // src/runtime.ts
12
- function isSet(value, ref = globalThis) {
13
- const [head, ...tail] = value.split(".");
14
- if (["object", "function"].includes(typeof ref) && ref && ["object", "function"].includes(typeof ref[head]) && ref[head]) {
15
- if (tail.length <= 1) {
16
- return true;
17
- }
18
- return isSet(tail.join("."), ref[head]);
19
- }
20
- return false;
21
- }
22
- function runtimeFn() {
23
- const gt = globalThis;
24
- let isReactNative = (
25
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
26
- isSet("navigator.product") && typeof gt["navigator"] === "object" && gt["navigator"]["product"] === "ReactNative"
27
- );
28
- let isNodeIsh = false;
29
- if (!isSet("Deno")) {
30
- isNodeIsh = isSet("process.versions.node") && !isReactNative;
31
- }
32
- let isDeno = isSet("Deno");
33
- const isCFWorker = isSet("caches.default") && isSet("WebSocketPair");
34
- if (isCFWorker) {
35
- isDeno = false;
36
- isNodeIsh = false;
37
- isReactNative = false;
38
- }
39
- return {
40
- isNodeIsh,
41
- isBrowser: !(isNodeIsh || isDeno || isCFWorker || isReactNative),
42
- isDeno,
43
- isReactNative,
44
- isCFWorker
45
- };
46
- }
47
-
48
- // src/sys-abstraction.ts
49
- var TimeMode = {
50
- REAL: "real",
51
- CONST: "const",
52
- STEP: "step"
53
- };
54
- var RandomMode = {
55
- CONST: "const",
56
- STEP: "step",
57
- RANDOM: "random"
58
- };
59
- var IDMode = {
60
- UUID: "uuid",
61
- CONST: "const",
62
- STEP: "step"
63
- };
64
- function String2TimeMode(s) {
65
- switch (s == null ? void 0 : s.toLowerCase()) {
66
- case "real":
67
- return TimeMode.REAL;
68
- case "const":
69
- return TimeMode.CONST;
70
- case "step":
71
- return TimeMode.STEP;
72
- default:
73
- return TimeMode.REAL;
74
- }
75
- }
76
-
77
- // src/time.ts
78
- var Time = class {
79
- TimeSince(start) {
80
- const now = this.Now();
81
- return now.getTime() - start.getTime();
82
- }
83
- };
84
- var TimeUnits = {
85
- Microsecond: 1,
86
- Second: 1e3 * 1,
87
- //Microsecond,
88
- Minute: 60 * 1e3 * 1,
89
- //Second,
90
- Hour: 60 * 60 * 1e3 * 1
91
- // Minute,
92
- };
93
-
94
- // src/cf/cf-env-actions.ts
95
- var once = new ResolveOnce();
96
- var CFEnvActions = class _CFEnvActions {
97
- constructor(env) {
98
- this.injectOnRegister = {};
99
- this.cfEnv = new Map(Object.entries(env.presetEnv || {}));
100
- }
101
- static new(opts) {
102
- return once.once(() => new _CFEnvActions(opts));
103
- }
104
- static inject(o) {
105
- const env = _CFEnvActions.new({});
106
- for (const key in o) {
107
- const value = o[key];
108
- if (typeof value === "string") {
109
- if (env.env) {
110
- env.env.set(key, value);
111
- } else {
112
- env.injectOnRegister[key] = value;
113
- }
114
- }
115
- }
116
- }
117
- active() {
118
- return runtimeFn().isCFWorker;
119
- }
120
- register(env) {
121
- this.env = env;
122
- for (const key in this.injectOnRegister) {
123
- env.set(key, this.injectOnRegister[key]);
124
- }
125
- return env;
126
- }
127
- get(key) {
128
- return this.cfEnv.get(key);
129
- }
130
- set(key, value) {
131
- if (value) {
132
- this.cfEnv.set(key, value);
133
- }
134
- }
135
- delete(key) {
136
- this.cfEnv.delete(key);
137
- }
138
- keys() {
139
- return Array.from(this.cfEnv.keys());
140
- }
141
- };
142
-
143
- // src/deno/deno-env-actions.ts
144
- var once2 = new ResolveOnce();
145
- var _deno;
146
- var _DenoEnvActions = class _DenoEnvActions {
147
- constructor(opts) {
148
- __privateAdd(this, _deno, globalThis);
149
- this.opts = opts;
150
- }
151
- static new(opts) {
152
- return once2.once(() => new _DenoEnvActions(opts));
153
- }
154
- get _env() {
155
- return __privateGet(this, _deno).Deno.env;
156
- }
157
- register(env) {
158
- for (const key of env.keys()) {
159
- this._env.set(key, env.get(key) || "");
160
- }
161
- return env;
162
- }
163
- active() {
164
- return runtimeFn().isDeno;
165
- }
166
- keys() {
167
- return Object.keys(this._env.toObject());
168
- }
169
- get(key) {
170
- return this._env.get(key);
171
- }
172
- set(key, value) {
173
- if (value) {
174
- this._env.set(key, value);
175
- }
176
- }
177
- delete(key) {
178
- this._env.delete(key);
179
- }
180
- };
181
- _deno = new WeakMap();
182
- var DenoEnvActions = _DenoEnvActions;
183
-
184
- // src/node/node-env-actions.ts
185
- var once3 = new ResolveOnce();
186
- var _node;
187
- var _NodeEnvActions = class _NodeEnvActions {
188
- constructor(opts) {
189
- __privateAdd(this, _node, globalThis);
190
- this._env = this.active() ? __privateGet(this, _node).process.env : {};
191
- this.opts = opts;
192
- }
193
- static new(opts) {
194
- return once3.once(() => new _NodeEnvActions(opts));
195
- }
196
- register(env) {
197
- for (const key of env.keys()) {
198
- this._env[key] = env.get(key) || "";
199
- }
200
- return env;
201
- }
202
- active() {
203
- return runtimeFn().isNodeIsh;
204
- }
205
- keys() {
206
- return Object.keys(this._env);
207
- }
208
- get(key) {
209
- return this._env[key];
210
- }
211
- set(key, value) {
212
- if (value) {
213
- this._env[key] = value;
214
- }
215
- }
216
- delete(key) {
217
- delete this._env[key];
218
- }
219
- };
220
- _node = new WeakMap();
221
- var NodeEnvActions = _NodeEnvActions;
222
-
223
- // src/web/web-env-actions.ts
224
- var once4 = new ResolveOnce();
225
- var BrowserEnvActions = class _BrowserEnvActions {
226
- constructor(opts) {
227
- this.env = /* @__PURE__ */ new Map();
228
- this.opts = opts;
229
- }
230
- static new(opts) {
231
- return once4.once(() => new _BrowserEnvActions(opts));
232
- }
233
- get(key) {
234
- return this.env.get(key);
235
- }
236
- set(key, value) {
237
- if (value) {
238
- this.env.set(key, value);
239
- }
240
- }
241
- delete(key) {
242
- this.env.delete(key);
243
- }
244
- keys() {
245
- return Array.from(this.env.keys());
246
- }
247
- active() {
248
- return true;
249
- }
250
- register(env) {
251
- const sym = Symbol.for(this.opts.symbol || "CP_ENV");
252
- const browser = globalThis;
253
- browser[sym] = env;
254
- return env;
255
- }
256
- };
257
-
258
- // src/sys-env.ts
259
- var envActions = [
260
- { id: "cf", fn: (opts) => CFEnvActions.new(opts) },
261
- { id: "node", fn: (opts) => NodeEnvActions.new(opts) },
262
- { id: "deno", fn: (opts) => DenoEnvActions.new(opts) },
263
- { id: "browser", fn: (opts) => BrowserEnvActions.new(opts) }
264
- ];
265
- function registerEnvAction(fn) {
266
- const id = `id-${Math.random()}`;
267
- envActions.unshift({ id, fn });
268
- _envFactories.unget(id);
269
- return () => {
270
- const index = envActions.findIndex((i) => i.id === id);
271
- if (index >= 0) {
272
- envActions.splice(index, 1);
273
- }
274
- };
275
- }
276
- var _envFactories = new KeyedResolvOnce();
277
- function envFactory(opts = {}) {
278
- const found = envActions.find((fi) => fi.fn(opts).active());
279
- if (!found) {
280
- throw new Error("SysContainer:envFactory: no env available");
281
- }
282
- return _envFactories.get(found.id).once(() => {
283
- const action = found.fn(opts);
284
- const ret = new EnvImpl(action, opts);
285
- action.register(ret);
286
- return ret;
287
- });
288
- }
289
- function isIterable(obj) {
290
- if (obj == null) {
291
- return false;
292
- }
293
- return typeof obj[Symbol.iterator] === "function";
294
- }
295
- var EnvImpl = class {
296
- constructor(map, opts = {}) {
297
- this._onSet = [];
298
- this._map = map;
299
- this._updatePresets(opts.presetEnv);
300
- }
301
- gets(...kparams) {
302
- return getParamsResult(kparams, {
303
- getParam: (k) => this.get(k)
304
- });
305
- }
306
- sets(...keys) {
307
- keys.forEach((key) => {
308
- if (Array.isArray(key)) {
309
- if (key.length === 2) {
310
- const [k, v] = key;
311
- if (typeof k === "string" && typeof v === "string") {
312
- this.set(k, v);
313
- return;
314
- }
315
- }
316
- for (const item of key) {
317
- if (Array.isArray(item)) {
318
- if (item.length === 2) {
319
- const [k, v] = item;
320
- if (typeof k === "string" && typeof v === "string") {
321
- this.set(k, v);
322
- }
323
- }
324
- }
325
- }
326
- } else {
327
- if (isIterable(key)) {
328
- for (const [k, v] of key) {
329
- if (typeof k === "string" && typeof v === "string") {
330
- this.set(k, v);
331
- }
332
- }
333
- } else {
334
- const rKey = key;
335
- for (const k in rKey) {
336
- const v = rKey[k];
337
- if (typeof k === "string" && typeof v === "string") {
338
- this.set(k, v);
339
- }
340
- }
341
- }
342
- }
343
- });
344
- }
345
- _updatePresets(presetEnv) {
346
- if (!presetEnv) {
347
- return;
348
- }
349
- for (const [key, value] of presetEnv) {
350
- this._map.set(key, value);
351
- }
352
- }
353
- _applyOnSet(onSet, key, value) {
354
- onSet.forEach((item) => {
355
- let keys = [];
356
- if (key) {
357
- keys = [key];
358
- } else {
359
- keys = this._map.keys();
360
- }
361
- keys.filter((k) => {
362
- if (item.filter.size === 0) {
363
- return true;
364
- }
365
- if (item.filter.has(k)) {
366
- return true;
367
- }
368
- return false;
369
- }).forEach((k) => {
370
- let v;
371
- if (!key && !value) {
372
- v = this._map.get(k);
373
- } else if (key && !value) {
374
- v = void 0;
375
- } else {
376
- v = value;
377
- }
378
- item.fn(k, v);
379
- });
380
- });
381
- }
382
- keys() {
383
- return this._map.keys();
384
- }
385
- // filter is not set all sets passed
386
- onSet(fn, ...filter) {
387
- const item = { filter: new Set(filter), fn };
388
- this._onSet.push(item);
389
- this._applyOnSet([item]);
390
- }
391
- get(key) {
392
- return this._map.get(key);
393
- }
394
- set(key, value) {
395
- if (!value) {
396
- return;
397
- }
398
- this._map.set(key, value);
399
- this._applyOnSet(this._onSet, key, value);
400
- }
401
- delete(key) {
402
- this._map.delete(key);
403
- this._applyOnSet(this._onSet, key);
404
- }
405
- };
406
-
407
- // src/cf/cf-basic-sys-abstraction.ts
408
- var CFRuntimeService = class {
409
- constructor(ende) {
410
- this._txtEnDe = ende;
411
- }
412
- Env() {
413
- return envFactory();
414
- }
415
- Args() {
416
- throw new Error("Args-Method not implemented.");
417
- }
418
- Stdout() {
419
- return CFWriteableStream((chunk) => {
420
- const decoded = this._txtEnDe.decode(chunk);
421
- console.log(decoded.trimEnd());
422
- return Promise.resolve();
423
- });
424
- }
425
- Stderr() {
426
- return CFWriteableStream((chunk) => {
427
- const decoded = this._txtEnDe.decode(chunk);
428
- console.error(decoded.trimEnd());
429
- return Promise.resolve();
430
- });
431
- }
432
- };
433
- function consumeReadableStream(reader, writeFn) {
434
- reader.read().then(({ done, value }) => {
435
- if (done) {
436
- return;
437
- }
438
- writeFn(value).then(() => {
439
- consumeReadableStream(reader, writeFn);
440
- }).catch((e) => {
441
- console.error("consumeReadableStream:writeFn", e);
442
- });
443
- }).catch((e) => {
444
- console.error("consumeReadableStream:read", e);
445
- });
446
- }
447
- function CFWriteableStream(writeFn) {
448
- const ts = new TransformStream();
449
- consumeReadableStream(ts.readable.getReader(), writeFn);
450
- return ts.writable;
451
- }
452
- var baseSysAbstraction = new ResolveOnce();
453
- function CFBasicSysAbstraction(param) {
454
- var _a;
455
- const my = baseSysAbstraction.once(() => {
456
- return new BaseBasicSysAbstraction({
457
- TxtEnDecoder: (param == null ? void 0 : param.TxtEnDecoder) || TxtEnDecoderSingleton()
458
- });
459
- });
460
- return new WrapperBasicSysAbstraction(my, {
461
- basicRuntimeService: new CFRuntimeService((_a = param == null ? void 0 : param.TxtEnDecoder) != null ? _a : my._txtEnDe),
462
- ...param
463
- });
464
- }
465
-
466
- // src/deno/deno-basic-sys-abstraction.ts
467
- var DenoRuntimeService = class {
468
- constructor(ende) {
469
- this._txtEnDe = ende;
470
- }
471
- Env() {
472
- return envFactory();
473
- }
474
- Args() {
475
- return globalThis.Deno.args;
476
- }
477
- Stdout() {
478
- return globalThis.Deno.stdout.writable;
479
- }
480
- Stderr() {
481
- return globalThis.Deno.stderr.writable;
482
- }
483
- };
484
- var baseSysAbstraction2 = new ResolveOnce();
485
- function DenoBasicSysAbstraction(param) {
486
- var _a;
487
- const my = baseSysAbstraction2.once(() => {
488
- return new BaseBasicSysAbstraction({
489
- TxtEnDecoder: (param == null ? void 0 : param.TxtEnDecoder) || TxtEnDecoderSingleton()
490
- });
491
- });
492
- return new WrapperBasicSysAbstraction(my, {
493
- basicRuntimeService: new DenoRuntimeService((_a = param == null ? void 0 : param.TxtEnDecoder) != null ? _a : my._txtEnDe),
494
- ...param
495
- });
496
- }
497
-
498
- // src/node/node-basic-sys-abstraction.ts
499
- var NodeRuntimeService = class {
500
- constructor(ende) {
501
- this._txtEnDe = ende;
502
- this._gthis = globalThis;
503
- }
504
- Env() {
505
- return envFactory();
506
- }
507
- Args() {
508
- return this._gthis.process.argv;
509
- }
510
- Stdout() {
511
- return new WritableStream({
512
- write: (chunk) => {
513
- this._gthis.process.stdout.write(chunk);
514
- }
515
- });
516
- }
517
- Stderr() {
518
- return new WritableStream({
519
- write: (chunk) => {
520
- this._gthis.process.stderr.write(chunk);
521
- }
522
- });
523
- }
524
- };
525
- var baseSysAbstraction3 = new ResolveOnce();
526
- function NodeBasicSysAbstraction(param) {
527
- var _a;
528
- const my = baseSysAbstraction3.once(() => {
529
- return new BaseBasicSysAbstraction({
530
- TxtEnDecoder: (param == null ? void 0 : param.TxtEnDecoder) || TxtEnDecoderSingleton()
531
- });
532
- });
533
- return new WrapperBasicSysAbstraction(my, {
534
- basicRuntimeService: new NodeRuntimeService((_a = param == null ? void 0 : param.TxtEnDecoder) != null ? _a : my._txtEnDe),
535
- ...param
536
- });
537
- }
538
-
539
- // src/base-sys-abstraction.ts
540
- var SysTime = class extends Time {
541
- Now() {
542
- return /* @__PURE__ */ new Date();
543
- }
544
- Sleep(duration) {
545
- return new Promise((resolve) => {
546
- setTimeout(() => {
547
- resolve();
548
- }, duration);
549
- });
550
- }
551
- };
552
- var ConstTime = class extends Time {
553
- Now() {
554
- return new Date(2021, 1, 1, 0, 0, 0, 0);
555
- }
556
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
557
- Sleep(duration) {
558
- return Promise.resolve();
559
- }
560
- };
561
- var StepTime = class extends Time {
562
- constructor() {
563
- super();
564
- this._step = new ConstTime().Now();
565
- this._start = this._step;
566
- }
567
- Now(steps = 1) {
568
- for (let i = 0; steps > 0 && i < steps; i++) {
569
- this._step = new Date(this._step.getTime() + 1e3);
570
- }
571
- if (steps < 1) {
572
- this._step = new Date(this._start.getTime() + steps * -1e3);
573
- }
574
- return this._step;
575
- }
576
- Sleep(duration) {
577
- this._step = new Date(this._step.getTime() + duration);
578
- return Promise.resolve();
579
- }
580
- };
581
- function TimeFactory(timeMode) {
582
- switch (timeMode) {
583
- case TimeMode.REAL:
584
- return new SysTime();
585
- case TimeMode.CONST:
586
- return new ConstTime();
587
- case TimeMode.STEP:
588
- return new StepTime();
589
- }
590
- return new SysTime();
591
- }
592
- var RandomService = class {
593
- constructor(mode) {
594
- this._step = 0;
595
- this._mode = mode;
596
- }
597
- Random0ToValue(value) {
598
- switch (this._mode) {
599
- case RandomMode.CONST:
600
- return 0.5 * value;
601
- case RandomMode.STEP:
602
- this._step += 1e-4;
603
- return this._step * value;
604
- case RandomMode.RANDOM:
605
- return Math.random() * value;
606
- default:
607
- throw new Error("Unknown RandomMode");
608
- }
609
- }
610
- };
611
- var IdService = class {
612
- constructor(mode) {
613
- this._step = 0;
614
- if (!mode) {
615
- mode = IDMode.UUID;
616
- }
617
- this._mode = mode;
618
- }
619
- NextId() {
620
- switch (this._mode) {
621
- case IDMode.UUID:
622
- return crypto.randomUUID();
623
- case IDMode.CONST:
624
- return "VeryUniqueID";
625
- case IDMode.STEP:
626
- return `STEPId-${this._step++}`;
627
- default:
628
- throw new Error("Unknown IDMode");
629
- }
630
- }
631
- };
632
- var BaseBasicSysAbstraction = class {
633
- constructor(params) {
634
- this._time = new SysTime();
635
- // system independent services
636
- this._idService = new IdService();
637
- this._randomService = new RandomService(RandomMode.RANDOM);
638
- this._txtEnDe = params.TxtEnDecoder;
639
- }
640
- };
641
- var BaseSysAbstraction = class extends BaseBasicSysAbstraction {
642
- constructor(params) {
643
- super(params);
644
- this._fileSystem = params.FileSystem;
645
- this._systemService = params.SystemService;
646
- }
647
- };
648
- function BasicSysAbstractionFactory(params) {
649
- const fn = runtimeFn();
650
- switch (true) {
651
- case fn.isBrowser:
652
- return WebBasicSysAbstraction(params);
653
- case fn.isDeno:
654
- return DenoBasicSysAbstraction(params);
655
- case fn.isCFWorker:
656
- return CFBasicSysAbstraction(params);
657
- case fn.isNodeIsh:
658
- return NodeBasicSysAbstraction(params);
659
- default:
660
- throw new Error("Unknown runtime");
661
- }
662
- }
663
- var WrapperBasicSysAbstraction = class {
664
- constructor(base, params) {
665
- this._time = base._time;
666
- this._basicRuntimeService = params.basicRuntimeService;
667
- this._idService = base._idService;
668
- this._randomService = base._randomService;
669
- if (params.TimeMode) {
670
- this._time = TimeFactory(params.TimeMode);
671
- }
672
- if (params.IdMode) {
673
- this._idService = new IdService(params.IdMode);
674
- }
675
- if (params.RandomMode) {
676
- this._randomService = new RandomService(params.RandomMode);
677
- }
678
- }
679
- Time() {
680
- return this._time;
681
- }
682
- NextId() {
683
- return this._idService.NextId();
684
- }
685
- Random0ToValue(value) {
686
- return this._randomService.Random0ToValue(value);
687
- }
688
- Stdout() {
689
- return this._basicRuntimeService.Stdout();
690
- }
691
- Stderr() {
692
- return this._basicRuntimeService.Stderr();
693
- }
694
- Env() {
695
- return this._basicRuntimeService.Env();
696
- }
697
- Args() {
698
- return this._basicRuntimeService.Args();
699
- }
700
- // System(): SystemService {
701
- // return this._systemService;
702
- // }
703
- // FileSystem(): FileService {
704
- // return this._fileSystem;
705
- // }
706
- };
707
- var WrapperRuntimeSysAbstraction = class extends WrapperBasicSysAbstraction {
708
- constructor(base, params) {
709
- var _a, _b;
710
- super(base, params);
711
- this._systemService = (_a = params.systemService) != null ? _a : base._systemService;
712
- this._fileSystem = (_b = params.fileSystem) != null ? _b : base._fileSystem;
713
- }
714
- System() {
715
- return this._systemService;
716
- }
717
- FileSystem() {
718
- return this._fileSystem;
719
- }
720
- };
721
-
722
- // src/web/web-basic-sys-abstraction.ts
723
- var WebSystemService = class {
724
- constructor(ende) {
725
- this._txtEnDe = ende;
726
- }
727
- Env() {
728
- return envFactory();
729
- }
730
- Args() {
731
- throw new Error("Args-Method not implemented.");
732
- }
733
- Stdout() {
734
- return new ConsoleWriterStream();
735
- }
736
- Stderr() {
737
- const decoder = this._txtEnDe;
738
- return new WritableStream({
739
- write(chunk) {
740
- return new Promise((resolve) => {
741
- const decoded = decoder.decode(chunk);
742
- console.error(decoded.trimEnd());
743
- resolve();
744
- });
745
- }
746
- });
747
- }
748
- };
749
- var baseSysAbstraction4 = new ResolveOnce();
750
- function WebBasicSysAbstraction(param) {
751
- var _a;
752
- const my = baseSysAbstraction4.once(() => {
753
- return new BaseBasicSysAbstraction({
754
- TxtEnDecoder: (param == null ? void 0 : param.TxtEnDecoder) || TxtEnDecoderSingleton()
755
- });
756
- });
757
- return new WrapperBasicSysAbstraction(my, {
758
- basicRuntimeService: new WebSystemService((_a = param == null ? void 0 : param.TxtEnDecoder) != null ? _a : my._txtEnDe),
759
- ...param
760
- });
761
- }
762
-
763
- export {
764
- runtimeFn,
765
- TimeMode,
766
- RandomMode,
767
- IDMode,
768
- String2TimeMode,
769
- Time,
770
- TimeUnits,
771
- CFEnvActions,
772
- registerEnvAction,
773
- envFactory,
774
- EnvImpl,
775
- WebBasicSysAbstraction,
776
- CFRuntimeService,
777
- CFBasicSysAbstraction,
778
- DenoBasicSysAbstraction,
779
- NodeBasicSysAbstraction,
780
- SysTime,
781
- ConstTime,
782
- StepTime,
783
- TimeFactory,
784
- RandomService,
785
- IdService,
786
- BaseBasicSysAbstraction,
787
- BaseSysAbstraction,
788
- BasicSysAbstractionFactory,
789
- WrapperBasicSysAbstraction,
790
- WrapperRuntimeSysAbstraction
791
- };
792
- //# sourceMappingURL=chunk-FURW5CDL.js.map