@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,139 @@
|
|
|
1
|
+
import { Iterator } from "./iterator.js";
|
|
2
|
+
import { List } from "./list.js";
|
|
3
|
+
import { PreCondition } from "./preCondition.js";
|
|
4
|
+
import { SyncResult } from "./syncResult.js";
|
|
5
|
+
class InnerGeneratorControl {
|
|
6
|
+
returnValues;
|
|
7
|
+
done;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.returnValues = List.create();
|
|
10
|
+
this.done = false;
|
|
11
|
+
}
|
|
12
|
+
static create() {
|
|
13
|
+
return new InnerGeneratorControl();
|
|
14
|
+
}
|
|
15
|
+
addValue(returnValue) {
|
|
16
|
+
PreCondition.assertFalse(this.isDone(), "this.isDone()");
|
|
17
|
+
this.returnValues.add(returnValue);
|
|
18
|
+
}
|
|
19
|
+
addValues(returnValues) {
|
|
20
|
+
PreCondition.assertFalse(this.isDone(), "this.isDone()");
|
|
21
|
+
this.returnValues.addAll(returnValues);
|
|
22
|
+
}
|
|
23
|
+
hasCurrent() {
|
|
24
|
+
return this.returnValues.any().await();
|
|
25
|
+
}
|
|
26
|
+
getCurrent() {
|
|
27
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
28
|
+
PreCondition.assertFalse(this.isDone(), "this.isDone()");
|
|
29
|
+
return this.returnValues.first().await();
|
|
30
|
+
}
|
|
31
|
+
removeCurrent() {
|
|
32
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
33
|
+
PreCondition.assertFalse(this.isDone(), "this.isDone()");
|
|
34
|
+
this.returnValues.removeFirst().await();
|
|
35
|
+
}
|
|
36
|
+
setDone() {
|
|
37
|
+
PreCondition.assertFalse(this.hasCurrent(), "this.hasCurrent()");
|
|
38
|
+
PreCondition.assertFalse(this.isDone(), "this.isDone()");
|
|
39
|
+
this.done = true;
|
|
40
|
+
}
|
|
41
|
+
isDone() {
|
|
42
|
+
return this.done;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class Generator {
|
|
46
|
+
control;
|
|
47
|
+
generatorAction;
|
|
48
|
+
started;
|
|
49
|
+
constructor(generatorAction) {
|
|
50
|
+
PreCondition.assertNotUndefinedAndNotNull(generatorAction, "generatorAction");
|
|
51
|
+
this.control = InnerGeneratorControl.create();
|
|
52
|
+
this.generatorAction = generatorAction;
|
|
53
|
+
this.started = false;
|
|
54
|
+
}
|
|
55
|
+
static create(generatorAction) {
|
|
56
|
+
return new Generator(generatorAction);
|
|
57
|
+
}
|
|
58
|
+
next() {
|
|
59
|
+
return SyncResult.create(() => {
|
|
60
|
+
if (!this.control.isDone()) {
|
|
61
|
+
if (!this.hasStarted()) {
|
|
62
|
+
this.started = true;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.control.removeCurrent();
|
|
66
|
+
}
|
|
67
|
+
if (!this.control.hasCurrent()) {
|
|
68
|
+
const actionResult = this.generatorAction(this.control);
|
|
69
|
+
if (actionResult !== undefined) {
|
|
70
|
+
this.control.addValue(actionResult);
|
|
71
|
+
}
|
|
72
|
+
if (!this.control.hasCurrent()) {
|
|
73
|
+
this.control.setDone();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return this.hasCurrent();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
hasStarted() {
|
|
81
|
+
return this.started;
|
|
82
|
+
}
|
|
83
|
+
hasCurrent() {
|
|
84
|
+
return this.control.hasCurrent();
|
|
85
|
+
}
|
|
86
|
+
getCurrent() {
|
|
87
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
88
|
+
return this.control.getCurrent();
|
|
89
|
+
}
|
|
90
|
+
start() {
|
|
91
|
+
return Iterator.start(this);
|
|
92
|
+
}
|
|
93
|
+
takeCurrent() {
|
|
94
|
+
return Iterator.takeCurrent(this);
|
|
95
|
+
}
|
|
96
|
+
any() {
|
|
97
|
+
return Iterator.any(this);
|
|
98
|
+
}
|
|
99
|
+
getCount() {
|
|
100
|
+
return Iterator.getCount(this);
|
|
101
|
+
}
|
|
102
|
+
toArray() {
|
|
103
|
+
return Iterator.toArray(this);
|
|
104
|
+
}
|
|
105
|
+
concatenate(...toConcatenate) {
|
|
106
|
+
return Iterator.concatenate(this, ...toConcatenate);
|
|
107
|
+
}
|
|
108
|
+
where(condition) {
|
|
109
|
+
return Iterator.where(this, condition);
|
|
110
|
+
}
|
|
111
|
+
map(mapping) {
|
|
112
|
+
return Iterator.map(this, mapping);
|
|
113
|
+
}
|
|
114
|
+
flatMap(mapping) {
|
|
115
|
+
return Iterator.flatMap(this, mapping);
|
|
116
|
+
}
|
|
117
|
+
whereInstanceOf(typeCheck) {
|
|
118
|
+
return Iterator.whereInstanceOf(this, typeCheck);
|
|
119
|
+
}
|
|
120
|
+
whereInstanceOfType(type) {
|
|
121
|
+
return Iterator.whereInstanceOfType(this, type);
|
|
122
|
+
}
|
|
123
|
+
first(condition) {
|
|
124
|
+
return Iterator.first(this, condition);
|
|
125
|
+
}
|
|
126
|
+
last(condition) {
|
|
127
|
+
return Iterator.last(this, condition);
|
|
128
|
+
}
|
|
129
|
+
take(maximumToTake) {
|
|
130
|
+
return Iterator.take(this, maximumToTake);
|
|
131
|
+
}
|
|
132
|
+
skip(maximumToSkip) {
|
|
133
|
+
return Iterator.skip(this, maximumToSkip);
|
|
134
|
+
}
|
|
135
|
+
[Symbol.iterator]() {
|
|
136
|
+
return Iterator[Symbol.iterator](this);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../sources/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA+B7C,MAAM,qBAAqB;IAEN,YAAY,CAAU;IAC/B,IAAI,CAAU;IAEtB;QAEI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,MAAM;QAEhB,OAAO,IAAI,qBAAqB,EAAK,CAAC;IAC1C,CAAC;IAEM,QAAQ,CAAC,WAAc;QAE1B,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;QAEzD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAEM,SAAS,CAAC,YAAmC;QAEhD,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;QAEzD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;IAEM,UAAU;QAEb,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,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AI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,IAAI,CAAC,aAAqB;QAE7B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpOutgoingRequest } from "./httpOutgoingRequest.js";
|
|
2
|
+
import { HttpIncomingResponse } from "./httpIncomingResponse.js";
|
|
3
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
4
|
+
/**
|
|
5
|
+
* An object that can make HTTP network requests.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class HttpClient {
|
|
8
|
+
static create(): HttpClient;
|
|
9
|
+
/**
|
|
10
|
+
* Send the provided {@link HttpOutgoingRequest}.
|
|
11
|
+
* @param request The {@link HttpOutgoingRequest} to send.
|
|
12
|
+
*/
|
|
13
|
+
abstract sendRequest(request: HttpOutgoingRequest): AsyncResult<HttpIncomingResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Send a GET {@link HttpOutgoingRequest} to the provided URL.
|
|
16
|
+
* @param url The URL to send the GET {@link HttpOutgoingRequest} to.
|
|
17
|
+
*/
|
|
18
|
+
sendGetRequest(url: string): AsyncResult<HttpIncomingResponse>;
|
|
19
|
+
static sendGetRequest(httpClient: HttpClient, url: string): AsyncResult<HttpIncomingResponse>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=httpClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../sources/httpClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,8BAAsB,UAAU;IAE5B,OAAc,MAAM,IAAI,UAAU,CAGjC;IAED;;;OAGG;IACH,SAAgB,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAE7F;;;OAGG;IACI,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAGpE;IAED,OAAc,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAGnG;CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchHttpClient } from "./fetchHttpClient.js";
|
|
2
|
+
import { HttpOutgoingRequest } from "./httpOutgoingRequest.js";
|
|
3
|
+
import { HttpMethod } from "./httpMethod.js";
|
|
4
|
+
/**
|
|
5
|
+
* An object that can make HTTP network requests.
|
|
6
|
+
*/
|
|
7
|
+
export class HttpClient {
|
|
8
|
+
static create() {
|
|
9
|
+
return FetchHttpClient.create();
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Send a GET {@link HttpOutgoingRequest} to the provided URL.
|
|
13
|
+
* @param url The URL to send the GET {@link HttpOutgoingRequest} to.
|
|
14
|
+
*/
|
|
15
|
+
sendGetRequest(url) {
|
|
16
|
+
return HttpClient.sendGetRequest(this, url);
|
|
17
|
+
}
|
|
18
|
+
static sendGetRequest(httpClient, url) {
|
|
19
|
+
return httpClient.sendRequest(HttpOutgoingRequest.create(HttpMethod.GET, url));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=httpClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpClient.js","sourceRoot":"","sources":["../../sources/httpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;GAEG;AACH,MAAM,OAAgB,UAAU;IAErB,MAAM,CAAC,MAAM;QAEhB,OAAO,eAAe,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;IAQD;;;OAGG;IACI,cAAc,CAAC,GAAW;QAE7B,OAAO,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,UAAsB,EAAE,GAAW;QAE5D,OAAO,UAAU,CAAC,WAAW,CAAC,mBAAmB,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnF,CAAC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class HttpHeader {
|
|
2
|
+
private readonly name;
|
|
3
|
+
private readonly value;
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(name: string, value: string): HttpHeader;
|
|
6
|
+
getName(): string;
|
|
7
|
+
getValue(): string;
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=httpHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpHeader.d.ts","sourceRoot":"","sources":["../../sources/httpHeader.ts"],"names":[],"mappings":"AAGA,qBAAa,UAAU;IAEnB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAE/B,OAAO,eAON;IAED,OAAc,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAG5D;IAEM,OAAO,IAAI,MAAM,CAGvB;IAEM,QAAQ,IAAI,MAAM,CAGxB;IAEM,QAAQ,IAAI,MAAM,CAGxB;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
import { escapeAndQuote } from "./strings.js";
|
|
3
|
+
export class HttpHeader {
|
|
4
|
+
name;
|
|
5
|
+
value;
|
|
6
|
+
constructor(name, value) {
|
|
7
|
+
PreCondition.assertNotEmpty(name, "name");
|
|
8
|
+
PreCondition.assertNotUndefinedAndNotNull(value, "value");
|
|
9
|
+
this.name = name;
|
|
10
|
+
this.value = value;
|
|
11
|
+
}
|
|
12
|
+
static create(name, value) {
|
|
13
|
+
return new HttpHeader(name, value);
|
|
14
|
+
}
|
|
15
|
+
getName() {
|
|
16
|
+
return this.name;
|
|
17
|
+
}
|
|
18
|
+
getValue() {
|
|
19
|
+
return this.value;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return `${escapeAndQuote(this.name)}:${escapeAndQuote(this.value)}`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=httpHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpHeader.js","sourceRoot":"","sources":["../../sources/httpHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,OAAO,UAAU;IAEF,IAAI,CAAS;IACb,KAAK,CAAS;IAE/B,YAAoB,IAAY,EAAE,KAAa;QAE3C,YAAY,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1C,YAAY,CAAC,4BAA4B,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE1D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,KAAa;QAE5C,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;IAEM,OAAO;QAEV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,QAAQ;QAEX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,QAAQ;QAEX,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACxE,CAAC;CACJ"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
3
|
+
import { Iterable } from "./iterable.js";
|
|
4
|
+
import { Iterator } from "./iterator.js";
|
|
5
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
6
|
+
import { MutableHttpHeaders } from "./mutableHttpHeaders.js";
|
|
7
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
8
|
+
import { SyncResult } from "./syncResult.js";
|
|
9
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
10
|
+
import { Type } from "./types.js";
|
|
11
|
+
/**
|
|
12
|
+
* A collection of {@link HttpHeader}s.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class HttpHeaders implements Iterable<HttpHeader> {
|
|
15
|
+
static readonly contentTypeHeaderName: string;
|
|
16
|
+
static create(headers?: JavascriptIterable<HttpHeader>): MutableHttpHeaders;
|
|
17
|
+
/**
|
|
18
|
+
* Get the header with the provided name.
|
|
19
|
+
* @param headerName The name of the header.
|
|
20
|
+
*/
|
|
21
|
+
abstract get(headerName: string): SyncResult<HttpHeader>;
|
|
22
|
+
/**
|
|
23
|
+
* Get the value of the header with the provided name.
|
|
24
|
+
* @param headerName The name of the header.
|
|
25
|
+
*/
|
|
26
|
+
abstract getValue(headerName: string): SyncResult<string>;
|
|
27
|
+
getContentType(): AsyncResult<HttpHeader>;
|
|
28
|
+
static getContentType(headers: HttpHeaders): AsyncResult<HttpHeader>;
|
|
29
|
+
getContentTypeValue(): AsyncResult<string>;
|
|
30
|
+
static getContentTypeValue(headers: HttpHeaders): AsyncResult<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Get an {@link Iterator} that can be used to iterate through the {@link HttpHeader}s in this
|
|
33
|
+
* collection.
|
|
34
|
+
*/
|
|
35
|
+
abstract iterate(): Iterator<HttpHeader>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the {@link HttpHeader}s in this {@link HttpHeaders} object as an array.
|
|
38
|
+
*/
|
|
39
|
+
toArray(): SyncResult<HttpHeader[]>;
|
|
40
|
+
static toArray(headers: HttpHeaders): SyncResult<HttpHeader[]>;
|
|
41
|
+
any(): SyncResult<boolean>;
|
|
42
|
+
static any(headers: HttpHeaders): SyncResult<boolean>;
|
|
43
|
+
getCount(): SyncResult<number>;
|
|
44
|
+
static getCount(headers: HttpHeaders): SyncResult<number>;
|
|
45
|
+
equals(right: JavascriptIterable<HttpHeader>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
46
|
+
static equals(headers: HttpHeaders, right: JavascriptIterable<HttpHeader>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
47
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
48
|
+
static toString(headers: HttpHeaders, toStringFunctions?: ToStringFunctions): string;
|
|
49
|
+
concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
|
|
50
|
+
static concatenate(headers: HttpHeaders, ...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
|
|
51
|
+
map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
52
|
+
static map<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
53
|
+
flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
54
|
+
static flatMap<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
55
|
+
where(condition: (value: HttpHeader) => boolean): Iterable<HttpHeader>;
|
|
56
|
+
static where(headers: HttpHeaders, condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable<HttpHeader>;
|
|
57
|
+
instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
|
|
58
|
+
static instanceOf<TOutput extends HttpHeader>(headers: HttpHeaders, typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
|
|
59
|
+
first(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
60
|
+
static first(headers: HttpHeaders, condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
61
|
+
last(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
62
|
+
static last(headers: HttpHeaders, condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
63
|
+
[Symbol.iterator](): JavascriptIterator<HttpHeader>;
|
|
64
|
+
static [Symbol.iterator](headers: HttpHeaders): JavascriptIterator<HttpHeader>;
|
|
65
|
+
contains(value: HttpHeader, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
66
|
+
static contains(headers: HttpHeaders, value: HttpHeader, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=httpHeaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpHeaders.d.ts","sourceRoot":"","sources":["../../sources/httpHeaders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,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AAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAGvG;IAED,OAAc,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAGpI;IAEM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAGtG;IAED,OAAc,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAGnI;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAGzD;IAED,OAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,WAAW,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAGpF;IAEM,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAGvF;IAED,OAAc,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAcpH;CACJ"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { MutableHttpHeaders } from "./mutableHttpHeaders.js";
|
|
4
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* A collection of {@link HttpHeader}s.
|
|
8
|
+
*/
|
|
9
|
+
export class HttpHeaders {
|
|
10
|
+
static contentTypeHeaderName = "Content-Type";
|
|
11
|
+
static create(headers) {
|
|
12
|
+
return MutableHttpHeaders.create(headers);
|
|
13
|
+
}
|
|
14
|
+
getContentType() {
|
|
15
|
+
return HttpHeaders.getContentType(this);
|
|
16
|
+
}
|
|
17
|
+
static getContentType(headers) {
|
|
18
|
+
return headers.get(HttpHeaders.contentTypeHeaderName);
|
|
19
|
+
}
|
|
20
|
+
getContentTypeValue() {
|
|
21
|
+
return HttpHeaders.getContentTypeValue(this);
|
|
22
|
+
}
|
|
23
|
+
static getContentTypeValue(headers) {
|
|
24
|
+
return headers.getValue(HttpHeaders.contentTypeHeaderName);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the {@link HttpHeader}s in this {@link HttpHeaders} object as an array.
|
|
28
|
+
*/
|
|
29
|
+
toArray() {
|
|
30
|
+
return HttpHeaders.toArray(this);
|
|
31
|
+
}
|
|
32
|
+
static toArray(headers) {
|
|
33
|
+
return Iterable.toArray(headers);
|
|
34
|
+
}
|
|
35
|
+
any() {
|
|
36
|
+
return HttpHeaders.any(this);
|
|
37
|
+
}
|
|
38
|
+
static any(headers) {
|
|
39
|
+
return Iterable.any(headers);
|
|
40
|
+
}
|
|
41
|
+
getCount() {
|
|
42
|
+
return HttpHeaders.getCount(this);
|
|
43
|
+
}
|
|
44
|
+
static getCount(headers) {
|
|
45
|
+
return Iterable.getCount(headers);
|
|
46
|
+
}
|
|
47
|
+
equals(right, equalFunctions) {
|
|
48
|
+
return HttpHeaders.equals(this, right, equalFunctions);
|
|
49
|
+
}
|
|
50
|
+
static equals(headers, right, equalFunctions) {
|
|
51
|
+
return Iterable.equals(headers, right, equalFunctions);
|
|
52
|
+
}
|
|
53
|
+
toString(toStringFunctions) {
|
|
54
|
+
return HttpHeaders.toString(this, toStringFunctions);
|
|
55
|
+
}
|
|
56
|
+
static toString(headers, toStringFunctions) {
|
|
57
|
+
return Iterable.toString(headers, toStringFunctions);
|
|
58
|
+
}
|
|
59
|
+
concatenate(...toConcatenate) {
|
|
60
|
+
return HttpHeaders.concatenate(this, ...toConcatenate);
|
|
61
|
+
}
|
|
62
|
+
static concatenate(headers, ...toConcatenate) {
|
|
63
|
+
return Iterable.concatenate(headers, ...toConcatenate);
|
|
64
|
+
}
|
|
65
|
+
map(mapping) {
|
|
66
|
+
return HttpHeaders.map(this, mapping);
|
|
67
|
+
}
|
|
68
|
+
static map(headers, mapping) {
|
|
69
|
+
return Iterable.map(headers, mapping);
|
|
70
|
+
}
|
|
71
|
+
flatMap(mapping) {
|
|
72
|
+
return HttpHeaders.flatMap(this, mapping);
|
|
73
|
+
}
|
|
74
|
+
static flatMap(headers, mapping) {
|
|
75
|
+
return Iterable.flatMap(headers, mapping);
|
|
76
|
+
}
|
|
77
|
+
where(condition) {
|
|
78
|
+
return HttpHeaders.where(this, condition);
|
|
79
|
+
}
|
|
80
|
+
static where(headers, condition) {
|
|
81
|
+
return Iterable.where(headers, condition);
|
|
82
|
+
}
|
|
83
|
+
instanceOf(typeOrTypeCheck) {
|
|
84
|
+
return HttpHeaders.instanceOf(this, typeOrTypeCheck);
|
|
85
|
+
}
|
|
86
|
+
static instanceOf(headers, typeOrTypeCheck) {
|
|
87
|
+
return Iterable.instanceOf(headers, typeOrTypeCheck);
|
|
88
|
+
}
|
|
89
|
+
first(condition) {
|
|
90
|
+
return HttpHeaders.first(this, condition);
|
|
91
|
+
}
|
|
92
|
+
static first(headers, condition) {
|
|
93
|
+
return Iterable.first(headers, condition);
|
|
94
|
+
}
|
|
95
|
+
last(condition) {
|
|
96
|
+
return HttpHeaders.last(this, condition);
|
|
97
|
+
}
|
|
98
|
+
static last(headers, condition) {
|
|
99
|
+
return Iterable.last(headers, condition);
|
|
100
|
+
}
|
|
101
|
+
[Symbol.iterator]() {
|
|
102
|
+
return HttpHeaders[Symbol.iterator](this);
|
|
103
|
+
}
|
|
104
|
+
static [Symbol.iterator](headers) {
|
|
105
|
+
return Iterable[Symbol.iterator](headers);
|
|
106
|
+
}
|
|
107
|
+
contains(value, equalFunctions) {
|
|
108
|
+
return HttpHeaders.contains(this, value, equalFunctions);
|
|
109
|
+
}
|
|
110
|
+
static contains(headers, value, equalFunctions) {
|
|
111
|
+
return SyncResult.create(() => {
|
|
112
|
+
if (!equalFunctions) {
|
|
113
|
+
equalFunctions = EqualFunctions.create();
|
|
114
|
+
}
|
|
115
|
+
return headers.getValue(value.getName())
|
|
116
|
+
.then((headerValue) => equalFunctions.areEqual(headerValue, value.getValue()).await())
|
|
117
|
+
.catch(NotFoundError, () => false)
|
|
118
|
+
.await();
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=httpHeaders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpHeaders.js","sourceRoot":"","sources":["../../sources/httpHeaders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C;;GAEG;AACH,MAAM,OAAgB,WAAW;IAEtB,MAAM,CAAU,qBAAqB,GAAW,cAAc,CAAC;IAE/D,MAAM,CAAC,MAAM,CAAC,OAAwC;QAEzD,OAAO,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAcM,cAAc;QAEjB,OAAO,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAoB;QAE7C,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC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KAAK,CAAC,OAAO,EAAE,CAAC;iBACnC,IAAI,CAAC,CAAC,WAAmB,EAAE,EAAE,CAAC,cAAe,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;iBAC9F,KAAK,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;iBACjC,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
2
|
+
import { HttpHeaders } from "./httpHeaders.js";
|
|
3
|
+
import { HttpMethod } from "./httpMethod.js";
|
|
4
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
5
|
+
/**
|
|
6
|
+
* A HTTP request that is received by a {@link HttpServer}.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class HttpIncomingRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Get the {@link HttpMethod} of the request.
|
|
11
|
+
*/
|
|
12
|
+
abstract getMethod(): HttpMethod;
|
|
13
|
+
abstract getHost(): AsyncResult<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Get the path component of the requested URL.
|
|
16
|
+
*/
|
|
17
|
+
abstract getURLPath(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get the {@link HttpHeaders} of this {@link HttpIncomingRequest}.
|
|
20
|
+
*/
|
|
21
|
+
abstract getHeaders(): AsyncResult<HttpHeaders>;
|
|
22
|
+
/**
|
|
23
|
+
* Get the {@link HttpHeader} with the provided name in this {@link HttpIncomingRequest}. If no
|
|
24
|
+
* header exists with the provided name, then a {@link NotFoundError} will be returned.
|
|
25
|
+
* @param headerName The name of the header to get.
|
|
26
|
+
*/
|
|
27
|
+
abstract getHeader(headerName: string): AsyncResult<HttpHeader>;
|
|
28
|
+
/**
|
|
29
|
+
* Get the value of the {@link HttpHeader} with the provided name in this
|
|
30
|
+
* {@link HttpIncomingRequest}. If no header exists with the provided name, then a
|
|
31
|
+
* {@link NotFoundError} will be returned.
|
|
32
|
+
* @param headerName The name of the header value to get.
|
|
33
|
+
*/
|
|
34
|
+
abstract getHeaderValue(headerName: string): AsyncResult<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the body of this {@link HttpIncomingRequest}.
|
|
37
|
+
*/
|
|
38
|
+
abstract getBody(): AsyncResult<string>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=httpIncomingRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpIncomingRequest.d.ts","sourceRoot":"","sources":["../../sources/httpIncomingRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;GAEG;AACH,8BAAsB,mBAAmB;IAErC;;OAEG;IACH,SAAgB,SAAS,IAAI,UAAU,CAAC;IAExC,SAAgB,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IAE/C;;OAEG;IACH,SAAgB,UAAU,IAAI,MAAM,CAAC;IAErC;;OAEG;IACH,SAAgB,UAAU,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC;IAEvD;;;;OAIG;IACH,SAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IAEvE;;;;;OAKG;IACH,SAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAExE;;OAEG;IACH,SAAgB,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpIncomingRequest.js","sourceRoot":"","sources":["../../sources/httpIncomingRequest.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAgB,mBAAmB;CAsCxC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpHeader } from "./httpHeader.js";
|
|
2
|
+
import { HttpHeaders } from "./httpHeaders.js";
|
|
3
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
4
|
+
/**
|
|
5
|
+
* The response from a {@link HttpClient}'s sendRequest() method.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class HttpIncomingResponse {
|
|
8
|
+
abstract getStatusCode(): number;
|
|
9
|
+
/**
|
|
10
|
+
* Get the {@link HttpHeaders} of this {@link HttpIncomingResponse}.
|
|
11
|
+
*/
|
|
12
|
+
abstract getHeaders(): AsyncResult<HttpHeaders>;
|
|
13
|
+
/**
|
|
14
|
+
* Get the {@link HttpHeader} with the provided name in this {@link HttpIncomingResponse}. If no
|
|
15
|
+
* header exists with the provided name, then a {@link NotFoundError} will be returned.
|
|
16
|
+
* @param headerName The name of the header to get.
|
|
17
|
+
*/
|
|
18
|
+
abstract getHeader(headerName: string): AsyncResult<HttpHeader>;
|
|
19
|
+
/**
|
|
20
|
+
* Get the value of the {@link HttpHeader} with the provided name in this
|
|
21
|
+
* {@link HttpIncomingResponse}. If no header exists with the provided name, then a
|
|
22
|
+
* {@link NotFoundError} will be returned.
|
|
23
|
+
* @param headerName The name of the header value to get.
|
|
24
|
+
*/
|
|
25
|
+
abstract getHeaderValue(headerName: string): AsyncResult<string>;
|
|
26
|
+
abstract getBody(): AsyncResult<string>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=httpIncomingResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpIncomingResponse.d.ts","sourceRoot":"","sources":["../../sources/httpIncomingResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,8BAAsB,oBAAoB;IAEtC,SAAgB,aAAa,IAAI,MAAM,CAAC;IAExC;;OAEG;IACH,SAAgB,UAAU,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC;IAEvD;;;;OAIG;IACH,SAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IAEvE;;;;;OAKG;IACH,SAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAExE,SAAgB,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpIncomingResponse.js","sourceRoot":"","sources":["../../sources/httpIncomingResponse.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,OAAgB,oBAAoB;CAyBzC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { SyncResult } from "./syncResult.js";
|
|
2
|
+
export declare enum HttpMethod {
|
|
3
|
+
/**
|
|
4
|
+
* The GET method requests a representation of the specified resource. Requests using GET should
|
|
5
|
+
* only retrieve data and should not contain a request content.
|
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/GET
|
|
7
|
+
*/
|
|
8
|
+
GET = 0,
|
|
9
|
+
/**
|
|
10
|
+
* The HEAD method asks for a response identical to a GET request, but without a response body.
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/HEAD
|
|
12
|
+
*/
|
|
13
|
+
HEAD = 1,
|
|
14
|
+
/**
|
|
15
|
+
* The POST method submits an entity to the specified resource, often causing a change in state
|
|
16
|
+
* or side effects on the server.
|
|
17
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/POST
|
|
18
|
+
*/
|
|
19
|
+
POST = 2,
|
|
20
|
+
/**
|
|
21
|
+
* The PUT method replaces all current representations of the target resource with the request
|
|
22
|
+
* content.
|
|
23
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/PUT
|
|
24
|
+
*/
|
|
25
|
+
PUT = 3,
|
|
26
|
+
/**
|
|
27
|
+
* The DELETE method deletes the specified resource.
|
|
28
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/DELETE
|
|
29
|
+
*/
|
|
30
|
+
DELETE = 4,
|
|
31
|
+
/**
|
|
32
|
+
* The CONNECT method establishes a tunnel to the server identified by the target resource.
|
|
33
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/CONNECT
|
|
34
|
+
*/
|
|
35
|
+
CONNECT = 5,
|
|
36
|
+
/**
|
|
37
|
+
* The OPTIONS method describes the communication options for the target resource.
|
|
38
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/OPTIONS
|
|
39
|
+
*/
|
|
40
|
+
OPTIONS = 6,
|
|
41
|
+
/**
|
|
42
|
+
* The TRACE method performs a message loop-back test along the path to the target resource.
|
|
43
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/TRACE
|
|
44
|
+
*/
|
|
45
|
+
TRACE = 7,
|
|
46
|
+
/**
|
|
47
|
+
* The PATCH method applies partial modifications to a resource.
|
|
48
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/PATCH
|
|
49
|
+
*/
|
|
50
|
+
PATCH = 8
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Parse a {@link HttpMethod} from the provided text.
|
|
54
|
+
* @param text The text to parse.
|
|
55
|
+
*/
|
|
56
|
+
export declare function parseHttpMethod(text: string): SyncResult<HttpMethod>;
|
|
57
|
+
/**
|
|
58
|
+
* Get the string representation of the provided {@link HttpMethod}.
|
|
59
|
+
* @param httpMethod The {@link HttpMethod} to get the string representation of.
|
|
60
|
+
*/
|
|
61
|
+
export declare function httpMethodToString(httpMethod: HttpMethod): string;
|
|
62
|
+
//# sourceMappingURL=httpMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpMethod.d.ts","sourceRoot":"","sources":["../../sources/httpMethod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,oBAAY,UAAU;IAElB;;;;OAIG;IACH,GAAG,IAAA;IACH;;;OAGG;IACH,IAAI,IAAA;IACJ;;;;OAIG;IACH,IAAI,IAAA;IACJ;;;;OAIG;IACH,GAAG,IAAA;IACH;;;OAGG;IACH,MAAM,IAAA;IACN;;;OAGG;IACH,OAAO,IAAA;IACP;;;OAGG;IACH,OAAO,IAAA;IACP;;;OAGG;IACH,KAAK,IAAA;IACL;;;OAGG;IACH,KAAK,IAAA;CACR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,CAkDpE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CA+CjE"}
|