@everyonesoftware/common 12.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-CzPcNOCD.d.cts +0 -845
- package/outputs/characterWriteStream-CzPcNOCD.d.ts +0 -845
- package/outputs/chunk-FZ3WRQ7B.js +0 -1199
- package/outputs/chunk-FZ3WRQ7B.js.map +0 -1
- package/outputs/chunk-MHMLVX2O.js +0 -9590
- package/outputs/chunk-MHMLVX2O.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9790
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3532
- package/outputs/sourceIndex.d.ts +0 -3532
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7046
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19372
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10017
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Type } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A result object that adds extra behavior beyond the standard {@link Promise}.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class AsyncResult<T> implements Promise<T> {
|
|
6
|
+
static create<T>(actionOrPromise: (() => (T | Promise<T>)) | Promise<T>): AsyncResult<T>;
|
|
7
|
+
/**
|
|
8
|
+
* Get an {@link AsyncResult} that is already completed and doesn't do anything.
|
|
9
|
+
*/
|
|
10
|
+
static empty(): AsyncResult<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new {@link AsyncResult} that contains the provided value.
|
|
13
|
+
* @param value The value to wrap in a {@link AsyncResult}.
|
|
14
|
+
*/
|
|
15
|
+
static value<T>(value: T): AsyncResult<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a new {@link AsyncResult} that contains the provided error.
|
|
18
|
+
* @param error The error to wrap in a {@link AsyncResult}.
|
|
19
|
+
*/
|
|
20
|
+
static error<T>(error: Error): AsyncResult<T>;
|
|
21
|
+
static yield(): AsyncResult<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a {@link AsyncResult} that runs the provided function if this {@link AsyncResult} is successful.
|
|
24
|
+
* @param thenFunction The function to run if this {@link AsyncResult} is successful.
|
|
25
|
+
*/
|
|
26
|
+
abstract then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): AsyncResult<TResult1 | TResult2>;
|
|
27
|
+
/**
|
|
28
|
+
* Run the provided onValueFunction if this {@link AsyncResult} is successful. The value or error
|
|
29
|
+
* contained by this {@link AsyncResult} will be contained by the returned {@link AsyncResult}.
|
|
30
|
+
* @param onValueFunction The function to run if this {@link AsyncResult} is successful.
|
|
31
|
+
*/
|
|
32
|
+
abstract onValue(onValueFunction: (value: T) => (void | Promise<void>)): AsyncResult<T>;
|
|
33
|
+
/**
|
|
34
|
+
* Run the provided catchFunction if this {@link AsyncResult} contains an error.
|
|
35
|
+
* @param catchFunction The function to run if an error is caught.
|
|
36
|
+
*/
|
|
37
|
+
abstract catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): AsyncResult<T | TResult>;
|
|
38
|
+
/**
|
|
39
|
+
* Run the provided catchFunction if this {@link AsyncResult} contains an error of the provided type.
|
|
40
|
+
* @param errorType The type of error to catch.
|
|
41
|
+
* @param catchFunction The function to run if the error is caught.
|
|
42
|
+
*/
|
|
43
|
+
abstract catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => (TResult | PromiseLike<TResult>)): AsyncResult<T | TResult>;
|
|
44
|
+
/**
|
|
45
|
+
* Run the provided onErrorFunction if this {@link AsyncResult} contains an error.
|
|
46
|
+
* @param onErrorFunction The function to run if an error is found.
|
|
47
|
+
*/
|
|
48
|
+
abstract onError(onErrorFunction: (reason: unknown) => (void | PromiseLike<void>)): AsyncResult<T>;
|
|
49
|
+
/**
|
|
50
|
+
* Run the provided onErrorFunction if this {@link AsyncResult} contains an error of the provided
|
|
51
|
+
* type.
|
|
52
|
+
* @param errorType The type of error to respond to.
|
|
53
|
+
* @param onErrorFunction The function to run if the error is found.
|
|
54
|
+
*/
|
|
55
|
+
abstract onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => (void | PromiseLike<void>)): AsyncResult<T>;
|
|
56
|
+
/**
|
|
57
|
+
* Run the provided convertErrorFunction if this {@link AsyncResult} contains an error. The value
|
|
58
|
+
* returned from the convertErrorFunction will be the error for the returned {@link AsyncResult}.
|
|
59
|
+
* @param convertErrorFunction The function that will return the new error.
|
|
60
|
+
*/
|
|
61
|
+
abstract convertError(convertErrorFunction: (reason: unknown) => (unknown | PromiseLike<unknown>)): AsyncResult<T>;
|
|
62
|
+
/**
|
|
63
|
+
* Run the provided convertErrorFunction if this {@link AsyncResult} contains an error of the
|
|
64
|
+
* provided type. The value returned from the convertErrorFunction will be the error for the
|
|
65
|
+
* returned {@link AsyncResult}.
|
|
66
|
+
* @param errorType The type of error to respond to.
|
|
67
|
+
* @param convertErrorFunction The function that will return the new error.
|
|
68
|
+
*/
|
|
69
|
+
abstract convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => (unknown | PromiseLike<unknown>)): AsyncResult<T>;
|
|
70
|
+
abstract finally(onfinally?: (() => (void | Promise<void>)) | null): AsyncResult<T>;
|
|
71
|
+
readonly abstract [Symbol.toStringTag]: string;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=asyncResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncResult.d.ts","sourceRoot":"","sources":["../../sources/asyncResult.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,8BAAsB,WAAW,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;IAEtD,OAAc,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,MAAM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C,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAClD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
2
|
+
/**
|
|
3
|
+
* A result object that adds extra behavior beyond the standard {@link Promise}.
|
|
4
|
+
*/
|
|
5
|
+
export class AsyncResult {
|
|
6
|
+
static create(actionOrPromise) {
|
|
7
|
+
return PromiseAsyncResult.create(actionOrPromise);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get an {@link AsyncResult} that is already completed and doesn't do anything.
|
|
11
|
+
*/
|
|
12
|
+
static empty() {
|
|
13
|
+
return PromiseAsyncResult.empty();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new {@link AsyncResult} that contains the provided value.
|
|
17
|
+
* @param value The value to wrap in a {@link AsyncResult}.
|
|
18
|
+
*/
|
|
19
|
+
static value(value) {
|
|
20
|
+
return PromiseAsyncResult.value(value);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new {@link AsyncResult} that contains the provided error.
|
|
24
|
+
* @param error The error to wrap in a {@link AsyncResult}.
|
|
25
|
+
*/
|
|
26
|
+
static error(error) {
|
|
27
|
+
return PromiseAsyncResult.error(error);
|
|
28
|
+
}
|
|
29
|
+
static yield() {
|
|
30
|
+
return PromiseAsyncResult.yield();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=asyncResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncResult.js","sourceRoot":"","sources":["../../sources/asyncResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;GAEG;AACH,MAAM,OAAgB,WAAW;IAEtB,MAAM,CAAC,MAAM,CAAI,eAAsD;QAE1E,OAAO,kBAAkB,CAAC,MAAM,CAAI,eAAe,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,KAAK;QAEf,OAAO,kBAAkB,CAAC,KAAK,EAAE,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAI,KAAQ;QAE3B,OAAO,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAI,KAAY;QAE/B,OAAO,kBAAkB,CAAC,KAAK,CAAI,KAAK,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,KAAK;QAEf,OAAO,kBAAkB,CAAC,KAAK,EAAE,CAAC;IACtC,CAAC;CA0DJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Disposable } from "./disposable.js";
|
|
2
|
+
import { SyncResult } from "./syncResult.js";
|
|
3
|
+
/**
|
|
4
|
+
* A {@link Disposable} type that can be configured with a function that will be invoked when the
|
|
5
|
+
* object is disposed.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SyncDisposable implements Disposable {
|
|
8
|
+
private readonly disposedFunction;
|
|
9
|
+
private disposed;
|
|
10
|
+
protected constructor(disposedFunction: () => void);
|
|
11
|
+
/**
|
|
12
|
+
* Create a new {@link Disposable} that will invoke the provided {@link Function} when it is
|
|
13
|
+
* disposed.
|
|
14
|
+
* @param disposedFunction The function to invoke when the returned {@link Disposable} is
|
|
15
|
+
* disposed.
|
|
16
|
+
*/
|
|
17
|
+
static create(disposedFunction: () => void): SyncDisposable;
|
|
18
|
+
dispose(): SyncResult<boolean>;
|
|
19
|
+
isDisposed(): boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=basicDisposable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicDisposable.d.ts","sourceRoot":"","sources":["../../sources/basicDisposable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,cAAe,YAAW,UAAU;IAE7C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAa;IAC9C,OAAO,CAAC,QAAQ,CAAU;IAE1B,SAAS,aAAa,gBAAgB,EAAE,MAAM,IAAI,EAMjD;IAED;;;;;OAKG;IACH,OAAc,MAAM,CAAC,gBAAgB,EAAE,MAAM,IAAI,GAAG,cAAc,CAGjE;IAEM,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAkBpC;IAEM,UAAU,IAAI,OAAO,CAG3B;CACJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
import { SyncResult } from "./syncResult.js";
|
|
3
|
+
/**
|
|
4
|
+
* A {@link Disposable} type that can be configured with a function that will be invoked when the
|
|
5
|
+
* object is disposed.
|
|
6
|
+
*/
|
|
7
|
+
export class SyncDisposable {
|
|
8
|
+
disposedFunction;
|
|
9
|
+
disposed;
|
|
10
|
+
constructor(disposedFunction) {
|
|
11
|
+
PreCondition.assertNotUndefinedAndNotNull(disposedFunction, "disposedFunction");
|
|
12
|
+
this.disposedFunction = disposedFunction;
|
|
13
|
+
this.disposed = false;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new {@link Disposable} that will invoke the provided {@link Function} when it is
|
|
17
|
+
* disposed.
|
|
18
|
+
* @param disposedFunction The function to invoke when the returned {@link Disposable} is
|
|
19
|
+
* disposed.
|
|
20
|
+
*/
|
|
21
|
+
static create(disposedFunction) {
|
|
22
|
+
return new SyncDisposable(disposedFunction);
|
|
23
|
+
}
|
|
24
|
+
dispose() {
|
|
25
|
+
return SyncResult.create(() => {
|
|
26
|
+
const result = !this.disposed;
|
|
27
|
+
if (result) {
|
|
28
|
+
try {
|
|
29
|
+
this.disposedFunction();
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
this.disposed = true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
isDisposed() {
|
|
39
|
+
return this.disposed;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=basicDisposable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicDisposable.js","sourceRoot":"","sources":["../../sources/basicDisposable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,MAAM,OAAO,cAAc;IAEN,gBAAgB,CAAa;IACtC,QAAQ,CAAU;IAE1B,YAAsB,gBAA4B;QAE9C,YAAY,CAAC,4BAA4B,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;QAEhF,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,MAAM,CAAC,gBAA4B;QAE7C,OAAO,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAChD,CAAC;IAEM,OAAO;QAEV,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YAE1B,MAAM,MAAM,GAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;YACvC,IAAI,MAAM,EACV,CAAC;gBACG,IACA,CAAC;oBACG,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBAC5B,CAAC;wBAED,CAAC;oBACG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACzB,CAAC;YACL,CAAC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,UAAU;QAEb,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;CACJ"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { Iterator } from "./iterator.js";
|
|
4
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
5
|
+
import { List } from "./list.js";
|
|
6
|
+
import { SyncResult } from "./syncResult.js";
|
|
7
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
8
|
+
import { Type } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* A {@link List} of bytes.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ByteList implements List<number> {
|
|
13
|
+
private bytes;
|
|
14
|
+
private count;
|
|
15
|
+
private constructor();
|
|
16
|
+
static create(initialValues?: JavascriptIterable<number>): ByteList;
|
|
17
|
+
add(value: number): this;
|
|
18
|
+
addAll(values: JavascriptIterable<number>): this;
|
|
19
|
+
insert(index: number, value: number): this;
|
|
20
|
+
insertAll(index: number, values: JavascriptIterable<number>): this;
|
|
21
|
+
remove(value: number, equalFunctions?: EqualFunctions): SyncResult<number>;
|
|
22
|
+
removeAt(index: number): SyncResult<number>;
|
|
23
|
+
removeFirst(): SyncResult<number>;
|
|
24
|
+
removeLast(): SyncResult<number>;
|
|
25
|
+
set(index: number, value: number): this;
|
|
26
|
+
iterate(): Iterator<number>;
|
|
27
|
+
get(index: number): SyncResult<number>;
|
|
28
|
+
toArray(): SyncResult<number[]>;
|
|
29
|
+
any(): SyncResult<boolean>;
|
|
30
|
+
getCount(): SyncResult<number>;
|
|
31
|
+
equals(right: JavascriptIterable<number>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
32
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
33
|
+
concatenate(...toConcatenate: JavascriptIterable<number>[]): Iterable<number>;
|
|
34
|
+
map<TOutput>(mapping: (value: number) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
35
|
+
flatMap<TOutput>(mapping: (value: number) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
36
|
+
where(condition: (value: number) => (boolean | SyncResult<boolean>)): Iterable<number>;
|
|
37
|
+
instanceOf<TOutput extends number>(typeOrTypeCheck: Type<TOutput> | ((value: number) => value is TOutput)): Iterable<TOutput>;
|
|
38
|
+
first(condition?: ((value: number) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<number>;
|
|
39
|
+
last(condition?: ((value: number) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<number>;
|
|
40
|
+
contains(value: number, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
41
|
+
[Symbol.iterator](): JavascriptIterator<number>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=byteList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteList.d.ts","sourceRoot":"","sources":["../../sources/byteList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,qBAAa,QAAS,YAAW,IAAI,CAAC,MAAM,CAAC;IAEzC,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,eAIN;IAED,OAAc,MAAM,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,QAAQ,CAQzE;IAEM,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAG9B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";
|
|
4
|
+
import { SyncResult } from "./syncResult.js";
|
|
5
|
+
/**
|
|
6
|
+
* A {@link List} of bytes.
|
|
7
|
+
*/
|
|
8
|
+
export class ByteList {
|
|
9
|
+
bytes;
|
|
10
|
+
count;
|
|
11
|
+
constructor() {
|
|
12
|
+
this.bytes = new Uint8Array(0);
|
|
13
|
+
this.count = 0;
|
|
14
|
+
}
|
|
15
|
+
static create(initialValues) {
|
|
16
|
+
const result = new ByteList();
|
|
17
|
+
if (initialValues) {
|
|
18
|
+
result.addAll(initialValues);
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
add(value) {
|
|
23
|
+
return List.add(this, value);
|
|
24
|
+
}
|
|
25
|
+
addAll(values) {
|
|
26
|
+
return List.addAll(this, values);
|
|
27
|
+
}
|
|
28
|
+
insert(index, value) {
|
|
29
|
+
PreCondition.assertInsertIndex(index, this.getCount().await(), "index");
|
|
30
|
+
PreCondition.assertByte(value, "value");
|
|
31
|
+
if (this.count < this.bytes.length) {
|
|
32
|
+
if (index < this.count) {
|
|
33
|
+
this.bytes.copyWithin(index + 1, index, this.count);
|
|
34
|
+
}
|
|
35
|
+
this.bytes[index] = value;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
const newCapacity = (this.bytes.length * 2) + 1;
|
|
39
|
+
const newBytes = new Uint8Array(newCapacity);
|
|
40
|
+
if (index > 0) {
|
|
41
|
+
newBytes.set(this.bytes.subarray(0, index));
|
|
42
|
+
}
|
|
43
|
+
newBytes[index] = value;
|
|
44
|
+
if (index < this.count) {
|
|
45
|
+
newBytes.set(this.bytes.subarray(index), index + 1);
|
|
46
|
+
}
|
|
47
|
+
this.bytes = newBytes;
|
|
48
|
+
}
|
|
49
|
+
this.count++;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
insertAll(index, values) {
|
|
53
|
+
return List.insertAll(this, index, values);
|
|
54
|
+
}
|
|
55
|
+
remove(value, equalFunctions) {
|
|
56
|
+
PreCondition.assertByte(value, "value");
|
|
57
|
+
return List.remove(this, value, equalFunctions);
|
|
58
|
+
}
|
|
59
|
+
removeAt(index) {
|
|
60
|
+
PreCondition.assertAccessIndex(index, this.count, "index");
|
|
61
|
+
const result = this.bytes[index];
|
|
62
|
+
this.bytes.copyWithin(index, index + 1, this.count);
|
|
63
|
+
this.count--;
|
|
64
|
+
return SyncResult.value(result);
|
|
65
|
+
}
|
|
66
|
+
removeFirst() {
|
|
67
|
+
return List.removeFirst(this);
|
|
68
|
+
}
|
|
69
|
+
removeLast() {
|
|
70
|
+
return List.removeLast(this);
|
|
71
|
+
}
|
|
72
|
+
set(index, value) {
|
|
73
|
+
PreCondition.assertAccessIndex(index, this.getCount().await(), "index");
|
|
74
|
+
PreCondition.assertByte(value, "value");
|
|
75
|
+
this.bytes[index] = value;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
iterate() {
|
|
79
|
+
return Iterator.create(this.bytes[Symbol.iterator]().take(this.count));
|
|
80
|
+
}
|
|
81
|
+
get(index) {
|
|
82
|
+
PreCondition.assertAccessIndex(index, this.getCount().await(), "index");
|
|
83
|
+
return SyncResult.value(this.bytes.at(index));
|
|
84
|
+
}
|
|
85
|
+
toArray() {
|
|
86
|
+
return List.toArray(this);
|
|
87
|
+
}
|
|
88
|
+
any() {
|
|
89
|
+
return this.getCount().then(count => count > 0);
|
|
90
|
+
}
|
|
91
|
+
getCount() {
|
|
92
|
+
return SyncResult.value(this.count);
|
|
93
|
+
}
|
|
94
|
+
equals(right, equalFunctions) {
|
|
95
|
+
return List.equals(this, right, equalFunctions);
|
|
96
|
+
}
|
|
97
|
+
toString(toStringFunctions) {
|
|
98
|
+
return List.toString(this, toStringFunctions);
|
|
99
|
+
}
|
|
100
|
+
concatenate(...toConcatenate) {
|
|
101
|
+
return List.concatenate(this, ...toConcatenate);
|
|
102
|
+
}
|
|
103
|
+
map(mapping) {
|
|
104
|
+
return List.map(this, mapping);
|
|
105
|
+
}
|
|
106
|
+
flatMap(mapping) {
|
|
107
|
+
return List.flatMap(this, mapping);
|
|
108
|
+
}
|
|
109
|
+
where(condition) {
|
|
110
|
+
return List.where(this, condition);
|
|
111
|
+
}
|
|
112
|
+
instanceOf(typeOrTypeCheck) {
|
|
113
|
+
return List.instanceOf(this, typeOrTypeCheck);
|
|
114
|
+
}
|
|
115
|
+
first(condition) {
|
|
116
|
+
return List.first(this, condition);
|
|
117
|
+
}
|
|
118
|
+
last(condition) {
|
|
119
|
+
return List.last(this, condition);
|
|
120
|
+
}
|
|
121
|
+
contains(value, equalFunctions) {
|
|
122
|
+
return List.contains(this, value, equalFunctions);
|
|
123
|
+
}
|
|
124
|
+
[Symbol.iterator]() {
|
|
125
|
+
return List[Symbol.iterator](this);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=byteList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteList.js","sourceRoot":"","sources":["../../sources/byteList.ts"],"names":[],"mappings":"AAEA,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;AAI7C;;GAEG;AACH,MAAM,OAAO,QAAQ;IAET,KAAK,CAAa;IAClB,KAAK,CAAS;IAEtB;QAEI,IAAI,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,aAA0C;QAE3D,MAAM,MAAM,GAAa,IAAI,QAAQ,EAAE,CAAC;QACxC,IAAI,aAAa,EACjB,CAAC;YACG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAA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AAG,CAAU,OAAyD;QAEzE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAEM,OAAO,CAAU,OAAuD;QAE3E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEM,KAAK,CAAC,SAA6D;QAEtE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC;IAEM,UAAU,CAAyB,eAAsE;QAE5G,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,SAA4E;QAErF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC;IAEM,IAAI,CAAC,SAA4E;QAEpF,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACtC,CAAC;IAEM,QAAQ,CAAC,KAAa,EAAE,cAA+B;QAE1D,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IACtD,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEpB,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ByteReadStream } from "./byteReadStream.js";
|
|
2
|
+
import { ByteWriteStream } from "./byteWriteStream.js";
|
|
3
|
+
import { SyncResult } from "./syncResult.js";
|
|
4
|
+
/**
|
|
5
|
+
* A {@link ByteReadStream} and {@link ByteWriteStream} implementation that is implemented using a
|
|
6
|
+
* {@link ByteList}.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ByteListStream implements ByteReadStream, ByteWriteStream {
|
|
9
|
+
private readonly list;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(initialValues?: Uint8Array | number[]): ByteListStream;
|
|
12
|
+
/**
|
|
13
|
+
* Get the number of bytes that are available to be read.
|
|
14
|
+
*/
|
|
15
|
+
getAvailableByteCount(): number;
|
|
16
|
+
writeBytes(bytes: Uint8Array | number[], startIndex?: number, length?: number): SyncResult<number>;
|
|
17
|
+
readBytes(count: number): SyncResult<Uint8Array>;
|
|
18
|
+
readBytes(output: Uint8Array, startIndex?: number, count?: number): SyncResult<number>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=byteListStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteListStream.d.ts","sourceRoot":"","sources":["../../sources/byteListStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;;GAGG;AACH,qBAAa,cAAe,YAAW,cAAc,EAAE,eAAe;IAElE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;IAEhC,OAAO,eAGN;IAED,OAAc,MAAM,CAAC,aAAa,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,cAAc,CAQ1E;IAED;;OAEG;IACI,qBAAqB,IAAI,MAAM,CAGrC;IAEM,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAuBxG;IAEM,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;IACjD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;CAuDjG"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ByteList } from "./byteList.js";
|
|
2
|
+
import { EmptyError } from "./emptyError.js";
|
|
3
|
+
import { PreCondition } from "./preCondition.js";
|
|
4
|
+
import { SyncResult } from "./syncResult.js";
|
|
5
|
+
import { isArray, isNumber, isUndefinedOrNull } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link ByteReadStream} and {@link ByteWriteStream} implementation that is implemented using a
|
|
8
|
+
* {@link ByteList}.
|
|
9
|
+
*/
|
|
10
|
+
export class ByteListStream {
|
|
11
|
+
list;
|
|
12
|
+
constructor() {
|
|
13
|
+
this.list = ByteList.create();
|
|
14
|
+
}
|
|
15
|
+
static create(initialValues) {
|
|
16
|
+
const result = new ByteListStream();
|
|
17
|
+
if (initialValues) {
|
|
18
|
+
result.writeBytes(initialValues).await();
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the number of bytes that are available to be read.
|
|
24
|
+
*/
|
|
25
|
+
getAvailableByteCount() {
|
|
26
|
+
return this.list.getCount().await();
|
|
27
|
+
}
|
|
28
|
+
writeBytes(bytes, startIndex, length) {
|
|
29
|
+
PreCondition.assertNotUndefinedAndNotNull(bytes, "bytes");
|
|
30
|
+
if (isArray(bytes)) {
|
|
31
|
+
bytes = new Uint8Array(bytes);
|
|
32
|
+
}
|
|
33
|
+
if (isUndefinedOrNull(startIndex)) {
|
|
34
|
+
startIndex = 0;
|
|
35
|
+
}
|
|
36
|
+
if (isUndefinedOrNull(length)) {
|
|
37
|
+
length = bytes.length - startIndex;
|
|
38
|
+
}
|
|
39
|
+
PreCondition.assertInsertIndex(startIndex, bytes.length, "startIndex");
|
|
40
|
+
PreCondition.assertBetween(0, length, bytes.length - startIndex, "length");
|
|
41
|
+
this.list.addAll(bytes.subarray(startIndex, length + startIndex));
|
|
42
|
+
return SyncResult.value(length);
|
|
43
|
+
}
|
|
44
|
+
readBytes(countOrOutput, startIndex, count) {
|
|
45
|
+
let result;
|
|
46
|
+
if (isNumber(countOrOutput)) {
|
|
47
|
+
PreCondition.assertGreaterThanOrEqualTo(countOrOutput, 0, "count");
|
|
48
|
+
if (!this.list.any().await()) {
|
|
49
|
+
result = SyncResult.error(new EmptyError());
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const bytesReadCount = Math.min(countOrOutput, this.list.getCount().await());
|
|
53
|
+
const output = new Uint8Array(bytesReadCount);
|
|
54
|
+
for (let i = 0; i < bytesReadCount; i++) {
|
|
55
|
+
output[i] = this.list.removeFirst().await();
|
|
56
|
+
}
|
|
57
|
+
result = SyncResult.value(output);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
PreCondition.assertNotUndefinedAndNotNull(countOrOutput, "output");
|
|
62
|
+
if (isUndefinedOrNull(startIndex)) {
|
|
63
|
+
startIndex = 0;
|
|
64
|
+
}
|
|
65
|
+
if (isUndefinedOrNull(count)) {
|
|
66
|
+
count = countOrOutput.length - startIndex;
|
|
67
|
+
}
|
|
68
|
+
PreCondition.assertInsertIndex(startIndex, countOrOutput.length, "startIndex");
|
|
69
|
+
PreCondition.assertBetween(0, count, countOrOutput.length - startIndex, "count");
|
|
70
|
+
if (!this.list.any().await()) {
|
|
71
|
+
result = SyncResult.error(new EmptyError());
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const bytesReadCount = Math.min(count, this.list.getCount().await());
|
|
75
|
+
for (let i = 0; i < bytesReadCount; i++) {
|
|
76
|
+
countOrOutput[startIndex + i] = this.list.removeFirst().await();
|
|
77
|
+
}
|
|
78
|
+
result = SyncResult.value(bytesReadCount);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=byteListStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteListStream.js","sourceRoot":"","sources":["../../sources/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4
|
+
*/
|
|
5
|
+
export declare abstract class ByteReadStream {
|
|
6
|
+
/**
|
|
7
|
+
* Attempt to read the provided {@link count} number of bytes. Returns the bytes that were read.
|
|
8
|
+
* The number of bytes returned may be less than the number requested.
|
|
9
|
+
* @param count The number of bytes to attempt to read.
|
|
10
|
+
*/
|
|
11
|
+
abstract readBytes(count: number): AsyncResult<Uint8Array>;
|
|
12
|
+
/**
|
|
13
|
+
* Attempt to read bytes into the provided output array. Returns the number of bytes that were
|
|
14
|
+
* read.
|
|
15
|
+
* @param output The array that the read bytes will be written to.
|
|
16
|
+
* @param startIndex The index in the {@link output} array to start writting the read bytes to.
|
|
17
|
+
* Defaults to 0.
|
|
18
|
+
* @param count The maximum number of bytes to read. Defaults to the length of the output array
|
|
19
|
+
* minus the startIndex.
|
|
20
|
+
*/
|
|
21
|
+
abstract readBytes(output: Uint8Array, startIndex?: number, count?: number): AsyncResult<number>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=byteReadStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteReadStream.d.ts","sourceRoot":"","sources":["../../sources/byteReadStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,8BAAsB,cAAc;IAEhC;;;;OAIG;IACH,SAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IAClE;;;;;;;;OAQG;IACH,SAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;CAC3G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteReadStream.js","sourceRoot":"","sources":["../../sources/byteReadStream.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAgB,cAAc;CAkBnC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AsyncResult } from "./asyncResult.js";
|
|
2
|
+
/**
|
|
3
|
+
* A stream that writes bytes.
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class ByteWriteStream {
|
|
6
|
+
/**
|
|
7
|
+
* Write the provided bytes to this {@link ByteWriteStream}.
|
|
8
|
+
* @param bytes The bytes to write.
|
|
9
|
+
* @param startIndex The index to start writing from.
|
|
10
|
+
* @param length The number of bytes to write.
|
|
11
|
+
* @returns The number of bytes that were written.
|
|
12
|
+
*/
|
|
13
|
+
abstract writeBytes(bytes: Uint8Array | number[], startIndex?: number, length?: number): AsyncResult<number>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=byteWriteStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteWriteStream.d.ts","sourceRoot":"","sources":["../../sources/byteWriteStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,8BAAsB,eAAe;IAEjC;;;;;;OAMG;IACH,SAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACtH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteWriteStream.js","sourceRoot":"","sources":["../../sources/byteWriteStream.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAgB,eAAe;CAUpC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of values and functions for interacting with bytes.
|
|
3
|
+
*/
|
|
4
|
+
export declare abstract class Bytes {
|
|
5
|
+
/**
|
|
6
|
+
* The minimum value that a byte can have.
|
|
7
|
+
*/
|
|
8
|
+
static readonly minimumValue: number;
|
|
9
|
+
/**
|
|
10
|
+
* The maximum value (inclusive) that a byte can have.
|
|
11
|
+
*/
|
|
12
|
+
static readonly maximumValue: number;
|
|
13
|
+
/**
|
|
14
|
+
* Get whether the provided value is within the range of a valid byte (between 0 and
|
|
15
|
+
* 255).
|
|
16
|
+
* @param value The value to check.
|
|
17
|
+
*/
|
|
18
|
+
static isByte(value: number): boolean;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=bytes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../sources/bytes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,KAAK;IAEvB;;OAEG;IACH,gBAAuB,YAAY,EAAE,MAAM,CAAK;IAEhD;;OAEG;IACH,gBAAuB,YAAY,EAAE,MAAM,CAAO;IAElD;;;;OAIG;IACH,OAAc,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAG3C;CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of values and functions for interacting with bytes.
|
|
3
|
+
*/
|
|
4
|
+
export class Bytes {
|
|
5
|
+
/**
|
|
6
|
+
* The minimum value that a byte can have.
|
|
7
|
+
*/
|
|
8
|
+
static minimumValue = 0;
|
|
9
|
+
/**
|
|
10
|
+
* The maximum value (inclusive) that a byte can have.
|
|
11
|
+
*/
|
|
12
|
+
static maximumValue = 255;
|
|
13
|
+
/**
|
|
14
|
+
* Get whether the provided value is within the range of a valid byte (between 0 and
|
|
15
|
+
* 255).
|
|
16
|
+
* @param value The value to check.
|
|
17
|
+
*/
|
|
18
|
+
static isByte(value) {
|
|
19
|
+
return Bytes.minimumValue <= value && value <= Bytes.maximumValue;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=bytes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bytes.js","sourceRoot":"","sources":["../../sources/bytes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAgB,KAAK;IAEvB;;OAEG;IACI,MAAM,CAAU,YAAY,GAAW,CAAC,CAAC;IAEhD;;OAEG;IACI,MAAM,CAAU,YAAY,GAAW,GAAG,CAAC;IAElD;;;;OAIG;IACI,MAAM,CAAC,MAAM,CAAC,KAAa;QAE9B,OAAO,KAAK,CAAC,YAAY,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC;IACtE,CAAC;CACJ"}
|