@frontegg/rest-api
Advanced tools
Comparing version 3.1.38 to 3.1.39
@@ -15,7 +15,6 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
import { LOAD_AUTHORIZATION_FF } from './interfaces'; | ||
import { loadEntitlements, loadEntitlementsV2 } from '../entitlements'; | ||
import { loadEntitlements } from '../entitlements'; | ||
import { ADMIN_PORTAL_ENTITLEMENTS_FF } from '../entitlements/interfaces'; | ||
import { FeatureFlags } from "../feature-flags"; | ||
import { executeConditionalPromise, getCurrentUserTenantsFunction, getTabTenantFromSessionStorage, setTabTenantInSessionStorage } from "./utils"; | ||
import { USE_ENTITLEMENTS_V2_ENDPOINT_FF } from "./constants"; | ||
export async function generateLoginResponse(loginResponse) { | ||
@@ -729,3 +728,2 @@ if (!loginResponse.accessToken) { | ||
export async function getMeAndEntitlements() { | ||
const [useEntitlementsV2] = FeatureFlags.getFeatureFlags([USE_ENTITLEMENTS_V2_ENDPOINT_FF], ContextHolder.getAppName() || ''); | ||
const actions = [{ | ||
@@ -735,3 +733,3 @@ action: getMeV2, | ||
}, { | ||
action: useEntitlementsV2 ? loadEntitlementsV2 : loadEntitlements, | ||
action: loadEntitlements, | ||
shouldLoad: shouldLoadEntitlements() | ||
@@ -738,0 +736,0 @@ }, { |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.38 | ||
/** @license Frontegg v3.1.39 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -380,4 +380,2 @@ "use strict"; | ||
var _constants2 = require("./constants"); | ||
const _excluded = ["type"], | ||
@@ -1245,4 +1243,2 @@ _excluded2 = ["type"], | ||
async function getMeAndEntitlements() { | ||
const [useEntitlementsV2] = _featureFlags.FeatureFlags.getFeatureFlags([_constants2.USE_ENTITLEMENTS_V2_ENDPOINT_FF], _ContextHolder.ContextHolder.getAppName() || ''); | ||
const actions = [{ | ||
@@ -1252,3 +1248,3 @@ action: getMeV2, | ||
}, { | ||
action: useEntitlementsV2 ? _entitlements.loadEntitlementsV2 : _entitlements.loadEntitlements, | ||
action: _entitlements.loadEntitlements, | ||
shouldLoad: shouldLoadEntitlements() | ||
@@ -1255,0 +1251,0 @@ }, { |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.38 | ||
/** @license Frontegg v3.1.39 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.1.38", | ||
"version": "3.1.39", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
404851
11015