@everyonesoftware/common 12.0.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/outputs/sources/ANSIStyles.d.ts +10 -0
  2. package/outputs/sources/ANSIStyles.d.ts.map +1 -0
  3. package/outputs/sources/ANSIStyles.js +23 -0
  4. package/outputs/sources/ANSIStyles.js.map +1 -0
  5. package/outputs/sources/CharacterTable.d.ts +11 -0
  6. package/outputs/sources/CharacterTable.d.ts.map +1 -0
  7. package/outputs/sources/CharacterTable.js +28 -0
  8. package/outputs/sources/CharacterTable.js.map +1 -0
  9. package/outputs/sources/Clock.d.ts +12 -0
  10. package/outputs/sources/Clock.d.ts.map +1 -0
  11. package/outputs/sources/Clock.js +10 -0
  12. package/outputs/sources/Clock.js.map +1 -0
  13. package/outputs/sources/FetchError.d.ts +7 -0
  14. package/outputs/sources/FetchError.d.ts.map +1 -0
  15. package/outputs/sources/FetchError.js +20 -0
  16. package/outputs/sources/FetchError.js.map +1 -0
  17. package/outputs/sources/HttpRequestHandler.d.ts +8 -0
  18. package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
  19. package/outputs/sources/HttpRequestHandler.js +2 -0
  20. package/outputs/sources/HttpRequestHandler.js.map +1 -0
  21. package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
  22. package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
  23. package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
  24. package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
  25. package/outputs/sources/Indexable.d.ts +51 -0
  26. package/outputs/sources/Indexable.d.ts.map +1 -0
  27. package/outputs/sources/Indexable.js +122 -0
  28. package/outputs/sources/Indexable.js.map +1 -0
  29. package/outputs/sources/MutableIndexable.d.ts +51 -0
  30. package/outputs/sources/MutableIndexable.d.ts.map +1 -0
  31. package/outputs/sources/MutableIndexable.js +96 -0
  32. package/outputs/sources/MutableIndexable.js.map +1 -0
  33. package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
  34. package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
  35. package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
  36. package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
  37. package/outputs/sources/RealClock.d.ts +11 -0
  38. package/outputs/sources/RealClock.d.ts.map +1 -0
  39. package/outputs/sources/RealClock.js +15 -0
  40. package/outputs/sources/RealClock.js.map +1 -0
  41. package/outputs/sources/Token.d.ts +31 -0
  42. package/outputs/sources/Token.d.ts.map +1 -0
  43. package/outputs/sources/Token.js +80 -0
  44. package/outputs/sources/Token.js.map +1 -0
  45. package/outputs/sources/TokenType.d.ts +19 -0
  46. package/outputs/sources/TokenType.d.ts.map +1 -0
  47. package/outputs/sources/TokenType.js +27 -0
  48. package/outputs/sources/TokenType.js.map +1 -0
  49. package/outputs/sources/Tokenizer.d.ts +37 -0
  50. package/outputs/sources/Tokenizer.d.ts.map +1 -0
  51. package/outputs/sources/Tokenizer.js +163 -0
  52. package/outputs/sources/Tokenizer.js.map +1 -0
  53. package/outputs/sources/assertMessageParameters.d.ts +22 -0
  54. package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
  55. package/outputs/sources/assertMessageParameters.js +2 -0
  56. package/outputs/sources/assertMessageParameters.js.map +1 -0
  57. package/outputs/sources/asyncIterator.d.ts +155 -0
  58. package/outputs/sources/asyncIterator.d.ts.map +1 -0
  59. package/outputs/sources/asyncIterator.js +303 -0
  60. package/outputs/sources/asyncIterator.js.map +1 -0
  61. package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
  62. package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
  63. package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
  64. package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
  65. package/outputs/sources/asyncResult.d.ts +73 -0
  66. package/outputs/sources/asyncResult.d.ts.map +1 -0
  67. package/outputs/sources/asyncResult.js +33 -0
  68. package/outputs/sources/asyncResult.js.map +1 -0
  69. package/outputs/sources/basicDisposable.d.ts +21 -0
  70. package/outputs/sources/basicDisposable.d.ts.map +1 -0
  71. package/outputs/sources/basicDisposable.js +42 -0
  72. package/outputs/sources/basicDisposable.js.map +1 -0
  73. package/outputs/sources/byteList.d.ts +43 -0
  74. package/outputs/sources/byteList.d.ts.map +1 -0
  75. package/outputs/sources/byteList.js +128 -0
  76. package/outputs/sources/byteList.js.map +1 -0
  77. package/outputs/sources/byteListStream.d.ts +20 -0
  78. package/outputs/sources/byteListStream.d.ts.map +1 -0
  79. package/outputs/sources/byteListStream.js +84 -0
  80. package/outputs/sources/byteListStream.js.map +1 -0
  81. package/outputs/sources/byteReadStream.d.ts +23 -0
  82. package/outputs/sources/byteReadStream.d.ts.map +1 -0
  83. package/outputs/sources/byteReadStream.js +6 -0
  84. package/outputs/sources/byteReadStream.js.map +1 -0
  85. package/outputs/sources/byteWriteStream.d.ts +15 -0
  86. package/outputs/sources/byteWriteStream.d.ts.map +1 -0
  87. package/outputs/sources/byteWriteStream.js +6 -0
  88. package/outputs/sources/byteWriteStream.js.map +1 -0
  89. package/outputs/sources/bytes.d.ts +20 -0
  90. package/outputs/sources/bytes.d.ts.map +1 -0
  91. package/outputs/sources/bytes.js +22 -0
  92. package/outputs/sources/bytes.js.map +1 -0
  93. package/outputs/sources/characterList.d.ts +39 -0
  94. package/outputs/sources/characterList.d.ts.map +1 -0
  95. package/outputs/sources/characterList.js +122 -0
  96. package/outputs/sources/characterList.js.map +1 -0
  97. package/outputs/sources/characterListStream.d.ts +27 -0
  98. package/outputs/sources/characterListStream.d.ts.map +1 -0
  99. package/outputs/sources/characterListStream.js +103 -0
  100. package/outputs/sources/characterListStream.js.map +1 -0
  101. package/outputs/sources/characterReadStream.d.ts +25 -0
  102. package/outputs/sources/characterReadStream.d.ts.map +1 -0
  103. package/outputs/sources/characterReadStream.js +57 -0
  104. package/outputs/sources/characterReadStream.js.map +1 -0
  105. package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
  106. package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
  107. package/outputs/sources/characterReadStreamIterator.js +79 -0
  108. package/outputs/sources/characterReadStreamIterator.js.map +1 -0
  109. package/outputs/sources/characterWriteStream.d.ts +18 -0
  110. package/outputs/sources/characterWriteStream.d.ts.map +1 -0
  111. package/outputs/sources/characterWriteStream.js +27 -0
  112. package/outputs/sources/characterWriteStream.js.map +1 -0
  113. package/outputs/sources/commandLineParameter.d.ts +30 -0
  114. package/outputs/sources/commandLineParameter.d.ts.map +1 -0
  115. package/outputs/sources/commandLineParameter.js +73 -0
  116. package/outputs/sources/commandLineParameter.js.map +1 -0
  117. package/outputs/sources/commandLineParameters.d.ts +23 -0
  118. package/outputs/sources/commandLineParameters.d.ts.map +1 -0
  119. package/outputs/sources/commandLineParameters.js +82 -0
  120. package/outputs/sources/commandLineParameters.js.map +1 -0
  121. package/outputs/sources/comparable.d.ts +79 -0
  122. package/outputs/sources/comparable.d.ts.map +1 -0
  123. package/outputs/sources/comparable.js +106 -0
  124. package/outputs/sources/comparable.js.map +1 -0
  125. package/outputs/sources/comparer.d.ts +62 -0
  126. package/outputs/sources/comparer.d.ts.map +1 -0
  127. package/outputs/sources/comparer.js +102 -0
  128. package/outputs/sources/comparer.js.map +1 -0
  129. package/outputs/sources/comparison.d.ts +18 -0
  130. package/outputs/sources/comparison.d.ts.map +1 -0
  131. package/outputs/sources/comparison.js +19 -0
  132. package/outputs/sources/comparison.js.map +1 -0
  133. package/outputs/sources/concatenateIterable.d.ts +28 -0
  134. package/outputs/sources/concatenateIterable.d.ts.map +1 -0
  135. package/outputs/sources/concatenateIterable.js +74 -0
  136. package/outputs/sources/concatenateIterable.js.map +1 -0
  137. package/outputs/sources/concatenateIterator.d.ts +30 -0
  138. package/outputs/sources/concatenateIterator.d.ts.map +1 -0
  139. package/outputs/sources/concatenateIterator.js +104 -0
  140. package/outputs/sources/concatenateIterator.js.map +1 -0
  141. package/outputs/sources/condition.d.ts +248 -0
  142. package/outputs/sources/condition.d.ts.map +1 -0
  143. package/outputs/sources/condition.js +166 -0
  144. package/outputs/sources/condition.js.map +1 -0
  145. package/outputs/sources/currentProcess.d.ts +31 -0
  146. package/outputs/sources/currentProcess.d.ts.map +1 -0
  147. package/outputs/sources/currentProcess.js +106 -0
  148. package/outputs/sources/currentProcess.js.map +1 -0
  149. package/outputs/sources/dateTime.d.ts +44 -0
  150. package/outputs/sources/dateTime.d.ts.map +1 -0
  151. package/outputs/sources/dateTime.js +76 -0
  152. package/outputs/sources/dateTime.js.map +1 -0
  153. package/outputs/sources/depthFirstSearch.d.ts +9 -0
  154. package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
  155. package/outputs/sources/depthFirstSearch.js +148 -0
  156. package/outputs/sources/depthFirstSearch.js.map +1 -0
  157. package/outputs/sources/disposable.d.ts +25 -0
  158. package/outputs/sources/disposable.d.ts.map +1 -0
  159. package/outputs/sources/disposable.js +16 -0
  160. package/outputs/sources/disposable.js.map +1 -0
  161. package/outputs/sources/emptyError.d.ts +7 -0
  162. package/outputs/sources/emptyError.d.ts.map +1 -0
  163. package/outputs/sources/emptyError.js +9 -0
  164. package/outputs/sources/emptyError.js.map +1 -0
  165. package/outputs/sources/english.d.ts +4 -0
  166. package/outputs/sources/english.d.ts.map +1 -0
  167. package/outputs/sources/english.js +33 -0
  168. package/outputs/sources/english.js.map +1 -0
  169. package/outputs/sources/equalFunctions.d.ts +18 -0
  170. package/outputs/sources/equalFunctions.d.ts.map +1 -0
  171. package/outputs/sources/equalFunctions.js +88 -0
  172. package/outputs/sources/equalFunctions.js.map +1 -0
  173. package/outputs/sources/fetchHttpClient.d.ts +16 -0
  174. package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
  175. package/outputs/sources/fetchHttpClient.js +86 -0
  176. package/outputs/sources/fetchHttpClient.js.map +1 -0
  177. package/outputs/sources/fetchHttpResponse.d.ts +19 -0
  178. package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
  179. package/outputs/sources/fetchHttpResponse.js +72 -0
  180. package/outputs/sources/fetchHttpResponse.js.map +1 -0
  181. package/outputs/sources/flatMapIterable.d.ts +29 -0
  182. package/outputs/sources/flatMapIterable.d.ts.map +1 -0
  183. package/outputs/sources/flatMapIterable.js +61 -0
  184. package/outputs/sources/flatMapIterable.js.map +1 -0
  185. package/outputs/sources/flatMapIterator.d.ts +33 -0
  186. package/outputs/sources/flatMapIterator.d.ts.map +1 -0
  187. package/outputs/sources/flatMapIterator.js +95 -0
  188. package/outputs/sources/flatMapIterator.js.map +1 -0
  189. package/outputs/sources/generator.d.ts +55 -0
  190. package/outputs/sources/generator.d.ts.map +1 -0
  191. package/outputs/sources/generator.js +139 -0
  192. package/outputs/sources/generator.js.map +1 -0
  193. package/outputs/sources/httpClient.d.ts +21 -0
  194. package/outputs/sources/httpClient.d.ts.map +1 -0
  195. package/outputs/sources/httpClient.js +22 -0
  196. package/outputs/sources/httpClient.js.map +1 -0
  197. package/outputs/sources/httpHeader.d.ts +10 -0
  198. package/outputs/sources/httpHeader.d.ts.map +1 -0
  199. package/outputs/sources/httpHeader.js +25 -0
  200. package/outputs/sources/httpHeader.js.map +1 -0
  201. package/outputs/sources/httpHeaders.d.ts +68 -0
  202. package/outputs/sources/httpHeaders.d.ts.map +1 -0
  203. package/outputs/sources/httpHeaders.js +122 -0
  204. package/outputs/sources/httpHeaders.js.map +1 -0
  205. package/outputs/sources/httpIncomingRequest.d.ts +40 -0
  206. package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
  207. package/outputs/sources/httpIncomingRequest.js +6 -0
  208. package/outputs/sources/httpIncomingRequest.js.map +1 -0
  209. package/outputs/sources/httpIncomingResponse.d.ts +28 -0
  210. package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
  211. package/outputs/sources/httpIncomingResponse.js +6 -0
  212. package/outputs/sources/httpIncomingResponse.js.map +1 -0
  213. package/outputs/sources/httpMethod.d.ts +62 -0
  214. package/outputs/sources/httpMethod.d.ts.map +1 -0
  215. package/outputs/sources/httpMethod.js +136 -0
  216. package/outputs/sources/httpMethod.js.map +1 -0
  217. package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
  218. package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
  219. package/outputs/sources/httpOutgoingRequest.js +84 -0
  220. package/outputs/sources/httpOutgoingRequest.js.map +1 -0
  221. package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
  222. package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
  223. package/outputs/sources/httpOutgoingResponse.js +6 -0
  224. package/outputs/sources/httpOutgoingResponse.js.map +1 -0
  225. package/outputs/sources/httpServer.d.ts +29 -0
  226. package/outputs/sources/httpServer.d.ts.map +1 -0
  227. package/outputs/sources/httpServer.js +3 -0
  228. package/outputs/sources/httpServer.js.map +1 -0
  229. package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
  230. package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
  231. package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
  232. package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
  233. package/outputs/sources/index.d.ts +111 -0
  234. package/outputs/sources/index.d.ts.map +1 -0
  235. package/outputs/sources/index.js +111 -0
  236. package/outputs/sources/index.js.map +1 -0
  237. package/outputs/sources/iterable.d.ts +132 -0
  238. package/outputs/sources/iterable.d.ts.map +1 -0
  239. package/outputs/sources/iterable.js +251 -0
  240. package/outputs/sources/iterable.js.map +1 -0
  241. package/outputs/sources/iterator.d.ts +163 -0
  242. package/outputs/sources/iterator.d.ts.map +1 -0
  243. package/outputs/sources/iterator.js +332 -0
  244. package/outputs/sources/iterator.js.map +1 -0
  245. package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
  246. package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
  247. package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
  248. package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
  249. package/outputs/sources/javascript.d.ts +51 -0
  250. package/outputs/sources/javascript.d.ts.map +1 -0
  251. package/outputs/sources/javascript.js +8 -0
  252. package/outputs/sources/javascript.js.map +1 -0
  253. package/outputs/sources/javascriptArrayList.d.ts +39 -0
  254. package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
  255. package/outputs/sources/javascriptArrayList.js +104 -0
  256. package/outputs/sources/javascriptArrayList.js.map +1 -0
  257. package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
  258. package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
  259. package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
  260. package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
  261. package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
  262. package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
  263. package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
  264. package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
  265. package/outputs/sources/javascriptMapMap.d.ts +37 -0
  266. package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
  267. package/outputs/sources/javascriptMapMap.js +88 -0
  268. package/outputs/sources/javascriptMapMap.js.map +1 -0
  269. package/outputs/sources/javascriptSetSet.d.ts +33 -0
  270. package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
  271. package/outputs/sources/javascriptSetSet.js +84 -0
  272. package/outputs/sources/javascriptSetSet.js.map +1 -0
  273. package/outputs/sources/list.d.ts +106 -0
  274. package/outputs/sources/list.d.ts.map +1 -0
  275. package/outputs/sources/list.js +211 -0
  276. package/outputs/sources/list.js.map +1 -0
  277. package/outputs/sources/listQueue.d.ts +16 -0
  278. package/outputs/sources/listQueue.d.ts.map +1 -0
  279. package/outputs/sources/listQueue.js +39 -0
  280. package/outputs/sources/listQueue.js.map +1 -0
  281. package/outputs/sources/listStack.d.ts +17 -0
  282. package/outputs/sources/listStack.d.ts.map +1 -0
  283. package/outputs/sources/listStack.js +42 -0
  284. package/outputs/sources/listStack.js.map +1 -0
  285. package/outputs/sources/luxonDateTime.d.ts +26 -0
  286. package/outputs/sources/luxonDateTime.d.ts.map +1 -0
  287. package/outputs/sources/luxonDateTime.js +70 -0
  288. package/outputs/sources/luxonDateTime.js.map +1 -0
  289. package/outputs/sources/map.d.ts +105 -0
  290. package/outputs/sources/map.d.ts.map +1 -0
  291. package/outputs/sources/map.js +185 -0
  292. package/outputs/sources/map.js.map +1 -0
  293. package/outputs/sources/mapAsyncIterator.d.ts +34 -0
  294. package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
  295. package/outputs/sources/mapAsyncIterator.js +91 -0
  296. package/outputs/sources/mapAsyncIterator.js.map +1 -0
  297. package/outputs/sources/mapIterable.d.ts +31 -0
  298. package/outputs/sources/mapIterable.d.ts.map +1 -0
  299. package/outputs/sources/mapIterable.js +64 -0
  300. package/outputs/sources/mapIterable.js.map +1 -0
  301. package/outputs/sources/mapIterator.d.ts +35 -0
  302. package/outputs/sources/mapIterator.d.ts.map +1 -0
  303. package/outputs/sources/mapIterator.js +93 -0
  304. package/outputs/sources/mapIterator.js.map +1 -0
  305. package/outputs/sources/mutableCondition.d.ts +99 -0
  306. package/outputs/sources/mutableCondition.d.ts.map +1 -0
  307. package/outputs/sources/mutableCondition.js +334 -0
  308. package/outputs/sources/mutableCondition.js.map +1 -0
  309. package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
  310. package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
  311. package/outputs/sources/mutableHttpHeaders.js +125 -0
  312. package/outputs/sources/mutableHttpHeaders.js.map +1 -0
  313. package/outputs/sources/mutableMap.d.ts +125 -0
  314. package/outputs/sources/mutableMap.d.ts.map +1 -0
  315. package/outputs/sources/mutableMap.js +179 -0
  316. package/outputs/sources/mutableMap.js.map +1 -0
  317. package/outputs/sources/network.d.ts +16 -0
  318. package/outputs/sources/network.d.ts.map +1 -0
  319. package/outputs/sources/network.js +6 -0
  320. package/outputs/sources/network.js.map +1 -0
  321. package/outputs/sources/node.d.ts +11 -0
  322. package/outputs/sources/node.d.ts.map +1 -0
  323. package/outputs/sources/node.js +24 -0
  324. package/outputs/sources/node.js.map +1 -0
  325. package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
  326. package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
  327. package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
  328. package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
  329. package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
  330. package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
  331. package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
  332. package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
  333. package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
  334. package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
  335. package/outputs/sources/nodeJSHttpServer.js +83 -0
  336. package/outputs/sources/nodeJSHttpServer.js.map +1 -0
  337. package/outputs/sources/notFoundError.d.ts +7 -0
  338. package/outputs/sources/notFoundError.d.ts.map +1 -0
  339. package/outputs/sources/notFoundError.js +10 -0
  340. package/outputs/sources/notFoundError.js.map +1 -0
  341. package/outputs/sources/postCondition.d.ts +186 -0
  342. package/outputs/sources/postCondition.d.ts.map +1 -0
  343. package/outputs/sources/postCondition.js +224 -0
  344. package/outputs/sources/postCondition.js.map +1 -0
  345. package/outputs/sources/postConditionError.d.ts +7 -0
  346. package/outputs/sources/postConditionError.d.ts.map +1 -0
  347. package/outputs/sources/postConditionError.js +10 -0
  348. package/outputs/sources/postConditionError.js.map +1 -0
  349. package/outputs/sources/preCondition.d.ts +186 -0
  350. package/outputs/sources/preCondition.d.ts.map +1 -0
  351. package/outputs/sources/preCondition.js +224 -0
  352. package/outputs/sources/preCondition.js.map +1 -0
  353. package/outputs/sources/preConditionError.d.ts +7 -0
  354. package/outputs/sources/preConditionError.d.ts.map +1 -0
  355. package/outputs/sources/preConditionError.js +10 -0
  356. package/outputs/sources/preConditionError.js.map +1 -0
  357. package/outputs/sources/promiseAsyncResult.d.ts +22 -0
  358. package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
  359. package/outputs/sources/promiseAsyncResult.js +131 -0
  360. package/outputs/sources/promiseAsyncResult.js.map +1 -0
  361. package/outputs/sources/property.d.ts +15 -0
  362. package/outputs/sources/property.d.ts.map +1 -0
  363. package/outputs/sources/property.js +44 -0
  364. package/outputs/sources/property.js.map +1 -0
  365. package/outputs/sources/queue.d.ts +39 -0
  366. package/outputs/sources/queue.d.ts.map +1 -0
  367. package/outputs/sources/queue.js +14 -0
  368. package/outputs/sources/queue.js.map +1 -0
  369. package/outputs/sources/realNetwork.d.ts +10 -0
  370. package/outputs/sources/realNetwork.d.ts.map +1 -0
  371. package/outputs/sources/realNetwork.js +18 -0
  372. package/outputs/sources/realNetwork.js.map +1 -0
  373. package/outputs/sources/recreationDotGovClient.d.ts +79 -0
  374. package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
  375. package/outputs/sources/recreationDotGovClient.js +130 -0
  376. package/outputs/sources/recreationDotGovClient.js.map +1 -0
  377. package/outputs/sources/searchControl.d.ts +36 -0
  378. package/outputs/sources/searchControl.d.ts.map +1 -0
  379. package/outputs/sources/searchControl.js +6 -0
  380. package/outputs/sources/searchControl.js.map +1 -0
  381. package/outputs/sources/set.d.ts +62 -0
  382. package/outputs/sources/set.d.ts.map +1 -0
  383. package/outputs/sources/set.js +145 -0
  384. package/outputs/sources/set.js.map +1 -0
  385. package/outputs/sources/skipAsyncIterator.d.ts +34 -0
  386. package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
  387. package/outputs/sources/skipAsyncIterator.js +94 -0
  388. package/outputs/sources/skipAsyncIterator.js.map +1 -0
  389. package/outputs/sources/skipIterator.d.ts +36 -0
  390. package/outputs/sources/skipIterator.d.ts.map +1 -0
  391. package/outputs/sources/skipIterator.js +100 -0
  392. package/outputs/sources/skipIterator.js.map +1 -0
  393. package/outputs/sources/stack.d.ts +43 -0
  394. package/outputs/sources/stack.d.ts.map +1 -0
  395. package/outputs/sources/stack.js +14 -0
  396. package/outputs/sources/stack.js.map +1 -0
  397. package/outputs/sources/stringComparer.d.ts +12 -0
  398. package/outputs/sources/stringComparer.d.ts.map +1 -0
  399. package/outputs/sources/stringComparer.js +24 -0
  400. package/outputs/sources/stringComparer.js.map +1 -0
  401. package/outputs/sources/stringIterator.d.ts +36 -0
  402. package/outputs/sources/stringIterator.d.ts.map +1 -0
  403. package/outputs/sources/stringIterator.js +94 -0
  404. package/outputs/sources/stringIterator.js.map +1 -0
  405. package/outputs/sources/strings.d.ts +78 -0
  406. package/outputs/sources/strings.d.ts.map +1 -0
  407. package/outputs/sources/strings.js +218 -0
  408. package/outputs/sources/strings.js.map +1 -0
  409. package/outputs/sources/syncResult.d.ts +32 -0
  410. package/outputs/sources/syncResult.d.ts.map +1 -0
  411. package/outputs/sources/syncResult.js +200 -0
  412. package/outputs/sources/syncResult.js.map +1 -0
  413. package/outputs/sources/takeAsyncIterator.d.ts +34 -0
  414. package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
  415. package/outputs/sources/takeAsyncIterator.js +92 -0
  416. package/outputs/sources/takeAsyncIterator.js.map +1 -0
  417. package/outputs/sources/takeIterator.d.ts +36 -0
  418. package/outputs/sources/takeIterator.d.ts.map +1 -0
  419. package/outputs/sources/takeIterator.js +98 -0
  420. package/outputs/sources/takeIterator.js.map +1 -0
  421. package/outputs/sources/toStringFunctions.d.ts +21 -0
  422. package/outputs/sources/toStringFunctions.d.ts.map +1 -0
  423. package/outputs/sources/toStringFunctions.js +130 -0
  424. package/outputs/sources/toStringFunctions.js.map +1 -0
  425. package/outputs/sources/types.d.ts +194 -0
  426. package/outputs/sources/types.d.ts.map +1 -0
  427. package/outputs/sources/types.js +277 -0
  428. package/outputs/sources/types.js.map +1 -0
  429. package/outputs/sources/whereAsyncIterator.d.ts +33 -0
  430. package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
  431. package/outputs/sources/whereAsyncIterator.js +91 -0
  432. package/outputs/sources/whereAsyncIterator.js.map +1 -0
  433. package/outputs/sources/whereIterable.d.ts +32 -0
  434. package/outputs/sources/whereIterable.d.ts.map +1 -0
  435. package/outputs/sources/whereIterable.js +65 -0
  436. package/outputs/sources/whereIterable.js.map +1 -0
  437. package/outputs/sources/whereIterator.d.ts +35 -0
  438. package/outputs/sources/whereIterator.d.ts.map +1 -0
  439. package/outputs/sources/whereIterator.js +102 -0
  440. package/outputs/sources/whereIterator.js.map +1 -0
  441. package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
  442. package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
  443. package/outputs/sources/wonderlandTrailClient.js +1094 -0
  444. package/outputs/sources/wonderlandTrailClient.js.map +1 -0
  445. package/outputs/tests/AssertTestCreator.d.ts +11 -0
  446. package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
  447. package/outputs/tests/AssertTestCreator.js +15 -0
  448. package/outputs/tests/AssertTestCreator.js.map +1 -0
  449. package/outputs/tests/BasicTestError.d.ts +14 -0
  450. package/outputs/tests/BasicTestError.d.ts.map +1 -0
  451. package/outputs/tests/BasicTestError.js +94 -0
  452. package/outputs/tests/BasicTestError.js.map +1 -0
  453. package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
  454. package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
  455. package/outputs/tests/BasicTestErrorCreator.js +15 -0
  456. package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
  457. package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
  458. package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
  459. package/outputs/tests/BasicTestErrorTests.js +236 -0
  460. package/outputs/tests/BasicTestErrorTests.js.map +1 -0
  461. package/outputs/tests/CharacterTableTests.d.ts +3 -0
  462. package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
  463. package/outputs/tests/CharacterTableTests.js +24 -0
  464. package/outputs/tests/CharacterTableTests.js.map +1 -0
  465. package/outputs/tests/ClockTests.d.ts +5 -0
  466. package/outputs/tests/ClockTests.d.ts.map +1 -0
  467. package/outputs/tests/ClockTests.js +23 -0
  468. package/outputs/tests/ClockTests.js.map +1 -0
  469. package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
  470. package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
  471. package/outputs/tests/CommandLineParametersTests.js +58 -0
  472. package/outputs/tests/CommandLineParametersTests.js.map +1 -0
  473. package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
  474. package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
  475. package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
  476. package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
  477. package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
  478. package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
  479. package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
  480. package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
  481. package/outputs/tests/FakeClock.d.ts +16 -0
  482. package/outputs/tests/FakeClock.d.ts.map +1 -0
  483. package/outputs/tests/FakeClock.js +27 -0
  484. package/outputs/tests/FakeClock.js.map +1 -0
  485. package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
  486. package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
  487. package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
  488. package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
  489. package/outputs/tests/IndexableTests.d.ts +5 -0
  490. package/outputs/tests/IndexableTests.d.ts.map +1 -0
  491. package/outputs/tests/IndexableTests.js +46 -0
  492. package/outputs/tests/IndexableTests.js.map +1 -0
  493. package/outputs/tests/MutableIndexableTests.d.ts +5 -0
  494. package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
  495. package/outputs/tests/MutableIndexableTests.js +33 -0
  496. package/outputs/tests/MutableIndexableTests.js.map +1 -0
  497. package/outputs/tests/TestCreator.d.ts +15 -0
  498. package/outputs/tests/TestCreator.d.ts.map +1 -0
  499. package/outputs/tests/TestCreator.js +13 -0
  500. package/outputs/tests/TestCreator.js.map +1 -0
  501. package/outputs/tests/TestError.d.ts +31 -0
  502. package/outputs/tests/TestError.d.ts.map +1 -0
  503. package/outputs/tests/TestError.js +5 -0
  504. package/outputs/tests/TestError.js.map +1 -0
  505. package/outputs/tests/TestErrorCreator.d.ts +6 -0
  506. package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
  507. package/outputs/tests/TestErrorCreator.js +7 -0
  508. package/outputs/tests/TestErrorCreator.js.map +1 -0
  509. package/outputs/tests/TokenizerTests.d.ts +3 -0
  510. package/outputs/tests/TokenizerTests.d.ts.map +1 -0
  511. package/outputs/tests/TokenizerTests.js +100 -0
  512. package/outputs/tests/TokenizerTests.js.map +1 -0
  513. package/outputs/tests/assertTest.d.ts +32 -0
  514. package/outputs/tests/assertTest.d.ts.map +1 -0
  515. package/outputs/tests/assertTest.js +75 -0
  516. package/outputs/tests/assertTest.js.map +1 -0
  517. package/outputs/tests/assertTestTests.d.ts +3 -0
  518. package/outputs/tests/assertTestTests.d.ts.map +1 -0
  519. package/outputs/tests/assertTestTests.js +49 -0
  520. package/outputs/tests/assertTestTests.js.map +1 -0
  521. package/outputs/tests/basicTestSkip.d.ts +20 -0
  522. package/outputs/tests/basicTestSkip.d.ts.map +1 -0
  523. package/outputs/tests/basicTestSkip.js +36 -0
  524. package/outputs/tests/basicTestSkip.js.map +1 -0
  525. package/outputs/tests/byteListStreamTests.d.ts +3 -0
  526. package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
  527. package/outputs/tests/byteListStreamTests.js +247 -0
  528. package/outputs/tests/byteListStreamTests.js.map +1 -0
  529. package/outputs/tests/byteListTests.d.ts +3 -0
  530. package/outputs/tests/byteListTests.d.ts.map +1 -0
  531. package/outputs/tests/byteListTests.js +5 -0
  532. package/outputs/tests/byteListTests.js.map +1 -0
  533. package/outputs/tests/bytesTests.d.ts +3 -0
  534. package/outputs/tests/bytesTests.d.ts.map +1 -0
  535. package/outputs/tests/bytesTests.js +30 -0
  536. package/outputs/tests/bytesTests.js.map +1 -0
  537. package/outputs/tests/characterListStreamTests.d.ts +3 -0
  538. package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
  539. package/outputs/tests/characterListStreamTests.js +247 -0
  540. package/outputs/tests/characterListStreamTests.js.map +1 -0
  541. package/outputs/tests/characterListTests.d.ts +3 -0
  542. package/outputs/tests/characterListTests.d.ts.map +1 -0
  543. package/outputs/tests/characterListTests.js +159 -0
  544. package/outputs/tests/characterListTests.js.map +1 -0
  545. package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
  546. package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
  547. package/outputs/tests/characterWriteStreamTests.js +7 -0
  548. package/outputs/tests/characterWriteStreamTests.js.map +1 -0
  549. package/outputs/tests/comparerTests.d.ts +3 -0
  550. package/outputs/tests/comparerTests.d.ts.map +1 -0
  551. package/outputs/tests/comparerTests.js +67 -0
  552. package/outputs/tests/comparerTests.js.map +1 -0
  553. package/outputs/tests/conditionTests.d.ts +3 -0
  554. package/outputs/tests/conditionTests.d.ts.map +1 -0
  555. package/outputs/tests/conditionTests.js +602 -0
  556. package/outputs/tests/conditionTests.js.map +1 -0
  557. package/outputs/tests/consoleTestRunner.d.ts +95 -0
  558. package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
  559. package/outputs/tests/consoleTestRunner.js +351 -0
  560. package/outputs/tests/consoleTestRunner.js.map +1 -0
  561. package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
  562. package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
  563. package/outputs/tests/consoleTestRunnerTests.js +537 -0
  564. package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
  565. package/outputs/tests/dateTimeTests.d.ts +3 -0
  566. package/outputs/tests/dateTimeTests.d.ts.map +1 -0
  567. package/outputs/tests/dateTimeTests.js +24 -0
  568. package/outputs/tests/dateTimeTests.js.map +1 -0
  569. package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
  570. package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
  571. package/outputs/tests/depthFirstSearchTests.js +61 -0
  572. package/outputs/tests/depthFirstSearchTests.js.map +1 -0
  573. package/outputs/tests/disposableTests.d.ts +3 -0
  574. package/outputs/tests/disposableTests.d.ts.map +1 -0
  575. package/outputs/tests/disposableTests.js +81 -0
  576. package/outputs/tests/disposableTests.js.map +1 -0
  577. package/outputs/tests/englishTests.d.ts +3 -0
  578. package/outputs/tests/englishTests.d.ts.map +1 -0
  579. package/outputs/tests/englishTests.js +68 -0
  580. package/outputs/tests/englishTests.js.map +1 -0
  581. package/outputs/tests/equalFunctionsTests.d.ts +3 -0
  582. package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
  583. package/outputs/tests/equalFunctionsTests.js +187 -0
  584. package/outputs/tests/equalFunctionsTests.js.map +1 -0
  585. package/outputs/tests/failedTest.d.ts +11 -0
  586. package/outputs/tests/failedTest.d.ts.map +1 -0
  587. package/outputs/tests/failedTest.js +21 -0
  588. package/outputs/tests/failedTest.js.map +1 -0
  589. package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
  590. package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
  591. package/outputs/tests/fetchHttpClientTests.js +21 -0
  592. package/outputs/tests/fetchHttpClientTests.js.map +1 -0
  593. package/outputs/tests/generatorTests.d.ts +3 -0
  594. package/outputs/tests/generatorTests.d.ts.map +1 -0
  595. package/outputs/tests/generatorTests.js +55 -0
  596. package/outputs/tests/generatorTests.js.map +1 -0
  597. package/outputs/tests/httpClientTests.d.ts +3 -0
  598. package/outputs/tests/httpClientTests.d.ts.map +1 -0
  599. package/outputs/tests/httpClientTests.js +12 -0
  600. package/outputs/tests/httpClientTests.js.map +1 -0
  601. package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
  602. package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
  603. package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
  604. package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
  605. package/outputs/tests/index.d.ts +12 -0
  606. package/outputs/tests/index.d.ts.map +1 -0
  607. package/outputs/tests/index.js +12 -0
  608. package/outputs/tests/index.js.map +1 -0
  609. package/outputs/tests/iterableTests.d.ts +5 -0
  610. package/outputs/tests/iterableTests.d.ts.map +1 -0
  611. package/outputs/tests/iterableTests.js +155 -0
  612. package/outputs/tests/iterableTests.js.map +1 -0
  613. package/outputs/tests/iteratorTests.d.ts +5 -0
  614. package/outputs/tests/iteratorTests.d.ts.map +1 -0
  615. package/outputs/tests/iteratorTests.js +728 -0
  616. package/outputs/tests/iteratorTests.js.map +1 -0
  617. package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
  618. package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
  619. package/outputs/tests/javascriptMapMapTests.js +14 -0
  620. package/outputs/tests/javascriptMapMapTests.js.map +1 -0
  621. package/outputs/tests/listTests.d.ts +3 -0
  622. package/outputs/tests/listTests.d.ts.map +1 -0
  623. package/outputs/tests/listTests.js +202 -0
  624. package/outputs/tests/listTests.js.map +1 -0
  625. package/outputs/tests/mapIteratorTests.d.ts +3 -0
  626. package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
  627. package/outputs/tests/mapIteratorTests.js +27 -0
  628. package/outputs/tests/mapIteratorTests.js.map +1 -0
  629. package/outputs/tests/mapTests.d.ts +5 -0
  630. package/outputs/tests/mapTests.d.ts.map +1 -0
  631. package/outputs/tests/mapTests.js +64 -0
  632. package/outputs/tests/mapTests.js.map +1 -0
  633. package/outputs/tests/mutableConditionTests.d.ts +3 -0
  634. package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
  635. package/outputs/tests/mutableConditionTests.js +174 -0
  636. package/outputs/tests/mutableConditionTests.js.map +1 -0
  637. package/outputs/tests/mutableMapTests.d.ts +5 -0
  638. package/outputs/tests/mutableMapTests.d.ts.map +1 -0
  639. package/outputs/tests/mutableMapTests.js +102 -0
  640. package/outputs/tests/mutableMapTests.js.map +1 -0
  641. package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
  642. package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
  643. package/outputs/tests/nodeJSHttpServerTests.js +50 -0
  644. package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
  645. package/outputs/tests/notFoundErrorTests.d.ts +3 -0
  646. package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
  647. package/outputs/tests/notFoundErrorTests.js +17 -0
  648. package/outputs/tests/notFoundErrorTests.js.map +1 -0
  649. package/outputs/tests/postConditionErrorTests.d.ts +3 -0
  650. package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
  651. package/outputs/tests/postConditionErrorTests.js +17 -0
  652. package/outputs/tests/postConditionErrorTests.js.map +1 -0
  653. package/outputs/tests/preConditionErrorTests.d.ts +3 -0
  654. package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
  655. package/outputs/tests/preConditionErrorTests.js +17 -0
  656. package/outputs/tests/preConditionErrorTests.js.map +1 -0
  657. package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
  658. package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
  659. package/outputs/tests/promiseAsyncResultTests.js +487 -0
  660. package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
  661. package/outputs/tests/propertyTests.d.ts +3 -0
  662. package/outputs/tests/propertyTests.d.ts.map +1 -0
  663. package/outputs/tests/propertyTests.js +41 -0
  664. package/outputs/tests/propertyTests.js.map +1 -0
  665. package/outputs/tests/queueTests.d.ts +3 -0
  666. package/outputs/tests/queueTests.d.ts.map +1 -0
  667. package/outputs/tests/queueTests.js +20 -0
  668. package/outputs/tests/queueTests.js.map +1 -0
  669. package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
  670. package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
  671. package/outputs/tests/recreationDotGovClientTests.js +111 -0
  672. package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
  673. package/outputs/tests/setTests.d.ts +3 -0
  674. package/outputs/tests/setTests.d.ts.map +1 -0
  675. package/outputs/tests/setTests.js +92 -0
  676. package/outputs/tests/setTests.js.map +1 -0
  677. package/outputs/tests/skippedTest.d.ts +11 -0
  678. package/outputs/tests/skippedTest.d.ts.map +1 -0
  679. package/outputs/tests/skippedTest.js +21 -0
  680. package/outputs/tests/skippedTest.js.map +1 -0
  681. package/outputs/tests/stackTests.d.ts +3 -0
  682. package/outputs/tests/stackTests.d.ts.map +1 -0
  683. package/outputs/tests/stackTests.js +45 -0
  684. package/outputs/tests/stackTests.js.map +1 -0
  685. package/outputs/tests/stringComparerTests.d.ts +3 -0
  686. package/outputs/tests/stringComparerTests.d.ts.map +1 -0
  687. package/outputs/tests/stringComparerTests.js +47 -0
  688. package/outputs/tests/stringComparerTests.js.map +1 -0
  689. package/outputs/tests/stringIteratorTests.d.ts +3 -0
  690. package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
  691. package/outputs/tests/stringIteratorTests.js +81 -0
  692. package/outputs/tests/stringIteratorTests.js.map +1 -0
  693. package/outputs/tests/stringsTests.d.ts +3 -0
  694. package/outputs/tests/stringsTests.d.ts.map +1 -0
  695. package/outputs/tests/stringsTests.js +384 -0
  696. package/outputs/tests/stringsTests.js.map +1 -0
  697. package/outputs/tests/syncResultTests.d.ts +3 -0
  698. package/outputs/tests/syncResultTests.d.ts.map +1 -0
  699. package/outputs/tests/syncResultTests.js +900 -0
  700. package/outputs/tests/syncResultTests.js.map +1 -0
  701. package/outputs/tests/test.d.ts +144 -0
  702. package/outputs/tests/test.d.ts.map +1 -0
  703. package/outputs/tests/test.js +145 -0
  704. package/outputs/tests/test.js.map +1 -0
  705. package/outputs/tests/testAction.d.ts +22 -0
  706. package/outputs/tests/testAction.d.ts.map +1 -0
  707. package/outputs/tests/testAction.js +56 -0
  708. package/outputs/tests/testAction.js.map +1 -0
  709. package/outputs/tests/testActionTests.d.ts +3 -0
  710. package/outputs/tests/testActionTests.d.ts.map +1 -0
  711. package/outputs/tests/testActionTests.js +56 -0
  712. package/outputs/tests/testActionTests.js.map +1 -0
  713. package/outputs/tests/testFailureTests.d.ts +3 -0
  714. package/outputs/tests/testFailureTests.d.ts.map +1 -0
  715. package/outputs/tests/testFailureTests.js +7 -0
  716. package/outputs/tests/testFailureTests.js.map +1 -0
  717. package/outputs/tests/testRunner.d.ts +107 -0
  718. package/outputs/tests/testRunner.d.ts.map +1 -0
  719. package/outputs/tests/testRunner.js +63 -0
  720. package/outputs/tests/testRunner.js.map +1 -0
  721. package/outputs/tests/testRunnerTests.d.ts +4 -0
  722. package/outputs/tests/testRunnerTests.d.ts.map +1 -0
  723. package/outputs/tests/testRunnerTests.js +258 -0
  724. package/outputs/tests/testRunnerTests.js.map +1 -0
  725. package/outputs/tests/testSkip.d.ts +24 -0
  726. package/outputs/tests/testSkip.d.ts.map +1 -0
  727. package/outputs/tests/testSkip.js +19 -0
  728. package/outputs/tests/testSkip.js.map +1 -0
  729. package/outputs/tests/tests.d.ts +2 -0
  730. package/outputs/tests/tests.d.ts.map +1 -0
  731. package/outputs/tests/tests.js +115 -0
  732. package/outputs/tests/tests.js.map +1 -0
  733. package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
  734. package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
  735. package/outputs/tests/toStringFunctionsTests.js +43 -0
  736. package/outputs/tests/toStringFunctionsTests.js.map +1 -0
  737. package/outputs/tests/typesTests.d.ts +3 -0
  738. package/outputs/tests/typesTests.d.ts.map +1 -0
  739. package/outputs/tests/typesTests.js +194 -0
  740. package/outputs/tests/typesTests.js.map +1 -0
  741. package/outputs/tests/whereIteratorTests.d.ts +3 -0
  742. package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
  743. package/outputs/tests/whereIteratorTests.js +30 -0
  744. package/outputs/tests/whereIteratorTests.js.map +1 -0
  745. package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
  746. package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
  747. package/outputs/tests/wonderlandTrailClientTests.js +272 -0
  748. package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
  749. package/package.json +48 -48
  750. package/outputs/characterWriteStream-CzPcNOCD.d.cts +0 -845
  751. package/outputs/characterWriteStream-CzPcNOCD.d.ts +0 -845
  752. package/outputs/chunk-FZ3WRQ7B.js +0 -1199
  753. package/outputs/chunk-FZ3WRQ7B.js.map +0 -1
  754. package/outputs/chunk-MHMLVX2O.js +0 -9590
  755. package/outputs/chunk-MHMLVX2O.js.map +0 -1
  756. package/outputs/sourceIndex.cjs +0 -9790
  757. package/outputs/sourceIndex.cjs.map +0 -1
  758. package/outputs/sourceIndex.d.cts +0 -3532
  759. package/outputs/sourceIndex.d.ts +0 -3532
  760. package/outputs/sourceIndex.js +0 -349
  761. package/outputs/sourceIndex.js.map +0 -1
  762. package/outputs/testIndex.cjs +0 -7046
  763. package/outputs/testIndex.cjs.map +0 -1
  764. package/outputs/testIndex.d.cts +0 -544
  765. package/outputs/testIndex.d.ts +0 -544
  766. package/outputs/testIndex.js +0 -55
  767. package/outputs/testIndex.js.map +0 -1
  768. package/outputs/tests.cjs +0 -19372
  769. package/outputs/tests.cjs.map +0 -1
  770. package/outputs/tests.d.cts +0 -3
  771. package/outputs/tests.d.ts +0 -3
  772. package/outputs/tests.js +0 -10017
  773. package/outputs/tests.js.map +0 -1
