File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This package:
1111+ ** Supports abortable HTTP requests; no boilerplate.**
1212+ ** Can auto-abort HTTP requests in favor of newer request versions, with optional delaying (debouncing).**
1313+ Works in any runtime that implements ` fetch() ` (browsers, NodeJS, etc.).
14- + Is probably the tiniest fetch wrapper you'll ever need: ** 364 LOC** including typing (` npx cloc .\src --exclude-dir=tests ` ).
14+ + Is probably the tiniest fetch wrapper you'll ever need: ** 421 LOC** including typing (` npx cloc .\src --exclude-dir=tests ` ).
1515
1616## Does a Non-OK Status Code Warrant an Error?
1717
@@ -149,8 +149,8 @@ else {
149149> Since v0.11.0
150150
151151All standardized HTTP status codes documented at [ MDN] ( https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status )
152- have been collected into the ` StatusCodes ` enumeration. Feel free to import it and use it to make your code far more
153- readable and free of magic numbers.
152+ for the 2xx, 4xx and 5xx ranges have been collected into the ` StatusCodes ` enumeration. Feel free to import it and use
153+ it to make your code far more readable and free of magic numbers.
154154
155155``` typescript
156156import { StatusCodes } from " dr-fetch" ;
You can’t perform that action at this time.
0 commit comments