@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,73 @@
|
|
|
1
|
+
import { CommandLineParameters } from "./commandLineParameters.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { List } from "./list.js";
|
|
4
|
+
import { PreCondition } from "./preCondition.js";
|
|
5
|
+
/**
|
|
6
|
+
* An individual parameter from a {@link CommandLineParameters} object.
|
|
7
|
+
*/
|
|
8
|
+
export class CommandLineParameter {
|
|
9
|
+
owner;
|
|
10
|
+
name;
|
|
11
|
+
aliases;
|
|
12
|
+
description;
|
|
13
|
+
constructor(owner, name) {
|
|
14
|
+
PreCondition.assertNotUndefinedAndNotNull(owner, "owner");
|
|
15
|
+
PreCondition.assertNotEmpty(name, "name");
|
|
16
|
+
PreCondition.assertFalse(owner.nameOrAliasExists(name), "owner.nameOrAliasExists(name)");
|
|
17
|
+
this.owner = owner;
|
|
18
|
+
this.name = name;
|
|
19
|
+
}
|
|
20
|
+
static create(ownerOrProperties, name) {
|
|
21
|
+
let owner;
|
|
22
|
+
if (ownerOrProperties instanceof CommandLineParameters) {
|
|
23
|
+
owner = ownerOrProperties;
|
|
24
|
+
name = name;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
owner = ownerOrProperties.owner;
|
|
28
|
+
name = ownerOrProperties.name;
|
|
29
|
+
}
|
|
30
|
+
return new CommandLineParameter(owner, name);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the name of this {@link CommandLineParameter}.
|
|
34
|
+
*/
|
|
35
|
+
getName() {
|
|
36
|
+
return this.name;
|
|
37
|
+
}
|
|
38
|
+
getAliases() {
|
|
39
|
+
return this.aliases ?? Iterable.create();
|
|
40
|
+
}
|
|
41
|
+
nameOrAliasExists(nameOrAlias) {
|
|
42
|
+
return this.owner.nameOrAliasExists(nameOrAlias);
|
|
43
|
+
}
|
|
44
|
+
addAlias(alias) {
|
|
45
|
+
PreCondition.assertNotEmpty(alias, "alias");
|
|
46
|
+
PreCondition.assertFalse(this.nameOrAliasExists(alias), "this.nameOrAliasExists(alias)");
|
|
47
|
+
if (this.aliases === undefined) {
|
|
48
|
+
this.aliases = List.create();
|
|
49
|
+
}
|
|
50
|
+
this.aliases.add(alias);
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
addAliases(aliases) {
|
|
54
|
+
for (const alias of aliases) {
|
|
55
|
+
this.addAlias(alias);
|
|
56
|
+
}
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
getNameAndAliases() {
|
|
60
|
+
return List.create()
|
|
61
|
+
.add(this.getName())
|
|
62
|
+
.addAll(this.getAliases());
|
|
63
|
+
}
|
|
64
|
+
getDescription() {
|
|
65
|
+
return this.description ?? "";
|
|
66
|
+
}
|
|
67
|
+
setDescription(description) {
|
|
68
|
+
PreCondition.assertNotUndefinedAndNotNull(description, "description");
|
|
69
|
+
this.description = description;
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=commandLineParameter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandLineParameter.js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.js";
|
|
3
|
+
import { JavascriptIterable } from "./javascript.js";
|
|
4
|
+
import { SyncResult } from "./syncResult.js";
|
|
5
|
+
/**
|
|
6
|
+
* A class that can be used to define and interact with an application's command line interface.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CommandLineParameters {
|
|
9
|
+
private readonly args;
|
|
10
|
+
private readonly parameters;
|
|
11
|
+
private constructor();
|
|
12
|
+
static create(args: JavascriptIterable<string>): CommandLineParameters;
|
|
13
|
+
static getArgumentName(arg: string): string | undefined;
|
|
14
|
+
getArguments(): Iterable<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Get the value of the first argument that matches one of the provided names.
|
|
17
|
+
* @param names The possible names to look for.
|
|
18
|
+
*/
|
|
19
|
+
getNamedArgumentStringValue(nameOrNames: string | JavascriptIterable<string>): SyncResult<string>;
|
|
20
|
+
nameOrAliasExists(nameOrAlias: string): boolean;
|
|
21
|
+
add(name: string): CommandLineParameter<string>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=commandLineParameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandLineParameters.d.ts","sourceRoot":"","sources":["../../sources/commandLineParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAQrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C;;GAEG;AACH,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsC;IAEjE,OAAO,eAMN;IAED,OAAc,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,qBAAqB,CAG5E;IAED,OAAc,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK7D;IAEM,YAAY,IAAI,QAAQ,CAAC,MAAM,CAAC,CAGtC;IAED;;;OAGG;IACI,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAoCvG;IAEM,iBAAiB,CAAC,WAAW,EAAE,MAAM,WAc3C;IAEM,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CASrD;CACJ"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CommandLineParameter } from "./commandLineParameter.js";
|
|
2
|
+
import { orList } from "./english.js";
|
|
3
|
+
import { Iterable } from "./iterable.js";
|
|
4
|
+
import { List } from "./list.js";
|
|
5
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
6
|
+
import { PreCondition } from "./preCondition.js";
|
|
7
|
+
import { SyncResult } from "./syncResult.js";
|
|
8
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
9
|
+
import { isIterable, isString } from "./types.js";
|
|
10
|
+
/**
|
|
11
|
+
* A class that can be used to define and interact with an application's command line interface.
|
|
12
|
+
*/
|
|
13
|
+
export class CommandLineParameters {
|
|
14
|
+
args;
|
|
15
|
+
parameters;
|
|
16
|
+
constructor(argv) {
|
|
17
|
+
PreCondition.assertNotUndefinedAndNotNull(argv, "argv");
|
|
18
|
+
this.args = isIterable(argv) ? argv : Iterable.create(argv);
|
|
19
|
+
this.parameters = List.create();
|
|
20
|
+
}
|
|
21
|
+
static create(args) {
|
|
22
|
+
return new CommandLineParameters(args);
|
|
23
|
+
}
|
|
24
|
+
static getArgumentName(arg) {
|
|
25
|
+
return arg[0] === "-"
|
|
26
|
+
? arg.substring(arg[1] === "-" ? 2 : 1)
|
|
27
|
+
: undefined;
|
|
28
|
+
}
|
|
29
|
+
getArguments() {
|
|
30
|
+
return this.args;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the value of the first argument that matches one of the provided names.
|
|
34
|
+
* @param names The possible names to look for.
|
|
35
|
+
*/
|
|
36
|
+
getNamedArgumentStringValue(nameOrNames) {
|
|
37
|
+
PreCondition.assertNotEmpty(nameOrNames, "nameOrNames");
|
|
38
|
+
return SyncResult.create(() => {
|
|
39
|
+
let foundArgName = false;
|
|
40
|
+
let result;
|
|
41
|
+
if (isString(nameOrNames)) {
|
|
42
|
+
nameOrNames = [nameOrNames];
|
|
43
|
+
}
|
|
44
|
+
const searchNames = Iterable.create(nameOrNames);
|
|
45
|
+
for (const arg of this.args) {
|
|
46
|
+
if (!foundArgName) {
|
|
47
|
+
const argName = CommandLineParameters.getArgumentName(arg);
|
|
48
|
+
foundArgName = !!(argName && searchNames.contains(argName));
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
result = arg;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (result === undefined) {
|
|
56
|
+
const toStringFunctions = ToStringFunctions.create();
|
|
57
|
+
throw new NotFoundError(`No argument found that matches ${orList(searchNames.map(n => toStringFunctions.toString(n)))}.`);
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
nameOrAliasExists(nameOrAlias) {
|
|
63
|
+
PreCondition.assertNotEmpty(nameOrAlias, "nameOrAlias");
|
|
64
|
+
let result = false;
|
|
65
|
+
for (const parameter of this.parameters) {
|
|
66
|
+
if (parameter.getNameAndAliases().contains(nameOrAlias).await()) {
|
|
67
|
+
result = true;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
add(name) {
|
|
74
|
+
const result = CommandLineParameter.create({
|
|
75
|
+
owner: this,
|
|
76
|
+
name,
|
|
77
|
+
});
|
|
78
|
+
this.parameters.add(result);
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=commandLineParameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandLineParameters.js","sourceRoot":"","sources":["../../sources/commandLineParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAEb,IAAI,CAAmB;IACvB,UAAU,CAAsC;IAEjE,YAAoB,IAAgC;QAEhD,YAAY,CAAC,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAExD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAS,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACpE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,IAAgC;QAEjD,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAC1C,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,GAAW;QAErC,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;YACjB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,KAA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AAC;IACP,CAAC;IAEM,iBAAiB,CAAC,WAAmB;QAExC,YAAY,CAAC,cAAc,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAExD,IAAI,MAAM,GAAY,KAAK,CAAC;QAC5B,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EACvC,CAAC;YACG,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,EAC/D,CAAC;gBACG,MAAM,GAAG,IAAI,CAAC;gBACd,MAAM;YACV,CAAC;QACL,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,GAAG,CAAC,IAAY;QAEnB,MAAM,MAAM,GAAiC,oBAAoB,CAAC,MAAM,CAAC;YACrE,KAAK,EAAE,IAAI;YACX,IAAI;SACP,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAE5B,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Comparison } from "./comparison.js";
|
|
2
|
+
/**
|
|
3
|
+
* An type that can be compared against another type.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class Comparable<T> {
|
|
6
|
+
protected constructor();
|
|
7
|
+
/**
|
|
8
|
+
* Compare this value against the provided value.
|
|
9
|
+
* @param value The value to compare against.
|
|
10
|
+
*/
|
|
11
|
+
abstract compareTo(value: T): Comparison;
|
|
12
|
+
/**
|
|
13
|
+
* Get whether this value is less than the provided value.
|
|
14
|
+
* @param value The value to compare against.
|
|
15
|
+
*/
|
|
16
|
+
lessThan(value: T): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Get whether the left value is less than the right value.
|
|
19
|
+
* @param left The left value in the comparison.
|
|
20
|
+
* @param right The right value in the comparison.
|
|
21
|
+
*/
|
|
22
|
+
static lessThan<T>(left: Comparable<T>, right: T): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Get whether this value is less than or equal to the provided value.
|
|
25
|
+
* @param value The value to compare against.
|
|
26
|
+
*/
|
|
27
|
+
lessThanOrEqualTo(value: T): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Get whether the left value is less than or equal to the right value.
|
|
30
|
+
* @param left The left value in the comparison.
|
|
31
|
+
* @param right The right value in the comparison.
|
|
32
|
+
*/
|
|
33
|
+
static lessThanOrEqualTo<T>(left: Comparable<T>, right: T): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Get whether this value equals the provided value.
|
|
36
|
+
* @param value The value to compare against.
|
|
37
|
+
*/
|
|
38
|
+
equals(value: T): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get whether the left value equals the right value.
|
|
41
|
+
* @param left The left value in the comparison.
|
|
42
|
+
* @param right The right value in the comparison.
|
|
43
|
+
*/
|
|
44
|
+
static equals<T>(left: Comparable<T>, right: T): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Get whether this value is not equal to the provided value.
|
|
47
|
+
* @param value The value to compare against.
|
|
48
|
+
*/
|
|
49
|
+
notEquals(value: T): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Get whether the left value is not equal to the right value.
|
|
52
|
+
* @param left The left value in the comparison.
|
|
53
|
+
* @param right The right value in the comparison.
|
|
54
|
+
*/
|
|
55
|
+
static notEquals<T>(left: Comparable<T>, right: T): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Get whether this value is greater than or equal to the provided value.
|
|
58
|
+
* @param value The value to compare against.
|
|
59
|
+
*/
|
|
60
|
+
greaterThanOrEqualTo(value: T): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Get whether the left value is greater than or equal to the right value.
|
|
63
|
+
* @param left The left value in the comparison.
|
|
64
|
+
* @param right The right value in the comparison.
|
|
65
|
+
*/
|
|
66
|
+
static greaterThanOrEqualTo<T>(left: Comparable<T>, right: T): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Get whether this value is greater than the provided value.
|
|
69
|
+
* @param value The value to compare against.
|
|
70
|
+
*/
|
|
71
|
+
greaterThan(value: T): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Get whether the left value is greater than the right value.
|
|
74
|
+
* @param left The left value in the comparison.
|
|
75
|
+
* @param right The right value in the comparison.
|
|
76
|
+
*/
|
|
77
|
+
static greaterThan<T>(left: Comparable<T>, right: T): boolean;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=comparable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparable.d.ts","sourceRoot":"","sources":["../../sources/comparable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;GAEG;AACH,8BAAsB,UAAU,CAAC,CAAC;IAE9B,SAAS,eAER;IAED;;;OAGG;IACH,SAAgB,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC;IAEhD;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAGjC;IAED;;;;OAIG;IACH,OAAc,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAKhE;IAED;;;OAGG;IACI,iBAAiB,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAG1C;IAED;;;;OAIG;IACH,OAAc,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAKzE;IAED;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAG/B;IAED;;;;OAIG;IACH,OAAc,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAK9D;IAED;;;OAGG;IACI,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAGlC;IAED;;;;OAIG;IACH,OAAc,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAKjE;IAED;;;OAGG;IACI,oBAAoB,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAG7C;IAED;;;;OAIG;IACH,OAAc,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAK5E;IAED;;;OAGG;IACI,WAAW,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAGpC;IAED;;;;OAIG;IACH,OAAc,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAKnE;CACJ"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Comparison } from "./comparison.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
/**
|
|
4
|
+
* An type that can be compared against another type.
|
|
5
|
+
*/
|
|
6
|
+
export class Comparable {
|
|
7
|
+
constructor() {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get whether this value is less than the provided value.
|
|
11
|
+
* @param value The value to compare against.
|
|
12
|
+
*/
|
|
13
|
+
lessThan(value) {
|
|
14
|
+
return Comparable.lessThan(this, value);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get whether the left value is less than the right value.
|
|
18
|
+
* @param left The left value in the comparison.
|
|
19
|
+
* @param right The right value in the comparison.
|
|
20
|
+
*/
|
|
21
|
+
static lessThan(left, right) {
|
|
22
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
23
|
+
return left.compareTo(right) === Comparison.LessThan;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get whether this value is less than or equal to the provided value.
|
|
27
|
+
* @param value The value to compare against.
|
|
28
|
+
*/
|
|
29
|
+
lessThanOrEqualTo(value) {
|
|
30
|
+
return Comparable.lessThanOrEqualTo(this, value);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get whether the left value is less than or equal to the right value.
|
|
34
|
+
* @param left The left value in the comparison.
|
|
35
|
+
* @param right The right value in the comparison.
|
|
36
|
+
*/
|
|
37
|
+
static lessThanOrEqualTo(left, right) {
|
|
38
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
39
|
+
return left.compareTo(right) !== Comparison.GreaterThan;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get whether this value equals the provided value.
|
|
43
|
+
* @param value The value to compare against.
|
|
44
|
+
*/
|
|
45
|
+
equals(value) {
|
|
46
|
+
return Comparable.equals(this, value);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get whether the left value equals the right value.
|
|
50
|
+
* @param left The left value in the comparison.
|
|
51
|
+
* @param right The right value in the comparison.
|
|
52
|
+
*/
|
|
53
|
+
static equals(left, right) {
|
|
54
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
55
|
+
return left.compareTo(right) === Comparison.Equal;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get whether this value is not equal to the provided value.
|
|
59
|
+
* @param value The value to compare against.
|
|
60
|
+
*/
|
|
61
|
+
notEquals(value) {
|
|
62
|
+
return Comparable.notEquals(this, value);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get whether the left value is not equal to the right value.
|
|
66
|
+
* @param left The left value in the comparison.
|
|
67
|
+
* @param right The right value in the comparison.
|
|
68
|
+
*/
|
|
69
|
+
static notEquals(left, right) {
|
|
70
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
71
|
+
return left.compareTo(right) !== Comparison.Equal;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get whether this value is greater than or equal to the provided value.
|
|
75
|
+
* @param value The value to compare against.
|
|
76
|
+
*/
|
|
77
|
+
greaterThanOrEqualTo(value) {
|
|
78
|
+
return Comparable.greaterThanOrEqualTo(this, value);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get whether the left value is greater than or equal to the right value.
|
|
82
|
+
* @param left The left value in the comparison.
|
|
83
|
+
* @param right The right value in the comparison.
|
|
84
|
+
*/
|
|
85
|
+
static greaterThanOrEqualTo(left, right) {
|
|
86
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
87
|
+
return left.compareTo(right) !== Comparison.LessThan;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get whether this value is greater than the provided value.
|
|
91
|
+
* @param value The value to compare against.
|
|
92
|
+
*/
|
|
93
|
+
greaterThan(value) {
|
|
94
|
+
return Comparable.greaterThan(this, value);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get whether the left value is greater than the right value.
|
|
98
|
+
* @param left The left value in the comparison.
|
|
99
|
+
* @param right The right value in the comparison.
|
|
100
|
+
*/
|
|
101
|
+
static greaterThan(left, right) {
|
|
102
|
+
PreCondition.assertNotUndefinedAndNotNull(left, "left");
|
|
103
|
+
return left.compareTo(right) === Comparison.GreaterThan;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=comparable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparable.js","sourceRoot":"","sources":["../../sources/comparable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAgB,UAAU;IAE5B;IAEA,CAAC;IAQD;;;OAGG;IACI,QAAQ,CAAC,KAAQ;QAEpB,OAAO,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACI,MAA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oB,CAAC,KAAQ;QAEhC,OAAO,UAAU,CAAC,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,oBAAoB,CAAI,IAAmB,EAAE,KAAQ;QAE/D,YAAY,CAAC,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAExD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,QAAQ,CAAC;IACzD,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,KAAQ;QAEvB,OAAO,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,WAAW,CAAI,IAAmB,EAAE,KAAQ;QAEtD,YAAY,CAAC,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAExD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC;IAC5D,CAAC;CACJ"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Comparison } from "./comparison.js";
|
|
2
|
+
/**
|
|
3
|
+
* A type that can be used to compare values.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class Comparer<TLeft, TRight = TLeft> {
|
|
6
|
+
/**
|
|
7
|
+
* Compare the two provided values.
|
|
8
|
+
* @param left The left value to compare.
|
|
9
|
+
* @param right The right value to compare.
|
|
10
|
+
*/
|
|
11
|
+
abstract compare(left: TLeft, right: TRight): Comparison;
|
|
12
|
+
/**
|
|
13
|
+
* Get whether the left value is less than the right value.
|
|
14
|
+
* @param left The left value to compare.
|
|
15
|
+
* @param right The right value to compare.
|
|
16
|
+
*/
|
|
17
|
+
lessThan(left: TLeft, right: TRight): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Get whether the left value is less than or equal to the right value.
|
|
20
|
+
* @param left The left value to compare.
|
|
21
|
+
* @param right The right value to compare.
|
|
22
|
+
*/
|
|
23
|
+
lessThanOrEqual(left: TLeft, right: TRight): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get whether the left value equals the right value.
|
|
26
|
+
* @param left The left value to compare.
|
|
27
|
+
* @param right The right value to compare.
|
|
28
|
+
*/
|
|
29
|
+
equal(left: TLeft, right: TRight): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Get whether the left value is greater than or equal to the right value.
|
|
32
|
+
* @param left The left value to compare.
|
|
33
|
+
* @param right The right value to compare.
|
|
34
|
+
*/
|
|
35
|
+
greaterThanOrEqualTo(left: TLeft, right: TRight): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Get whether the left value is greater than the right value.
|
|
38
|
+
* @param left The left value to compare.
|
|
39
|
+
* @param right The right value to compare.
|
|
40
|
+
*/
|
|
41
|
+
greaterThan(left: TLeft, right: TRight): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Attempt to compare the left and right values. The comparison will be done on whether they are
|
|
44
|
+
* the same value (left === right) or whether one is undefined or null. If they aren't the same
|
|
45
|
+
* value and neither is undefined or null, then this function can't compare them and will return
|
|
46
|
+
* undefined.
|
|
47
|
+
* @param left The left value of the comparison.
|
|
48
|
+
* @param right The right value of the comparison.
|
|
49
|
+
*/
|
|
50
|
+
static compareSameUndefinedNull(left: unknown, right: unknown): Comparison | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Get whether the left and right values are equal. The comparison will be done on whether they
|
|
53
|
+
* are the same value (left === right) or whether one is undefined or null. If they aren't the
|
|
54
|
+
* same value and neither is undefined or null, then this function can't determine whether they
|
|
55
|
+
* are equal and will return undefined.
|
|
56
|
+
* @param left The left value of the comparison.
|
|
57
|
+
* @param right The right value of the comparison.
|
|
58
|
+
*/
|
|
59
|
+
static equalSameUndefinedNull(left: unknown, right: unknown): boolean | undefined;
|
|
60
|
+
static compareNumbers(left: number | undefined | null, right: number | undefined | null): Comparison;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingUR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ison } from "./comparison.js";
|
|
2
|
+
/**
|
|
3
|
+
* A type that can be used to compare values.
|
|
4
|
+
*/
|
|
5
|
+
export class Comparer {
|
|
6
|
+
/**
|
|
7
|
+
* Get whether the left value is less than the right value.
|
|
8
|
+
* @param left The left value to compare.
|
|
9
|
+
* @param right The right value to compare.
|
|
10
|
+
*/
|
|
11
|
+
lessThan(left, right) {
|
|
12
|
+
return this.compare(left, right) === Comparison.LessThan;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get whether the left value is less than or equal to the right value.
|
|
16
|
+
* @param left The left value to compare.
|
|
17
|
+
* @param right The right value to compare.
|
|
18
|
+
*/
|
|
19
|
+
lessThanOrEqual(left, right) {
|
|
20
|
+
return this.compare(left, right) !== Comparison.GreaterThan;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get whether the left value equals the right value.
|
|
24
|
+
* @param left The left value to compare.
|
|
25
|
+
* @param right The right value to compare.
|
|
26
|
+
*/
|
|
27
|
+
equal(left, right) {
|
|
28
|
+
return this.compare(left, right) === Comparison.Equal;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get whether the left value is greater than or equal to the right value.
|
|
32
|
+
* @param left The left value to compare.
|
|
33
|
+
* @param right The right value to compare.
|
|
34
|
+
*/
|
|
35
|
+
greaterThanOrEqualTo(left, right) {
|
|
36
|
+
return this.compare(left, right) !== Comparison.LessThan;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get whether the left value is greater than the right value.
|
|
40
|
+
* @param left The left value to compare.
|
|
41
|
+
* @param right The right value to compare.
|
|
42
|
+
*/
|
|
43
|
+
greaterThan(left, right) {
|
|
44
|
+
return this.compare(left, right) === Comparison.GreaterThan;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Attempt to compare the left and right values. The comparison will be done on whether they are
|
|
48
|
+
* the same value (left === right) or whether one is undefined or null. If they aren't the same
|
|
49
|
+
* value and neither is undefined or null, then this function can't compare them and will return
|
|
50
|
+
* undefined.
|
|
51
|
+
* @param left The left value of the comparison.
|
|
52
|
+
* @param right The right value of the comparison.
|
|
53
|
+
*/
|
|
54
|
+
static compareSameUndefinedNull(left, right) {
|
|
55
|
+
let result = undefined;
|
|
56
|
+
if (left === right) {
|
|
57
|
+
result = Comparison.Equal;
|
|
58
|
+
}
|
|
59
|
+
else if (left === undefined) {
|
|
60
|
+
result = Comparison.LessThan;
|
|
61
|
+
}
|
|
62
|
+
else if (right === undefined) {
|
|
63
|
+
result = Comparison.GreaterThan;
|
|
64
|
+
}
|
|
65
|
+
else if (left === null) {
|
|
66
|
+
result = Comparison.LessThan;
|
|
67
|
+
}
|
|
68
|
+
else if (right === null) {
|
|
69
|
+
result = Comparison.GreaterThan;
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get whether the left and right values are equal. The comparison will be done on whether they
|
|
75
|
+
* are the same value (left === right) or whether one is undefined or null. If they aren't the
|
|
76
|
+
* same value and neither is undefined or null, then this function can't determine whether they
|
|
77
|
+
* are equal and will return undefined.
|
|
78
|
+
* @param left The left value of the comparison.
|
|
79
|
+
* @param right The right value of the comparison.
|
|
80
|
+
*/
|
|
81
|
+
static equalSameUndefinedNull(left, right) {
|
|
82
|
+
let result = Comparer.compareSameUndefinedNull(left, right);
|
|
83
|
+
return result === undefined ? undefined : result === Comparison.Equal;
|
|
84
|
+
}
|
|
85
|
+
static compareNumbers(left, right) {
|
|
86
|
+
let result = Comparer.compareSameUndefinedNull(left, right);
|
|
87
|
+
if (result === undefined) {
|
|
88
|
+
if (left < right) {
|
|
89
|
+
result = Comparison.LessThan;
|
|
90
|
+
}
|
|
91
|
+
// else if (left === right)
|
|
92
|
+
// {
|
|
93
|
+
// result = Comparison.Equal;
|
|
94
|
+
// }
|
|
95
|
+
else {
|
|
96
|
+
result = Comparison.GreaterThan;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return result;
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export declare enum Comparison {
|
|
5
|
+
/**
|
|
6
|
+
* The left value is less than the right value.
|
|
7
|
+
*/
|
|
8
|
+
LessThan = 0,
|
|
9
|
+
/**
|
|
10
|
+
* The two values are equal.
|
|
11
|
+
*/
|
|
12
|
+
Equal = 1,
|
|
13
|
+
/**
|
|
14
|
+
* The left value is greater than the right value.
|
|
15
|
+
*/
|
|
16
|
+
GreaterThan = 2
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=comparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison.d.ts","sourceRoot":"","sources":["../../sources/comparison.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IAElB;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,KAAK,IAAA;IAEL;;OAEG;IACH,WAAW,IAAA;CACd"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The result of comparing two values.
|
|
3
|
+
*/
|
|
4
|
+
export var Comparison;
|
|
5
|
+
(function (Comparison) {
|
|
6
|
+
/**
|
|
7
|
+
* The left value is less than the right value.
|
|
8
|
+
*/
|
|
9
|
+
Comparison[Comparison["LessThan"] = 0] = "LessThan";
|
|
10
|
+
/**
|
|
11
|
+
* The two values are equal.
|
|
12
|
+
*/
|
|
13
|
+
Comparison[Comparison["Equal"] = 1] = "Equal";
|
|
14
|
+
/**
|
|
15
|
+
* The left value is greater than the right value.
|
|
16
|
+
*/
|
|
17
|
+
Comparison[Comparison["GreaterThan"] = 2] = "GreaterThan";
|
|
18
|
+
})(Comparison || (Comparison = {}));
|
|
19
|
+
//# sourceMappingURL=comparison.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../sources/comparison.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,UAgBX;AAhBD,WAAY,UAAU;IAElB;;OAEG;IACH,mDAAQ,CAAA;IAER;;OAEG;IACH,6CAAK,CAAA;IAEL;;OAEG;IACH,yDAAW,CAAA;AACf,CAAC,EAhBW,UAAU,KAAV,UAAU,QAgBrB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
export declare class ConcatenateIterable<T> implements Iterable<T> {
|
|
9
|
+
private readonly innerIterables;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create<T>(innerIterable: Iterable<T>, ...toConcatenate: JavascriptIterable<T>[]): ConcatenateIterable<T>;
|
|
12
|
+
iterate(): Iterator<T>;
|
|
13
|
+
toArray(): SyncResult<T[]>;
|
|
14
|
+
any(): SyncResult<boolean>;
|
|
15
|
+
getCount(): SyncResult<number>;
|
|
16
|
+
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
17
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
18
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
19
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
20
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
21
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
22
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
23
|
+
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
24
|
+
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
25
|
+
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
26
|
+
[Symbol.iterator](): JavascriptIterator<T>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=concatenateIterable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concatenateIterable.d.ts","sourceRoot":"","sources":["../../sources/concatenateIterable.ts"],"names":[],"mappings":"AACA,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;AAGzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,qBAAa,mBAAmB,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAwB;IAEvD,OAAO,eAKN;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAYrH;IAEM,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,CAG5B;IAEM,OAAO,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC,CAGhC;IAEM,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAGhC;IAEM,QAAQ,IAAI,UAAU,CAAC,MAAM,CAAC,CAWpC;IAEM,MAAM,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,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