@hexonet/ispapi-apiconnector
Advanced tools
Comparing version 5.5.2 to 5.5.3
@@ -16,3 +16,3 @@ "use strict"; | ||
500: this.generateTemplate("500", "Internal server error"), | ||
empty: this.generateTemplate("423", "Empty API response"), | ||
empty: this.generateTemplate("423", "Empty API response. Probably unreachable API end point"), | ||
error: this.generateTemplate("421", "Command failed due to server error. Client should try again"), | ||
@@ -19,0 +19,0 @@ expired: this.generateTemplate("530", "SESSION NOT FOUND"), |
@@ -0,1 +1,8 @@ | ||
## [5.5.3](https://github.com/hexonet/node-sdk/compare/v5.5.2...v5.5.3) (2019-10-04) | ||
### Bug Fixes | ||
* **responsetemplate/mgr:** improve description of `423 Empty API response` ([f2d31fc](https://github.com/hexonet/node-sdk/commit/f2d31fc)) | ||
## [5.5.2](https://github.com/hexonet/node-sdk/compare/v5.5.1...v5.5.2) (2019-09-18) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hexonet/ispapi-apiconnector", | ||
"description": "Node.js SDK for the insanely fast HEXONET API", | ||
"version": "5.5.2", | ||
"version": "5.5.3", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -31,3 +31,3 @@ import { ResponseParser } from "./responseparser"; | ||
500: this.generateTemplate("500", "Internal server error"), | ||
empty: this.generateTemplate("423", "Empty API response"), | ||
empty: this.generateTemplate("423", "Empty API response. Probably unreachable API end point"), | ||
error: this.generateTemplate("421", "Command failed due to server error. Client should try again"), | ||
@@ -34,0 +34,0 @@ expired: this.generateTemplate("530", "SESSION NOT FOUND"), |
@@ -16,3 +16,3 @@ 'use strict' | ||
expect(tpl.getCode()).to.equal(423) | ||
expect(tpl.getDescription()).to.equal('Empty API response') | ||
expect(tpl.getDescription()).to.equal('Empty API response. Probably unreachable API end point') | ||
}) | ||
@@ -25,3 +25,3 @@ }) | ||
expect(h.CODE).to.equal('423') | ||
expect(h.DESCRIPTION).to.equal('Empty API response') | ||
expect(h.DESCRIPTION).to.equal('Empty API response. Probably unreachable API end point') | ||
}) | ||
@@ -37,3 +37,3 @@ }) | ||
it('check return value [in API response]', function () { | ||
const tpl = new ResponseTemplate('[RESPONSE]\r\ncode=423\r\ndescription=Empty API response\r\nqueuetime=0\r\nEOF\r\n') | ||
const tpl = new ResponseTemplate('[RESPONSE]\r\ncode=423\r\ndescription=Empty API response. Probably unreachable API end point\r\nqueuetime=0\r\nEOF\r\n') | ||
expect(tpl.getQueuetime()).to.equal(0) | ||
@@ -50,3 +50,3 @@ }) | ||
it('check return value [in API response]', function () { | ||
const tpl = new ResponseTemplate('[RESPONSE]\r\ncode=423\r\ndescription=Empty API response\r\nruntime=0.12\r\nEOF\r\n') | ||
const tpl = new ResponseTemplate('[RESPONSE]\r\ncode=423\r\ndescription=Empty API response. Probably unreachable API end point\r\nruntime=0.12\r\nEOF\r\n') | ||
expect(tpl.getRuntime()).to.equal(0.12) | ||
@@ -53,0 +53,0 @@ }) |
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
1335441