@frontegg/client
Advanced tools
Comparing version 1.0.23-3 to 1.0.23-4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var baseUrl = process.env.FRONTEGG_API_GATEWAY_URL || "https://api.frontegg.com/"; | ||
if (baseUrl.endsWith('/')) { | ||
baseUrl = baseUrl.slice(0, -1); | ||
} | ||
// tslint:disable-next-line:no-namespace | ||
@@ -10,5 +14,5 @@ var config; | ||
} | ||
urls.authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || 'https://api.frontegg.com/vendors/auth/token'; | ||
urls.auditsService = process.env.FRONTEGG_AUDITS_SERVICE_URL || 'https://api.frontegg.com/audits/'; | ||
urls.metadataService = process.env.FRONTEGG_METADATA_SERVICE_URL || 'https://api.frontegg.com/metadata/'; | ||
urls.authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || baseUrl + "/vendors/auth/token"; | ||
urls.auditsService = process.env.FRONTEGG_AUDITS_SERVICE_URL || baseUrl + "/audits/"; | ||
urls.metadataService = process.env.FRONTEGG_METADATA_SERVICE_URL || baseUrl + "/metadata/"; | ||
return urls; | ||
@@ -15,0 +19,0 @@ }()); |
{ | ||
"name": "@frontegg/client", | ||
"version": "1.0.23-3", | ||
"version": "1.0.23-4", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,1 +1,6 @@ | ||
let baseUrl = process.env.FRONTEGG_API_GATEWAY_URL || "https://api.frontegg.com/"; | ||
if (baseUrl.endsWith('/')) { | ||
baseUrl = baseUrl.slice(0, -1); | ||
} | ||
// tslint:disable-next-line:no-namespace | ||
@@ -5,6 +10,6 @@ export namespace config { | ||
export class urls { | ||
public static authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || 'https://api.frontegg.com/vendors/auth/token'; | ||
public static auditsService = process.env.FRONTEGG_AUDITS_SERVICE_URL || 'https://api.frontegg.com/audits/'; | ||
public static metadataService = process.env.FRONTEGG_METADATA_SERVICE_URL || 'https://api.frontegg.com/metadata/'; | ||
public static authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || `${baseUrl}/vendors/auth/token`; | ||
public static auditsService = process.env.FRONTEGG_AUDITS_SERVICE_URL || `${baseUrl}/audits/`; | ||
public static metadataService = process.env.FRONTEGG_METADATA_SERVICE_URL || `${baseUrl}/metadata/`; | ||
} | ||
} |
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
54634
1162