Comparing version 3.0.12 to 3.0.13
# Changelog | ||
## 3.0.13 | ||
* Minor code fix, fixing up library versions for older versions of node | ||
## 3.0.12 | ||
@@ -4,0 +8,0 @@ |
@@ -35,4 +35,4 @@ import { AxiosInstance } from "axios"; | ||
*/ | ||
private getRequestTimeoutInSeconds; | ||
private getRequestTimeoutInMilliseconds; | ||
private adjustValue; | ||
} |
@@ -49,3 +49,3 @@ "use strict"; | ||
baseURL: this.getBaseHttpRequestURL(), | ||
timeout: this.getRequestTimeoutInSeconds(), | ||
timeout: this.getRequestTimeoutInMilliseconds(), | ||
responseType: "json", | ||
@@ -108,3 +108,3 @@ maxContentLength: Infinity, | ||
*/ | ||
AxiosHttpClient.prototype.getRequestTimeoutInSeconds = function () { | ||
AxiosHttpClient.prototype.getRequestTimeoutInMilliseconds = function () { | ||
return (this.clientOptions.timeout || 60) * 1000; | ||
@@ -111,0 +111,0 @@ }; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "3.0.12", | ||
"version": "3.0.13", | ||
"author": "Igor Balos", | ||
@@ -66,3 +66,3 @@ "contributors": [ | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/chai": "4.3.1", | ||
"@types/mocha": "^5.2.5", | ||
@@ -72,4 +72,4 @@ "@types/nconf": "0.0.37", | ||
"@types/sinon": "^7.5.0", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"chai": "4.3.1", | ||
"mocha": "5.2.0", | ||
"nconf": "^0.10.0", | ||
@@ -76,0 +76,0 @@ "pre-commit": "1.2.2", |
@@ -17,13 +17,2 @@ import * as postmark from "../../src/index"; | ||
}); | ||
it("editServer", async () => { | ||
const serverOptions = new postmark.Models.UpdateServerRequest(undefined, "red"); | ||
const updatedServerOptions = new postmark.Models.UpdateServerRequest(undefined, "green"); | ||
let server: postmark.Models.Server = await client.editServer(serverOptions); | ||
expect(server.Color).to.eq(serverOptions.Color); | ||
server = await client.editServer(updatedServerOptions); | ||
expect(server.Color).to.eq(updatedServerOptions.Color); | ||
}); | ||
}); |
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
312871
5422