@everyonesoftware/common 13.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.
- package/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-DGlmRcFl.d.cts +0 -854
- package/outputs/characterWriteStream-DGlmRcFl.d.ts +0 -854
- package/outputs/chunk-P4KLLRFY.js +0 -1199
- package/outputs/chunk-P4KLLRFY.js.map +0 -1
- package/outputs/chunk-TUBXFCG4.js +0 -9593
- package/outputs/chunk-TUBXFCG4.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9793
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3533
- package/outputs/sourceIndex.d.ts +0 -3533
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7049
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19376
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10018
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tokenizer.js","sourceRoot":"","sources":["../../sources/Tokenizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAQ,MAAM,YAAY,CAAC;AAE9C;;GAEG;AACH,MAAM,OAAO,SAAS;IAED,UAAU,CAAkB;IAErC,YAAY,CAAoB;IAChC,OAAO,CAAU;IAEzB,YAAoB,UAA4B;QAE5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,UAAsC;QAEvD,YAAY,CA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AEM,eAAe,CAAkB,SAAuC;QAE3E,OAAO,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAEM,mBAAmB,CAAkB,IAAa;QAErD,OAAO,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAEM,KAAK,CAAC,SAA2E;QAEpF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,IAAI,CAAC,SAA2E;QAEnF,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1C,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;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of parameters that can be passed to an assert error message function.
|
|
3
|
+
*/
|
|
4
|
+
export interface AssertMessageParameters {
|
|
5
|
+
/**
|
|
6
|
+
* The expected state.
|
|
7
|
+
*/
|
|
8
|
+
expected: string;
|
|
9
|
+
/**
|
|
10
|
+
* The actual state.
|
|
11
|
+
*/
|
|
12
|
+
actual: string;
|
|
13
|
+
/**
|
|
14
|
+
* A string representation of the expression that produced the actual state.
|
|
15
|
+
*/
|
|
16
|
+
expression?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A message that describes the failure.
|
|
19
|
+
*/
|
|
20
|
+
message?: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=assertMessageParameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertMessageParameters.d.ts","sourceRoot":"","sources":["../../sources/assertMessageParameters.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IAEpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertMessageParameters.js","sourceRoot":"","sources":["../../sources/assertMessageParameters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
2
|
+
import { Comparable } from "./comparable.js";
|
|
3
|
+
import { JavascriptAsyncIterator } from "./javascript.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* A type that can be used to asynchronously iterate over a collection.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class AsyncIterator<T> {
|
|
9
|
+
static create<T>(iterator: JavascriptAsyncIterator<T>): AsyncIterator<T>;
|
|
10
|
+
/**
|
|
11
|
+
* Move to the next value in the collection. Return whether this {@link AsyncIterator} points to
|
|
12
|
+
* a value after the move.
|
|
13
|
+
*/
|
|
14
|
+
abstract next(): PromiseAsyncResult<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Get whether this {@link AsyncIterator} has started iterating over the values in the collection.
|
|
17
|
+
*/
|
|
18
|
+
abstract hasStarted(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Get whether this {@link AsyncIterator} currently points at a value in the collection.
|
|
21
|
+
*/
|
|
22
|
+
abstract hasCurrent(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Get the value that this {@link AsyncIterator} points to.
|
|
25
|
+
*/
|
|
26
|
+
abstract getCurrent(): T;
|
|
27
|
+
/**
|
|
28
|
+
* Move to the first value if this {@link AsyncIterator} hasn't started yet.
|
|
29
|
+
* @returns This object for method chaining.
|
|
30
|
+
*/
|
|
31
|
+
start(): PromiseAsyncResult<this>;
|
|
32
|
+
/**
|
|
33
|
+
* Move the provided {@link AsyncIterator} to its first value if it hasn't started yet.
|
|
34
|
+
*/
|
|
35
|
+
static start<T, TIterator extends AsyncIterator<T>>(iterator: TIterator): PromiseAsyncResult<TIterator>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the current value from this {@link AsyncIterator} and advance this {@link AsyncIterator} to the
|
|
38
|
+
* next value.
|
|
39
|
+
*/
|
|
40
|
+
takeCurrent(): PromiseAsyncResult<T>;
|
|
41
|
+
static takeCurrent<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<T>;
|
|
42
|
+
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
43
|
+
/**
|
|
44
|
+
* Convert the provided {@link AsyncIterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
45
|
+
* @param iterator The {@link AsyncIterator} to convert.
|
|
46
|
+
*/
|
|
47
|
+
static [Symbol.asyncIterator]<T>(iterator: AsyncIterator<T>): JavascriptAsyncIterator<T>;
|
|
48
|
+
/**
|
|
49
|
+
* Get whether this {@link AsyncIterator} contains any values.
|
|
50
|
+
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
51
|
+
* started yet.
|
|
52
|
+
*/
|
|
53
|
+
any(): PromiseAsyncResult<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* Get whether this {@link AsyncIterator} contains any values.
|
|
56
|
+
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
57
|
+
* started yet.
|
|
58
|
+
*/
|
|
59
|
+
static any<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the number of values in this {@link AsyncIterator}.
|
|
62
|
+
* Note: This will consume all of the values in this {@link AsyncIterator}.
|
|
63
|
+
*/
|
|
64
|
+
getCount(): PromiseAsyncResult<number>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the number of values in the provided {@link AsyncIterator}.
|
|
67
|
+
* Note: This will consume all of the values in the provided {@link AsyncIterator}.
|
|
68
|
+
*/
|
|
69
|
+
static getCount<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<number>;
|
|
70
|
+
/**
|
|
71
|
+
* Get all of the remaining values in this {@link AsyncIterator} in a {@link T} {@link Array}.
|
|
72
|
+
*/
|
|
73
|
+
toArray(): PromiseAsyncResult<T[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Get all of the remaining values in the provided {@link AsyncIterator} in a {@link T}
|
|
76
|
+
* {@link Array}.
|
|
77
|
+
*/
|
|
78
|
+
static toArray<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<T[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Get an {@link AsyncIterator} that will only return values that match the provided condition.
|
|
81
|
+
* @param condition The condition to run against each of the values in this {@link AsyncIterator}.
|
|
82
|
+
*/
|
|
83
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
84
|
+
static where<T>(iterator: AsyncIterator<T>, condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
85
|
+
/**
|
|
86
|
+
* Get a {@link MapIterator} that will map all {@link T} values from this {@link AsyncIterator} to
|
|
87
|
+
* {@link TOutput} values.
|
|
88
|
+
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
89
|
+
*/
|
|
90
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
91
|
+
static map<T, TOutput>(iterator: AsyncIterator<T>, mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
92
|
+
/**
|
|
93
|
+
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
94
|
+
* instances of {@link U} based on the provided type check {@link Function}.
|
|
95
|
+
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
96
|
+
* {@link U}.
|
|
97
|
+
*/
|
|
98
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
99
|
+
static whereInstanceOf<T, U extends T>(iterator: AsyncIterator<T>, typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
100
|
+
/**
|
|
101
|
+
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
102
|
+
* instances of the provided {@link Type}.
|
|
103
|
+
* @param type The type of values to return from the new {@link AsyncIterator}.
|
|
104
|
+
*/
|
|
105
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
106
|
+
static whereInstanceOfType<T, U extends T>(iterator: AsyncIterator<T>, type: Type<U>): AsyncIterator<U>;
|
|
107
|
+
/**
|
|
108
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
109
|
+
* this {@link AsyncIterator}. If this condition function is provided, then this function will return
|
|
110
|
+
* the first value that matches the provided condition.
|
|
111
|
+
* @param condition The condition that the returned value must satisfy.
|
|
112
|
+
*/
|
|
113
|
+
first(condition?: (value: T) => boolean): PromiseAsyncResult<T>;
|
|
114
|
+
/**
|
|
115
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
116
|
+
* the {@link AsyncIterator}. If this condition function is provided, then this function will return
|
|
117
|
+
* the first value that matches the provided condition.
|
|
118
|
+
* @param iterator The {@link AsyncIterator} to get the first value from.
|
|
119
|
+
*/
|
|
120
|
+
static first<T>(iterator: AsyncIterator<T>, condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
121
|
+
/**
|
|
122
|
+
* If the condition function is undefined, then this function will return the last value in this
|
|
123
|
+
* {@link AsyncIterator}. If this condition function is provided, then this function will return the
|
|
124
|
+
* last value that matches the provided condition.
|
|
125
|
+
* @param condition The condition that the returned value must satisfy.
|
|
126
|
+
*/
|
|
127
|
+
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
128
|
+
/**
|
|
129
|
+
* If the condition function is undefined, then this function will return the last value in the
|
|
130
|
+
* {@link AsyncIterator}. If this condition function is provided, then this function will return the
|
|
131
|
+
* last value that matches the provided condition.
|
|
132
|
+
* @param iterator The {@link AsyncIterator} to get the last value from.
|
|
133
|
+
*/
|
|
134
|
+
static last<T>(iterator: AsyncIterator<T>, condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
135
|
+
/**
|
|
136
|
+
* Find the maximum value in the provided {@link AsyncIterator}.
|
|
137
|
+
* @param iterator The values to find the maximum of.
|
|
138
|
+
*/
|
|
139
|
+
static findMaximum<T extends Comparable<T>>(iterator: JavascriptAsyncIterator<T> | AsyncIterator<T>): PromiseAsyncResult<T>;
|
|
140
|
+
/**
|
|
141
|
+
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and only
|
|
142
|
+
* returns a maximum number of values from this {@link AsyncIterator}.
|
|
143
|
+
* @param maximumToTake The maximum number of values to take from this {@link AsyncIterator}.
|
|
144
|
+
*/
|
|
145
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
146
|
+
static take<T>(iterator: AsyncIterator<T>, maximumToTake: number): AsyncIterator<T>;
|
|
147
|
+
/**
|
|
148
|
+
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and will skip the initial
|
|
149
|
+
* provided number of values before beginning to return values.
|
|
150
|
+
* @param maximumToSkip The maximum number of values to skip from this {@link AsyncIterator}.
|
|
151
|
+
*/
|
|
152
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
153
|
+
static skip<T>(iterator: AsyncIterator<T>, maximumToSkip: number): AsyncIterator<T>;
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=asyncIterator.d.ts.map
|
|
@@ -0,0 +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AAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAG7F;IAED;;;;;OAKG;IACH,OAAc,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAuCnI;IAED;;;OAGG;IACH,OAAc,WAAW,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAwBjI;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGnD;IAED,OAAc,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGzF;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGnD;IAED,OAAc,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGzF;CACJ"}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { AsyncIteratorToJavascriptAsyncIteratorAdapter } from "./asyncIteratorToJavascriptAsyncIteratorAdapter.js";
|
|
2
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
3
|
+
import { EmptyError } from "./emptyError.js";
|
|
4
|
+
import { JavascriptAsyncIteratorToAsyncIteratorAdapter } from "./javascriptAsyncIteratorToAsyncIteratorAdapter.js";
|
|
5
|
+
import { MapAsyncIterator } from "./mapAsyncIterator.js";
|
|
6
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
7
|
+
import { PreCondition } from "./preCondition.js";
|
|
8
|
+
import { SkipAsyncIterator } from "./skipAsyncIterator.js";
|
|
9
|
+
import { TakeAsyncIterator } from "./takeAsyncIterator.js";
|
|
10
|
+
import { instanceOfType, isJavascriptAsyncIterator, isUndefinedOrNull } from "./types.js";
|
|
11
|
+
import { WhereAsyncIterator } from "./whereAsyncIterator.js";
|
|
12
|
+
/**
|
|
13
|
+
* A type that can be used to asynchronously iterate over a collection.
|
|
14
|
+
*/
|
|
15
|
+
export class AsyncIterator {
|
|
16
|
+
static create(iterator) {
|
|
17
|
+
return JavascriptAsyncIteratorToAsyncIteratorAdapter.create(iterator);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Move to the first value if this {@link AsyncIterator} hasn't started yet.
|
|
21
|
+
* @returns This object for method chaining.
|
|
22
|
+
*/
|
|
23
|
+
start() {
|
|
24
|
+
return AsyncIterator.start(this);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Move the provided {@link AsyncIterator} to its first value if it hasn't started yet.
|
|
28
|
+
*/
|
|
29
|
+
static start(iterator) {
|
|
30
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
31
|
+
return PromiseAsyncResult.create(async () => {
|
|
32
|
+
if (!iterator.hasStarted()) {
|
|
33
|
+
await iterator.next();
|
|
34
|
+
}
|
|
35
|
+
return iterator;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get the current value from this {@link AsyncIterator} and advance this {@link AsyncIterator} to the
|
|
40
|
+
* next value.
|
|
41
|
+
*/
|
|
42
|
+
takeCurrent() {
|
|
43
|
+
return AsyncIterator.takeCurrent(this);
|
|
44
|
+
}
|
|
45
|
+
static takeCurrent(iterator) {
|
|
46
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
47
|
+
PreCondition.assertTrue(iterator.hasCurrent(), "iterator.hasCurrent()");
|
|
48
|
+
return PromiseAsyncResult.create(async () => {
|
|
49
|
+
const result = iterator.getCurrent();
|
|
50
|
+
await iterator.next();
|
|
51
|
+
return result;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
[Symbol.asyncIterator]() {
|
|
55
|
+
return AsyncIterator[Symbol.asyncIterator](this);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Convert the provided {@link AsyncIterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
59
|
+
* @param iterator The {@link AsyncIterator} to convert.
|
|
60
|
+
*/
|
|
61
|
+
static [Symbol.asyncIterator](iterator) {
|
|
62
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
63
|
+
return AsyncIteratorToJavascriptAsyncIteratorAdapter.create(iterator);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get whether this {@link AsyncIterator} contains any values.
|
|
67
|
+
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
68
|
+
* started yet.
|
|
69
|
+
*/
|
|
70
|
+
any() {
|
|
71
|
+
return AsyncIterator.any(this);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get whether this {@link AsyncIterator} contains any values.
|
|
75
|
+
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
76
|
+
* started yet.
|
|
77
|
+
*/
|
|
78
|
+
static any(iterator) {
|
|
79
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
80
|
+
return PromiseAsyncResult.create(async () => {
|
|
81
|
+
await iterator.start();
|
|
82
|
+
return iterator.hasCurrent();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get the number of values in this {@link AsyncIterator}.
|
|
87
|
+
* Note: This will consume all of the values in this {@link AsyncIterator}.
|
|
88
|
+
*/
|
|
89
|
+
getCount() {
|
|
90
|
+
return AsyncIterator.getCount(this);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get the number of values in the provided {@link AsyncIterator}.
|
|
94
|
+
* Note: This will consume all of the values in the provided {@link AsyncIterator}.
|
|
95
|
+
*/
|
|
96
|
+
static getCount(iterator) {
|
|
97
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
98
|
+
return PromiseAsyncResult.create(async () => {
|
|
99
|
+
let result = 0;
|
|
100
|
+
if (iterator.hasCurrent()) {
|
|
101
|
+
result++;
|
|
102
|
+
}
|
|
103
|
+
while (await iterator.next()) {
|
|
104
|
+
result++;
|
|
105
|
+
}
|
|
106
|
+
return result;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get all of the remaining values in this {@link AsyncIterator} in a {@link T} {@link Array}.
|
|
111
|
+
*/
|
|
112
|
+
toArray() {
|
|
113
|
+
return AsyncIterator.toArray(this);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get all of the remaining values in the provided {@link AsyncIterator} in a {@link T}
|
|
117
|
+
* {@link Array}.
|
|
118
|
+
*/
|
|
119
|
+
static toArray(iterator) {
|
|
120
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
121
|
+
return PromiseAsyncResult.create(async () => {
|
|
122
|
+
const result = [];
|
|
123
|
+
if (iterator.hasCurrent()) {
|
|
124
|
+
result.push(iterator.getCurrent());
|
|
125
|
+
}
|
|
126
|
+
while (await iterator.next()) {
|
|
127
|
+
result.push(iterator.getCurrent());
|
|
128
|
+
}
|
|
129
|
+
return result;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Get an {@link AsyncIterator} that will only return values that match the provided condition.
|
|
134
|
+
* @param condition The condition to run against each of the values in this {@link AsyncIterator}.
|
|
135
|
+
*/
|
|
136
|
+
where(condition) {
|
|
137
|
+
return AsyncIterator.where(this, condition);
|
|
138
|
+
}
|
|
139
|
+
static where(iterator, condition) {
|
|
140
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
141
|
+
PreCondition.assertNotUndefinedAndNotNull(condition, "condition");
|
|
142
|
+
return WhereAsyncIterator.create(iterator, condition);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get a {@link MapIterator} that will map all {@link T} values from this {@link AsyncIterator} to
|
|
146
|
+
* {@link TOutput} values.
|
|
147
|
+
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
148
|
+
*/
|
|
149
|
+
map(mapping) {
|
|
150
|
+
return AsyncIterator.map(this, mapping);
|
|
151
|
+
}
|
|
152
|
+
static map(iterator, mapping) {
|
|
153
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
154
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
155
|
+
return MapAsyncIterator.create(iterator, mapping);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
159
|
+
* instances of {@link U} based on the provided type check {@link Function}.
|
|
160
|
+
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
161
|
+
* {@link U}.
|
|
162
|
+
*/
|
|
163
|
+
whereInstanceOf(typeCheck) {
|
|
164
|
+
return AsyncIterator.whereInstanceOf(this, typeCheck);
|
|
165
|
+
}
|
|
166
|
+
static whereInstanceOf(iterator, typeCheck) {
|
|
167
|
+
PreCondition.assertNotUndefinedAndNotNull(typeCheck, "typeCheck");
|
|
168
|
+
return iterator.where(typeCheck)
|
|
169
|
+
.map((value) => value);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
173
|
+
* instances of the provided {@link Type}.
|
|
174
|
+
* @param type The type of values to return from the new {@link AsyncIterator}.
|
|
175
|
+
*/
|
|
176
|
+
whereInstanceOfType(type) {
|
|
177
|
+
return AsyncIterator.whereInstanceOfType(this, type);
|
|
178
|
+
}
|
|
179
|
+
static whereInstanceOfType(iterator, type) {
|
|
180
|
+
PreCondition.assertNotUndefinedAndNotNull(type, "type");
|
|
181
|
+
return iterator.whereInstanceOf((value) => instanceOfType(value, type));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
185
|
+
* this {@link AsyncIterator}. If this condition function is provided, then this function will return
|
|
186
|
+
* the first value that matches the provided condition.
|
|
187
|
+
* @param condition The condition that the returned value must satisfy.
|
|
188
|
+
*/
|
|
189
|
+
first(condition) {
|
|
190
|
+
return AsyncIterator.first(this, condition);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
194
|
+
* the {@link AsyncIterator}. If this condition function is provided, then this function will return
|
|
195
|
+
* the first value that matches the provided condition.
|
|
196
|
+
* @param iterator The {@link AsyncIterator} to get the first value from.
|
|
197
|
+
*/
|
|
198
|
+
static first(iterator, condition) {
|
|
199
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
200
|
+
return PromiseAsyncResult.create(async () => {
|
|
201
|
+
await iterator.start();
|
|
202
|
+
if (isUndefinedOrNull(condition)) {
|
|
203
|
+
if (!iterator.hasCurrent()) {
|
|
204
|
+
throw new EmptyError();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
while (iterator.hasCurrent() && !await condition(iterator.getCurrent())) {
|
|
209
|
+
await iterator.next();
|
|
210
|
+
}
|
|
211
|
+
if (!iterator.hasCurrent()) {
|
|
212
|
+
throw new NotFoundError("No value was found in the AsyncIterator that matched the provided condition.");
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return iterator.getCurrent();
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* If the condition function is undefined, then this function will return the last value in this
|
|
220
|
+
* {@link AsyncIterator}. If this condition function is provided, then this function will return the
|
|
221
|
+
* last value that matches the provided condition.
|
|
222
|
+
* @param condition The condition that the returned value must satisfy.
|
|
223
|
+
*/
|
|
224
|
+
last(condition) {
|
|
225
|
+
return AsyncIterator.last(this, condition);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* If the condition function is undefined, then this function will return the last value in the
|
|
229
|
+
* {@link AsyncIterator}. If this condition function is provided, then this function will return the
|
|
230
|
+
* last value that matches the provided condition.
|
|
231
|
+
* @param iterator The {@link AsyncIterator} to get the last value from.
|
|
232
|
+
*/
|
|
233
|
+
static last(iterator, condition) {
|
|
234
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
235
|
+
return PromiseAsyncResult.create(async () => {
|
|
236
|
+
await iterator.start();
|
|
237
|
+
if (!iterator.hasCurrent()) {
|
|
238
|
+
throw new EmptyError();
|
|
239
|
+
}
|
|
240
|
+
let result;
|
|
241
|
+
let found = false;
|
|
242
|
+
do {
|
|
243
|
+
if (!condition || await condition(iterator.getCurrent())) {
|
|
244
|
+
result = iterator.getCurrent();
|
|
245
|
+
found = true;
|
|
246
|
+
}
|
|
247
|
+
} while (await iterator.next());
|
|
248
|
+
if (!found) {
|
|
249
|
+
if (!condition) {
|
|
250
|
+
throw new EmptyError();
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
throw new NotFoundError("No value was found in the AsyncIterator that matched the provided condition.");
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return result;
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Find the maximum value in the provided {@link AsyncIterator}.
|
|
261
|
+
* @param iterator The values to find the maximum of.
|
|
262
|
+
*/
|
|
263
|
+
static findMaximum(iterator) {
|
|
264
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterable");
|
|
265
|
+
return PromiseAsyncResult.create(async () => {
|
|
266
|
+
if (isJavascriptAsyncIterator(iterator)) {
|
|
267
|
+
iterator = AsyncIterator.create(iterator);
|
|
268
|
+
}
|
|
269
|
+
let result = await iterator.first()
|
|
270
|
+
.convertError(EmptyError, () => new EmptyError("Can't find the maximum of an empty Iterator."));
|
|
271
|
+
while (await iterator.next()) {
|
|
272
|
+
const currentValue = iterator.getCurrent();
|
|
273
|
+
if (result.lessThan(currentValue)) {
|
|
274
|
+
result = currentValue;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return result;
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and only
|
|
282
|
+
* returns a maximum number of values from this {@link AsyncIterator}.
|
|
283
|
+
* @param maximumToTake The maximum number of values to take from this {@link AsyncIterator}.
|
|
284
|
+
*/
|
|
285
|
+
take(maximumToTake) {
|
|
286
|
+
return AsyncIterator.take(this, maximumToTake);
|
|
287
|
+
}
|
|
288
|
+
static take(iterator, maximumToTake) {
|
|
289
|
+
return TakeAsyncIterator.create(iterator, maximumToTake);
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and will skip the initial
|
|
293
|
+
* provided number of values before beginning to return values.
|
|
294
|
+
* @param maximumToSkip The maximum number of values to skip from this {@link AsyncIterator}.
|
|
295
|
+
*/
|
|
296
|
+
skip(maximumToSkip) {
|
|
297
|
+
return AsyncIterator.skip(this, maximumToSkip);
|
|
298
|
+
}
|
|
299
|
+
static skip(iterator, maximumToSkip) {
|
|
300
|
+
return SkipAsyncIterator.create(iterator, maximumToSkip);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=asyncIterator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncIterator.js","sourceRoot":"","sources":["../../sources/asyncIterator.ts"],"names":[],"mappings":"AAAA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,UAAU,CAAC,8CAA8C,CAAC,CAAC,CAAC;YACpG,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,EAC5B,CAAC;gBACG,MAAM,YAAY,GAAM,QAAQ,CAAC,UAAU,EAAE,CAAC;gBAC9C,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EACjC,CAAC;oBACG,MAAM,GAAG,YAAY,CAAC;gBAC1B,CAAC;YACL,CAAC;YAED,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAqB;QAE7B,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,IAAI,CAAI,QAA0B,EAAE,aAAqB;QAEnE,OAAO,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAqB;QAE7B,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,IAAI,CAAI,QAA0B,EAAE,aAAqB;QAEnE,OAAO,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
2
|
+
import { JavascriptAsyncIterator, JavascriptIteratorResult } from "./javascript.js";
|
|
3
|
+
/**
|
|
4
|
+
* A type that adapts an {@link AsyncIterator} to match a {@link JavascriptAsyncIterator}.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AsyncIteratorToJavascriptAsyncIteratorAdapter<T> implements JavascriptAsyncIterator<T> {
|
|
7
|
+
private readonly iterator;
|
|
8
|
+
private hasStarted;
|
|
9
|
+
private constructor();
|
|
10
|
+
static create<T>(iterator: AsyncIterator<T>): AsyncIteratorToJavascriptAsyncIteratorAdapter<T>;
|
|
11
|
+
next(): Promise<JavascriptIteratorResult<T>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts","sourceRoot":"","sources":["../../sources/asyncIteratorToJavascriptAsyncIteratorAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGpF;;GAEG;AACH,qBAAa,6CAA6C,CAAC,CAAC,CAAE,YAAW,uBAAuB,CAAC,CAAC,CAAC;IAE/F,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,UAAU,CAAU;IAE5B,OAAO,eAMN;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,6CAA6C,CAAC,CAAC,CAAC,CAGpG;IAEY,IAAI,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAqBxD;CACJ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
/**
|
|
3
|
+
* A type that adapts an {@link AsyncIterator} to match a {@link JavascriptAsyncIterator}.
|
|
4
|
+
*/
|
|
5
|
+
export class AsyncIteratorToJavascriptAsyncIteratorAdapter {
|
|
6
|
+
iterator;
|
|
7
|
+
hasStarted;
|
|
8
|
+
constructor(iterator) {
|
|
9
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
10
|
+
this.iterator = iterator;
|
|
11
|
+
this.hasStarted = false;
|
|
12
|
+
}
|
|
13
|
+
static create(iterator) {
|
|
14
|
+
return new AsyncIteratorToJavascriptAsyncIteratorAdapter(iterator);
|
|
15
|
+
}
|
|
16
|
+
async next() {
|
|
17
|
+
if (!this.hasStarted) {
|
|
18
|
+
this.hasStarted = true;
|
|
19
|
+
await this.iterator.start();
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
await this.iterator.next();
|
|
23
|
+
}
|
|
24
|
+
const result = {
|
|
25
|
+
done: !this.iterator.hasCurrent(),
|
|
26
|
+
value: undefined,
|
|
27
|
+
};
|
|
28
|
+
if (!result.done) {
|
|
29
|
+
result.value = this.iterator.getCurrent();
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=asyncIteratorToJavascriptAsyncIteratorAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncIteratorToJavascriptAsyncIteratorAdapter.js","sourceRoot":"","sources":["../../sources/asyncIteratorToJavascriptAsyncIteratorAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAO,6CAA6C;IAErC,QAAQ,CAAmB;IACpC,UAAU,CAAU;IAE5B,YAAoB,QAA0B;QAE1C,YAAY,CAAC,4BAA4B,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAEhE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,MAAM,CAAI,QAA0B;QAE9C,OAAO,IAAI,6CAA6C,CAAI,QAAQ,CAAC,CAAC;IAC1E,CAAC;IAEM,KAAK,CAAC,IAAI;QAEb,IAAI,CAAC,IAAI,CAAC,UAAU,EACpB,CAAC;YACG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAChC,CAAC;aAED,CAAC;YACG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;QAED,MAAM,MAAM,GAAgC;YACxC,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;YACjC,KAAK,EAAE,SAAU;SACpB,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,EAChB,CAAC;YACG,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QAC9C,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|