wpt-api-client
Version:
Unofficial Node.js client for the WebPageTest REST API
17 lines • 657 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkApiKey = exports.baseUrl = void 0;
var defaults_1 = require("./defaults");
var error_1 = require("./error");
var baseUrl = function (wptServer) {
return wptServer ? "https://" + wptServer : "https://" + defaults_1.WPT_SERVER;
};
exports.baseUrl = baseUrl;
var checkApiKey = function (apiKey, wptServer) {
// I would need a private WPT instance to test this out
if (apiKey === undefined && wptServer === undefined) {
throw new Error(error_1.configurationErrorMessage());
}
};
exports.checkApiKey = checkApiKey;
//# sourceMappingURL=utils.js.map