fix: validate status and some security

This commit is contained in:
Wathanyu Phromma
2022-03-20 14:01:35 +07:00
parent 31d4a5f24b
commit a2c408c63d
387 changed files with 33710 additions and 4612 deletions

22
node_modules/is-retry-allowed/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
Check whether a request can be retried based on the `error.code`.
@param error - The `.code` property, if it exists, will be used to determine whether retry is allowed.
@example
```
import isRetryAllowed = require('is-retry-allowed');
isRetryAllowed({code: 'ETIMEDOUT'});
//=> true
isRetryAllowed({code: 'ENOTFOUND'});
//=> false
isRetryAllowed({});
//=> true
```
*/
declare function isRetryAllowed(error?: Error | Record<string, unknown>): boolean;
export = isRetryAllowed;