@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,39 @@
|
|
|
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 { List } from "./list.js";
|
|
6
|
+
import { SyncResult } from "./syncResult.js";
|
|
7
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
8
|
+
import { Type } from "./types.js";
|
|
9
|
+
export declare class CharacterList implements List<string> {
|
|
10
|
+
private characters;
|
|
11
|
+
private constructor();
|
|
12
|
+
static create(values?: JavascriptIterable<string>): CharacterList;
|
|
13
|
+
getCount(): SyncResult<number>;
|
|
14
|
+
insert(index: number, value: string): this;
|
|
15
|
+
removeAt(index: number): SyncResult<string>;
|
|
16
|
+
set(index: number, value: string): this;
|
|
17
|
+
iterate(): Iterator<string>;
|
|
18
|
+
get(index: number): SyncResult<string>;
|
|
19
|
+
add(value: string): this;
|
|
20
|
+
addAll(values: JavascriptIterable<string>): this;
|
|
21
|
+
insertAll(index: number, values: JavascriptIterable<string>): this;
|
|
22
|
+
remove(value: string, equalFunctions?: EqualFunctions): SyncResult<string>;
|
|
23
|
+
removeFirst(): SyncResult<string>;
|
|
24
|
+
removeLast(): SyncResult<string>;
|
|
25
|
+
toArray(): SyncResult<string[]>;
|
|
26
|
+
any(): SyncResult<boolean>;
|
|
27
|
+
equals(right: JavascriptIterable<string>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
28
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
29
|
+
concatenate(...toConcatenate: JavascriptIterable<string>[]): Iterable<string>;
|
|
30
|
+
map<TOutput>(mapping: (value: string) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
31
|
+
flatMap<TOutput>(mapping: (value: string) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
32
|
+
where(condition: (value: string) => (boolean | SyncResult<boolean>)): Iterable<string>;
|
|
33
|
+
instanceOf<TOutput extends string>(typeOrTypeCheck: Type<TOutput> | ((value: string) => value is TOutput)): Iterable<TOutput>;
|
|
34
|
+
first(condition?: (value: string) => (boolean | SyncResult<boolean>)): SyncResult<string>;
|
|
35
|
+
last(condition?: (value: string) => (boolean | SyncResult<boolean>)): SyncResult<string>;
|
|
36
|
+
contains(value: string, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
37
|
+
[Symbol.iterator](): JavascriptIterator<string>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=characterList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterList.d.ts","sourceRoot":"","sources":["../../sources/characterList.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,CA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,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAG9F;IAEM,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAGnF;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAGrD;CACJ"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { List } from "./list.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
import { StringIterator } from "./stringIterator.js";
|
|
4
|
+
import { join } from "./strings.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
import { isString } from "./types.js";
|
|
7
|
+
export class CharacterList {
|
|
8
|
+
characters;
|
|
9
|
+
constructor(values) {
|
|
10
|
+
if (isString(values)) {
|
|
11
|
+
this.characters = values;
|
|
12
|
+
}
|
|
13
|
+
else if (values) {
|
|
14
|
+
this.characters = join("", values);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.characters = "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
static create(values) {
|
|
21
|
+
return new CharacterList(values);
|
|
22
|
+
}
|
|
23
|
+
getCount() {
|
|
24
|
+
return SyncResult.value(this.characters.length);
|
|
25
|
+
}
|
|
26
|
+
insert(index, value) {
|
|
27
|
+
PreCondition.assertInsertIndex(index, this.getCount().await(), "index");
|
|
28
|
+
PreCondition.assertCharacter(value, "value");
|
|
29
|
+
if (index === 0) {
|
|
30
|
+
this.characters = value + this.characters;
|
|
31
|
+
}
|
|
32
|
+
else if (index === this.getCount().await()) {
|
|
33
|
+
this.characters += value;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.characters = this.characters.slice(0, index) + value + this.characters.slice(index);
|
|
37
|
+
}
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
removeAt(index) {
|
|
41
|
+
PreCondition.assertAccessIndex(index, this.getCount().await(), "index");
|
|
42
|
+
const result = this.get(index).await();
|
|
43
|
+
this.characters =
|
|
44
|
+
(index === 0 ? "" : this.characters.slice(0, index)) +
|
|
45
|
+
(index === this.getCount().await() - 1 ? "" : this.characters.slice(index + 1));
|
|
46
|
+
return SyncResult.value(result);
|
|
47
|
+
}
|
|
48
|
+
set(index, value) {
|
|
49
|
+
PreCondition.assertAccessIndex(index, this.getCount().await(), "index");
|
|
50
|
+
PreCondition.assertCharacter(value, "value");
|
|
51
|
+
this.characters =
|
|
52
|
+
(index === 0 ? "" : this.characters.slice(0, index)) +
|
|
53
|
+
value +
|
|
54
|
+
(index === this.getCount().await() - 1 ? "" : this.characters.slice(index + 1));
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
iterate() {
|
|
58
|
+
return StringIterator.create(this.characters);
|
|
59
|
+
}
|
|
60
|
+
get(index) {
|
|
61
|
+
PreCondition.assertAccessIndex(index, this.getCount().await(), "index");
|
|
62
|
+
return SyncResult.value(this.characters.charAt(index));
|
|
63
|
+
}
|
|
64
|
+
add(value) {
|
|
65
|
+
return List.add(this, value);
|
|
66
|
+
}
|
|
67
|
+
addAll(values) {
|
|
68
|
+
return List.addAll(this, values);
|
|
69
|
+
}
|
|
70
|
+
insertAll(index, values) {
|
|
71
|
+
return List.insertAll(this, index, values);
|
|
72
|
+
}
|
|
73
|
+
remove(value, equalFunctions) {
|
|
74
|
+
return List.remove(this, value, equalFunctions);
|
|
75
|
+
}
|
|
76
|
+
removeFirst() {
|
|
77
|
+
return List.removeFirst(this);
|
|
78
|
+
}
|
|
79
|
+
removeLast() {
|
|
80
|
+
return List.removeLast(this);
|
|
81
|
+
}
|
|
82
|
+
toArray() {
|
|
83
|
+
return List.toArray(this);
|
|
84
|
+
}
|
|
85
|
+
any() {
|
|
86
|
+
return List.any(this);
|
|
87
|
+
}
|
|
88
|
+
equals(right, equalFunctions) {
|
|
89
|
+
return List.equals(this, right, equalFunctions);
|
|
90
|
+
}
|
|
91
|
+
toString(toStringFunctions) {
|
|
92
|
+
return List.toString(this, toStringFunctions);
|
|
93
|
+
}
|
|
94
|
+
concatenate(...toConcatenate) {
|
|
95
|
+
return List.concatenate(this, ...toConcatenate);
|
|
96
|
+
}
|
|
97
|
+
map(mapping) {
|
|
98
|
+
return List.map(this, mapping);
|
|
99
|
+
}
|
|
100
|
+
flatMap(mapping) {
|
|
101
|
+
return List.flatMap(this, mapping);
|
|
102
|
+
}
|
|
103
|
+
where(condition) {
|
|
104
|
+
return List.where(this, condition);
|
|
105
|
+
}
|
|
106
|
+
instanceOf(typeOrTypeCheck) {
|
|
107
|
+
return List.instanceOf(this, typeOrTypeCheck);
|
|
108
|
+
}
|
|
109
|
+
first(condition) {
|
|
110
|
+
return List.first(this, condition);
|
|
111
|
+
}
|
|
112
|
+
last(condition) {
|
|
113
|
+
return List.last(this, condition);
|
|
114
|
+
}
|
|
115
|
+
contains(value, equalFunctions) {
|
|
116
|
+
return List.contains(this, value, equalFunctions);
|
|
117
|
+
}
|
|
118
|
+
[Symbol.iterator]() {
|
|
119
|
+
return List[Symbol.iterator](this);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=characterList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterList.js","sourceRoot":"","sources":["../../sources/characterList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAQ,MAAM,YAAY,CAAC;AAE5C,MAAM,OAAO,aAAa;IAEd,UAAU,CA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./characterWriteStream.js";
|
|
3
|
+
import { JavascriptIterable } from "./javascript.js";
|
|
4
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link CharacterReadStream} and {@link CharacterWriteStream} implementation that is implemented using a
|
|
8
|
+
* {@link CharacterList}.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CharacterListStream implements CharacterReadStream, CharacterWriteStream {
|
|
11
|
+
private readonly list;
|
|
12
|
+
private constructor();
|
|
13
|
+
static create(initialValues?: JavascriptIterable<string>): CharacterListStream;
|
|
14
|
+
writeCharacters(characters: JavascriptIterable<string>, startIndex?: number, length?: number): SyncResult<number>;
|
|
15
|
+
writeString(text: string): AsyncResult<number>;
|
|
16
|
+
writeLine(text?: string): AsyncResult<number>;
|
|
17
|
+
/**
|
|
18
|
+
* Get the number of characters that are available to be read.
|
|
19
|
+
*/
|
|
20
|
+
getAvailableCharacterCount(): number;
|
|
21
|
+
readCharacter(): AsyncResult<string>;
|
|
22
|
+
readCharacters(count: number): SyncResult<string>;
|
|
23
|
+
readCharacters(output: string[], startIndex?: number, count?: number): SyncResult<number>;
|
|
24
|
+
readUntil(searchString: string): AsyncResult<string>;
|
|
25
|
+
readLine(): AsyncResult<string>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=characterListStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterListStream.d.ts","sourceRoot":"","sources":["../../sources/characterListStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,mBAAmB,EAAE,oBAAoB;IAEjF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IAErC,OAAO,eAGN;IAED,OAAc,MAAM,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,mBAAmB,CAQpF;IAEM,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAoBvH;IAGM,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAKpD;IAEM,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAGnD;IAED;;OAEG;IACI,0BAA0B,IAAI,MAAM,CAG1C;IAEM,aAAa,IAAI,WAAW,CAAC,MAAM,CAAC,CAK1C;IAEM,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAClD,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAwD1F,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAG1D;IAEM,QAAQ,IAAI,WAAW,CAAC,MAAM,CAAC,CAGrC;CACJ"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { CharacterList } from "./characterList.js";
|
|
2
|
+
import { CharacterReadStream } from "./characterReadStream.js";
|
|
3
|
+
import { CharacterWriteStream } from "./characterWriteStream.js";
|
|
4
|
+
import { EmptyError } from "./emptyError.js";
|
|
5
|
+
import { PreCondition } from "./preCondition.js";
|
|
6
|
+
import { join } from "./strings.js";
|
|
7
|
+
import { SyncResult } from "./syncResult.js";
|
|
8
|
+
import { isNumber, isString, isUndefinedOrNull } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* A {@link CharacterReadStream} and {@link CharacterWriteStream} implementation that is implemented using a
|
|
11
|
+
* {@link CharacterList}.
|
|
12
|
+
*/
|
|
13
|
+
export class CharacterListStream {
|
|
14
|
+
list;
|
|
15
|
+
constructor() {
|
|
16
|
+
this.list = CharacterList.create();
|
|
17
|
+
}
|
|
18
|
+
static create(initialValues) {
|
|
19
|
+
const result = new CharacterListStream();
|
|
20
|
+
if (initialValues) {
|
|
21
|
+
result.writeCharacters(initialValues).await();
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
writeCharacters(characters, startIndex, length) {
|
|
26
|
+
PreCondition.assertNotUndefinedAndNotNull(characters, "characters");
|
|
27
|
+
const characterString = isString(characters) ? characters : join("", characters);
|
|
28
|
+
if (isUndefinedOrNull(startIndex)) {
|
|
29
|
+
startIndex = 0;
|
|
30
|
+
}
|
|
31
|
+
if (isUndefinedOrNull(length)) {
|
|
32
|
+
length = characterString.length - startIndex;
|
|
33
|
+
}
|
|
34
|
+
PreCondition.assertInsertIndex(startIndex, characterString.length, "startIndex");
|
|
35
|
+
PreCondition.assertBetween(0, length, characterString.length - startIndex, "length");
|
|
36
|
+
this.list.addAll(characterString.slice(startIndex, length + startIndex));
|
|
37
|
+
return SyncResult.value(length);
|
|
38
|
+
}
|
|
39
|
+
writeString(text) {
|
|
40
|
+
this.list.addAll(text);
|
|
41
|
+
return SyncResult.value(text.length);
|
|
42
|
+
}
|
|
43
|
+
writeLine(text) {
|
|
44
|
+
return CharacterWriteStream.writeLine(this, text);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get the number of characters that are available to be read.
|
|
48
|
+
*/
|
|
49
|
+
getAvailableCharacterCount() {
|
|
50
|
+
return this.list.getCount().await();
|
|
51
|
+
}
|
|
52
|
+
readCharacter() {
|
|
53
|
+
return !this.list.any().await()
|
|
54
|
+
? SyncResult.error(new EmptyError())
|
|
55
|
+
: SyncResult.value(this.list.removeFirst().await());
|
|
56
|
+
}
|
|
57
|
+
readCharacters(countOrOutput, startIndex, count) {
|
|
58
|
+
let result;
|
|
59
|
+
if (isNumber(countOrOutput)) {
|
|
60
|
+
PreCondition.assertGreaterThanOrEqualTo(countOrOutput, 0, "count");
|
|
61
|
+
if (!this.list.any().await()) {
|
|
62
|
+
result = SyncResult.error(new EmptyError());
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const bytesReadCount = Math.min(countOrOutput, this.list.getCount().await());
|
|
66
|
+
let output = "";
|
|
67
|
+
for (let i = 0; i < bytesReadCount; i++) {
|
|
68
|
+
output += this.list.removeFirst().await();
|
|
69
|
+
}
|
|
70
|
+
result = SyncResult.value(output);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
PreCondition.assertNotUndefinedAndNotNull(countOrOutput, "output");
|
|
75
|
+
if (isUndefinedOrNull(startIndex)) {
|
|
76
|
+
startIndex = 0;
|
|
77
|
+
}
|
|
78
|
+
if (isUndefinedOrNull(count)) {
|
|
79
|
+
count = countOrOutput.length - startIndex;
|
|
80
|
+
}
|
|
81
|
+
PreCondition.assertInsertIndex(startIndex, countOrOutput.length, "startIndex");
|
|
82
|
+
PreCondition.assertBetween(0, count, countOrOutput.length - startIndex, "count");
|
|
83
|
+
if (!this.list.any().await()) {
|
|
84
|
+
result = SyncResult.error(new EmptyError());
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const bytesReadCount = Math.min(count, this.list.getCount().await());
|
|
88
|
+
for (let i = 0; i < bytesReadCount; i++) {
|
|
89
|
+
countOrOutput[startIndex + i] = this.list.removeFirst().await();
|
|
90
|
+
}
|
|
91
|
+
result = SyncResult.value(bytesReadCount);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
readUntil(searchString) {
|
|
97
|
+
return CharacterReadStream.readUntil(this, searchString);
|
|
98
|
+
}
|
|
99
|
+
readLine() {
|
|
100
|
+
return CharacterReadStream.readLine(this);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=characterListStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterListStream.js","sourceRoot":"","sources":["../../sources/characterListStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEnE;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAEX,IAAI,CAAgB;IAErC;QAEI,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,aAA0C;QAE3D,MAAM,MAAM,GAAwB,IAAI,mBAAmB,EAAE,CAAC;QAC9D,IAAI,aAAa,EACjB,CAAC;YACG,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;QAClD,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,eAAe,CAAC,UAAsC,EAAE,UAAmB,EAAE,MAAe;QAE/F,YAAY,CAAC,4BAA4B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEpE,MAAM,eAAe,GAAW,QAAQ,CAAC,UAAU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AAU,EAAE,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YAC/E,YAAY,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,OAAO,CAAC,CAAC;YAEjF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAC5B,CAAC;gBACG,MAAM,GAAG,UAAU,CAAC,KAAK,CAAS,IAAI,UAAU,EAAE,CAAC,CAAC;YACxD,CAAC;iBAED,CAAC;gBACG,MAAM,cAAc,GAAW,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;gBAC7E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE,EACvC,CAAC;oBACG,aAAa,CAAC,UAAU,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;gBACpE,CAAC;gBACD,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC9C,CAAC;QACL,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,SAAS,CAAC,YAAoB;QAEjC,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC7D,CAAC;IAEM,QAAQ;QAEX,OAAO,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
2
|
+
export declare abstract class CharacterReadStream {
|
|
3
|
+
/**
|
|
4
|
+
* Read a single character from this stream.
|
|
5
|
+
*/
|
|
6
|
+
abstract readCharacter(): AsyncResult<string>;
|
|
7
|
+
readCharacters(count: number): AsyncResult<string>;
|
|
8
|
+
static readCharacters(readStream: CharacterReadStream, count: number): AsyncResult<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Read characters from this stream until the provided {@link searchString} is found or the end
|
|
11
|
+
* of the stream is reached. The {@link searchString} will be included in the returned string if
|
|
12
|
+
* it is found..
|
|
13
|
+
* @param searchString The string to search for.
|
|
14
|
+
*/
|
|
15
|
+
readUntil(searchString: string): AsyncResult<string>;
|
|
16
|
+
static readUntil(readStream: CharacterReadStream, searchString: string): AsyncResult<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Read a sequence of characters from this stream until either a newline character ('\\n') or
|
|
19
|
+
* the end of the stream is reached. Terminating newline characters will be included in the
|
|
20
|
+
* returned string.
|
|
21
|
+
*/
|
|
22
|
+
readLine(): AsyncResult<string>;
|
|
23
|
+
static readLine(readStream: CharacterReadStream): AsyncResult<string>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=characterReadStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterReadStream.d.ts","sourceRoot":"","sources":["../../sources/characterReadStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,8BAAsB,mBAAmB;IAErC;;OAEG;IACH,SAAgB,aAAa,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IAE9C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAGxD;IAED,OAAc,cAAc,CAAC,UAAU,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAehG;IAED;;;;;OAKG;IACI,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAG1D;IAED,OAAc,SAAS,CAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAkBlG;IAED;;;;OAIG;IACI,QAAQ,IAAI,WAAW,CAAC,MAAM,CAAC,CAGrC;IAED,OAAc,QAAQ,CAAC,UAAU,EAAE,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAC,CAK3E;CACJ"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
import { SyncResult } from "./syncResult.js";
|
|
3
|
+
export class CharacterReadStream {
|
|
4
|
+
readCharacters(count) {
|
|
5
|
+
return CharacterReadStream.readCharacters(this, count);
|
|
6
|
+
}
|
|
7
|
+
static readCharacters(readStream, count) {
|
|
8
|
+
let characters = "";
|
|
9
|
+
function readUntilCount(countRemaining) {
|
|
10
|
+
return readStream.readCharacter()
|
|
11
|
+
.then((character) => {
|
|
12
|
+
characters += character;
|
|
13
|
+
return countRemaining === 0
|
|
14
|
+
? SyncResult.value(characters)
|
|
15
|
+
: readUntilCount(countRemaining - 1);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return readUntilCount(count);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Read characters from this stream until the provided {@link searchString} is found or the end
|
|
22
|
+
* of the stream is reached. The {@link searchString} will be included in the returned string if
|
|
23
|
+
* it is found..
|
|
24
|
+
* @param searchString The string to search for.
|
|
25
|
+
*/
|
|
26
|
+
readUntil(searchString) {
|
|
27
|
+
return CharacterReadStream.readUntil(this, searchString);
|
|
28
|
+
}
|
|
29
|
+
static readUntil(readStream, searchString) {
|
|
30
|
+
PreCondition.assertNotUndefinedAndNotNull(readStream, "readStream");
|
|
31
|
+
PreCondition.assertNotEmpty(searchString, "searchString");
|
|
32
|
+
let characters = "";
|
|
33
|
+
function readUntilSearchString() {
|
|
34
|
+
return readStream.readCharacter()
|
|
35
|
+
.then((character) => {
|
|
36
|
+
characters += character;
|
|
37
|
+
return characters.endsWith(searchString)
|
|
38
|
+
? SyncResult.value(characters)
|
|
39
|
+
: readUntilSearchString();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return readUntilSearchString();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Read a sequence of characters from this stream until either a newline character ('\\n') or
|
|
46
|
+
* the end of the stream is reached. Terminating newline characters will be included in the
|
|
47
|
+
* returned string.
|
|
48
|
+
*/
|
|
49
|
+
readLine() {
|
|
50
|
+
return CharacterReadStream.readLine(this);
|
|
51
|
+
}
|
|
52
|
+
static readLine(readStream) {
|
|
53
|
+
PreCondition.assertNotUndefinedAndNotNull(readStream, "readStream");
|
|
54
|
+
return readStream.readUntil("\n");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=characterReadStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterReadStream.js","sourceRoot":"","sources":["../../sources/characterReadStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,OAAgB,mBAAmB;IAO9B,cAAc,CAAC,KAAa;QAE/B,OAAO,mBAAmB,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,UAA+B,EAAE,KAAa;QAEvE,IAAI,UAAU,GAAW,EAAE,CAAC;QAC5B,SAAS,cAAc,CAAC,cAAsB;YAE1C,OAAO,UAAU,CAAC,aAAa,EAAE;iBAC5B,IAAI,CAAC,CAAC,SAAiB,EAAE,EAAE;gBAExB,UAAU,IAAI,SAAS,CAAC;gBACxB,OAAO,cAAc,KAAK,CAAC;oBACvB,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;oBAC9B,CAAC,CAAC,cAAc,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;YAC7C,CAAC,CAAC,CAAC;QACX,CAAC;QACD,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACI,SAAS,CAAC,YAAoB;QAEjC,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,UAA+B,EAAE,YAAoB;QAEzE,YAAY,CAAC,4BAA4B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACpE,YAAY,CAAC,cAAc,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAE1D,IAAI,UAAU,GAAW,EAAE,CAAC;QAC5B,SAAS,qBAAqB;YAE1B,OAAO,UAAU,CAAC,aAAa,EAAE;iBAC5B,IAAI,CAAC,CAAC,SAAiB,EAAE,EAAE;gBAExB,UAAU,IAAI,SAAS,CAAC;gBACxB,OAAO,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC;oBACpC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC;oBAC9B,CAAC,CAAC,qBAAqB,EAAE,CAAC;YAClC,CAAC,CAAC,CAAC;QACX,CAAC;QACD,OAAO,qBAAqB,EAAE,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,QAAQ;QAEX,OAAO,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,UAA+B;QAElD,YAAY,CAAC,4BAA4B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEpE,OAAO,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
2
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
3
|
+
import { CharacterReadStream } from "./characterReadStream.js";
|
|
4
|
+
import { JavascriptAsyncIterator } from "./javascript.js";
|
|
5
|
+
import { Type } from "./types.js";
|
|
6
|
+
export declare class CharacterReadStreamAsyncIterator implements AsyncIterator<string> {
|
|
7
|
+
private readonly readStream;
|
|
8
|
+
private current;
|
|
9
|
+
private started;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(readStream: CharacterReadStream): CharacterReadStreamAsyncIterator;
|
|
12
|
+
next(): PromiseAsyncResult<boolean>;
|
|
13
|
+
hasStarted(): boolean;
|
|
14
|
+
hasCurrent(): boolean;
|
|
15
|
+
getCurrent(): string;
|
|
16
|
+
start(): PromiseAsyncResult<this>;
|
|
17
|
+
takeCurrent(): PromiseAsyncResult<string>;
|
|
18
|
+
any(): PromiseAsyncResult<boolean>;
|
|
19
|
+
getCount(): PromiseAsyncResult<number>;
|
|
20
|
+
toArray(): PromiseAsyncResult<string[]>;
|
|
21
|
+
where(condition: (value: string) => boolean | PromiseLike<boolean>): AsyncIterator<string>;
|
|
22
|
+
map<TOutput>(mapping: (value: string) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
23
|
+
whereInstanceOf<U extends string>(typeCheck: (value: string) => value is U): AsyncIterator<U>;
|
|
24
|
+
whereInstanceOfType<U extends string>(type: Type<U>): AsyncIterator<U>;
|
|
25
|
+
first(condition?: (value: string) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<string>;
|
|
26
|
+
last(condition?: (value: string) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<string>;
|
|
27
|
+
take(maximumToTake: number): AsyncIterator<string>;
|
|
28
|
+
skip(maximumToSkip: number): AsyncIterator<string>;
|
|
29
|
+
[Symbol.asyncIterator](): JavascriptAsyncIterator<string>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=characterReadStreamIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterReadStreamIterator.d.ts","sourceRoot":"","sources":["../../sources/characterReadStreamIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,y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C,CAAC,CAAC,CAGnG;IAEM,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAG5E;IAEM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAGxG;IAEM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAGvG;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAGxD;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAGxD;IAEM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAG/D;CACJ"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
2
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
3
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
4
|
+
import { PreCondition } from "./preCondition.js";
|
|
5
|
+
export class CharacterReadStreamAsyncIterator {
|
|
6
|
+
readStream;
|
|
7
|
+
current;
|
|
8
|
+
started;
|
|
9
|
+
constructor(readStream) {
|
|
10
|
+
PreCondition.assertNotUndefinedAndNotNull(readStream, "readStream");
|
|
11
|
+
this.readStream = readStream;
|
|
12
|
+
this.current = "";
|
|
13
|
+
this.started = false;
|
|
14
|
+
}
|
|
15
|
+
static create(readStream) {
|
|
16
|
+
return new CharacterReadStreamAsyncIterator(readStream);
|
|
17
|
+
}
|
|
18
|
+
next() {
|
|
19
|
+
return PromiseAsyncResult.create(async () => {
|
|
20
|
+
this.started = true;
|
|
21
|
+
this.current = await this.readStream.readCharacter()
|
|
22
|
+
.catch(NotFoundError, () => "");
|
|
23
|
+
return this.hasCurrent();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
hasStarted() {
|
|
27
|
+
return this.started;
|
|
28
|
+
}
|
|
29
|
+
hasCurrent() {
|
|
30
|
+
return this.current !== "";
|
|
31
|
+
}
|
|
32
|
+
getCurrent() {
|
|
33
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
34
|
+
return this.current;
|
|
35
|
+
}
|
|
36
|
+
start() {
|
|
37
|
+
return AsyncIterator.start(this);
|
|
38
|
+
}
|
|
39
|
+
takeCurrent() {
|
|
40
|
+
return AsyncIterator.takeCurrent(this);
|
|
41
|
+
}
|
|
42
|
+
any() {
|
|
43
|
+
return AsyncIterator.any(this);
|
|
44
|
+
}
|
|
45
|
+
getCount() {
|
|
46
|
+
return AsyncIterator.getCount(this);
|
|
47
|
+
}
|
|
48
|
+
toArray() {
|
|
49
|
+
return AsyncIterator.toArray(this);
|
|
50
|
+
}
|
|
51
|
+
where(condition) {
|
|
52
|
+
return AsyncIterator.where(this, condition);
|
|
53
|
+
}
|
|
54
|
+
map(mapping) {
|
|
55
|
+
return AsyncIterator.map(this, mapping);
|
|
56
|
+
}
|
|
57
|
+
whereInstanceOf(typeCheck) {
|
|
58
|
+
return AsyncIterator.whereInstanceOf(this, typeCheck);
|
|
59
|
+
}
|
|
60
|
+
whereInstanceOfType(type) {
|
|
61
|
+
return AsyncIterator.whereInstanceOfType(this, type);
|
|
62
|
+
}
|
|
63
|
+
first(condition) {
|
|
64
|
+
return AsyncIterator.first(this, condition);
|
|
65
|
+
}
|
|
66
|
+
last(condition) {
|
|
67
|
+
return AsyncIterator.last(this, condition);
|
|
68
|
+
}
|
|
69
|
+
take(maximumToTake) {
|
|
70
|
+
return AsyncIterator.take(this, maximumToTake);
|
|
71
|
+
}
|
|
72
|
+
skip(maximumToSkip) {
|
|
73
|
+
return AsyncIterator.skip(this, maximumToSkip);
|
|
74
|
+
}
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return AsyncIterator[Symbol.asyncIterator](this);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=characterReadStreamIterator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterReadStreamIterator.js","sourceRoot":"","sources":["../../sources/characterReadStreamIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,MAAM,OAAO,gCAAgC;IAExB,UAAU,CAAsB;IACzC,OAAO,CAAS;IAChB,OAAO,CAAU;IAEzB,YAAoB,UAA+B;QAE/C,YAAY,CAAC,4BAA4B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEpE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,UAA+B;QAEhD,OAAO,IAAI,gCAAgC,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;IAEM,IAAI;QAEP,OAAO,kBAAkB,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAExC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YAEpB,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;iBAC/C,KAAK,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;YAEpC,OAAO,IAAI,CAAC,UAAU,EAAE,C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,CAAC;IAEM,IAAI,CAAC,SAA+D;QAEvE,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnD,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnD,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,18 @@
|
|
|
1
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
2
|
+
export declare abstract class CharacterWriteStream {
|
|
3
|
+
/**
|
|
4
|
+
* Write the provided text to this {@link CharacterWriteStream}.
|
|
5
|
+
* @param text The text to write.
|
|
6
|
+
* @returns The number of characters that were written.
|
|
7
|
+
*/
|
|
8
|
+
abstract writeString(text: string): AsyncResult<number>;
|
|
9
|
+
/**
|
|
10
|
+
* Write the provided text (if provided) and then write a newline character sequence to this
|
|
11
|
+
* {@link CharacterWriteStream}.
|
|
12
|
+
* @param text The optional text to write before the newline character sequence.
|
|
13
|
+
* @returns The number of characters that were written.
|
|
14
|
+
*/
|
|
15
|
+
writeLine(text?: string): AsyncResult<number>;
|
|
16
|
+
static writeLine(writeStream: CharacterWriteStream, text?: string): AsyncResult<number>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=characterWriteStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterWriteStream.d.ts","sourceRoot":"","sources":["../../sources/characterWriteStream.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,8BAAsB,oBAAoB;IAEtC;;;;OAIG;IACH,SAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE9D;;;;;OAKG;IACI,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAGnD;IAED,OAAc,SAAS,CAAC,WAAW,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAkB7F;CACJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
2
|
+
import { PostCondition } from "./postCondition.js";
|
|
3
|
+
import { PreCondition } from "./preCondition.js";
|
|
4
|
+
export class CharacterWriteStream {
|
|
5
|
+
/**
|
|
6
|
+
* Write the provided text (if provided) and then write a newline character sequence to this
|
|
7
|
+
* {@link CharacterWriteStream}.
|
|
8
|
+
* @param text The optional text to write before the newline character sequence.
|
|
9
|
+
* @returns The number of characters that were written.
|
|
10
|
+
*/
|
|
11
|
+
writeLine(text) {
|
|
12
|
+
return CharacterWriteStream.writeLine(this, text);
|
|
13
|
+
}
|
|
14
|
+
static writeLine(writeStream, text) {
|
|
15
|
+
PreCondition.assertNotUndefinedAndNotNull(writeStream, "writeStream");
|
|
16
|
+
return PromiseAsyncResult.create(async () => {
|
|
17
|
+
let result = 0;
|
|
18
|
+
if (text) {
|
|
19
|
+
result += await writeStream.writeString(text);
|
|
20
|
+
}
|
|
21
|
+
result += await writeStream.writeString("\n");
|
|
22
|
+
PostCondition.assertGreaterThan(result, 0, "result");
|
|
23
|
+
return result;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=characterWriteStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterWriteStream.js","sourceRoot":"","sources":["../../sources/characterWriteStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,MAAM,OAAgB,oBAAoB;IAStC;;;;;OAKG;IACI,SAAS,CAAC,IAAa;QAE1B,OAAO,oBAAoB,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,WAAiC,EAAE,IAAa;QAEpE,YAAY,CAAC,4BAA4B,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAEtE,OAAO,kBAAkB,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAExC,IAAI,MAAM,GAAW,CAAC,CAAC;YAEvB,IAAI,IAAI,EACR,CAAC;gBACG,MAAM,IAAI,MAAM,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAClD,CAAC;YACD,MAAM,IAAI,MAAM,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAE9C,aAAa,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;YAErD,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommandLineParameters } from "./commandLineParameters.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { JavascriptIterable } from "./javascript.js";
|
|
4
|
+
/**
|
|
5
|
+
* An individual parameter from a {@link CommandLineParameters} object.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CommandLineParameter<T> {
|
|
8
|
+
private readonly owner;
|
|
9
|
+
private readonly name;
|
|
10
|
+
private aliases;
|
|
11
|
+
private description;
|
|
12
|
+
private constructor();
|
|
13
|
+
static create<T>(owner: CommandLineParameters, name: string): CommandLineParameter<T>;
|
|
14
|
+
static create<T>(properties: {
|
|
15
|
+
owner: CommandLineParameters;
|
|
16
|
+
name: string;
|
|
17
|
+
}): CommandLineParameter<T>;
|
|
18
|
+
/**
|
|
19
|
+
* Get the name of this {@link CommandLineParameter}.
|
|
20
|
+
*/
|
|
21
|
+
getName(): string;
|
|
22
|
+
getAliases(): Iterable<string>;
|
|
23
|
+
private nameOrAliasExists;
|
|
24
|
+
addAlias(alias: string): this;
|
|
25
|
+
addAliases(aliases: JavascriptIterable<string>): this;
|
|
26
|
+
getNameAndAliases(): Iterable<string>;
|
|
27
|
+
getDescription(): string;
|
|
28
|
+
setDescription(description: string): this;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=commandLineParameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandLineParameter.d.ts","sourceRoot":"","sources":["../../sources/commandLineParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIrD;;GAEG;AACH,qBAAa,oBAAoB,CAAC,CAAC;IAE/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,WAAW,CAAqB;IAExC,OAAO,eAQN;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC7F,OAAc,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE;QAAE,KAAK,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAkB7G;;OAEG;IACI,OAAO,IAAI,MAAM,CAGvB;IAEM,UAAU,IAAI,QAAQ,CAAC,MAAM,CAAC,CAGpC;IAED,OAAO,CAAC,iBAAiB;IAKlB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAYnC;IAEM,UAAU,CAAC,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,IAAI,CAO3D;IAEM,iBAAiB,IAAI,QAAQ,CAAC,MAAM,CAAC,CAK3C;IAEM,cAAc,IAAI,MAAM,CAG9B;IAEM,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAO/C;CACJ"}
|