@everyonesoftware/common 12.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-CzPcNOCD.d.cts +0 -845
- package/outputs/characterWriteStream-CzPcNOCD.d.ts +0 -845
- package/outputs/chunk-FZ3WRQ7B.js +0 -1199
- package/outputs/chunk-FZ3WRQ7B.js.map +0 -1
- package/outputs/chunk-MHMLVX2O.js +0 -9590
- package/outputs/chunk-MHMLVX2O.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9790
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3532
- package/outputs/sourceIndex.d.ts +0 -3532
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7046
- 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 -19372
- 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 -10017
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { Iterable } from "./iterable.js";
|
|
2
|
+
export function instanceOf(value, typeOrTypeCheck, typeCheck) {
|
|
3
|
+
let result;
|
|
4
|
+
if (!isUndefinedOrNull(typeCheck)) {
|
|
5
|
+
result = typeCheck(value);
|
|
6
|
+
}
|
|
7
|
+
else if (value instanceof typeOrTypeCheck) {
|
|
8
|
+
result = true;
|
|
9
|
+
}
|
|
10
|
+
else if (isFunctionWithParameterCount(typeOrTypeCheck, 1)) {
|
|
11
|
+
typeCheck = typeOrTypeCheck;
|
|
12
|
+
result = typeCheck(value);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
result = false;
|
|
16
|
+
}
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get whether the provided value is an instance of the provided {@link Type}. This will return
|
|
21
|
+
* false if value only implements the provided {@link Type} but doesn't extend it.
|
|
22
|
+
* @param value The value to check.
|
|
23
|
+
* @param type The {@link Type} to see if value is an instance of.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfType(value, type) {
|
|
26
|
+
return value instanceof type;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* If the provided {@link value} is of type {@link T} (according to the provided {@link typeCheck}),
|
|
30
|
+
* then return the {@link value}. Otherwise return undefined.
|
|
31
|
+
* @param value The value to check.
|
|
32
|
+
* @param typeOrTypeCheck The {@link Type} to look for or type check {@link Function} to determine
|
|
33
|
+
* if the provided value is a {@link T}.
|
|
34
|
+
*/
|
|
35
|
+
export function as(value, typeOrTypeCheck) {
|
|
36
|
+
return instanceOf(value, typeOrTypeCheck) ? value : undefined;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get whether the provided value is undefined.
|
|
40
|
+
* @param value The value to check.
|
|
41
|
+
*/
|
|
42
|
+
export function isUndefined(value) {
|
|
43
|
+
return value === undefined;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get whether the provided value is null.
|
|
47
|
+
* @param value The value to check.
|
|
48
|
+
*/
|
|
49
|
+
export function isNull(value) {
|
|
50
|
+
return value === null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Return the provided value if it is null, otherwise return undefined.
|
|
54
|
+
* @param value The value to check.
|
|
55
|
+
*/
|
|
56
|
+
export function asNull(value) {
|
|
57
|
+
return as(value, isNull);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get whether the provided value is undefined or null.
|
|
61
|
+
* @param value The value to check.
|
|
62
|
+
*/
|
|
63
|
+
export function isUndefinedOrNull(value) {
|
|
64
|
+
return isUndefined(value) || isNull(value);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get whether the provided value is a {@link boolean}.
|
|
68
|
+
* @param value The value to check.
|
|
69
|
+
*/
|
|
70
|
+
export function isBoolean(value) {
|
|
71
|
+
return typeof value === "boolean";
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Return the provided value if it is a boolean, otherwise return undefined.
|
|
75
|
+
* @param value The value to check.
|
|
76
|
+
*/
|
|
77
|
+
export function asBoolean(value) {
|
|
78
|
+
return as(value, isBoolean);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get whether the provided value is a {@link number}.
|
|
82
|
+
* @param value The value to check.
|
|
83
|
+
*/
|
|
84
|
+
export function isNumber(value) {
|
|
85
|
+
return typeof value === "number";
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Return the provided value if it is a number, otherwise return undefined.
|
|
89
|
+
* @param value The value to check.
|
|
90
|
+
*/
|
|
91
|
+
export function asNumber(value) {
|
|
92
|
+
return as(value, isNumber);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get whether the provided value is a {@link string}.
|
|
96
|
+
* @param value The value to check.
|
|
97
|
+
*/
|
|
98
|
+
export function isString(value) {
|
|
99
|
+
return typeof value === "string";
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Return the provided value if it is a string, otherwise return undefined.
|
|
103
|
+
* @param value The value to check.
|
|
104
|
+
*/
|
|
105
|
+
export function asString(value) {
|
|
106
|
+
return as(value, isString);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get whether the provided value is a {@link function}.
|
|
110
|
+
* @param value The value to check.
|
|
111
|
+
*/
|
|
112
|
+
export function isFunction(value) {
|
|
113
|
+
return typeof value === "function";
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Return the provided value if it is a function, otherwise return undefined.
|
|
117
|
+
* @param value The value to check.
|
|
118
|
+
*/
|
|
119
|
+
export function asFunction(value) {
|
|
120
|
+
return as(value, isFunction);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get the number of parameters that the provided {@link Function} takes.
|
|
124
|
+
* @param value The {@link Function} to get the parameter count for.
|
|
125
|
+
*/
|
|
126
|
+
export function getParameterCount(value) {
|
|
127
|
+
return value.length;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Get whether the provided value is a function with the provided parameter count.
|
|
131
|
+
* @param value The value to check.
|
|
132
|
+
* @param parameterCount The number of parameters the function must have.
|
|
133
|
+
*/
|
|
134
|
+
export function isFunctionWithParameterCount(value, parameterCount) {
|
|
135
|
+
return isFunction(value) && getParameterCount(value) === parameterCount;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Return the provided value if it is a function with the provided {@link parameterCount}, otherwise
|
|
139
|
+
* return undefined.
|
|
140
|
+
* @param value The value to check.
|
|
141
|
+
*/
|
|
142
|
+
export function asFunctionWithParameterCount(value, parameterCount) {
|
|
143
|
+
return as(value, (v) => isFunctionWithParameterCount(v, parameterCount));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get whether the provided value is an {@link Array}.
|
|
147
|
+
* @param value The value to check.
|
|
148
|
+
*/
|
|
149
|
+
export function isArray(value) {
|
|
150
|
+
return Array.isArray(value);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Return the provided value if it is an array, otherwise return undefined.
|
|
154
|
+
* @param value The value to check.
|
|
155
|
+
*/
|
|
156
|
+
export function asArray(value) {
|
|
157
|
+
return as(value, isArray);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get whether the provided value is an {@link Object} or is null.
|
|
161
|
+
* @param value The value to check.
|
|
162
|
+
*/
|
|
163
|
+
export function isObjectOrArrayOrNull(value) {
|
|
164
|
+
return typeof value === "object";
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Return the provided value if it is an array, otherwise return undefined.
|
|
168
|
+
* @param value The value to check.
|
|
169
|
+
*/
|
|
170
|
+
export function asObjectOrArrayOrNull(value) {
|
|
171
|
+
return as(value, isObjectOrArrayOrNull);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get whether the provided value is an {@link Object}.
|
|
175
|
+
* @param value The value to check.
|
|
176
|
+
* @returns
|
|
177
|
+
*/
|
|
178
|
+
export function isObject(value) {
|
|
179
|
+
return isObjectOrArrayOrNull(value) && !!value && !isArray(value);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Return the provided value if it is an {@link Object}, otherwise return undefined.
|
|
183
|
+
* @param value The value to check.
|
|
184
|
+
*/
|
|
185
|
+
export function asObject(value) {
|
|
186
|
+
return as(value, isObject);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Get an {@link Iterator} that can be used to iterate through the properties of the provided value.
|
|
190
|
+
* @param value The value to iterate over.
|
|
191
|
+
*/
|
|
192
|
+
export function getPropertyNames(value) {
|
|
193
|
+
return Iterable.create(Object.keys(value));
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Get whether the provided value has a property with the provided key.
|
|
197
|
+
* @param value The value to check.
|
|
198
|
+
* @param propertyKey The key of the property to look for.
|
|
199
|
+
*/
|
|
200
|
+
export function hasProperty(value, propertyKey) {
|
|
201
|
+
return value !== undefined && value !== null && value[propertyKey] !== undefined;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Get whether the value has a function with the provided name.
|
|
205
|
+
* @param value The value to check.
|
|
206
|
+
* @param functionName The name of the function to look for.
|
|
207
|
+
*/
|
|
208
|
+
export function hasFunction(value, functionName, parameterCount) {
|
|
209
|
+
let result = false;
|
|
210
|
+
if (value !== undefined && value !== null) {
|
|
211
|
+
const func = value[functionName];
|
|
212
|
+
if (isUndefinedOrNull(parameterCount)) {
|
|
213
|
+
result = isFunction(func);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
result = isFunctionWithParameterCount(func, parameterCount);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return result;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get whether the provided value is a {@link JavascriptIterator}.
|
|
223
|
+
* @param value The value to check.
|
|
224
|
+
*/
|
|
225
|
+
export function isJavascriptIterator(value) {
|
|
226
|
+
return hasFunction(value, "next");
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Get whether the provided value is a {@link JavascriptIterable}.
|
|
230
|
+
* @param value The value to check.
|
|
231
|
+
*/
|
|
232
|
+
export function isJavascriptIterable(value) {
|
|
233
|
+
return hasFunction(value, Symbol.iterator);
|
|
234
|
+
}
|
|
235
|
+
export function isIterator(value) {
|
|
236
|
+
return isJavascriptIterable(value) &&
|
|
237
|
+
hasFunction(value, "next", 0) &&
|
|
238
|
+
hasFunction(value, "hasCurrent", 0);
|
|
239
|
+
}
|
|
240
|
+
export function isIterable(value) {
|
|
241
|
+
return isJavascriptIterable(value) &&
|
|
242
|
+
hasFunction(value, "iterate", 0);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Get whether the provided value is a {@link JavascriptAsyncIterator}.
|
|
246
|
+
* @param value The value to check.
|
|
247
|
+
*/
|
|
248
|
+
export function isJavascriptAsyncIterator(value) {
|
|
249
|
+
return hasFunction(value, "next");
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Get whether the provided value is a {@link JavascriptAsyncIterable}.
|
|
253
|
+
* @param value The value to check.
|
|
254
|
+
*/
|
|
255
|
+
export function isJavascriptAsyncIterable(value) {
|
|
256
|
+
return hasFunction(value, Symbol.asyncIterator);
|
|
257
|
+
}
|
|
258
|
+
export function isAsyncIterable(value) {
|
|
259
|
+
return isJavascriptAsyncIterable(value) &&
|
|
260
|
+
hasFunction(value, "iterate", 0);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Get the name of the provided {@link Type}.
|
|
264
|
+
* @param type The {@link Type} to get the name of.
|
|
265
|
+
*/
|
|
266
|
+
export function getName(type) {
|
|
267
|
+
return type.name;
|
|
268
|
+
}
|
|
269
|
+
export function isPromiseLike(value) {
|
|
270
|
+
return hasFunction(value, "then", 2);
|
|
271
|
+
}
|
|
272
|
+
export function isPromise(value) {
|
|
273
|
+
return isPromiseLike(value) &&
|
|
274
|
+
hasFunction(value, "catch", 1) &&
|
|
275
|
+
hasFunction(value, "finally", 1);
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../sources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAuBzC,MAAM,UAAU,UAAU,CAAI,KAAc,EAAE,eAA2D,EAAE,SAA0C;IAEjJ,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,EACjC,CAAC;QACG,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;SACI,IAAI,KAAK,YAAY,eAAe,EACzC,CAAC;QACG,MAAM,GAAG,IAAI,CAAC;IAClB,CAAC;SACI,IAAI,4BAA4B,CAAC,eAAe,EAAE,CAAC,CAAC,EACzD,CAAC;QACG,SAAS,GAAG,eAAmD,CAAC;QAChE,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;SAED,CAAC;QACG,MAAM,GAAG,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAI,KAAc,EAAE,IAAa;IAE3D,OAAO,KAAK,YAAY,IAAI,CAAC;AACjC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,EAAE,CAAI,KAAc,EAAE,eAA2D;IAE7F,OAAO,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IAEtC,OAAO,KAAK,KAAK,SAAS,CAAC;AAC/B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,KAAc;IAEjC,OAAO,KAAK,KAAK,IAAI,CAAC;AAC1B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,MAAM,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C,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAI,KAAc;IAEvD,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAI,KAAc;IAEvD,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,KAAc;IAE7C,OAAO,yBAAyB,CAAC,KAAK,CAAC;QACnC,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,IAAmB;IAEvC,OAAO,IAAI,CAAC,IAAI,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,KAAc;IAE3C,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,KAAc;IAEvC,OAAO,aAAa,CAAI,KAAK,CAAC;QAC1B,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9B,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
2
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
3
|
+
import { JavascriptAsyncIterator } from "./javascript.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* An {@link Iterator} that only returns values that match a condition.
|
|
7
|
+
*/
|
|
8
|
+
export declare class WhereAsyncIterator<T> implements AsyncIterator<T> {
|
|
9
|
+
private readonly innerIterator;
|
|
10
|
+
private started;
|
|
11
|
+
private readonly condition;
|
|
12
|
+
private constructor();
|
|
13
|
+
hasStarted(): boolean;
|
|
14
|
+
hasCurrent(): boolean;
|
|
15
|
+
getCurrent(): T;
|
|
16
|
+
static create<T>(innerIterator: AsyncIterator<T>, condition: (value: T) => (boolean | PromiseLike<boolean>)): WhereAsyncIterator<T>;
|
|
17
|
+
next(): PromiseAsyncResult<boolean>;
|
|
18
|
+
start(): PromiseAsyncResult<this>;
|
|
19
|
+
takeCurrent(): PromiseAsyncResult<T>;
|
|
20
|
+
any(): PromiseAsyncResult<boolean>;
|
|
21
|
+
getCount(): PromiseAsyncResult<number>;
|
|
22
|
+
toArray(): PromiseAsyncResult<T[]>;
|
|
23
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
24
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
25
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
26
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
27
|
+
first(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
28
|
+
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
29
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
30
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
31
|
+
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=whereAsyncIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whereAsyncIterator.d.ts","sourceRoot":"","sources":["../../sources/whereAsyncIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE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SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAGzF;IAEM,mBAAmB,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAGvE;IAEM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAG9F;IAEM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAG7F;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGnD;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,CAGnD;IAEM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAG1D;CACJ"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
2
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
3
|
+
import { PreCondition } from "./preCondition.js";
|
|
4
|
+
/**
|
|
5
|
+
* An {@link Iterator} that only returns values that match a condition.
|
|
6
|
+
*/
|
|
7
|
+
export class WhereAsyncIterator {
|
|
8
|
+
innerIterator;
|
|
9
|
+
started;
|
|
10
|
+
condition;
|
|
11
|
+
constructor(innerIterator, condition) {
|
|
12
|
+
PreCondition.assertNotUndefinedAndNotNull(innerIterator, "innerIterator");
|
|
13
|
+
PreCondition.assertNotUndefinedAndNotNull(condition, "condition");
|
|
14
|
+
this.innerIterator = innerIterator;
|
|
15
|
+
this.started = false;
|
|
16
|
+
this.condition = condition;
|
|
17
|
+
}
|
|
18
|
+
hasStarted() {
|
|
19
|
+
return this.started;
|
|
20
|
+
}
|
|
21
|
+
hasCurrent() {
|
|
22
|
+
return this.hasStarted() && this.innerIterator.hasCurrent();
|
|
23
|
+
}
|
|
24
|
+
getCurrent() {
|
|
25
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
26
|
+
return this.innerIterator.getCurrent();
|
|
27
|
+
}
|
|
28
|
+
static create(innerIterator, condition) {
|
|
29
|
+
return new WhereAsyncIterator(innerIterator, condition);
|
|
30
|
+
}
|
|
31
|
+
next() {
|
|
32
|
+
return PromiseAsyncResult.create(async () => {
|
|
33
|
+
if (!this.hasStarted()) {
|
|
34
|
+
await this.innerIterator.start();
|
|
35
|
+
this.started = true;
|
|
36
|
+
while (this.hasCurrent() && !await this.condition(this.getCurrent())) {
|
|
37
|
+
await this.innerIterator.next();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
do {
|
|
42
|
+
await this.innerIterator.next();
|
|
43
|
+
} while (this.hasCurrent() && !await this.condition(this.getCurrent()));
|
|
44
|
+
}
|
|
45
|
+
return this.hasCurrent();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
start() {
|
|
49
|
+
return AsyncIterator.start(this);
|
|
50
|
+
}
|
|
51
|
+
takeCurrent() {
|
|
52
|
+
return AsyncIterator.takeCurrent(this);
|
|
53
|
+
}
|
|
54
|
+
any() {
|
|
55
|
+
return AsyncIterator.any(this);
|
|
56
|
+
}
|
|
57
|
+
getCount() {
|
|
58
|
+
return AsyncIterator.getCount(this);
|
|
59
|
+
}
|
|
60
|
+
toArray() {
|
|
61
|
+
return AsyncIterator.toArray(this);
|
|
62
|
+
}
|
|
63
|
+
where(condition) {
|
|
64
|
+
return AsyncIterator.where(this, condition);
|
|
65
|
+
}
|
|
66
|
+
map(mapping) {
|
|
67
|
+
return AsyncIterator.map(this, mapping);
|
|
68
|
+
}
|
|
69
|
+
whereInstanceOf(typeCheck) {
|
|
70
|
+
return AsyncIterator.whereInstanceOf(this, typeCheck);
|
|
71
|
+
}
|
|
72
|
+
whereInstanceOfType(type) {
|
|
73
|
+
return AsyncIterator.whereInstanceOfType(this, type);
|
|
74
|
+
}
|
|
75
|
+
first(condition) {
|
|
76
|
+
return AsyncIterator.first(this, condition);
|
|
77
|
+
}
|
|
78
|
+
last(condition) {
|
|
79
|
+
return AsyncIterator.last(this, condition);
|
|
80
|
+
}
|
|
81
|
+
take(maximumToTake) {
|
|
82
|
+
return AsyncIterator.take(this, maximumToTake);
|
|
83
|
+
}
|
|
84
|
+
skip(maximumToSkip) {
|
|
85
|
+
return AsyncIterator.skip(this, maximumToSkip);
|
|
86
|
+
}
|
|
87
|
+
[Symbol.asyncIterator]() {
|
|
88
|
+
return AsyncIterator[Symbol.asyncIterator](this);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=whereAsyncIterator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whereAsyncIterator.js","sourceRoot":"","sources":["../../sources/whereAsyncIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAEV,aAAa,CAAmB;IACzC,OAAO,CAAU;IACR,SAAS,CAAiD;IAE3E,YAAoB,aAA+B,EAAE,SAAyD;QAE1G,YAAY,CAAC,4BAA4B,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC1E,YAAY,CAAC,4BAA4B,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAElE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,KAAK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,CAAC;IAEM,CAAC,MAAM,CAAC,aAAa,CAAC;QAEzB,OAAO,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;CACJ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { Iterator } from "./iterator.js";
|
|
4
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
7
|
+
import { Type } from "./types.js";
|
|
8
|
+
/**
|
|
9
|
+
* An {@link Iterable} that only returns values that match a condition.
|
|
10
|
+
*/
|
|
11
|
+
export declare class WhereIterable<T> implements Iterable<T> {
|
|
12
|
+
private readonly innerIterable;
|
|
13
|
+
private readonly condition;
|
|
14
|
+
private constructor();
|
|
15
|
+
static create<T>(innerIterable: Iterable<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): WhereIterable<T>;
|
|
16
|
+
iterate(): Iterator<T>;
|
|
17
|
+
toArray(): SyncResult<T[]>;
|
|
18
|
+
any(): SyncResult<boolean>;
|
|
19
|
+
getCount(): SyncResult<number>;
|
|
20
|
+
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
21
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
22
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
23
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
24
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
25
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
26
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
27
|
+
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
28
|
+
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
29
|
+
[Symbol.iterator](): JavascriptIterator<T>;
|
|
30
|
+
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=whereIterable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whereIterable.d.ts","sourceRoot":"","sources":["../../sources/whereIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAIhD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAc;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgD;IAE1E,OAAO,eAON;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAG9H;IAEM,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,CAG5B;IAEM,OAA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CAAC,CAGnG;IAEM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,CAGlG;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAGhD;IAEM,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAG9E;CACJ"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Iterable } from "./iterable.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
/**
|
|
4
|
+
* An {@link Iterable} that only returns values that match a condition.
|
|
5
|
+
*/
|
|
6
|
+
export class WhereIterable {
|
|
7
|
+
// WhereIterable cannot extend Iterable because their create() functions are different.
|
|
8
|
+
innerIterable;
|
|
9
|
+
condition;
|
|
10
|
+
constructor(innerIterable, condition) {
|
|
11
|
+
PreCondition.assertNotUndefinedAndNotNull(innerIterable, "innerIterable");
|
|
12
|
+
PreCondition.assertNotUndefinedAndNotNull(condition, "condition");
|
|
13
|
+
this.innerIterable = innerIterable;
|
|
14
|
+
this.condition = condition;
|
|
15
|
+
}
|
|
16
|
+
static create(innerIterable, condition) {
|
|
17
|
+
return new WhereIterable(innerIterable, condition);
|
|
18
|
+
}
|
|
19
|
+
iterate() {
|
|
20
|
+
return this.innerIterable.iterate().where(this.condition);
|
|
21
|
+
}
|
|
22
|
+
toArray() {
|
|
23
|
+
return Iterable.toArray(this);
|
|
24
|
+
}
|
|
25
|
+
any() {
|
|
26
|
+
return Iterable.any(this);
|
|
27
|
+
}
|
|
28
|
+
getCount() {
|
|
29
|
+
return Iterable.getCount(this);
|
|
30
|
+
}
|
|
31
|
+
equals(right, equalFunctions) {
|
|
32
|
+
return Iterable.equals(this, right, equalFunctions);
|
|
33
|
+
}
|
|
34
|
+
toString(toStringFunctions) {
|
|
35
|
+
return Iterable.toString(this, toStringFunctions);
|
|
36
|
+
}
|
|
37
|
+
concatenate(...toConcatenate) {
|
|
38
|
+
return Iterable.concatenate(this, ...toConcatenate);
|
|
39
|
+
}
|
|
40
|
+
map(mapping) {
|
|
41
|
+
return Iterable.map(this, mapping);
|
|
42
|
+
}
|
|
43
|
+
flatMap(mapping) {
|
|
44
|
+
return Iterable.flatMap(this, mapping);
|
|
45
|
+
}
|
|
46
|
+
where(condition) {
|
|
47
|
+
return Iterable.where(this, condition);
|
|
48
|
+
}
|
|
49
|
+
instanceOf(typeOrTypeCheck) {
|
|
50
|
+
return Iterable.instanceOf(this, typeOrTypeCheck);
|
|
51
|
+
}
|
|
52
|
+
first(condition) {
|
|
53
|
+
return Iterable.first(this, condition);
|
|
54
|
+
}
|
|
55
|
+
last(condition) {
|
|
56
|
+
return Iterable.last(this, condition);
|
|
57
|
+
}
|
|
58
|
+
[Symbol.iterator]() {
|
|
59
|
+
return Iterable[Symbol.iterator](this);
|
|
60
|
+
}
|
|
61
|
+
contains(value, equalFunctions) {
|
|
62
|
+
return Iterable.contains(this, value, equalFunctions);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=whereIterable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whereIterable.js","sourceRoot":"","sources":["../../sources/whereIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD;;GAEG;AACH,MAAM,OAAO,aAAa;IAEtB,uFAAuF;IAEtE,aAAa,CAAc;IAC3B,SAAS,CAAgD;IAE1E,YAAoB,aAA0B,EAAE,SAAwD;QAEpG,YAAY,CAAC,4BAA4B,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC1E,YAAY,CAA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jE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,UAAU,CAAoB,eAAiE;QAElG,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,SAAuE;QAEhF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IAEM,IAAI,CAAC,SAAuE;QAE/E,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAEM,QAAQ,CAAC,KAAQ,EAAE,cAA+B;QAErD,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC;CACJ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Iterator } from "./iterator.js";
|
|
2
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
import { Type } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* An {@link Iterator} that only returns values that match a condition.
|
|
7
|
+
*/
|
|
8
|
+
export declare class WhereIterator<T> implements Iterator<T> {
|
|
9
|
+
private readonly innerIterator;
|
|
10
|
+
private started;
|
|
11
|
+
private readonly condition;
|
|
12
|
+
private constructor();
|
|
13
|
+
static create<T>(innerIterator: Iterator<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): WhereIterator<T>;
|
|
14
|
+
hasStarted(): boolean;
|
|
15
|
+
hasCurrent(): boolean;
|
|
16
|
+
getCurrent(): T;
|
|
17
|
+
next(): SyncResult<boolean>;
|
|
18
|
+
start(): SyncResult<this>;
|
|
19
|
+
takeCurrent(): SyncResult<T>;
|
|
20
|
+
any(): SyncResult<boolean>;
|
|
21
|
+
getCount(): SyncResult<number>;
|
|
22
|
+
toArray(): SyncResult<T[]>;
|
|
23
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
24
|
+
where(condition: (value: T) => boolean): Iterator<T>;
|
|
25
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
26
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
27
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
28
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
29
|
+
first(condition?: (value: T) => boolean): SyncResult<T>;
|
|
30
|
+
last(condition?: (value: T) => boolean): SyncResult<T>;
|
|
31
|
+
take(maximumToTake: number): Iterator<T>;
|
|
32
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
33
|
+
[Symbol.iterator](): JavascriptIterator<T>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=whereIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whereIterator.d.ts","sourceRoot":"","sources":["../../sources/whereIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAa,IAAI,EAAE,MAAM,YAAY,CAAC;AAE7C;;GAEG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAGhD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAc;IAC5C,OAAO,CAAC,OAAO,CAAU;I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