@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,487 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "../sources/promiseAsyncResult.js";
|
|
2
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("promiseAsyncResult.ts", () => {
|
|
5
|
+
runner.testType("PromiseAsyncResult<T>", () => {
|
|
6
|
+
runner.testFunction("create()", () => {
|
|
7
|
+
function createErrorTest(testName, promise, expected) {
|
|
8
|
+
runner.test(testName, (test) => {
|
|
9
|
+
test.assertThrows(() => PromiseAsyncResult.create(promise), expected);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
createErrorTest("with undefined", undefined, new PreConditionError("Expression: action or promise", "Expected: not undefined and not null", "Actual: undefined"));
|
|
13
|
+
createErrorTest("with null", null, new PreConditionError("Expression: action or promise", "Expected: not undefined and not null", "Actual: null"));
|
|
14
|
+
runner.test("with Promise", async (test) => {
|
|
15
|
+
const result = PromiseAsyncResult.create(Promise.resolve(5));
|
|
16
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
17
|
+
const value = await result;
|
|
18
|
+
test.assertEqual(5, value);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
runner.testFunction("then()", () => {
|
|
22
|
+
runner.test("with error parent", async (test) => {
|
|
23
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
24
|
+
const thenResult = parentResult.then(() => "hello");
|
|
25
|
+
await test.assertThrowsAsync(thenResult, new Error("abc"));
|
|
26
|
+
});
|
|
27
|
+
runner.test("with error parent and thenFunction with side-effects", async (test) => {
|
|
28
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
29
|
+
let counter = 0;
|
|
30
|
+
const thenResult = parentResult.then(() => { counter++; return "hello"; });
|
|
31
|
+
test.assertEqual(0, counter);
|
|
32
|
+
await test.assertThrowsAsync(thenResult, new Error("abc"));
|
|
33
|
+
test.assertEqual(0, counter, "counter should still be 0 because the thenFunction shouldn't be invoked.");
|
|
34
|
+
});
|
|
35
|
+
runner.test("with successful parent and successful thenFunction that ignores parentResult value", async (test) => {
|
|
36
|
+
const parentResult = PromiseAsyncResult.value(1);
|
|
37
|
+
const thenResult = parentResult.then(() => "hello");
|
|
38
|
+
test.assertEqual("hello", await thenResult);
|
|
39
|
+
});
|
|
40
|
+
runner.test("with successful parent and successful thenFunction that uses parentResult value", async (test) => {
|
|
41
|
+
const parentResult = PromiseAsyncResult.value(1);
|
|
42
|
+
const thenResult = parentResult.then((argument) => (argument + 1).toString());
|
|
43
|
+
test.assertEqual("2", await thenResult);
|
|
44
|
+
});
|
|
45
|
+
runner.test("with successful parent and successful thenFunction that uses parentResult value with side-effects", async (test) => {
|
|
46
|
+
const parentResult = PromiseAsyncResult.value(1);
|
|
47
|
+
let counter = 0;
|
|
48
|
+
const thenResult = parentResult.then((argument) => { counter++; return (argument + 1).toString(); });
|
|
49
|
+
test.assertEqual(0, counter);
|
|
50
|
+
await PromiseAsyncResult.yield();
|
|
51
|
+
test.assertEqual(1, counter);
|
|
52
|
+
test.assertEqual("2", await thenResult);
|
|
53
|
+
test.assertEqual(1, counter);
|
|
54
|
+
});
|
|
55
|
+
runner.test("with successful parent and thenFunction that throws", async (test) => {
|
|
56
|
+
const parentResult = PromiseAsyncResult.value(10);
|
|
57
|
+
let counter = 0;
|
|
58
|
+
const thenResult = parentResult.then((argument) => {
|
|
59
|
+
counter++;
|
|
60
|
+
throw new Error(`arg: ${argument}, ${counter}`);
|
|
61
|
+
});
|
|
62
|
+
test.assertEqual(counter, 0);
|
|
63
|
+
await PromiseAsyncResult.yield();
|
|
64
|
+
test.assertEqual(counter, 1);
|
|
65
|
+
for (let i = 0; i < 3; i++) {
|
|
66
|
+
await test.assertThrowsAsync(thenResult, new Error("arg: 10, 1"));
|
|
67
|
+
test.assertEqual(counter, 1);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
runner.testFunction("onValue()", () => {
|
|
72
|
+
runner.test("with error parent", async (test) => {
|
|
73
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
74
|
+
let counter = 0;
|
|
75
|
+
const onValueResult = parentResult.onValue(() => { counter++; });
|
|
76
|
+
test.assertSame(counter, 0);
|
|
77
|
+
for (let i = 0; i < 3; i++) {
|
|
78
|
+
await test.assertThrowsAsync(onValueResult, new Error("abc"));
|
|
79
|
+
test.assertSame(counter, 0);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
runner.test("with successful parent and successful thenFunction that ignores parentResult value", async (test) => {
|
|
83
|
+
const parentResult = PromiseAsyncResult.value(10);
|
|
84
|
+
let counter = 0;
|
|
85
|
+
const onValueResult = parentResult.onValue(() => { counter++; });
|
|
86
|
+
test.assertSame(counter, 0);
|
|
87
|
+
for (let i = 0; i < 3; i++) {
|
|
88
|
+
test.assertSame(10, await onValueResult);
|
|
89
|
+
test.assertSame(counter, 1);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
runner.test("with successful parent and successful thenFunction that uses parentResult value", async (test) => {
|
|
93
|
+
const parentResult = PromiseAsyncResult.value(2);
|
|
94
|
+
let counter = 0;
|
|
95
|
+
const onValueResult = parentResult.onValue((argument) => { counter += argument; });
|
|
96
|
+
test.assertSame(counter, 0);
|
|
97
|
+
for (let i = 0; i < 3; i++) {
|
|
98
|
+
test.assertSame(await onValueResult, 2);
|
|
99
|
+
test.assertSame(counter, 2);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
runner.test("with successful parent and onValueFunction that throws", async (test) => {
|
|
103
|
+
const parentResult = PromiseAsyncResult.value(2);
|
|
104
|
+
let counter = 0;
|
|
105
|
+
const onValueResult = parentResult.onValue((argument) => {
|
|
106
|
+
counter += argument;
|
|
107
|
+
throw new Error(`argument: ${argument}`);
|
|
108
|
+
});
|
|
109
|
+
test.assertSame(counter, 0);
|
|
110
|
+
for (let i = 0; i < 3; i++) {
|
|
111
|
+
await test.assertThrowsAsync(onValueResult, new Error("argument: 2"));
|
|
112
|
+
test.assertSame(counter, 2);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
runner.testFunction("catch()", () => {
|
|
117
|
+
runner.test("with undefined errorType", (test) => {
|
|
118
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
119
|
+
test.assertThrows(() => parentResult.catch(undefined, () => 6), new PreConditionError("Expression: errorType", "Expected: not undefined and not null", "Actual: undefined"));
|
|
120
|
+
});
|
|
121
|
+
runner.test("with null errorType", (test) => {
|
|
122
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
123
|
+
test.assertThrows(() => parentResult.catch(null, () => 6), new PreConditionError("Expression: errorType", "Expected: not undefined and not null", "Actual: null"));
|
|
124
|
+
});
|
|
125
|
+
runner.test("with error parent", async (test) => {
|
|
126
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
127
|
+
const catchResult = parentResult.catch(Error, () => 20);
|
|
128
|
+
test.assertSame(await catchResult, 20);
|
|
129
|
+
});
|
|
130
|
+
runner.test("with error parent, no errorType, and no error parameter", async (test) => {
|
|
131
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
132
|
+
let counter = 0;
|
|
133
|
+
const catchResult = parentResult.catch(() => { counter++; return 21; });
|
|
134
|
+
test.assertSame(0, counter);
|
|
135
|
+
for (let i = 0; i < 3; i++) {
|
|
136
|
+
test.assertSame(await catchResult, 21);
|
|
137
|
+
test.assertSame(1, counter);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
runner.test("with error parent, no errorType, and unknown error parameter", async (test) => {
|
|
141
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
142
|
+
let counter = 0;
|
|
143
|
+
const catchResult = parentResult.catch((error) => {
|
|
144
|
+
if (error instanceof Error) {
|
|
145
|
+
counter += error.message.length;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
counter -= 1;
|
|
149
|
+
}
|
|
150
|
+
return 21;
|
|
151
|
+
});
|
|
152
|
+
test.assertSame(0, counter);
|
|
153
|
+
for (let i = 0; i < 3; i++) {
|
|
154
|
+
test.assertSame(await catchResult, 21);
|
|
155
|
+
test.assertSame(3, counter);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
runner.test("with error parent and catchFunction with side-effects", async (test) => {
|
|
159
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
160
|
+
let counter = 0;
|
|
161
|
+
const catchResult = parentResult.catch(Error, () => { counter++; return 21; });
|
|
162
|
+
test.assertSame(0, counter);
|
|
163
|
+
for (let i = 0; i < 3; i++) {
|
|
164
|
+
test.assertSame(await catchResult, 21);
|
|
165
|
+
test.assertSame(1, counter);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
runner.test("with errorType that is a super-type of the actual error without error parameter", async (test) => {
|
|
169
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
170
|
+
const catchResult = parentResult.catch(Error, () => 5);
|
|
171
|
+
test.assertSame(await catchResult, 5);
|
|
172
|
+
});
|
|
173
|
+
runner.test("with errorType that is a super-type of the actual error with error parameter", async (test) => {
|
|
174
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
175
|
+
const catchResult = parentResult.catch(Error, (error) => error.message.length);
|
|
176
|
+
test.assertSame(await catchResult, 3);
|
|
177
|
+
});
|
|
178
|
+
runner.test("with errorType that is a sub-type of the actual error", async (test) => {
|
|
179
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
180
|
+
const catchResult = parentResult.catch(PreConditionError, () => 20);
|
|
181
|
+
await test.assertThrowsAsync(catchResult, new Error("abc"));
|
|
182
|
+
});
|
|
183
|
+
runner.test("with errorType that is unrelated to the actual error", async (test) => {
|
|
184
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("def"));
|
|
185
|
+
const catchResult = parentResult.catch(RangeError, () => 20);
|
|
186
|
+
await test.assertThrowsAsync(catchResult, new PreConditionError("def"));
|
|
187
|
+
});
|
|
188
|
+
runner.test("with catchFunction that throws", async (test) => {
|
|
189
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("def"));
|
|
190
|
+
const catchResult = parentResult.catch(Error, () => { throw new TypeError("abc"); });
|
|
191
|
+
await test.assertThrowsAsync(catchResult, new TypeError("abc"));
|
|
192
|
+
});
|
|
193
|
+
runner.test("with successful parent", async (test) => {
|
|
194
|
+
const parentResult = PromiseAsyncResult.value(1);
|
|
195
|
+
const catchResult = parentResult.catch(Error, () => 2);
|
|
196
|
+
test.assertSame(await catchResult, 1);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
runner.testFunction("onError()", () => {
|
|
200
|
+
runner.test("with undefined errorType", (test) => {
|
|
201
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
202
|
+
test.assertThrows(() => parentResult.onError(undefined, () => { }), new PreConditionError("Expression: errorType", "Expected: not undefined and not null", "Actual: undefined"));
|
|
203
|
+
});
|
|
204
|
+
runner.test("with null errorType", (test) => {
|
|
205
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
206
|
+
test.assertThrows(() => parentResult.onError(null, () => { }), new PreConditionError("Expression: errorType", "Expected: not undefined and not null", "Actual: null"));
|
|
207
|
+
});
|
|
208
|
+
runner.test("with error parent, no errorType, and no error parameter", async (test) => {
|
|
209
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
210
|
+
let counter = 0;
|
|
211
|
+
const catchResult = parentResult.onError(() => { counter++; });
|
|
212
|
+
test.assertSame(0, counter);
|
|
213
|
+
for (let i = 0; i < 3; i++) {
|
|
214
|
+
await test.assertThrowsAsync(catchResult, new Error("abc"));
|
|
215
|
+
test.assertSame(1, counter);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
runner.test("with error parent, no errorType, and unknown error parameter", async (test) => {
|
|
219
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
220
|
+
let counter = 0;
|
|
221
|
+
const catchResult = parentResult.onError((error) => {
|
|
222
|
+
if (error instanceof Error) {
|
|
223
|
+
counter += error.message.length;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
counter -= 1;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
test.assertSame(0, counter);
|
|
230
|
+
for (let i = 0; i < 3; i++) {
|
|
231
|
+
await test.assertThrowsAsync(catchResult, new Error("abc"));
|
|
232
|
+
test.assertSame(3, counter);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
runner.test("with errorType that is a super-type of the actual error without error parameter", async (test) => {
|
|
236
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
237
|
+
let counter = 0;
|
|
238
|
+
const catchResult = parentResult.onError(Error, () => { counter++; });
|
|
239
|
+
test.assertSame(counter, 0);
|
|
240
|
+
for (let i = 0; i < 3; i++) {
|
|
241
|
+
await test.assertThrowsAsync(catchResult, new PreConditionError("abc"));
|
|
242
|
+
test.assertSame(counter, 1);
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
runner.test("with errorType that is a super-type of the actual error with error parameter", async (test) => {
|
|
246
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
247
|
+
let counter = 0;
|
|
248
|
+
const catchResult = parentResult.onError(Error, (error) => { counter += error.message.length; });
|
|
249
|
+
test.assertSame(counter, 0);
|
|
250
|
+
for (let i = 0; i < 3; i++) {
|
|
251
|
+
await test.assertThrowsAsync(catchResult, new PreConditionError("abc"));
|
|
252
|
+
test.assertSame(counter, 3);
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
runner.test("with errorType that is a sub-type of the actual error", async (test) => {
|
|
256
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
257
|
+
let counter = 0;
|
|
258
|
+
const catchResult = parentResult.onError(PreConditionError, () => { counter++; });
|
|
259
|
+
test.assertSame(counter, 0);
|
|
260
|
+
for (let i = 0; i < 3; i++) {
|
|
261
|
+
await test.assertThrowsAsync(catchResult, new Error("abc"));
|
|
262
|
+
test.assertSame(counter, 0);
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
runner.test("with errorType that is unrelated to the actual error", async (test) => {
|
|
266
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("def"));
|
|
267
|
+
let counter = 0;
|
|
268
|
+
const catchResult = parentResult.onError(RangeError, () => { counter++; });
|
|
269
|
+
test.assertSame(counter, 0);
|
|
270
|
+
for (let i = 0; i < 3; i++) {
|
|
271
|
+
await test.assertThrowsAsync(catchResult, new PreConditionError("def"));
|
|
272
|
+
test.assertSame(counter, 0);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
runner.test("with onErrorFunction that throws", async (test) => {
|
|
276
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("def"));
|
|
277
|
+
let counter = 0;
|
|
278
|
+
const catchResult = parentResult.onError(Error, () => { counter++; throw new Error("abc"); });
|
|
279
|
+
test.assertSame(counter, 0);
|
|
280
|
+
for (let i = 0; i < 3; i++) {
|
|
281
|
+
await test.assertThrowsAsync(catchResult, new Error("abc"));
|
|
282
|
+
test.assertSame(counter, 1);
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
runner.test("with successful parent", async (test) => {
|
|
286
|
+
const parentResult = PromiseAsyncResult.value(1);
|
|
287
|
+
let counter = 0;
|
|
288
|
+
const catchResult = parentResult.onError(Error, () => { counter++; });
|
|
289
|
+
test.assertSame(counter, 0);
|
|
290
|
+
for (let i = 0; i < 3; i++) {
|
|
291
|
+
test.assertSame(await catchResult, 1);
|
|
292
|
+
test.assertSame(counter, 0);
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
runner.testFunction("convertError()", () => {
|
|
297
|
+
runner.test("with undefined convertErrorFunction", (test) => {
|
|
298
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
299
|
+
test.assertThrows(() => parentResult.convertError(undefined), new PreConditionError("Expression: convertErrorFunction", "Expected: not undefined and not null", "Actual: undefined"));
|
|
300
|
+
});
|
|
301
|
+
runner.test("with null convertErrorFunction", (test) => {
|
|
302
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
303
|
+
test.assertThrows(() => parentResult.convertError(null), new PreConditionError("Expression: convertErrorFunction", "Expected: not undefined and not null", "Actual: null"));
|
|
304
|
+
});
|
|
305
|
+
runner.test("with successful parent", async (test) => {
|
|
306
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
307
|
+
let counter = 0;
|
|
308
|
+
const convertErrorResult = parentResult.convertError((error) => {
|
|
309
|
+
counter++;
|
|
310
|
+
return new Error(`${error} - def`);
|
|
311
|
+
});
|
|
312
|
+
test.assertSame(counter, 0);
|
|
313
|
+
for (let i = 0; i < 3; i++) {
|
|
314
|
+
test.assertSame(await convertErrorResult, 5);
|
|
315
|
+
test.assertSame(counter, 0);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
runner.test("with error parent and non-throwing convertErrorFunction", async (test) => {
|
|
319
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
320
|
+
let counter = 0;
|
|
321
|
+
const convertErrorResult = parentResult.convertError((error) => {
|
|
322
|
+
counter++;
|
|
323
|
+
return new Error(`${error.message} - def`);
|
|
324
|
+
});
|
|
325
|
+
test.assertSame(counter, 0);
|
|
326
|
+
for (let i = 0; i < 3; i++) {
|
|
327
|
+
await test.assertThrowsAsync(convertErrorResult, new Error("abc - def"));
|
|
328
|
+
test.assertSame(counter, 1);
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
runner.test("with error parent and throwing convertErrorFunction", async (test) => {
|
|
332
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
333
|
+
let counter = 0;
|
|
334
|
+
const convertErrorResult = parentResult.convertError((error) => {
|
|
335
|
+
counter++;
|
|
336
|
+
throw new Error(`${error.message} - def`);
|
|
337
|
+
});
|
|
338
|
+
test.assertSame(counter, 0);
|
|
339
|
+
for (let i = 0; i < 3; i++) {
|
|
340
|
+
await test.assertThrowsAsync(convertErrorResult, new Error("abc - def"));
|
|
341
|
+
test.assertSame(counter, 1);
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
runner.test("with successful parent", async (test) => {
|
|
345
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
346
|
+
let counter = 0;
|
|
347
|
+
const convertErrorResult = parentResult.convertError(Error, (error) => {
|
|
348
|
+
counter++;
|
|
349
|
+
return new Error(`${error.message} - def`);
|
|
350
|
+
});
|
|
351
|
+
test.assertSame(counter, 0);
|
|
352
|
+
for (let i = 0; i < 3; i++) {
|
|
353
|
+
test.assertSame(await convertErrorResult, 5);
|
|
354
|
+
test.assertSame(counter, 0);
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
runner.test("with error parent, exact error match, and non-throwing convertErrorFunction", async (test) => {
|
|
358
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
359
|
+
let counter = 0;
|
|
360
|
+
const convertErrorResult = parentResult.convertError(Error, (error) => {
|
|
361
|
+
counter++;
|
|
362
|
+
return new Error(`${error.message} - def`);
|
|
363
|
+
});
|
|
364
|
+
test.assertSame(counter, 0);
|
|
365
|
+
for (let i = 0; i < 3; i++) {
|
|
366
|
+
await test.assertThrowsAsync(convertErrorResult, new Error("abc - def"));
|
|
367
|
+
test.assertSame(counter, 1);
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
runner.test("with error parent, super error match, and non-throwing convertErrorFunction", async (test) => {
|
|
371
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
372
|
+
let counter = 0;
|
|
373
|
+
const convertErrorResult = parentResult.convertError(Error, (error) => {
|
|
374
|
+
counter++;
|
|
375
|
+
return new Error(`${error.message} - def`);
|
|
376
|
+
});
|
|
377
|
+
test.assertSame(counter, 0);
|
|
378
|
+
for (let i = 0; i < 3; i++) {
|
|
379
|
+
await test.assertThrowsAsync(convertErrorResult, new Error(`abc - def`));
|
|
380
|
+
test.assertSame(counter, 1);
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
runner.test("with error parent, no error match, and non-throwing convertErrorFunction", async (test) => {
|
|
384
|
+
const parentResult = PromiseAsyncResult.error(new PreConditionError("abc"));
|
|
385
|
+
let counter = 0;
|
|
386
|
+
const convertErrorResult = parentResult.convertError(TypeError, (error) => {
|
|
387
|
+
counter++;
|
|
388
|
+
return new Error(`${error} - def`);
|
|
389
|
+
});
|
|
390
|
+
test.assertSame(counter, 0);
|
|
391
|
+
for (let i = 0; i < 3; i++) {
|
|
392
|
+
await test.assertThrowsAsync(convertErrorResult, new PreConditionError("abc"));
|
|
393
|
+
test.assertSame(counter, 0);
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
runner.test("with error parent, exact error match, and throwing convertErrorFunction", async (test) => {
|
|
397
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
398
|
+
let counter = 0;
|
|
399
|
+
const convertErrorResult = parentResult.convertError(Error, (error) => {
|
|
400
|
+
counter++;
|
|
401
|
+
throw new Error(`${error.message} - def`);
|
|
402
|
+
});
|
|
403
|
+
test.assertSame(counter, 0);
|
|
404
|
+
for (let i = 0; i < 3; i++) {
|
|
405
|
+
await test.assertThrowsAsync(convertErrorResult, new Error("abc - def"));
|
|
406
|
+
test.assertSame(counter, 1);
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
runner.test("with error parent, super error match, and throwing convertErrorFunction", async (test) => {
|
|
410
|
+
const parentResult = PromiseAsyncResult.error(new TypeError("abc"));
|
|
411
|
+
let counter = 0;
|
|
412
|
+
const convertErrorResult = parentResult.convertError(Error, (error) => {
|
|
413
|
+
counter++;
|
|
414
|
+
throw new Error(`${error.message} - def`);
|
|
415
|
+
});
|
|
416
|
+
test.assertSame(counter, 0);
|
|
417
|
+
for (let i = 0; i < 3; i++) {
|
|
418
|
+
await test.assertThrowsAsync(convertErrorResult, new Error("abc - def"));
|
|
419
|
+
test.assertSame(counter, 1);
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
runner.test("with error parent, no error match, and throwing convertErrorFunction", async (test) => {
|
|
423
|
+
const parentResult = PromiseAsyncResult.error(new TypeError("abc"));
|
|
424
|
+
let counter = 0;
|
|
425
|
+
const convertErrorResult = parentResult.convertError(PreConditionError, () => {
|
|
426
|
+
counter++;
|
|
427
|
+
throw new Error("def");
|
|
428
|
+
});
|
|
429
|
+
test.assertSame(counter, 0);
|
|
430
|
+
for (let i = 0; i < 3; i++) {
|
|
431
|
+
await test.assertThrowsAsync(convertErrorResult, new TypeError("abc"));
|
|
432
|
+
test.assertSame(counter, 0);
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
runner.testFunction("finally()", () => {
|
|
437
|
+
runner.test("with successful parent and non-throwing onfinally function", async (test) => {
|
|
438
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
439
|
+
let counter = 0;
|
|
440
|
+
const finallyResult = parentResult.finally(() => { counter++; });
|
|
441
|
+
test.assertSame(counter, 0);
|
|
442
|
+
for (let i = 0; i < 3; i++) {
|
|
443
|
+
test.assertSame(await finallyResult, 5);
|
|
444
|
+
test.assertSame(counter, 1);
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
runner.test("with successful parent and throwing onfinally function", async (test) => {
|
|
448
|
+
const parentResult = PromiseAsyncResult.value(5);
|
|
449
|
+
let counter = 0;
|
|
450
|
+
const finallyResult = parentResult.finally(() => {
|
|
451
|
+
counter++;
|
|
452
|
+
throw new RangeError("oops!");
|
|
453
|
+
});
|
|
454
|
+
test.assertSame(counter, 0);
|
|
455
|
+
for (let i = 0; i < 3; i++) {
|
|
456
|
+
await test.assertThrowsAsync(finallyResult, new RangeError("oops!"));
|
|
457
|
+
test.assertSame(counter, 1);
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
runner.test("with error parent and non-throwing onfinally function", async (test) => {
|
|
461
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
462
|
+
let counter = 0;
|
|
463
|
+
const finallyResult = parentResult.finally(() => { counter++; });
|
|
464
|
+
test.assertSame(counter, 0);
|
|
465
|
+
for (let i = 0; i < 3; i++) {
|
|
466
|
+
await test.assertThrowsAsync(finallyResult, new Error("abc"));
|
|
467
|
+
test.assertSame(counter, 1);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
runner.test("with error parent and throwing onfinally function", async (test) => {
|
|
471
|
+
const parentResult = PromiseAsyncResult.error(new Error("abc"));
|
|
472
|
+
let counter = 0;
|
|
473
|
+
const convertErrorResult = parentResult.finally(() => {
|
|
474
|
+
counter++;
|
|
475
|
+
throw new RangeError("def");
|
|
476
|
+
});
|
|
477
|
+
test.assertSame(counter, 0);
|
|
478
|
+
for (let i = 0; i < 3; i++) {
|
|
479
|
+
await test.assertThrowsAsync(convertErrorResult, new RangeError("def"));
|
|
480
|
+
test.assertSame(counter, 1);
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
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E,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CA0D7C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Property } from "../sources/property.js";
|
|
2
|
+
export function test(runner) {
|
|
3
|
+
runner.testFile("property.ts", () => {
|
|
4
|
+
runner.testType("Property<T>", () => {
|
|
5
|
+
runner.testFunction("create()", () => {
|
|
6
|
+
runner.test("with initialValue", (test) => {
|
|
7
|
+
const property = Property.create(5);
|
|
8
|
+
test.assertEqual(5, property.getValue());
|
|
9
|
+
const setResult = property.setValue(20);
|
|
10
|
+
test.assertSame(property, setResult);
|
|
11
|
+
test.assertEqual(20, property.getValue());
|
|
12
|
+
test.assertEqual("20", property.toString());
|
|
13
|
+
});
|
|
14
|
+
runner.test("with getter and setter functions", (test) => {
|
|
15
|
+
let propertyValue = "hello";
|
|
16
|
+
const property = Property.create(() => propertyValue, (value) => { propertyValue = value; });
|
|
17
|
+
test.assertEqual("hello", property.getValue());
|
|
18
|
+
const setResult = property.setValue("there");
|
|
19
|
+
test.assertSame(property, setResult);
|
|
20
|
+
test.assertEqual("there", property.getValue());
|
|
21
|
+
test.assertEqual("there", propertyValue);
|
|
22
|
+
test.assertEqual("there", property.toString());
|
|
23
|
+
});
|
|
24
|
+
runner.test("with options", (test) => {
|
|
25
|
+
let propertyValue = "hello";
|
|
26
|
+
const property = Property.create({
|
|
27
|
+
getter: () => propertyValue,
|
|
28
|
+
setter: (value) => { propertyValue = value; },
|
|
29
|
+
});
|
|
30
|
+
test.assertEqual("hello", property.getValue());
|
|
31
|
+
const setResult = property.setValue("there");
|
|
32
|
+
test.assertSame(property, setResult);
|
|
33
|
+
test.assertEqual("there", property.getValue());
|
|
34
|
+
test.assertEqual("there", propertyValue);
|
|
35
|
+
test.assertEqual("there", property.toString());
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#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AAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queueTests.d.ts","sourceRoot":"","sources":["../../tests/queueTests.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAsB7C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EmptyError } from "../sources/emptyError.js";
|
|
2
|
+
import { Queue } from "../sources/queue.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("queue.ts", () => {
|
|
5
|
+
runner.testType("Queue<T>", () => {
|
|
6
|
+
runner.testFunction("create()", (test) => {
|
|
7
|
+
const queue = Queue.create();
|
|
8
|
+
test.assertNotUndefinedAndNotNull(queue);
|
|
9
|
+
test.assertFalse(queue.any().await());
|
|
10
|
+
test.assertThrows(() => queue.remove().await(), new EmptyError());
|
|
11
|
+
});
|
|
12
|
+
runner.testFunction("add()", (test) => {
|
|
13
|
+
const queue = Queue.create();
|
|
14
|
+
queue.add(20).await();
|
|
15
|
+
test.assertEqual(20, queue.remove().await());
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=queueTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queueTests.js","sourceRoot":"","sources":["../../tests/queueTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAI5C,MAAM,UAAU,IAAI,CAAC,MAAkB;IAEnC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QAE7B,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAA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