@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,163 @@
|
|
|
1
|
+
import { Comparable } from "./comparable.js";
|
|
2
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* A type that can be used to iterate over a collection.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class Iterator<T> implements JavascriptIterable<T> {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new {@link Iterator} that contains the provided values.
|
|
11
|
+
* @param values The values that the new {@link Iterator} will iterate over.
|
|
12
|
+
*/
|
|
13
|
+
static create<T>(values: JavascriptIterator<T> | JavascriptIterable<T>): Iterator<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Move to the next value in the collection. Return whether this {@link Iterator} points to a
|
|
16
|
+
* value after the move.
|
|
17
|
+
*/
|
|
18
|
+
abstract next(): SyncResult<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Get whether this {@link Iterator} has started iterating over the values in the collection.
|
|
21
|
+
*/
|
|
22
|
+
abstract hasStarted(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Get whether this {@link Iterator} currently points at a value in the collection.
|
|
25
|
+
*/
|
|
26
|
+
abstract hasCurrent(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Get the value that this {@link Iterator} points to.
|
|
29
|
+
*/
|
|
30
|
+
abstract getCurrent(): T;
|
|
31
|
+
/**
|
|
32
|
+
* Move to the first value if this {@link Iterator} hasn't started yet.
|
|
33
|
+
* @returns This object for method chaining.
|
|
34
|
+
*/
|
|
35
|
+
start(): SyncResult<this>;
|
|
36
|
+
/**
|
|
37
|
+
* Move the provided {@link Iterator} to its first value if it hasn't started yet.
|
|
38
|
+
*/
|
|
39
|
+
static start<T, TIterator extends Iterator<T>>(iterator: TIterator): SyncResult<TIterator>;
|
|
40
|
+
/**
|
|
41
|
+
* Get the current value from this {@link Iterator} and advance this {@link Iterator} to the
|
|
42
|
+
* next value.
|
|
43
|
+
*/
|
|
44
|
+
takeCurrent(): SyncResult<T>;
|
|
45
|
+
static takeCurrent<T>(iterator: Iterator<T>): SyncResult<T>;
|
|
46
|
+
[Symbol.iterator](): JavascriptIterator<T>;
|
|
47
|
+
/**
|
|
48
|
+
* Convert the provided {@link Iterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
49
|
+
* @param iterator The {@link Iterator} to convert.
|
|
50
|
+
*/
|
|
51
|
+
static [Symbol.iterator]<T>(iterator: Iterator<T>): JavascriptIterator<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Get whether this {@link Iterator} contains any values.
|
|
54
|
+
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
55
|
+
* started yet.
|
|
56
|
+
*/
|
|
57
|
+
any(): SyncResult<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Get whether this {@link Iterator} contains any values.
|
|
60
|
+
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
61
|
+
* started yet.
|
|
62
|
+
*/
|
|
63
|
+
static any<T>(iterator: Iterator<T>): SyncResult<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Get the number of values in this {@link Iterator}.
|
|
66
|
+
* Note: This will consume all of the values in this {@link Iterator}.
|
|
67
|
+
*/
|
|
68
|
+
getCount(): SyncResult<number>;
|
|
69
|
+
/**
|
|
70
|
+
* Get the number of values in the provided {@link Iterator}.
|
|
71
|
+
* Note: This will consume all of the values in the provided {@link Iterator}.
|
|
72
|
+
*/
|
|
73
|
+
static getCount<T>(iterator: Iterator<T>): SyncResult<number>;
|
|
74
|
+
/**
|
|
75
|
+
* Get all of the remaining values in this {@link Iterator} in a {@link T} {@link Array}.
|
|
76
|
+
*/
|
|
77
|
+
toArray(): SyncResult<T[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Get all of the remaining values in the provided {@link Iterator} in a {@link T}
|
|
80
|
+
* {@link Array}.
|
|
81
|
+
*/
|
|
82
|
+
static toArray<T>(iterator: Iterator<T>): SyncResult<T[]>;
|
|
83
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
84
|
+
static concatenate<T>(iterator: Iterator<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
85
|
+
/**
|
|
86
|
+
* Get an {@link Iterator} that will only return values that match the provided condition.
|
|
87
|
+
* @param condition The condition to run against each of the values in this {@link Iterator}.
|
|
88
|
+
*/
|
|
89
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator<T>;
|
|
90
|
+
static where<T>(iterator: Iterator<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator<T>;
|
|
91
|
+
/**
|
|
92
|
+
* Get a {@link MapIterator} that will map all {@link T} values from this {@link Iterator} to
|
|
93
|
+
* {@link TOutput} values.
|
|
94
|
+
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
95
|
+
*/
|
|
96
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
97
|
+
static map<T, TOutput>(iterator: Iterator<T>, mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
98
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
99
|
+
static flatMap<T, TOutput>(iterator: Iterator<T>, mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
102
|
+
* instances of {@link U} based on the provided type check {@link Function}.
|
|
103
|
+
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
104
|
+
* {@link U}.
|
|
105
|
+
*/
|
|
106
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
107
|
+
static whereInstanceOf<T, U extends T>(iterator: Iterator<T>, typeCheck: (value: T) => value is U): Iterator<U>;
|
|
108
|
+
/**
|
|
109
|
+
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
110
|
+
* instances of the provided {@link Type}.
|
|
111
|
+
* @param type The type of values to return from the new {@link Iterator}.
|
|
112
|
+
*/
|
|
113
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
114
|
+
static whereInstanceOfType<T, U extends T>(iterator: Iterator<T>, type: Type<U>): Iterator<U>;
|
|
115
|
+
/**
|
|
116
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
117
|
+
* this {@link Iterator}. If this condition function is provided, then this function will return
|
|
118
|
+
* the first value that matches the provided condition.
|
|
119
|
+
* @param condition The condition that the returned value must satisfy.
|
|
120
|
+
*/
|
|
121
|
+
first(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
122
|
+
/**
|
|
123
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
124
|
+
* the {@link Iterator}. If this condition function is provided, then this function will return
|
|
125
|
+
* the first value that matches the provided condition.
|
|
126
|
+
* @param iterator The {@link Iterator} to get the first value from.
|
|
127
|
+
*/
|
|
128
|
+
static first<T>(iterator: Iterator<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
129
|
+
/**
|
|
130
|
+
* If the condition function is undefined, then this function will return the last value in this
|
|
131
|
+
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
132
|
+
* last value that matches the provided condition.
|
|
133
|
+
* @param condition The condition that the returned value must satisfy.
|
|
134
|
+
*/
|
|
135
|
+
last(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
136
|
+
/**
|
|
137
|
+
* If the condition function is undefined, then this function will return the last value in the
|
|
138
|
+
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
139
|
+
* last value that matches the provided condition.
|
|
140
|
+
* @param iterator The {@link Iterator} to get the last value from.
|
|
141
|
+
*/
|
|
142
|
+
static last<T>(iterator: Iterator<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
143
|
+
/**
|
|
144
|
+
* Find the maximum value in the provided {@link Iterator}.
|
|
145
|
+
* @param iterator The values to find the maximum of.
|
|
146
|
+
*/
|
|
147
|
+
static findMaximum<T extends Comparable<T>>(iterator: JavascriptIterator<T> | Iterator<T>): SyncResult<T>;
|
|
148
|
+
/**
|
|
149
|
+
* Get a new {@link Iterator} that wraps around this {@link Iterator} and only
|
|
150
|
+
* returns a maximum number of values from this {@link Iterator}.
|
|
151
|
+
* @param maximumToTake The maximum number of values to take from this {@link Iterator}.
|
|
152
|
+
*/
|
|
153
|
+
take(maximumToTake: number): Iterator<T>;
|
|
154
|
+
static take<T>(iterator: Iterator<T>, maximumToTake: number): Iterator<T>;
|
|
155
|
+
/**
|
|
156
|
+
* Get a new {@link Iterator} that wraps around this {@link Iterator} and will skip the initial
|
|
157
|
+
* provided number of values before beginning to return values.
|
|
158
|
+
* @param maximumToSkip The maximum number of values to skip from this {@link Iterator}.
|
|
159
|
+
*/
|
|
160
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
161
|
+
static skip<T>(iterator: Iterator<T>, maximumToSkip: number): Iterator<T>;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=iterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterator.d.ts","sourceRoot":"","sources":["../../sources/iterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAMzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAA2D,IAAI,EAAE,MAAM,YAAY,CAAC;AAG3F;;GAEG;AACH,8BAAsB,QAAQ,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAE9D;;;OAGG;IACH,OAAc,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAK1F;IAED;;;OAGG;IACH,SAAgB,IAAI,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;IAE5C;;OAEG;IACH,SAAgB,UAAU,IAAI,OAAO,CAAC;IAEtC;;OAEG;IACH,SAAgB,UAAU,IAAI,OAAO,CAAC;IAEtC;;OAEG;IACH,SAAgB,UAAU,IAAI,CAAC,CAAC;IAEhC;;;OAGG;IACI,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAG/B;IAED;;OAEG;IACH,OAAc,KAAK,CAAC,CAAC,EAAE,SAAS,SAAS,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAYhG;IAED;;;OAGG;IACI,WAAW,IAAI,UAAU,CAAC,CAAC,CAAC,CAGlC;IAED,OAAc,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,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SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAyB/G;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAG9C;IAED,OAAc,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAG/E;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAG9C;IAED,OAAc,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAG/E;CACJ"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { ConcatenateIterator } from "./concatenateIterator.js";
|
|
2
|
+
import { EmptyError } from "./emptyError.js";
|
|
3
|
+
import { FlatMapIterator } from "./flatMapIterator.js";
|
|
4
|
+
import { IteratorToJavascriptIteratorAdapter } from "./iteratorToJavascriptIteratorAdapter.js";
|
|
5
|
+
import { JavascriptIteratorToIteratorAdapter } from "./javascriptIteratorToIteratorAdapter.js";
|
|
6
|
+
import { MapIterator } from "./mapIterator.js";
|
|
7
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
8
|
+
import { PreCondition } from "./preCondition.js";
|
|
9
|
+
import { SkipIterator } from "./skipIterator.js";
|
|
10
|
+
import { SyncResult } from "./syncResult.js";
|
|
11
|
+
import { TakeIterator } from "./takeIterator.js";
|
|
12
|
+
import { instanceOfType, isJavascriptIterator, isUndefinedOrNull } from "./types.js";
|
|
13
|
+
import { WhereIterator } from "./whereIterator.js";
|
|
14
|
+
/**
|
|
15
|
+
* A type that can be used to iterate over a collection.
|
|
16
|
+
*/
|
|
17
|
+
export class Iterator {
|
|
18
|
+
/**
|
|
19
|
+
* Create a new {@link Iterator} that contains the provided values.
|
|
20
|
+
* @param values The values that the new {@link Iterator} will iterate over.
|
|
21
|
+
*/
|
|
22
|
+
static create(values) {
|
|
23
|
+
PreCondition.assertNotUndefinedAndNotNull(values, "values");
|
|
24
|
+
return JavascriptIteratorToIteratorAdapter.create(values);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Move to the first value if this {@link Iterator} hasn't started yet.
|
|
28
|
+
* @returns This object for method chaining.
|
|
29
|
+
*/
|
|
30
|
+
start() {
|
|
31
|
+
return Iterator.start(this);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Move the provided {@link Iterator} to its first value if it hasn't started yet.
|
|
35
|
+
*/
|
|
36
|
+
static start(iterator) {
|
|
37
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
38
|
+
return SyncResult.create(() => {
|
|
39
|
+
if (!iterator.hasStarted()) {
|
|
40
|
+
iterator.next().await();
|
|
41
|
+
}
|
|
42
|
+
return iterator;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get the current value from this {@link Iterator} and advance this {@link Iterator} to the
|
|
47
|
+
* next value.
|
|
48
|
+
*/
|
|
49
|
+
takeCurrent() {
|
|
50
|
+
return Iterator.takeCurrent(this);
|
|
51
|
+
}
|
|
52
|
+
static takeCurrent(iterator) {
|
|
53
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
54
|
+
PreCondition.assertTrue(iterator.hasCurrent(), "iterator.hasCurrent()");
|
|
55
|
+
return SyncResult.create(() => {
|
|
56
|
+
const result = iterator.getCurrent();
|
|
57
|
+
iterator.next().await();
|
|
58
|
+
return result;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
[Symbol.iterator]() {
|
|
62
|
+
return Iterator[Symbol.iterator](this);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Convert the provided {@link Iterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
66
|
+
* @param iterator The {@link Iterator} to convert.
|
|
67
|
+
*/
|
|
68
|
+
static [Symbol.iterator](iterator) {
|
|
69
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
70
|
+
return IteratorToJavascriptIteratorAdapter.create(iterator);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get whether this {@link Iterator} contains any values.
|
|
74
|
+
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
75
|
+
* started yet.
|
|
76
|
+
*/
|
|
77
|
+
any() {
|
|
78
|
+
return Iterator.any(this);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get whether this {@link Iterator} contains any values.
|
|
82
|
+
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
83
|
+
* started yet.
|
|
84
|
+
*/
|
|
85
|
+
static any(iterator) {
|
|
86
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
87
|
+
return SyncResult.create(() => {
|
|
88
|
+
iterator.start().await();
|
|
89
|
+
return iterator.hasCurrent();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get the number of values in this {@link Iterator}.
|
|
94
|
+
* Note: This will consume all of the values in this {@link Iterator}.
|
|
95
|
+
*/
|
|
96
|
+
getCount() {
|
|
97
|
+
return Iterator.getCount(this);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Get the number of values in the provided {@link Iterator}.
|
|
101
|
+
* Note: This will consume all of the values in the provided {@link Iterator}.
|
|
102
|
+
*/
|
|
103
|
+
static getCount(iterator) {
|
|
104
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
105
|
+
return SyncResult.create(() => {
|
|
106
|
+
let result = 0;
|
|
107
|
+
if (iterator.hasCurrent()) {
|
|
108
|
+
result++;
|
|
109
|
+
}
|
|
110
|
+
while (iterator.next().await()) {
|
|
111
|
+
result++;
|
|
112
|
+
}
|
|
113
|
+
return result;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Get all of the remaining values in this {@link Iterator} in a {@link T} {@link Array}.
|
|
118
|
+
*/
|
|
119
|
+
toArray() {
|
|
120
|
+
return Iterator.toArray(this);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get all of the remaining values in the provided {@link Iterator} in a {@link T}
|
|
124
|
+
* {@link Array}.
|
|
125
|
+
*/
|
|
126
|
+
static toArray(iterator) {
|
|
127
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
128
|
+
return SyncResult.create(() => {
|
|
129
|
+
const result = [];
|
|
130
|
+
iterator.start().await();
|
|
131
|
+
while (iterator.hasCurrent()) {
|
|
132
|
+
result.push(iterator.takeCurrent().await());
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
concatenate(...toConcatenate) {
|
|
138
|
+
return Iterator.concatenate(this, ...toConcatenate);
|
|
139
|
+
}
|
|
140
|
+
static concatenate(iterator, ...toConcatenate) {
|
|
141
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
142
|
+
PreCondition.assertNotUndefinedAndNotNull(toConcatenate, "toConcatenate");
|
|
143
|
+
return ConcatenateIterator.create(iterator, ...toConcatenate);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get an {@link Iterator} that will only return values that match the provided condition.
|
|
147
|
+
* @param condition The condition to run against each of the values in this {@link Iterator}.
|
|
148
|
+
*/
|
|
149
|
+
where(condition) {
|
|
150
|
+
return Iterator.where(this, condition);
|
|
151
|
+
}
|
|
152
|
+
static where(iterator, condition) {
|
|
153
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
154
|
+
PreCondition.assertNotUndefinedAndNotNull(condition, "condition");
|
|
155
|
+
return WhereIterator.create(iterator, condition);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Get a {@link MapIterator} that will map all {@link T} values from this {@link Iterator} to
|
|
159
|
+
* {@link TOutput} values.
|
|
160
|
+
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
161
|
+
*/
|
|
162
|
+
map(mapping) {
|
|
163
|
+
return Iterator.map(this, mapping);
|
|
164
|
+
}
|
|
165
|
+
static map(iterator, mapping) {
|
|
166
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
167
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
168
|
+
return MapIterator.create(iterator, mapping);
|
|
169
|
+
}
|
|
170
|
+
flatMap(mapping) {
|
|
171
|
+
return Iterator.flatMap(this, mapping);
|
|
172
|
+
}
|
|
173
|
+
static flatMap(iterator, mapping) {
|
|
174
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
175
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
176
|
+
return FlatMapIterator.create(iterator, mapping);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
180
|
+
* instances of {@link U} based on the provided type check {@link Function}.
|
|
181
|
+
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
182
|
+
* {@link U}.
|
|
183
|
+
*/
|
|
184
|
+
whereInstanceOf(typeCheck) {
|
|
185
|
+
return Iterator.whereInstanceOf(this, typeCheck);
|
|
186
|
+
}
|
|
187
|
+
static whereInstanceOf(iterator, typeCheck) {
|
|
188
|
+
PreCondition.assertNotUndefinedAndNotNull(typeCheck, "typeCheck");
|
|
189
|
+
return iterator.where(typeCheck)
|
|
190
|
+
.map((value) => value);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
194
|
+
* instances of the provided {@link Type}.
|
|
195
|
+
* @param type The type of values to return from the new {@link Iterator}.
|
|
196
|
+
*/
|
|
197
|
+
whereInstanceOfType(type) {
|
|
198
|
+
return Iterator.whereInstanceOfType(this, type);
|
|
199
|
+
}
|
|
200
|
+
static whereInstanceOfType(iterator, type) {
|
|
201
|
+
PreCondition.assertNotUndefinedAndNotNull(type, "type");
|
|
202
|
+
return iterator.whereInstanceOf((value) => instanceOfType(value, type));
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
206
|
+
* this {@link Iterator}. If this condition function is provided, then this function will return
|
|
207
|
+
* the first value that matches the provided condition.
|
|
208
|
+
* @param condition The condition that the returned value must satisfy.
|
|
209
|
+
*/
|
|
210
|
+
first(condition) {
|
|
211
|
+
return Iterator.first(this, condition);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* If the condition function is undefined, then this function will return the first value in
|
|
215
|
+
* the {@link Iterator}. If this condition function is provided, then this function will return
|
|
216
|
+
* the first value that matches the provided condition.
|
|
217
|
+
* @param iterator The {@link Iterator} to get the first value from.
|
|
218
|
+
*/
|
|
219
|
+
static first(iterator, condition) {
|
|
220
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
221
|
+
return SyncResult.create(() => {
|
|
222
|
+
iterator.start().await();
|
|
223
|
+
if (isUndefinedOrNull(condition)) {
|
|
224
|
+
if (!iterator.hasCurrent()) {
|
|
225
|
+
throw new EmptyError();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
while (iterator.hasCurrent() && !condition(iterator.getCurrent())) {
|
|
230
|
+
const conditionResult = condition(iterator.getCurrent());
|
|
231
|
+
const conditionBoolean = conditionResult instanceof SyncResult ? conditionResult.await() : conditionResult;
|
|
232
|
+
if (conditionBoolean) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
iterator.next().await();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (!iterator.hasCurrent()) {
|
|
240
|
+
throw new NotFoundError("No value was found in the Iterator that matched the provided condition.");
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return iterator.getCurrent();
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* If the condition function is undefined, then this function will return the last value in this
|
|
248
|
+
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
249
|
+
* last value that matches the provided condition.
|
|
250
|
+
* @param condition The condition that the returned value must satisfy.
|
|
251
|
+
*/
|
|
252
|
+
last(condition) {
|
|
253
|
+
return Iterator.last(this, condition);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* If the condition function is undefined, then this function will return the last value in the
|
|
257
|
+
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
258
|
+
* last value that matches the provided condition.
|
|
259
|
+
* @param iterator The {@link Iterator} to get the last value from.
|
|
260
|
+
*/
|
|
261
|
+
static last(iterator, condition) {
|
|
262
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterator");
|
|
263
|
+
return SyncResult.create(() => {
|
|
264
|
+
iterator.start().await();
|
|
265
|
+
if (!iterator.hasCurrent()) {
|
|
266
|
+
throw new EmptyError();
|
|
267
|
+
}
|
|
268
|
+
let result;
|
|
269
|
+
let found = false;
|
|
270
|
+
do {
|
|
271
|
+
if (!condition || condition(iterator.getCurrent())) {
|
|
272
|
+
result = iterator.getCurrent();
|
|
273
|
+
found = true;
|
|
274
|
+
}
|
|
275
|
+
} while (iterator.next().await());
|
|
276
|
+
if (!found) {
|
|
277
|
+
if (!condition) {
|
|
278
|
+
throw new EmptyError();
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
throw new NotFoundError("No value was found in the Iterator that matched the provided condition.");
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return result;
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Find the maximum value in the provided {@link Iterator}.
|
|
289
|
+
* @param iterator The values to find the maximum of.
|
|
290
|
+
*/
|
|
291
|
+
static findMaximum(iterator) {
|
|
292
|
+
PreCondition.assertNotUndefinedAndNotNull(iterator, "iterable");
|
|
293
|
+
return SyncResult.create(() => {
|
|
294
|
+
if (isJavascriptIterator(iterator)) {
|
|
295
|
+
iterator = Iterator.create(iterator);
|
|
296
|
+
}
|
|
297
|
+
let result = iterator.first()
|
|
298
|
+
.convertError(EmptyError, () => new EmptyError("Can't find the maximum of an empty Iterator."))
|
|
299
|
+
.await();
|
|
300
|
+
while (iterator.next().await()) {
|
|
301
|
+
const currentValue = iterator.getCurrent();
|
|
302
|
+
if (result.lessThan(currentValue)) {
|
|
303
|
+
result = currentValue;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return result;
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Get a new {@link Iterator} that wraps around this {@link Iterator} and only
|
|
311
|
+
* returns a maximum number of values from this {@link Iterator}.
|
|
312
|
+
* @param maximumToTake The maximum number of values to take from this {@link Iterator}.
|
|
313
|
+
*/
|
|
314
|
+
take(maximumToTake) {
|
|
315
|
+
return Iterator.take(this, maximumToTake);
|
|
316
|
+
}
|
|
317
|
+
static take(iterator, maximumToTake) {
|
|
318
|
+
return TakeIterator.create(iterator, maximumToTake);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Get a new {@link Iterator} that wraps around this {@link Iterator} and will skip the initial
|
|
322
|
+
* provided number of values before beginning to return values.
|
|
323
|
+
* @param maximumToSkip The maximum number of values to skip from this {@link Iterator}.
|
|
324
|
+
*/
|
|
325
|
+
skip(maximumToSkip) {
|
|
326
|
+
return Iterator.skip(this, maximumToSkip);
|
|
327
|
+
}
|
|
328
|
+
static skip(iterator, maximumToSkip) {
|
|
329
|
+
return SkipIterator.create(iterator, maximumToSkip);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+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AAC,KAAK,EAAE;iBAC3B,YAAY,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,UAAU,CAAC,8CAA8C,CAAC,CAAC;iBAC9F,KAAK,EAAE,CAAC;YACb,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAC9B,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,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,IAAI,CAAI,QAAqB,EAAE,aAAqB;QAE9D,OAAO,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,IAAI,CAAI,QAAqB,EAAE,aAAqB;QAE9D,OAAO,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Iterator } from "./iterator.js";
|
|
2
|
+
import { JavascriptIterator, JavascriptIteratorResult } from "./javascript.js";
|
|
3
|
+
/**
|
|
4
|
+
* A JavaScript/TypeScript object that is used to iterate over a collection of values.
|
|
5
|
+
*/
|
|
6
|
+
export declare class IteratorToJavascriptIteratorAdapter<T> implements JavascriptIterator<T> {
|
|
7
|
+
private readonly iterator;
|
|
8
|
+
private hasStarted;
|
|
9
|
+
private constructor();
|
|
10
|
+
static create<T>(iterator: Iterator<T>): IteratorToJavascriptIteratorAdapter<T>;
|
|
11
|
+
next(): JavascriptIteratorResult<T>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=iteratorToJavascriptIteratorAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iteratorToJavascriptIteratorAdapter.d.ts","sourceRoot":"","sources":["../../sources/iteratorToJavascriptIteratorAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG/E;;GAEG;AACH,qBAAa,mCAAmC,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAEhF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,UAAU,CAAU;IAE5B,OAAO,eAMN;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,mCAAmC,CAAC,CAAC,CAAC,CAGrF;IAEM,IAAI,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAqBzC;CACJ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
/**
|
|
3
|
+
* A JavaScript/TypeScript object that is used to iterate over a collection of values.
|
|
4
|
+
*/
|
|
5
|
+
export class IteratorToJavascriptIteratorAdapter {
|
|
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 IteratorToJavascriptIteratorAdapter(iterator);
|
|
15
|
+
}
|
|
16
|
+
next() {
|
|
17
|
+
if (!this.hasStarted) {
|
|
18
|
+
this.hasStarted = true;
|
|
19
|
+
this.iterator.start();
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
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=iteratorToJavascriptIteratorAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iteratorToJavascriptIteratorAdapter.js","sourceRoot":"","sources":["../../sources/iteratorToJavascriptIteratorAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAO,mCAAmC;IAE3B,QAAQ,CAAc;IAC/B,UAAU,CAAU;IAE5B,YAAoB,QAAqB;QAErC,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,QAAqB;QAEzC,OAAO,IAAI,mCAAmC,CAAI,QAAQ,CAAC,CAAC;IAChE,CAAC;IAEM,IAAI;QAEP,IAAI,CAAC,IAAI,CAAC,UAAU,EACpB,CAAC;YACG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;aAED,CAAC;YACG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACzB,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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The built-in {@link Array} type.
|
|
3
|
+
*
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
|
|
5
|
+
*/
|
|
6
|
+
export type JavascriptArray<T> = Array<T>;
|
|
7
|
+
/**
|
|
8
|
+
* The built-in {@link Iterator} type.
|
|
9
|
+
*
|
|
10
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#iterators
|
|
11
|
+
*/
|
|
12
|
+
export type JavascriptIterator<T> = Iterator<T>;
|
|
13
|
+
/**
|
|
14
|
+
* The built-in {@link IteratorResult} type.
|
|
15
|
+
*/
|
|
16
|
+
export type JavascriptIteratorResult<T> = IteratorResult<T, T>;
|
|
17
|
+
/**
|
|
18
|
+
* The built-in {@link Iterable} type.
|
|
19
|
+
*
|
|
20
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#iterables
|
|
21
|
+
*/
|
|
22
|
+
export type JavascriptIterable<T> = Iterable<T>;
|
|
23
|
+
/**
|
|
24
|
+
* The built-in {@link Map} type.
|
|
25
|
+
*
|
|
26
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
|
|
27
|
+
*/
|
|
28
|
+
export type JavascriptMap<TKey, TValue> = Map<TKey, TValue>;
|
|
29
|
+
/**
|
|
30
|
+
* The built-in {@link Map} type.
|
|
31
|
+
*
|
|
32
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
|
|
33
|
+
*/
|
|
34
|
+
export declare const JavascriptMap: MapConstructor;
|
|
35
|
+
/**
|
|
36
|
+
* The built-in {@link AsyncIterator} type.
|
|
37
|
+
*
|
|
38
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncIterator
|
|
39
|
+
*/
|
|
40
|
+
export type JavascriptAsyncIterator<T> = AsyncIterator<T>;
|
|
41
|
+
export interface JavascriptAsyncIterable<T> {
|
|
42
|
+
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The built-in {@link Set} type.
|
|
46
|
+
*
|
|
47
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
48
|
+
*/
|
|
49
|
+
export type JavascriptSet<T> = Set<T>;
|
|
50
|
+
export declare const JavascriptSet: SetConstructor;
|
|
51
|
+
//# sourceMappingURL=javascript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../sources/javascript.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,EAAC,MAAM,IAAI,GAAG,CAAC,IAAI,EAAC,MAAM,CAAC,CAAC;AAC1D;;;;GAIG;AACH,eAAO,MAAM,aAAa,gBAAM,CAAC;AAEjC;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,WAAW,uBAAuB,CAAC,CAAC;IAEtC,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAC;CACxD;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtC,eAAO,MAAM,aAAa,gBAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript.js","sourceRoot":"","sources":["../../sources/javascript.ts"],"names":[],"mappings":"AAgCA;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AAqBjC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC"}
|