@everyonesoftware/common 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-DGlmRcFl.d.cts +0 -854
- package/outputs/characterWriteStream-DGlmRcFl.d.ts +0 -854
- package/outputs/chunk-P4KLLRFY.js +0 -1199
- package/outputs/chunk-P4KLLRFY.js.map +0 -1
- package/outputs/chunk-TUBXFCG4.js +0 -9593
- package/outputs/chunk-TUBXFCG4.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9793
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3533
- package/outputs/sourceIndex.d.ts +0 -3533
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7049
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19376
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10018
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postCondition.js","sourceRoot":"","sources":["../../sources/postCondition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;GAEG;AACH,MAAM,OAAgB,aAAa;IAEvB,MAAM,CAAC,SAAS,CAA+B;IAE/C,MAAM,CAAC,YAAY;QAEvB,IAAI,aAAa,CAAC,SAAS,KAAK,SAAS,EACzC,CAAC;YACG,aAAa,CAAC,SAAS,GAAG,gBAAgB,CAAC,MAAM,EAAE;iBAC9C,sBAAsB,CAAC,CAAC,OAAe,EAAE,EAAE;gBAExC,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;QACX,CAAC;QACD,OAAO,aAAa,CAAC,SAAS,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,eAAe,CAAC,KAAc,EAAE,UAAmB,EAAE,OAAgB;QAE/E,OAAO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CAAC,KAAa,EAAE,UAAmB,EAAE,OAAgB;QAEzE,OAAO,aAAa,CAAC,YAAY,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,aAAa,CAAC,KAAa,EAAE,UAAmB,EAAE,OAAgB;QAE5E,OAAO,aAAa,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,eAAe,CAAC,KAAa,EAAE,UAAmB,EAAE,OAAgB;QAE9E,OAAO,aAAa,CAAC,YAAY,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAWD,gBAAgB,CAAI,iBAAiJ,EAAE,IAAc,EAAE,SAA0C,EAAE,UAAmB,EAAE,OAAgB;QAEpQ,OAAO,aAAa,CAAC,YAAY,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAClH,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postConditionError.d.ts","sourceRoot":"","sources":["../../sources/postConditionError.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAEzC,YAAmB,GAAG,OAAO,EAAE,MAAM,EAAE,EAGtC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { join } from "./strings.js";
|
|
2
|
+
/**
|
|
3
|
+
* An {@link Error} that is thrown when a post-condition fails.
|
|
4
|
+
*/
|
|
5
|
+
export class PostConditionError extends Error {
|
|
6
|
+
constructor(...message) {
|
|
7
|
+
super(join("\n", message));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=postConditionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postConditionError.js","sourceRoot":"","sources":["../../sources/postConditionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAEzC,YAAmB,GAAG,OAAiB;QAEnC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/B,CAAC;CACJ"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { JavascriptIterable } from "./javascript.js";
|
|
2
|
+
import { Type } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* A type that encapsulates conditions that should exist before an operation takes place.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class PreCondition {
|
|
7
|
+
private static condition;
|
|
8
|
+
private static getCondition;
|
|
9
|
+
/**
|
|
10
|
+
* Assert that the provided value is undefined.
|
|
11
|
+
* @param value The value to check.
|
|
12
|
+
* @param expression The name of the expression that produced the value.
|
|
13
|
+
* @param message An additional message that will be included with the error.
|
|
14
|
+
*/
|
|
15
|
+
static assertUndefined(value: unknown, expression?: string, message?: string): asserts value is undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Assert that the provided value is not undefined and not null.
|
|
18
|
+
* @param value The value to check.
|
|
19
|
+
* @param expression The name of the expression that produced the value.
|
|
20
|
+
* @param message An additional message that will be included with the error.
|
|
21
|
+
*/
|
|
22
|
+
static assertNotUndefined<T>(value: T, expression?: string, message?: string): asserts value is NonNullable<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Assert that the provided value is not undefined and not null.
|
|
25
|
+
* @param value The value to check.
|
|
26
|
+
* @param expression The name of the expression that produced the value.
|
|
27
|
+
* @param message An additional message that will be included with the error.
|
|
28
|
+
*/
|
|
29
|
+
static assertNotUndefinedAndNotNull<T>(value: T, expression?: string, message?: string): asserts value is NonNullable<T>;
|
|
30
|
+
/**
|
|
31
|
+
* Assert that the provided value is true.
|
|
32
|
+
* @param value The value to check.
|
|
33
|
+
* @param expression The name of the expression that produced the value.
|
|
34
|
+
* @param message An additional message that will be included with the error.
|
|
35
|
+
*/
|
|
36
|
+
static assertTrue(value: boolean, expression?: string, message?: string): asserts value is true;
|
|
37
|
+
/**
|
|
38
|
+
* Assert that the provided value is false.
|
|
39
|
+
* @param value The value to check.
|
|
40
|
+
* @param expression The name of the expression that produced the value.
|
|
41
|
+
* @param message An additional message that will be included with the error.
|
|
42
|
+
*/
|
|
43
|
+
static assertFalse(value: boolean, expression?: string, message?: string): asserts value is false;
|
|
44
|
+
/**
|
|
45
|
+
* Assert that the provided actual value is the same as the provided expected value.
|
|
46
|
+
* @param expected The expected value.
|
|
47
|
+
* @param actual The actual value.
|
|
48
|
+
* @param expression The expression that produced the actual value.
|
|
49
|
+
* @param message An optional message that describes the scenario.
|
|
50
|
+
*/
|
|
51
|
+
static assertSame<T>(expected: T, actual: T, expression?: string, message?: string): void;
|
|
52
|
+
/**
|
|
53
|
+
* Assert that the provided actual value is not the same as the provided expected value.
|
|
54
|
+
* @param expected The expected value.
|
|
55
|
+
* @param actual The actual value.
|
|
56
|
+
* @param expression The expression that produced the actual value.
|
|
57
|
+
* @param message An optional message that describes the scenario.
|
|
58
|
+
*/
|
|
59
|
+
static assertNotSame<T>(expected: T, actual: T, expression?: string, message?: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* Assert that the provided actual value is equal to the provided expected value.
|
|
62
|
+
* @param expected The expected value.
|
|
63
|
+
* @param actual The actual value.
|
|
64
|
+
* @param expression The expression that produced the actual value.
|
|
65
|
+
* @param message An optional message that describes the scenario.
|
|
66
|
+
*/
|
|
67
|
+
static assertEqual<T>(expected: T, actual: T, expression?: string, message?: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Assert that the provided actual value is not equal to the provided expected value.
|
|
70
|
+
* @param notExpected The not expected value.
|
|
71
|
+
* @param actual The actual value.
|
|
72
|
+
* @param expression The expression that produced the actual value.
|
|
73
|
+
* @param message An optional message that describes the scenario.
|
|
74
|
+
*/
|
|
75
|
+
static assertNotEqual<T>(notExpected: T, actual: T, expression?: string, message?: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Assert that the provided value is not empty.
|
|
78
|
+
* @param value The value to check.
|
|
79
|
+
* @param expression The expression that produced the actual value.
|
|
80
|
+
* @param message An optional message that describes the scenario.
|
|
81
|
+
*/
|
|
82
|
+
static assertNotEmpty(value: JavascriptIterable<unknown> | string | undefined | null, expression?: string, message?: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Assert that the provided value is less than the provided upperBound.
|
|
85
|
+
* @param value The value to check.
|
|
86
|
+
* @param upperBound The upperBound that the value must be less than.
|
|
87
|
+
* @param expression The expression that produced the actual value.
|
|
88
|
+
* @param message An optional message that describes the scenario.
|
|
89
|
+
*/
|
|
90
|
+
static assertLessThan(value: number, upperBound: number, expression?: string, message?: string): void;
|
|
91
|
+
/**
|
|
92
|
+
* Assert that the provided value is less than or equal to the provided upperBound.
|
|
93
|
+
* @param value The value to check.
|
|
94
|
+
* @param upperBound The upperBound that the value must be less than.
|
|
95
|
+
* @param expression The expression that produced the actual value.
|
|
96
|
+
* @param message An optional message that describes the scenario.
|
|
97
|
+
*/
|
|
98
|
+
static assertLessThanOrEqualTo(value: number, upperBound: number, expression?: string, message?: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Assert that the provided value is greater than or equal to the provided lowerBound.
|
|
101
|
+
* @param value The value to check.
|
|
102
|
+
* @param lowerBound The lowerBound that the value must be greater than or equal to.
|
|
103
|
+
* @param expression The expression that produced the actual value.
|
|
104
|
+
* @param message An optional message that describes the scenario.
|
|
105
|
+
*/
|
|
106
|
+
static assertGreaterThanOrEqualTo(value: number, lowerBound: number, expression?: string, message?: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Assert that the provided value is greater than the provided lowerBound.
|
|
109
|
+
* @param value The value to check.
|
|
110
|
+
* @param lowerBound The lowerBound that the value must be greater than.
|
|
111
|
+
* @param expression The expression that produced the actual value.
|
|
112
|
+
* @param message An optional message that describes the scenario.
|
|
113
|
+
*/
|
|
114
|
+
static assertGreaterThan(value: number, lowerBound: number, expression?: string, message?: string): void;
|
|
115
|
+
/**
|
|
116
|
+
* Assert that the value is greater than or equal to the lowerBound and less than or equal to
|
|
117
|
+
* the upperBound.
|
|
118
|
+
* @param lowerBound The lowerBound that the value must be greater than or equal to.
|
|
119
|
+
* @param value The value to check.
|
|
120
|
+
* @param upperBound The upperBound that the value must be less than or equal to.
|
|
121
|
+
* @param expression The expression that produced the actual value.
|
|
122
|
+
* @param message An optional message that describes the scenario.
|
|
123
|
+
*/
|
|
124
|
+
static assertBetween(lowerBound: number, value: number, upperBound: number, expression?: string, message?: string): void;
|
|
125
|
+
/**
|
|
126
|
+
* Assert that the index is within the access bounds of an indexable with the provided count.
|
|
127
|
+
* @param index The index to check.
|
|
128
|
+
* @param count The number of elements in the indexable.
|
|
129
|
+
* @param expression The expression that produced the actual value.
|
|
130
|
+
* @param message An optional message that describes the scenario.
|
|
131
|
+
*/
|
|
132
|
+
static assertAccessIndex(index: number, count: number, expression?: string, message?: string): void;
|
|
133
|
+
/**
|
|
134
|
+
* Assert that the index is within the insertion bounds of a {@link List} with the provided count.
|
|
135
|
+
* @param index The index to check.
|
|
136
|
+
* @param count The number of elements in the indexable.
|
|
137
|
+
* @param expression The expression that produced the actual value.
|
|
138
|
+
* @param message An optional message that describes the scenario.
|
|
139
|
+
*/
|
|
140
|
+
static assertInsertIndex(index: number, count: number, expression?: string, message?: string): void;
|
|
141
|
+
/**
|
|
142
|
+
* Assert that the value is one of the possibilities.
|
|
143
|
+
* @param possibilities The possible values that the value can be.
|
|
144
|
+
* @param value The value to check.
|
|
145
|
+
* @param expression The expression that produced the value.
|
|
146
|
+
* @param message An optional error message.
|
|
147
|
+
*/
|
|
148
|
+
static assertOneOf<T>(possibilities: JavascriptIterable<T>, value: T, expression?: string, message?: string): void;
|
|
149
|
+
/**
|
|
150
|
+
* Assert that the value is within the bounds of a byte.
|
|
151
|
+
* @param value The value to check.
|
|
152
|
+
* @param expression The expression that produced the value.
|
|
153
|
+
* @param message An optional error message.
|
|
154
|
+
*/
|
|
155
|
+
static assertByte(value: number, expression?: string, message?: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* Assert that the value is an integer.
|
|
158
|
+
* @param value The value to check.
|
|
159
|
+
* @param expression The expression that produced the value.
|
|
160
|
+
* @param message An optional error message.
|
|
161
|
+
*/
|
|
162
|
+
static assertInteger(value: number, expression?: string, message?: string): void;
|
|
163
|
+
/**
|
|
164
|
+
* Assert that the value is a characer (single character string).
|
|
165
|
+
* @param value The value to check.
|
|
166
|
+
* @param expression The expression that produced the value.
|
|
167
|
+
* @param message An optional error message.
|
|
168
|
+
*/
|
|
169
|
+
static assertCharacter(value: string, expression?: string, message?: string): void;
|
|
170
|
+
/**
|
|
171
|
+
* Assert that the provided value is an instance of the provided {@link Type}.
|
|
172
|
+
* @param value The value to check.
|
|
173
|
+
* @param type The {@link Type} to check.
|
|
174
|
+
* @param expression The expression that produced the value.
|
|
175
|
+
* @param message An optional error message.
|
|
176
|
+
*/
|
|
177
|
+
assertInstanceOf<T>(value: unknown, type: Type<T>, typeCheck?: (value: unknown) => value is T, expression?: string, message?: string): asserts value is T;
|
|
178
|
+
assertInstanceOf<T>(parameters: {
|
|
179
|
+
value: unknown;
|
|
180
|
+
type: Type<T>;
|
|
181
|
+
typeCheck?: (value: unknown) => value is T;
|
|
182
|
+
expression?: string;
|
|
183
|
+
message?: string;
|
|
184
|
+
}): void;
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=preCondition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preCondition.d.ts","sourceRoot":"","sources":["../../sources/preCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAA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EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;IAC1J,gBAAgB,CAAC,CAAC,EAAE,UAAU,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAKtK"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { MutableCondition } from "./mutableCondition.js";
|
|
2
|
+
import { PreConditionError } from "./preConditionError.js";
|
|
3
|
+
/**
|
|
4
|
+
* A type that encapsulates conditions that should exist before an operation takes place.
|
|
5
|
+
*/
|
|
6
|
+
export class PreCondition {
|
|
7
|
+
static condition;
|
|
8
|
+
static getCondition() {
|
|
9
|
+
if (PreCondition.condition === undefined) {
|
|
10
|
+
PreCondition.condition = MutableCondition.create()
|
|
11
|
+
.setCreateErrorFunction((message) => {
|
|
12
|
+
return new PreConditionError(message);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return PreCondition.condition;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Assert that the provided value is undefined.
|
|
19
|
+
* @param value The value to check.
|
|
20
|
+
* @param expression The name of the expression that produced the value.
|
|
21
|
+
* @param message An additional message that will be included with the error.
|
|
22
|
+
*/
|
|
23
|
+
static assertUndefined(value, expression, message) {
|
|
24
|
+
return PreCondition.getCondition().assertUndefined(value, expression, message);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Assert that the provided value is not undefined and not null.
|
|
28
|
+
* @param value The value to check.
|
|
29
|
+
* @param expression The name of the expression that produced the value.
|
|
30
|
+
* @param message An additional message that will be included with the error.
|
|
31
|
+
*/
|
|
32
|
+
static assertNotUndefined(value, expression, message) {
|
|
33
|
+
return PreCondition.getCondition().assertNotUndefined(value, expression, message);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Assert that the provided value is not undefined and not null.
|
|
37
|
+
* @param value The value to check.
|
|
38
|
+
* @param expression The name of the expression that produced the value.
|
|
39
|
+
* @param message An additional message that will be included with the error.
|
|
40
|
+
*/
|
|
41
|
+
static assertNotUndefinedAndNotNull(value, expression, message) {
|
|
42
|
+
return PreCondition.getCondition().assertNotUndefinedAndNotNull(value, expression, message);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Assert that the provided value is true.
|
|
46
|
+
* @param value The value to check.
|
|
47
|
+
* @param expression The name of the expression that produced the value.
|
|
48
|
+
* @param message An additional message that will be included with the error.
|
|
49
|
+
*/
|
|
50
|
+
static assertTrue(value, expression, message) {
|
|
51
|
+
return PreCondition.getCondition().assertTrue(value, expression, message);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Assert that the provided value is false.
|
|
55
|
+
* @param value The value to check.
|
|
56
|
+
* @param expression The name of the expression that produced the value.
|
|
57
|
+
* @param message An additional message that will be included with the error.
|
|
58
|
+
*/
|
|
59
|
+
static assertFalse(value, expression, message) {
|
|
60
|
+
return PreCondition.getCondition().assertFalse(value, expression, message);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Assert that the provided actual value is the same as the provided expected value.
|
|
64
|
+
* @param expected The expected value.
|
|
65
|
+
* @param actual The actual value.
|
|
66
|
+
* @param expression The expression that produced the actual value.
|
|
67
|
+
* @param message An optional message that describes the scenario.
|
|
68
|
+
*/
|
|
69
|
+
static assertSame(expected, actual, expression, message) {
|
|
70
|
+
return PreCondition.getCondition().assertSame(expected, actual, expression, message);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Assert that the provided actual value is not the same as the provided expected value.
|
|
74
|
+
* @param expected The expected value.
|
|
75
|
+
* @param actual The actual value.
|
|
76
|
+
* @param expression The expression that produced the actual value.
|
|
77
|
+
* @param message An optional message that describes the scenario.
|
|
78
|
+
*/
|
|
79
|
+
static assertNotSame(expected, actual, expression, message) {
|
|
80
|
+
return PreCondition.getCondition().assertNotSame(expected, actual, expression, message);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Assert that the provided actual value is equal to the provided expected value.
|
|
84
|
+
* @param expected The expected value.
|
|
85
|
+
* @param actual The actual value.
|
|
86
|
+
* @param expression The expression that produced the actual value.
|
|
87
|
+
* @param message An optional message that describes the scenario.
|
|
88
|
+
*/
|
|
89
|
+
static assertEqual(expected, actual, expression, message) {
|
|
90
|
+
return PreCondition.getCondition().assertEqual(expected, actual, expression, message);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Assert that the provided actual value is not equal to the provided expected value.
|
|
94
|
+
* @param notExpected The not expected value.
|
|
95
|
+
* @param actual The actual value.
|
|
96
|
+
* @param expression The expression that produced the actual value.
|
|
97
|
+
* @param message An optional message that describes the scenario.
|
|
98
|
+
*/
|
|
99
|
+
static assertNotEqual(notExpected, actual, expression, message) {
|
|
100
|
+
return PreCondition.getCondition().assertNotEqual(notExpected, actual, expression, message);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Assert that the provided value is not empty.
|
|
104
|
+
* @param value The value to check.
|
|
105
|
+
* @param expression The expression that produced the actual value.
|
|
106
|
+
* @param message An optional message that describes the scenario.
|
|
107
|
+
*/
|
|
108
|
+
static assertNotEmpty(value, expression, message) {
|
|
109
|
+
return PreCondition.getCondition().assertNotEmpty(value, expression, message);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Assert that the provided value is less than the provided upperBound.
|
|
113
|
+
* @param value The value to check.
|
|
114
|
+
* @param upperBound The upperBound that the value must be less than.
|
|
115
|
+
* @param expression The expression that produced the actual value.
|
|
116
|
+
* @param message An optional message that describes the scenario.
|
|
117
|
+
*/
|
|
118
|
+
static assertLessThan(value, upperBound, expression, message) {
|
|
119
|
+
return PreCondition.getCondition().assertLessThan(value, upperBound, expression, message);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Assert that the provided value is less than or equal to the provided upperBound.
|
|
123
|
+
* @param value The value to check.
|
|
124
|
+
* @param upperBound The upperBound that the value must be less than.
|
|
125
|
+
* @param expression The expression that produced the actual value.
|
|
126
|
+
* @param message An optional message that describes the scenario.
|
|
127
|
+
*/
|
|
128
|
+
static assertLessThanOrEqualTo(value, upperBound, expression, message) {
|
|
129
|
+
return PreCondition.getCondition().assertLessThanOrEqualTo(value, upperBound, expression, message);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Assert that the provided value is greater than or equal to the provided lowerBound.
|
|
133
|
+
* @param value The value to check.
|
|
134
|
+
* @param lowerBound The lowerBound that the value must be greater than or equal to.
|
|
135
|
+
* @param expression The expression that produced the actual value.
|
|
136
|
+
* @param message An optional message that describes the scenario.
|
|
137
|
+
*/
|
|
138
|
+
static assertGreaterThanOrEqualTo(value, lowerBound, expression, message) {
|
|
139
|
+
return PreCondition.getCondition().assertGreaterThanOrEqualTo(value, lowerBound, expression, message);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Assert that the provided value is greater than the provided lowerBound.
|
|
143
|
+
* @param value The value to check.
|
|
144
|
+
* @param lowerBound The lowerBound that the value must be greater than.
|
|
145
|
+
* @param expression The expression that produced the actual value.
|
|
146
|
+
* @param message An optional message that describes the scenario.
|
|
147
|
+
*/
|
|
148
|
+
static assertGreaterThan(value, lowerBound, expression, message) {
|
|
149
|
+
return PreCondition.getCondition().assertGreaterThan(value, lowerBound, expression, message);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Assert that the value is greater than or equal to the lowerBound and less than or equal to
|
|
153
|
+
* the upperBound.
|
|
154
|
+
* @param lowerBound The lowerBound that the value must be greater than or equal to.
|
|
155
|
+
* @param value The value to check.
|
|
156
|
+
* @param upperBound The upperBound that the value must be less than or equal to.
|
|
157
|
+
* @param expression The expression that produced the actual value.
|
|
158
|
+
* @param message An optional message that describes the scenario.
|
|
159
|
+
*/
|
|
160
|
+
static assertBetween(lowerBound, value, upperBound, expression, message) {
|
|
161
|
+
return PreCondition.getCondition().assertBetween(lowerBound, value, upperBound, expression, message);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Assert that the index is within the access bounds of an indexable with the provided count.
|
|
165
|
+
* @param index The index to check.
|
|
166
|
+
* @param count The number of elements in the indexable.
|
|
167
|
+
* @param expression The expression that produced the actual value.
|
|
168
|
+
* @param message An optional message that describes the scenario.
|
|
169
|
+
*/
|
|
170
|
+
static assertAccessIndex(index, count, expression, message) {
|
|
171
|
+
return PreCondition.getCondition().assertAccessIndex(index, count, expression, message);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Assert that the index is within the insertion bounds of a {@link List} with the provided count.
|
|
175
|
+
* @param index The index to check.
|
|
176
|
+
* @param count The number of elements in the indexable.
|
|
177
|
+
* @param expression The expression that produced the actual value.
|
|
178
|
+
* @param message An optional message that describes the scenario.
|
|
179
|
+
*/
|
|
180
|
+
static assertInsertIndex(index, count, expression, message) {
|
|
181
|
+
return PreCondition.getCondition().assertInsertIndex(index, count, expression, message);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Assert that the value is one of the possibilities.
|
|
185
|
+
* @param possibilities The possible values that the value can be.
|
|
186
|
+
* @param value The value to check.
|
|
187
|
+
* @param expression The expression that produced the value.
|
|
188
|
+
* @param message An optional error message.
|
|
189
|
+
*/
|
|
190
|
+
static assertOneOf(possibilities, value, expression, message) {
|
|
191
|
+
return PreCondition.getCondition().assertOneOf(possibilities, value, expression, message);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Assert that the value is within the bounds of a byte.
|
|
195
|
+
* @param value The value to check.
|
|
196
|
+
* @param expression The expression that produced the value.
|
|
197
|
+
* @param message An optional error message.
|
|
198
|
+
*/
|
|
199
|
+
static assertByte(value, expression, message) {
|
|
200
|
+
return PreCondition.getCondition().assertByte(value, expression, message);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Assert that the value is an integer.
|
|
204
|
+
* @param value The value to check.
|
|
205
|
+
* @param expression The expression that produced the value.
|
|
206
|
+
* @param message An optional error message.
|
|
207
|
+
*/
|
|
208
|
+
static assertInteger(value, expression, message) {
|
|
209
|
+
return PreCondition.getCondition().assertInteger(value, expression, message);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Assert that the value is a characer (single character string).
|
|
213
|
+
* @param value The value to check.
|
|
214
|
+
* @param expression The expression that produced the value.
|
|
215
|
+
* @param message An optional error message.
|
|
216
|
+
*/
|
|
217
|
+
static assertCharacter(value, expression, message) {
|
|
218
|
+
return PreCondition.getCondition().assertCharacter(value, expression, message);
|
|
219
|
+
}
|
|
220
|
+
assertInstanceOf(parametersOrValue, type, typeCheck, expression, message) {
|
|
221
|
+
return PreCondition.getCondition().assertInstanceOf(parametersOrValue, type, typeCheck, expression, message);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=preCondition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preCondition.js","sourceRoot":"","sources":["../../sources/preCondition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;GAEG;AACH,MAAM,OAAgB,YAAY;IAEtB,MAAM,CAAC,SAAS,CAA+B;IAE/C,MAAM,CAAC,YAAY;QAEvB,IAAI,YAAY,CAAC,SAAS,KAAK,SAAS,EACxC,CA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AK;IAExC,YAAmB,GAAG,OAAO,EAAE,MAAM,EAAE,EAGtC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { join } from "./strings.js";
|
|
2
|
+
/**
|
|
3
|
+
* An {@link Error} that is thrown when a pre-condition fails.
|
|
4
|
+
*/
|
|
5
|
+
export class PreConditionError extends Error {
|
|
6
|
+
constructor(...message) {
|
|
7
|
+
super(join("\n", message));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=preConditionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preConditionError.js","sourceRoot":"","sources":["../../sources/preConditionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAExC,YAAmB,GAAG,OAAiB;QAEnC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/B,CAAC;CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
2
|
+
import { Type } from "./types.js";
|
|
3
|
+
export declare class PromiseAsyncResult<T> implements AsyncResult<T> {
|
|
4
|
+
private readonly promise;
|
|
5
|
+
private constructor();
|
|
6
|
+
static create<T>(actionOrPromise: (() => (T | Promise<T>)) | Promise<T>): PromiseAsyncResult<T>;
|
|
7
|
+
static empty(): PromiseAsyncResult<void>;
|
|
8
|
+
static value<T>(value: T): PromiseAsyncResult<T>;
|
|
9
|
+
static error<T>(error: unknown): PromiseAsyncResult<T>;
|
|
10
|
+
static yield(): PromiseAsyncResult<void>;
|
|
11
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseAsyncResult<TResult1 | TResult2>;
|
|
12
|
+
onValue(onValueFunction: (value: T) => (void | Promise<void>)): PromiseAsyncResult<T>;
|
|
13
|
+
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): PromiseAsyncResult<T | TResult>;
|
|
14
|
+
catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => (TResult | PromiseLike<TResult>)): PromiseAsyncResult<T | TResult>;
|
|
15
|
+
onError(onErrorFunction: (reason: unknown) => (void | PromiseLike<void>)): PromiseAsyncResult<T>;
|
|
16
|
+
onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => (void | PromiseLike<void>)): PromiseAsyncResult<T>;
|
|
17
|
+
convertError(convertErrorFunction: (reason: unknown) => (unknown | PromiseLike<unknown>)): PromiseAsyncResult<T>;
|
|
18
|
+
convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => (unknown | PromiseLike<unknown>)): PromiseAsyncResult<T>;
|
|
19
|
+
finally(onfinally?: (() => (void | Promise<void>)) | null): PromiseAsyncResult<T>;
|
|
20
|
+
readonly [Symbol.toStringTag]: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=promiseAsyncResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promiseAsyncResult.d.ts","sourceRoot":"","sources":["../../sources/promiseAsyncResult.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAgD,IAAI,EAAE,MAAM,YAAY,CAAC;AAEhF,qBAAa,kBAAkB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IAExD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IAErC,OAAO,eAKN;IAED,OAAc,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GA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AO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAC,CAAA;IA8BzJ,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACjG,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAqCjI,YAAY,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACjH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAmCjJ,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAGvF;IAED,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAiB;CACzD"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
import { instanceOfType, isPromise, isUndefinedOrNull } from "./types.js";
|
|
3
|
+
export class PromiseAsyncResult {
|
|
4
|
+
promise;
|
|
5
|
+
constructor(promise) {
|
|
6
|
+
PreCondition.assertNotUndefinedAndNotNull(promise, "promise");
|
|
7
|
+
this.promise = promise;
|
|
8
|
+
}
|
|
9
|
+
static create(actionOrPromise) {
|
|
10
|
+
PreCondition.assertNotUndefinedAndNotNull(actionOrPromise, "action or promise");
|
|
11
|
+
let promise;
|
|
12
|
+
if (isPromise(actionOrPromise)) {
|
|
13
|
+
promise = actionOrPromise;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
const action = actionOrPromise;
|
|
17
|
+
function actionExecutor(resolve, reject) {
|
|
18
|
+
try {
|
|
19
|
+
resolve(action());
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
reject(error);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
;
|
|
26
|
+
promise = new Promise(actionExecutor);
|
|
27
|
+
}
|
|
28
|
+
return new PromiseAsyncResult(promise);
|
|
29
|
+
}
|
|
30
|
+
static empty() {
|
|
31
|
+
return PromiseAsyncResult.create(Promise.resolve());
|
|
32
|
+
}
|
|
33
|
+
static value(value) {
|
|
34
|
+
return PromiseAsyncResult.create(Promise.resolve(value));
|
|
35
|
+
}
|
|
36
|
+
static error(error) {
|
|
37
|
+
return PromiseAsyncResult.create(Promise.reject(error));
|
|
38
|
+
}
|
|
39
|
+
static yield() {
|
|
40
|
+
return PromiseAsyncResult.create(Promise.resolve());
|
|
41
|
+
}
|
|
42
|
+
then(onfulfilled, onrejected) {
|
|
43
|
+
return PromiseAsyncResult.create(this.promise.then(onfulfilled, onrejected));
|
|
44
|
+
}
|
|
45
|
+
onValue(onValueFunction) {
|
|
46
|
+
return this.then(async (value) => {
|
|
47
|
+
let result;
|
|
48
|
+
try {
|
|
49
|
+
await onValueFunction(value);
|
|
50
|
+
result = this;
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
result = PromiseAsyncResult.error(error);
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
catch(errorTypeOrOnRejected, onrejected) {
|
|
59
|
+
let errorType;
|
|
60
|
+
if (!isUndefinedOrNull(onrejected)) {
|
|
61
|
+
errorType = errorTypeOrOnRejected;
|
|
62
|
+
PreCondition.assertNotUndefinedAndNotNull(errorType, "errorType");
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
onrejected = errorTypeOrOnRejected;
|
|
66
|
+
}
|
|
67
|
+
return PromiseAsyncResult.create(this.promise.catch((reason) => {
|
|
68
|
+
let value;
|
|
69
|
+
if (errorType && !instanceOfType(reason, errorType)) {
|
|
70
|
+
throw reason;
|
|
71
|
+
}
|
|
72
|
+
else if (!isUndefinedOrNull(onrejected)) {
|
|
73
|
+
value = onrejected(reason);
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
onError(errorTypeOrOnErrorFunction, onErrorFunction) {
|
|
79
|
+
let errorType;
|
|
80
|
+
if (!isUndefinedOrNull(onErrorFunction)) {
|
|
81
|
+
errorType = errorTypeOrOnErrorFunction;
|
|
82
|
+
PreCondition.assertNotUndefinedAndNotNull(errorType, "errorType");
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
onErrorFunction = errorTypeOrOnErrorFunction;
|
|
86
|
+
}
|
|
87
|
+
PreCondition.assertNotUndefinedAndNotNull(onErrorFunction, "onErrorFunction");
|
|
88
|
+
let result;
|
|
89
|
+
if (errorType) {
|
|
90
|
+
result = this.catch(errorType, async (reason) => {
|
|
91
|
+
await onErrorFunction(reason);
|
|
92
|
+
throw reason;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
result = this.catch(async (reason) => {
|
|
97
|
+
await onErrorFunction(reason);
|
|
98
|
+
throw reason;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
convertError(errorTypeOrConvertErrorFunction, convertErrorFunction) {
|
|
104
|
+
let errorType;
|
|
105
|
+
if (!isUndefinedOrNull(convertErrorFunction)) {
|
|
106
|
+
errorType = errorTypeOrConvertErrorFunction;
|
|
107
|
+
PreCondition.assertNotUndefinedAndNotNull(errorType, "errorType");
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
convertErrorFunction = errorTypeOrConvertErrorFunction;
|
|
111
|
+
}
|
|
112
|
+
PreCondition.assertNotUndefinedAndNotNull(convertErrorFunction, "convertErrorFunction");
|
|
113
|
+
let result;
|
|
114
|
+
if (errorType) {
|
|
115
|
+
result = this.catch(errorType, async (reason) => {
|
|
116
|
+
throw await convertErrorFunction(reason);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
result = this.catch(async (reason) => {
|
|
121
|
+
throw await convertErrorFunction(reason);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
finally(onfinally) {
|
|
127
|
+
return PromiseAsyncResult.create(this.promise.finally(onfinally));
|
|
128
|
+
}
|
|
129
|
+
[Symbol.toStringTag] = "AsyncResult";
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=promiseAsyncResult.js.map
|