opsgenie-sdk
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -30,3 +30,3 @@ "use strict"; | ||
function getHost() { | ||
return utils.getDefaultApiEndpoint(configuration.default_options.mode); | ||
return configuration.default_options.host; | ||
} | ||
@@ -33,0 +33,0 @@ |
@@ -6,11 +6,2 @@ "use strict"; | ||
var getDefaultEndpoint = exports.getDefaultEndpoint = function getDefaultEndpoint(mode) { | ||
return (typeof mode === "string" && mode === "live") ? "opsgenie.com" : "opsgeni.us"; | ||
}; | ||
var getDefaultApiEndpoint = exports.getDefaultApiEndpoint = function getDefaultApiEndpoint(mode) { | ||
var api = (typeof mode === "string" && mode === "live") ? "https://api." : "https://api."; // prefix is api in lab, too | ||
return api + getDefaultEndpoint(mode); | ||
}; | ||
/** | ||
@@ -17,0 +8,0 @@ * Recursively copies given object into a new object. Helper method for merge |
{ | ||
"name": "opsgenie-sdk", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "OpsGenie Node.js SDK", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
104980
25
543