unleash-client
Advanced tools
Comparing version 3.9.0 to 3.9.1
@@ -56,2 +56,3 @@ "use strict"; | ||
var details_json_1 = require("./details.json"); | ||
var url_utils_1 = require("./url-utils"); | ||
var Metrics = /** @class */ (function (_super) { | ||
@@ -110,3 +111,3 @@ __extends(Metrics, _super); | ||
} | ||
url = url_1.resolve(this.url, './client/register'); | ||
url = url_1.resolve(url_utils_1.suffixSlash(this.url), './client/register'); | ||
payload = this.getClientData(); | ||
@@ -174,3 +175,3 @@ if (!this.customHeadersFunction) return [3 /*break*/, 2]; | ||
} | ||
url = url_1.resolve(this.url, './client/metrics'); | ||
url = url_1.resolve(url_utils_1.suffixSlash(this.url), './client/metrics'); | ||
payload = this.getPayload(); | ||
@@ -177,0 +178,0 @@ if (!this.customHeadersFunction) return [3 /*break*/, 2]; |
declare const getUrl: (base: string, projectName?: string | undefined) => string; | ||
export declare const suffixSlash: (url: string) => string; | ||
export default getUrl; | ||
//# sourceMappingURL=url-utils.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.suffixSlash = void 0; | ||
var url_1 = require("url"); | ||
@@ -10,3 +11,5 @@ var getUrl = function (base, projectName) { | ||
}; | ||
var suffixSlash = function (url) { return (url.endsWith('/') ? url : url + "/"); }; | ||
exports.suffixSlash = suffixSlash; | ||
exports.default = getUrl; | ||
//# sourceMappingURL=url-utils.js.map |
{ | ||
"name": "unleash-client", | ||
"version": "3.9.0", | ||
"version": "3.9.1", | ||
"description": "Unleash Client for Node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
174406
2141