@@ -0,0 +1,35 @@
1
+ import { Iterator } from "./iterator.js";
2
+ import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
3
+ import { SyncResult } from "./syncResult.js";
4
+ import { Type } from "./types.js";
5
+ /**
6
+ * An {@link Iterator} that maps {@link TInput} values to {@link TOutput} values.
7
+ */
8
+ export declare class MapIterator<TInput, TOutput> implements Iterator<TOutput> {
9
+ private readonly inputIterator;
10
+ private readonly mapping;
11
+ private started;
12
+ protected constructor(inputIterator: Iterator<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>));
13
+ static create<TInput, TOutput>(inputIterator: Iterator<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): MapIterator<TInput, TOutput>;
14
+ next(): SyncResult<boolean>;
15
+ hasStarted(): boolean;
16
+ hasCurrent(): boolean;
17
+ getCurrent(): TOutput;
18
+ start(): SyncResult<this>;
19
+ takeCurrent(): SyncResult<TOutput>;
20
+ any(): SyncResult<boolean>;
21
+ getCount(): SyncResult<number>;
22
+ toArray(): SyncResult<TOutput[]>;
23
+ concatenate(toConcatenate: JavascriptIterable<TOutput>): Iterator<TOutput>;
24
+ map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator<TOutput2>;
25
+ flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator<TOutput2>;
26
+ [Symbol.iterator](): JavascriptIterator<TOutput>;
27
+ first(condition?: (value: TOutput) => boolean): SyncResult<TOutput>;
28
+ last(): SyncResult<TOutput>;
29
+ where(condition: (value: TOutput) => boolean): Iterator<TOutput>;
30
+ whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator<U>;
31
+ whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator<U>;
32
+ take(maximumToTake: number): Iterator<TOutput>;
33
+ skip(maximumToSkip: number): Iterator<TOutput>;
34
+ }
35
+ //# sourceMappingURL=mapIterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapIterator.d.ts","sourceRoot":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PreCondition } from "./preCondition.js";
3
+ import { SyncResult } from "./syncResult.js";
4
+ /**
5
+ * An {@link Iterator} that maps {@link TInput} values to {@link TOutput} values.
6
+ */
7
+ export class MapIterator {
8
+ inputIterator;
9
+ mapping;
10
+ started;
11
+ constructor(inputIterator, mapping) {
12
+ PreCondition.assertNotUndefinedAndNotNull(inputIterator, "inputIterator");
13
+ PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
14
+ this.inputIterator = inputIterator;
15
+ this.mapping = mapping;
16
+ this.started = false;
17
+ }
18
+ static create(inputIterator, mapping) {
19
+ return new MapIterator(inputIterator, mapping);
20
+ }
21
+ next() {
22
+ return SyncResult.create(() => {
23
+ if (!this.hasStarted()) {
24
+ this.started = true;
25
+ this.inputIterator.start();
26
+ }
27
+ else {
28
+ this.inputIterator.next();
29
+ }
30
+ return this.inputIterator.hasCurrent();
31
+ });
32
+ }
33
+ hasStarted() {
34
+ return this.started;
35
+ }
36
+ hasCurrent() {
37
+ return this.hasStarted() && this.inputIterator.hasCurrent();
38
+ }
39
+ getCurrent() {
40
+ PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
41
+ const mappingResult = this.mapping(this.inputIterator.getCurrent());
42
+ return mappingResult instanceof SyncResult ? mappingResult.await() : mappingResult;
43
+ }
44
+ start() {
45
+ return Iterator.start(this);
46
+ }
47
+ takeCurrent() {
48
+ return Iterator.takeCurrent(this);
49
+ }
50
+ any() {
51
+ return Iterator.any(this);
52
+ }
53
+ getCount() {
54
+ return Iterator.getCount(this);
55
+ }
56
+ toArray() {
57
+ return Iterator.toArray(this);
58
+ }
59
+ concatenate(toConcatenate) {
60
+ return Iterator.concatenate(this, toConcatenate);
61
+ }
62
+ map(mapping) {
63
+ return Iterator.map(this, mapping);
64
+ }
65
+ flatMap(mapping) {
66
+ return Iterator.flatMap(this, mapping);
67
+ }
68
+ [Symbol.iterator]() {
69
+ return Iterator[Symbol.iterator](this);
70
+ }
71
+ first(condition) {
72
+ return Iterator.first(this, condition);
73
+ }
74
+ last() {
75
+ return Iterator.last(this);
76
+ }
77
+ where(condition) {
78
+ return Iterator.where(this, condition);
79
+ }
80
+ whereInstanceOf(typeCheck) {
81
+ return Iterator.whereInstanceOf(this, typeCheck);
82
+ }
83
+ whereInstanceOfType(type) {
84
+ return Iterator.whereInstanceOfType(this, type);
85
+ }
86
+ take(maximumToTake) {
87
+ return Iterator.take(this, maximumToTake);
88
+ }
89
+ skip(maximumToSkip) {
90
+ return Iterator.skip(this, maximumToSkip);
91
+ }
92
+ }
93
+ //# sourceMappingURL=mapIterator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapIterator.js","sourceRoot":"","sources":["../../sources/mapIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;GAEG;AACH,MAAM,OAAO,WAAW;IAEH,aAAa,CAAmB;IAChC,OAAO,CAAqD;IACrE,OAAO,CAAU;IAEzB,YAAsB,aAA+B,EAAE,OAA2D;QAE9G,YAAY,CAAC,4BAA4B,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC1E,YAAY,CAAC,4BAA4B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAE9D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAkB,aAA+B,EAAE,OAA2D;QAE9H,OAAO,IAAI,WAAW,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAEM,IAAI;QAEP,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YAE1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EACtB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CAAC,CAAC;IACrD,CAAC;IAEM,GAAG,CAAW,OAA8D;QAE/E,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEM,OAAO,CAAW,OAAyD;QAE9E,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAEM,KAAK,CAAC,SAAuC;QAEhD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,IAAI;QAEP,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAEM,KAAK,CAAC,SAAsC;QAE/C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,eAAe,CAAoB,SAAyC;QAE/E,OAAO,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAEM,mBAAmB,CAAoB,IAAa;QAEvD,OAAO,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;CACJ"}
@@ -0,0 +1,99 @@
1
+ import { AssertMessageParameters } from "./assertMessageParameters.js";
2
+ import { Condition } from "./condition.js";
3
+ import { EqualFunctions } from "./equalFunctions.js";
4
+ import { JavascriptIterable } from "./javascript.js";
5
+ import { ToStringFunctions } from "./toStringFunctions.js";
6
+ import { Type } from "./types.js";
7
+ /**
8
+ * A collection of condition methods that can be used to assert the state of an application.
9
+ */
10
+ export declare class MutableCondition implements Condition {
11
+ private toStringFunctions;
12
+ private equalFunctions;
13
+ private createErrorFunction;
14
+ protected constructor();
15
+ private static defaultCreateErrorFunction;
16
+ /**
17
+ * Create a new {@link MutableCondition} object.
18
+ */
19
+ static create(): MutableCondition;
20
+ /**
21
+ * Set the {@link ToStringFunctions} that will be used to convert values to their {@link String}
22
+ * representations.
23
+ * @param toStringFunctions The {@link ToStringFunctions} that will be used to convert values to
24
+ * their {@link String} representations.
25
+ * @returns This object for method chaining.
26
+ */
27
+ setToStringFunctions(toStringFunctions: ToStringFunctions): this;
28
+ /**
29
+ * Set the {@link EqualFunctions} that will be used to determine if values are equal.
30
+ * @param equalFunctions The {@link EqualFunctions} that will be used to determine if values are
31
+ * equal.
32
+ * @returns This object for method chaining.
33
+ */
34
+ setEqualFunctions(equalFunctions: EqualFunctions): this;
35
+ /**
36
+ * Set the {@link Function} that will be used to create {@link Error}s.
37
+ * @param createErrorFunction The {@link Function} to use to create {@link Error}.
38
+ * @returns This object for method chaining.
39
+ */
40
+ setCreateErrorFunction(createErrorFunction: (message: string) => Error): this;
41
+ assertUndefined(value: unknown, expression?: string, message?: string): asserts value is undefined;
42
+ assertNotUndefined<T>(value: T, expression?: string, message?: string): asserts value is NonNullable<T>;
43
+ /**
44
+ * Get whether the provided values are equal.
45
+ * @param left The left part of the comparison.
46
+ * @param right The right part of the comparison.
47
+ */
48
+ areEqual(left: unknown, right: unknown): boolean;
49
+ /**
50
+ * Get the {@link String} representation of the provided value.
51
+ * @param value The value to get the {@link String} representation of.
52
+ */
53
+ toValueString(value: unknown): string;
54
+ /**
55
+ * Create an {@link Error} based on the provided {@link AssertMessageParameters}.
56
+ * @param parameters The {@link AssertMessageParameters} that define how the should be made.
57
+ */
58
+ createError(parameters: AssertMessageParameters): Error;
59
+ /**
60
+ * Create an error message based on the provided parameters.
61
+ * @param parameters The parameters to use to create the error message.
62
+ */
63
+ static createErrorMessage(parameters: AssertMessageParameters): string;
64
+ assertNotUndefinedAndNotNull<T>(value: T, expression?: string, message?: string): asserts value is NonNullable<T>;
65
+ assertTrue(value: boolean, expression?: string, message?: string): asserts value is true;
66
+ assertFalse(value: boolean, expression?: string, message?: string): asserts value is false;
67
+ assertSame<T>(expected: T, actual: T, expression?: string, message?: string): void;
68
+ assertNotSame<T>(expected: T, actual: T, expression?: string, message?: string): void;
69
+ assertEqual<T>(expected: T, actual: T, expression?: string, message?: string): void;
70
+ assertNotEqual<T>(notExpected: T, actual: T, expression?: string, message?: string): void;
71
+ assertNotEmpty<T extends JavascriptIterable<unknown> | string | null | undefined>(value: T, expression?: string, message?: string): asserts value is NonNullable<T>;
72
+ assertLessThan(value: number, upperBound: number, expression?: string, message?: string): void;
73
+ assertLessThanOrEqualTo(value: number, upperBound: number, expression?: string, message?: string): void;
74
+ assertGreaterThanOrEqualTo(value: number, lowerBound: number, expression?: string, message?: string): void;
75
+ assertGreaterThan(value: number, lowerBound: number, expression?: string, message?: string): void;
76
+ assertBetween(lowerBound: number, value: number, upperBound: number, expression?: string, message?: string): void;
77
+ assertAccessIndex(index: number, count: number, expression?: string, message?: string): void;
78
+ assertInsertIndex(index: number, count: number, expression?: string, message?: string): void;
79
+ assertOneOf<T>(possibilities: JavascriptIterable<T>, value: T, expression?: string, message?: string): void;
80
+ assertByte(value: number, expression?: string, message?: string): void;
81
+ assertInteger(value: number, expression?: string, message?: string): void;
82
+ assertCharacter(value: string, expression?: string, message?: string): void;
83
+ assertInstanceOf<T>(value: unknown, type: Type<T>, typeCheck?: (value: unknown) => value is T, expression?: string, message?: string): asserts value is T;
84
+ assertInstanceOf<T>(parameters: {
85
+ value: unknown;
86
+ type: Type<T>;
87
+ typeCheck?: (value: unknown) => value is T;
88
+ expression?: string;
89
+ message?: string;
90
+ }): void;
91
+ assertInstanceOf<T>(parametersOrValue: unknown | {
92
+ value: unknown;
93
+ type: Type<T>;
94
+ typeCheck?: (value: unknown) => value is T;
95
+ expression?: string;
96
+ message?: string;
97
+ }, type?: Type<T>, typeCheck?: (value: unknown) => value is T, expression?: string, message?: string): void;
98
+ }
99
+ //# sourceMappingURL=mutableCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutableCondition.d.ts","sourceRoot":"","sources":["../../sources/mutableCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAIvE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACsF,IAAI,EAChG,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,gBAAiB,YAAW,SAAS;IAE9C,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,mBAAmB,CAA6B;IAExD,SAAS,eAKR;IAED,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAKzC;;OAEG;IACH,OAAc,MAAM,IAAI,gBAAgB,CAGvC;IAED;;;;;;OAMG;IACI,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAOtE;IAED;;;;;OAKG;IACI,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CAO7D;IAED;;;;OAIG;IACI,sBAAsB,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,GAAG,IAAI,CAMnF;IAEM,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAA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E,IAAI,CAAC,CAAC,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC5J,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,EAAE,OAAO,GAAG;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAqC1R"}
@@ -0,0 +1,334 @@
1
+ import { Bytes } from "./bytes.js";
2
+ import { Comparer } from "./comparer.js";
3
+ import { Comparison } from "./comparison.js";
4
+ import { Condition } from "./condition.js";
5
+ import { EqualFunctions } from "./equalFunctions.js";
6
+ import { Iterable } from "./iterable.js";
7
+ import { ToStringFunctions } from "./toStringFunctions.js";
8
+ import { hasFunction, hasProperty, instanceOf, isJavascriptIterable, isString, isUndefinedOrNull } from "./types.js";
9
+ /**
10
+ * A collection of condition methods that can be used to assert the state of an application.
11
+ */
12
+ export class MutableCondition {
13
+ toStringFunctions;
14
+ equalFunctions;
15
+ createErrorFunction;
16
+ constructor() {
17
+ this.toStringFunctions = ToStringFunctions.create();
18
+ this.equalFunctions = EqualFunctions.create();
19
+ this.createErrorFunction = MutableCondition.defaultCreateErrorFunction;
20
+ }
21
+ static defaultCreateErrorFunction(message) {
22
+ return new Error(message);
23
+ }
24
+ /**
25
+ * Create a new {@link MutableCondition} object.
26
+ */
27
+ static create() {
28
+ return new MutableCondition();
29
+ }
30
+ /**
31
+ * Set the {@link ToStringFunctions} that will be used to convert values to their {@link String}
32
+ * representations.
33
+ * @param toStringFunctions The {@link ToStringFunctions} that will be used to convert values to
34
+ * their {@link String} representations.
35
+ * @returns This object for method chaining.
36
+ */
37
+ setToStringFunctions(toStringFunctions) {
38
+ this.assertNotUndefinedAndNotNull(toStringFunctions, "toStringFunctions");
39
+ this.toStringFunctions = toStringFunctions;
40
+ return this;
41
+ }
42
+ /**
43
+ * Set the {@link EqualFunctions} that will be used to determine if values are equal.
44
+ * @param equalFunctions The {@link EqualFunctions} that will be used to determine if values are
45
+ * equal.
46
+ * @returns This object for method chaining.
47
+ */
48
+ setEqualFunctions(equalFunctions) {
49
+ this.assertNotUndefinedAndNotNull(equalFunctions, "equalFunctions");
50
+ this.equalFunctions = equalFunctions;
51
+ return this;
52
+ }
53
+ /**
54
+ * Set the {@link Function} that will be used to create {@link Error}s.
55
+ * @param createErrorFunction The {@link Function} to use to create {@link Error}.
56
+ * @returns This object for method chaining.
57
+ */
58
+ setCreateErrorFunction(createErrorFunction) {
59
+ this.assertNotUndefinedAndNotNull(createErrorFunction, "createErrorFunction");
60
+ this.createErrorFunction = createErrorFunction;
61
+ return this;
62
+ }
63
+ assertUndefined(value, expression, message) {
64
+ Condition.assertUndefined(this, value, expression, message);
65
+ }
66
+ assertNotUndefined(value, expression, message) {
67
+ Condition.assertNotUndefined(this, value, expression, message);
68
+ }
69
+ /**
70
+ * Get whether the provided values are equal.
71
+ * @param left The left part of the comparison.
72
+ * @param right The right part of the comparison.
73
+ */
74
+ areEqual(left, right) {
75
+ return this.equalFunctions.areEqual(left, right).await();
76
+ }
77
+ /**
78
+ * Get the {@link String} representation of the provided value.
79
+ * @param value The value to get the {@link String} representation of.
80
+ */
81
+ toValueString(value) {
82
+ return this.toStringFunctions.toString(value);
83
+ }
84
+ /**
85
+ * Create an {@link Error} based on the provided {@link AssertMessageParameters}.
86
+ * @param parameters The {@link AssertMessageParameters} that define how the should be made.
87
+ */
88
+ createError(parameters) {
89
+ const message = MutableCondition.createErrorMessage(parameters);
90
+ return this.createErrorFunction(message);
91
+ }
92
+ /**
93
+ * Create an error message based on the provided parameters.
94
+ * @param parameters The parameters to use to create the error message.
95
+ */
96
+ static createErrorMessage(parameters) {
97
+ let result = "";
98
+ if (parameters.message) {
99
+ result += `Message: ${parameters.message}`;
100
+ }
101
+ if (parameters.expression) {
102
+ if (result) {
103
+ result += "\n";
104
+ }
105
+ result += `Expression: ${parameters.expression}`;
106
+ }
107
+ if (result) {
108
+ result += "\n";
109
+ }
110
+ result += `Expected: ${parameters.expected}`;
111
+ if (result) {
112
+ result += "\n";
113
+ }
114
+ result += `Actual: ${parameters.actual}`;
115
+ return result;
116
+ }
117
+ assertNotUndefinedAndNotNull(value, expression, message) {
118
+ if (value === undefined || value === null) {
119
+ throw this.createError({
120
+ expected: `not ${this.toValueString(undefined)} and not ${this.toValueString(null)}`,
121
+ actual: this.toValueString(value),
122
+ expression: expression,
123
+ message: message,
124
+ });
125
+ }
126
+ }
127
+ assertTrue(value, expression, message) {
128
+ Condition.assertTrue(this, value, expression, message);
129
+ }
130
+ assertFalse(value, expression, message) {
131
+ if (value !== false) {
132
+ throw this.createError({
133
+ expected: this.toValueString(false),
134
+ actual: this.toValueString(value),
135
+ expression: expression,
136
+ message: message,
137
+ });
138
+ }
139
+ }
140
+ assertSame(expected, actual, expression, message) {
141
+ if (expected !== actual) {
142
+ throw this.createError({
143
+ expected: this.toValueString(expected),
144
+ actual: this.toValueString(actual),
145
+ expression: expression,
146
+ message: message,
147
+ });
148
+ }
149
+ }
150
+ assertNotSame(expected, actual, expression, message) {
151
+ if (expected === actual) {
152
+ throw this.createError({
153
+ expected: `not ${this.toValueString(expected)}`,
154
+ actual: this.toValueString(actual),
155
+ expression: expression,
156
+ message: message,
157
+ });
158
+ }
159
+ }
160
+ assertEqual(expected, actual, expression, message) {
161
+ let comparison = Comparer.compareSameUndefinedNull(expected, actual);
162
+ if (comparison === undefined && this.areEqual(expected, actual)) {
163
+ comparison = Comparison.Equal;
164
+ }
165
+ if (comparison !== Comparison.Equal) {
166
+ throw this.createError({
167
+ expected: this.toValueString(expected),
168
+ actual: this.toValueString(actual),
169
+ expression: expression,
170
+ message: message,
171
+ });
172
+ }
173
+ }
174
+ assertNotEqual(notExpected, actual, expression, message) {
175
+ let comparison = Comparer.compareSameUndefinedNull(notExpected, actual);
176
+ if (comparison === undefined && this.areEqual(notExpected, actual)) {
177
+ comparison = Comparison.Equal;
178
+ }
179
+ if (comparison === Comparison.Equal) {
180
+ throw this.createError({
181
+ expected: `not ${this.toValueString(notExpected)}`,
182
+ actual: this.toValueString(actual),
183
+ expression: expression,
184
+ message: message,
185
+ });
186
+ }
187
+ }
188
+ assertNotEmpty(value, expression, message) {
189
+ this.assertNotUndefinedAndNotNull(value, expression, message);
190
+ if ((isString(value) && value.length === 0) ||
191
+ (isJavascriptIterable(value) && !Iterable.create(value).any().await())) {
192
+ throw this.createError({
193
+ expected: "not empty",
194
+ actual: this.toValueString(value),
195
+ expression: expression,
196
+ message: message,
197
+ });
198
+ }
199
+ }
200
+ assertLessThan(value, upperBound, expression, message) {
201
+ if (!(value < upperBound)) {
202
+ throw this.createError({
203
+ expected: `less than ${this.toValueString(upperBound)}`,
204
+ actual: this.toValueString(value),
205
+ expression: expression,
206
+ message: message,
207
+ });
208
+ }
209
+ }
210
+ assertLessThanOrEqualTo(value, upperBound, expression, message) {
211
+ if (!(value <= upperBound)) {
212
+ throw this.createError({
213
+ expected: `less than or equal to ${this.toValueString(upperBound)}`,
214
+ actual: this.toValueString(value),
215
+ expression: expression,
216
+ message: message,
217
+ });
218
+ }
219
+ }
220
+ assertGreaterThanOrEqualTo(value, lowerBound, expression, message) {
221
+ if (!(lowerBound <= value)) {
222
+ throw this.createError({
223
+ expected: `greater than or equal to ${this.toValueString(lowerBound)}`,
224
+ actual: this.toValueString(value),
225
+ expression: expression,
226
+ message: message,
227
+ });
228
+ }
229
+ }
230
+ assertGreaterThan(value, lowerBound, expression, message) {
231
+ if (!(lowerBound < value)) {
232
+ throw this.createError({
233
+ expected: `greater than ${this.toValueString(lowerBound)}`,
234
+ actual: this.toValueString(value),
235
+ expression: expression,
236
+ message: message,
237
+ });
238
+ }
239
+ }
240
+ assertBetween(lowerBound, value, upperBound, expression, message) {
241
+ this.assertLessThanOrEqualTo(lowerBound, upperBound, "lowerBound");
242
+ if (isUndefinedOrNull(value) || !(lowerBound <= value && value <= upperBound)) {
243
+ throw this.createError({
244
+ expected: (lowerBound === upperBound
245
+ ? this.toValueString(lowerBound)
246
+ : `between ${this.toValueString(lowerBound)} and ${this.toValueString(upperBound)}`),
247
+ actual: this.toValueString(value),
248
+ expression: expression,
249
+ message: message,
250
+ });
251
+ }
252
+ }
253
+ assertAccessIndex(index, count, expression, message) {
254
+ this.assertGreaterThanOrEqualTo(count, 1, "count");
255
+ this.assertInteger(index, expression);
256
+ this.assertBetween(0, index, count - 1, expression, message);
257
+ }
258
+ assertInsertIndex(index, count, expression, message) {
259
+ this.assertGreaterThanOrEqualTo(count, 0, "count");
260
+ this.assertInteger(index, expression);
261
+ this.assertBetween(0, index, count, expression, message);
262
+ }
263
+ assertOneOf(possibilities, value, expression, message) {
264
+ this.assertNotUndefinedAndNotNull(possibilities, "possibilities");
265
+ let found = false;
266
+ for (const possibility of possibilities) {
267
+ if (this.areEqual(possibility, value)) {
268
+ found = true;
269
+ break;
270
+ }
271
+ }
272
+ if (!found) {
273
+ throw this.createError({
274
+ expected: `one of ${this.toValueString(possibilities)}`,
275
+ actual: this.toValueString(value),
276
+ expression: expression,
277
+ message: message,
278
+ });
279
+ }
280
+ }
281
+ assertByte(value, expression, message) {
282
+ this.assertBetween(Bytes.minimumValue, value, Bytes.maximumValue, expression, message);
283
+ this.assertInteger(value, "value");
284
+ }
285
+ assertInteger(value, expression, message) {
286
+ if (value % 1 !== 0) {
287
+ throw this.createError({
288
+ expected: `integer`,
289
+ actual: this.toValueString(value),
290
+ expression: expression,
291
+ message: message,
292
+ });
293
+ }
294
+ }
295
+ assertCharacter(value, expression, message) {
296
+ if (!value || value.length !== 1) {
297
+ throw this.createError({
298
+ expected: `character`,
299
+ actual: this.toValueString(value),
300
+ expression: expression,
301
+ message: message,
302
+ });
303
+ }
304
+ }
305
+ assertInstanceOf(parametersOrValue, type, typeCheck, expression, message) {
306
+ let value;
307
+ if (hasProperty(parametersOrValue, "value") &&
308
+ hasProperty(parametersOrValue, "type")) {
309
+ value = parametersOrValue.value;
310
+ type = parametersOrValue.type;
311
+ if (hasFunction(parametersOrValue, "typeCheck")) {
312
+ typeCheck = parametersOrValue.typeCheck;
313
+ }
314
+ if (hasProperty(parametersOrValue, "expression")) {
315
+ expression = parametersOrValue.expression;
316
+ }
317
+ if (hasProperty(parametersOrValue, "message")) {
318
+ message = parametersOrValue.message;
319
+ }
320
+ }
321
+ else {
322
+ value = parametersOrValue;
323
+ }
324
+ if (!instanceOf(value, type, typeCheck)) {
325
+ throw this.createError({
326
+ expected: `instance of ${type.name}`,
327
+ actual: this.toValueString(value),
328
+ expression: expression,
329
+ message: message,
330
+ });
331
+ }
332
+ }
333
+ }
334
+ //# sourceMappingURL=mutableCondition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutableCondition.js","sourceRoot":"","sources":["../../sources/mutableCondition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;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AI,CAAC,UAAU,CAAC,KAAK,EAAE,IAAK,EAAE,SAAS,CAAC,EACxC,CAAC;YACG,MAAM,IAAI,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,eAAe,IAAK,CAAC,IAAI,EAAE;gBACrC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBACjC,UAAU,EAAE,UAAU;gBACtB,OAAO,EAAE,OAAO;aACnB,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,44 @@
1
+ import { EqualFunctions } from "./equalFunctions.js";
2
+ import { HttpHeader } from "./httpHeader.js";
3
+ import { HttpHeaders } from "./httpHeaders.js";
4
+ import { Iterable } from "./iterable.js";
5
+ import { Iterator } from "./iterator.js";
6
+ import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
7
+ import { SyncResult } from "./syncResult.js";
8
+ import { ToStringFunctions } from "./toStringFunctions.js";
9
+ import { Type } from "./types.js";
10
+ export declare class MutableHttpHeaders implements HttpHeaders {
11
+ private readonly headers;
12
+ private constructor();
13
+ static create(headers?: JavascriptIterable<HttpHeader>): MutableHttpHeaders;
14
+ iterate(): Iterator<HttpHeader>;
15
+ get(headerName: string): SyncResult<HttpHeader>;
16
+ getValue(headerName: string): SyncResult<string>;
17
+ /**
18
+ * Set a {@link HttpHeader} value in this collection. This will overwrite any existing
19
+ * {@link HttpHeader} with the same name.
20
+ * @param headerName The name of the header to set.
21
+ * @param headerValue The value of the header to set.
22
+ */
23
+ set(headerName: string, headerValue: string): this;
24
+ set(header: HttpHeader): this;
25
+ setAll(headers: JavascriptIterable<HttpHeader>): this;
26
+ setContentType(contentType: string): this;
27
+ getContentType(): SyncResult<HttpHeader>;
28
+ getContentTypeValue(): SyncResult<string>;
29
+ getCount(): SyncResult<number>;
30
+ toArray(): SyncResult<HttpHeader[]>;
31
+ any(): SyncResult<boolean>;
32
+ equals(right: JavascriptIterable<HttpHeader>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
33
+ toString(toStringFunctions?: ToStringFunctions): string;
34
+ concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
35
+ map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
36
+ flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
37
+ where(condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable<HttpHeader>;
38
+ instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
39
+ first(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
40
+ last(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
41
+ [Symbol.iterator](): JavascriptIterator<HttpHeader>;
42
+ contains(value: HttpHeader, equalFunctions?: EqualFunctions): SyncResult<boolean>;
43
+ }
44
+ //# sourceMappingURL=mutableHttpHeaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutableHttpHeaders.d.ts","sourceRoot":"","sources":["../../sources/mutableHttpHeaders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAY,IAAI,EAAE,MAAM,YAAY,CAA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