@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,88 @@
|
|
|
1
|
+
import { HttpIncomingRequest } from "./httpIncomingRequest.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
4
|
+
import { HttpHeaders } from "./httpHeaders.js";
|
|
5
|
+
import { parseHttpMethod } from "./httpMethod.js";
|
|
6
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
7
|
+
import { isArray } from "./types.js";
|
|
8
|
+
import { escapeAndQuote } from "./strings.js";
|
|
9
|
+
import { SyncResult } from "./syncResult.js";
|
|
10
|
+
export class NodeJSHttpIncomingRequest extends HttpIncomingRequest {
|
|
11
|
+
request;
|
|
12
|
+
constructor(request) {
|
|
13
|
+
PreCondition.assertNotUndefinedAndNotNull(request, "request");
|
|
14
|
+
super();
|
|
15
|
+
this.request = request;
|
|
16
|
+
}
|
|
17
|
+
static create(request) {
|
|
18
|
+
return new NodeJSHttpIncomingRequest(request);
|
|
19
|
+
}
|
|
20
|
+
getMethod() {
|
|
21
|
+
return parseHttpMethod(this.request.method).await();
|
|
22
|
+
}
|
|
23
|
+
getHost() {
|
|
24
|
+
return SyncResult.value(process.env.HOST ?? "localhost");
|
|
25
|
+
}
|
|
26
|
+
getURLPath() {
|
|
27
|
+
const url = new URL(this.request.url);
|
|
28
|
+
return url.pathname;
|
|
29
|
+
}
|
|
30
|
+
static toHttpHeader(header) {
|
|
31
|
+
const headerName = header[0];
|
|
32
|
+
const headerValue = this.toHttpHeaderValue(header[1]);
|
|
33
|
+
return HttpHeader.create(headerName, headerValue);
|
|
34
|
+
}
|
|
35
|
+
static toHttpHeaderValue(headerValue) {
|
|
36
|
+
let result = headerValue;
|
|
37
|
+
if (result === undefined) {
|
|
38
|
+
result = "";
|
|
39
|
+
}
|
|
40
|
+
else if (isArray(result)) {
|
|
41
|
+
result = result.join(",");
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
getHeaders() {
|
|
46
|
+
return SyncResult.value(HttpHeaders.create(Object.entries(this.request.headers).map(NodeJSHttpIncomingRequest.toHttpHeader)));
|
|
47
|
+
}
|
|
48
|
+
getHeader(headerName) {
|
|
49
|
+
PreCondition.assertNotEmpty(headerName, "headerName");
|
|
50
|
+
return SyncResult.create(() => {
|
|
51
|
+
let result;
|
|
52
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
53
|
+
for (const header of Object.entries(this.request.headers)) {
|
|
54
|
+
if (header[0].toLowerCase() === lowerHeaderName) {
|
|
55
|
+
result = HttpHeader.create(header[0], NodeJSHttpIncomingRequest.toHttpHeaderValue(header[1]));
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (result === undefined) {
|
|
60
|
+
throw new NotFoundError(`No header with the name ${escapeAndQuote(headerName)} found.`);
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
getHeaderValue(headerName) {
|
|
66
|
+
PreCondition.assertNotEmpty(headerName, "headerName");
|
|
67
|
+
return SyncResult.create(() => {
|
|
68
|
+
let result;
|
|
69
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
70
|
+
for (const header of Object.entries(this.request.headers)) {
|
|
71
|
+
if (header[0].toLowerCase() === lowerHeaderName) {
|
|
72
|
+
result = NodeJSHttpIncomingRequest.toHttpHeaderValue(header[1]);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (result === undefined) {
|
|
77
|
+
throw new NotFoundError(`No header with the name ${escapeAndQuote(headerName)} found.`);
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
getBody() {
|
|
83
|
+
return SyncResult.create(() => {
|
|
84
|
+
throw new NotFoundError("Could not read the body from the incoming HTTP request.");
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=nodeJSHttpIncomingRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeJSHttpIncomingRequest.js","sourceRoot":"","sources":["../../sources/nodeJSHttpIncomingRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAc,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,OAAO,yBAA0B,SAAQ,mBAAmB;IAE7C,OAAO,CAAuB;IAE/C,YAAoB,OAA6B;QAE7C,Y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CAAC,EACzD,CAAC;gBACG,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,eAAe,EAC/C,CAAC;oBACG,MAAM,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;oBAChE,MAAM;gBACV,CAAC;YACL,CAAC;YACD,IAAI,MAAM,KAAK,SAAS,EACxB,CAAC;gBACG,MAAM,IAAI,aAAa,CAAC,2BAA2B,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YAC5F,CAAC;YAED,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,OAAO;QAEV,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YAE1B,MAAM,IAAI,aAAa,CAAC,yDAAyD,CAAC,CAAC;QACvF,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpServer } from "./httpServer.js";
|
|
2
|
+
import { HttpIncomingRequest } from "./httpIncomingRequest.js";
|
|
3
|
+
import { HttpOutgoingResponse } from "./httpOutgoingResponse.js";
|
|
4
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
5
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link HttpServer} implementation that uses the Node.js HTTP module.
|
|
8
|
+
*/
|
|
9
|
+
export declare class NodeJSHttpServer extends HttpServer {
|
|
10
|
+
private httpServer;
|
|
11
|
+
private disposed;
|
|
12
|
+
private constructor();
|
|
13
|
+
static create(): NodeJSHttpServer;
|
|
14
|
+
dispose(): PromiseAsyncResult<boolean>;
|
|
15
|
+
isDisposed(): boolean;
|
|
16
|
+
isStarted(): boolean;
|
|
17
|
+
addRequestHandler(requestPath: string, handler: (request: HttpIncomingRequest, response: HttpOutgoingResponse) => AsyncResult<void>): void;
|
|
18
|
+
setDefaultRequestHandler(handler: (request: HttpIncomingRequest, response: HttpOutgoingResponse) => AsyncResult<void>): void;
|
|
19
|
+
start(portNumber: number): PromiseAsyncResult<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=nodeJSHttpServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeJSHttpServer.d.ts","sourceRoot":"","sources":["../../sources/nodeJSHttpServer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAE5C,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,QAAQ,CAAU;IAE1B,OAAO,eAKN;IAED,OAAc,MAAM,IAAI,gBAAgB,CAGvC;IAEM,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CA8B5C;IAEM,UAAU,IAAI,OAAO,CAG3B;IAEM,SAAS,IAAI,OAAO,CAG1B;IAEM,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,oBAAoB,KAAK,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAGhJ;IAEM,wBAAwB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,oBAAoB,KAAK,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAGlI;IAEM,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAuCzD;CACJ"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as http from "http";
|
|
2
|
+
import { HttpServer } from "./httpServer.js";
|
|
3
|
+
import { PreCondition } from "./preCondition.js";
|
|
4
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
5
|
+
import { NodeJSHttpOutgoingResponse } from "./NodeJSHttpOutgoingResponse.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link HttpServer} implementation that uses the Node.js HTTP module.
|
|
8
|
+
*/
|
|
9
|
+
export class NodeJSHttpServer extends HttpServer {
|
|
10
|
+
httpServer;
|
|
11
|
+
disposed;
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.disposed = false;
|
|
15
|
+
}
|
|
16
|
+
static create() {
|
|
17
|
+
return new NodeJSHttpServer();
|
|
18
|
+
}
|
|
19
|
+
dispose() {
|
|
20
|
+
return PromiseAsyncResult.create(new Promise((resolve, reject) => {
|
|
21
|
+
if (this.disposed) {
|
|
22
|
+
resolve(false);
|
|
23
|
+
}
|
|
24
|
+
else if (!this.httpServer) {
|
|
25
|
+
this.disposed = true;
|
|
26
|
+
resolve(true);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.httpServer.close((error) => {
|
|
30
|
+
if (error) {
|
|
31
|
+
reject(error);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.disposed = true;
|
|
35
|
+
this.httpServer = undefined;
|
|
36
|
+
resolve(true);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
isDisposed() {
|
|
43
|
+
return this.disposed;
|
|
44
|
+
}
|
|
45
|
+
isStarted() {
|
|
46
|
+
return !!this.httpServer;
|
|
47
|
+
}
|
|
48
|
+
addRequestHandler(requestPath, handler) {
|
|
49
|
+
throw new Error("Method not implemented.");
|
|
50
|
+
}
|
|
51
|
+
setDefaultRequestHandler(handler) {
|
|
52
|
+
throw new Error("Method not implemented.");
|
|
53
|
+
}
|
|
54
|
+
start(portNumber) {
|
|
55
|
+
PreCondition.assertGreaterThanOrEqualTo(portNumber, 1, "portNumber");
|
|
56
|
+
PreCondition.assertFalse(this.isDisposed(), "this.isDisposed()");
|
|
57
|
+
PreCondition.assertUndefined(this.httpServer, "this.httpServer");
|
|
58
|
+
return PromiseAsyncResult.create(new Promise((resolve, reject) => {
|
|
59
|
+
if (this.httpServer) {
|
|
60
|
+
reject(new Error("Can't run a HttpServer multiple times."));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this.httpServer = http.createServer();
|
|
64
|
+
this.httpServer.on("request", async (rawRequest, rawResponse) => {
|
|
65
|
+
// const httpRequest: HttpIncomingRequest = NodeJSHttpIncomingRequest.create(request);
|
|
66
|
+
const response = NodeJSHttpOutgoingResponse.create(rawResponse)
|
|
67
|
+
.setStatusCode(200)
|
|
68
|
+
.setHeader("Content-Type", "text/plain")
|
|
69
|
+
.setBodyString("Hello world!");
|
|
70
|
+
await response.end();
|
|
71
|
+
});
|
|
72
|
+
this.httpServer.on("close", () => {
|
|
73
|
+
resolve();
|
|
74
|
+
});
|
|
75
|
+
this.httpServer.on("error", (error) => {
|
|
76
|
+
reject(error);
|
|
77
|
+
});
|
|
78
|
+
this.httpServer.listen(portNumber);
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=nodeJSHttpServer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeJSHttpServer.js","sourceRoot":"","sources":["../../sources/nodeJSHttpServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAi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ClB,CAAC,CAAC,CAAC;gBAEH,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACvC,CAAC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notFoundError.d.ts","sourceRoot":"","sources":["../../sources/notFoundError.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK;IAEpC,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 value is not found.
|
|
4
|
+
*/
|
|
5
|
+
export class NotFoundError extends Error {
|
|
6
|
+
constructor(...message) {
|
|
7
|
+
super(join("\n", message));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=notFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notFoundError.js","sourceRoot":"","sources":["../../sources/notFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAEpC,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 PostCondition {
|
|
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=postCondition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postCondition.d.ts","sourceRoot":"","sources":["../../sources/postCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,8BAAsB,aAAa;IAE/B,OAAO,CAAC,MAAM,CAAC,SAAS,CAA+B;IAEvD,OAAO,CAAC,MAAM,CAAC,YAAY;IAa3B;;;;;OAKG;IACH,OAAc,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,SAAS,CAG/G;IAED;;;;;OAKG;IACH,OAAc,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CAGpH;IAED;;;;;OAKG;IACH,OAAc,4BAA4B,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,G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|
2
|
+
import { PostConditionError } from "./postConditionError.js";
|
|
3
|
+
/**
|
|
4
|
+
* A type that encapsulates conditions that should exist before an operation takes place.
|
|
5
|
+
*/
|
|
6
|
+
export class PostCondition {
|
|
7
|
+
static condition;
|
|
8
|
+
static getCondition() {
|
|
9
|
+
if (PostCondition.condition === undefined) {
|
|
10
|
+
PostCondition.condition = MutableCondition.create()
|
|
11
|
+
.setCreateErrorFunction((message) => {
|
|
12
|
+
return new PostConditionError(message);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.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 PostCondition.getCondition().assertCharacter(value, expression, message);
|
|
219
|
+
}
|
|
220
|
+
assertInstanceOf(parametersOrValue, type, typeCheck, expression, message) {
|
|
221
|
+
return PostCondition.getCondition().assertInstanceOf(parametersOrValue, type, typeCheck, expression, message);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=postCondition.js.map
|