@alicloud/tea-util
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -57,2 +57,6 @@ /// <reference types="node" /> | ||
static getUserAgent(userAgent: string): string; | ||
static is2xx(code: number): boolean; | ||
static is3xx(code: number): boolean; | ||
static is4xx(code: number): boolean; | ||
static is5xx(code: number): boolean; | ||
} |
@@ -179,4 +179,16 @@ "use strict"; | ||
} | ||
static is2xx(code) { | ||
return code >= 200 && code < 300; | ||
} | ||
static is3xx(code) { | ||
return code >= 300 && code < 400; | ||
} | ||
static is4xx(code) { | ||
return code >= 400 && code < 500; | ||
} | ||
static is5xx(code) { | ||
return code >= 500 && code < 600; | ||
} | ||
} | ||
exports.default = Client; | ||
//# sourceMappingURL=client.js.map |
{ | ||
"name": "@alicloud/tea-util", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/client.js", |
@@ -213,2 +213,20 @@ import { Readable } from 'stream'; | ||
} | ||
static is2xx(code: number): boolean { | ||
return code >= 200 && code < 300; | ||
} | ||
static is3xx(code: number): boolean { | ||
return code >= 300 && code < 400; | ||
} | ||
static is4xx(code: number): boolean { | ||
return code >= 400 && code < 500; | ||
} | ||
static is5xx(code: number): boolean { | ||
return code >= 500 && code < 600; | ||
} | ||
} | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19667
443