@frontegg/rest-api
Advanced tools
Comparing version 3.1.57 to 3.1.58
@@ -727,2 +727,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
} | ||
const noThrowLoadEntitlements = async () => { | ||
try { | ||
return await loadEntitlementsV2(); | ||
} catch (e) {} | ||
}; | ||
export async function getMeAndEntitlements() { | ||
@@ -734,3 +741,3 @@ const [useEntitlementsV2] = FeatureFlags.getFeatureFlags([USE_ENTITLEMENTS_V2_ENDPOINT_FF], ContextHolder.getAppName() || ''); | ||
}, { | ||
action: useEntitlementsV2 ? loadEntitlementsV2 : loadEntitlements, | ||
action: useEntitlementsV2 ? noThrowLoadEntitlements : loadEntitlements, | ||
shouldLoad: shouldLoadEntitlements() | ||
@@ -737,0 +744,0 @@ }, { |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.57 | ||
/** @license Frontegg v3.1.58 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1245,2 +1245,8 @@ "use strict"; | ||
const noThrowLoadEntitlements = async () => { | ||
try { | ||
return await (0, _entitlements.loadEntitlementsV2)(); | ||
} catch (e) {} | ||
}; | ||
async function getMeAndEntitlements() { | ||
@@ -1253,3 +1259,3 @@ const [useEntitlementsV2] = _featureFlags.FeatureFlags.getFeatureFlags([_constants2.USE_ENTITLEMENTS_V2_ENDPOINT_FF], _ContextHolder.ContextHolder.getAppName() || ''); | ||
}, { | ||
action: useEntitlementsV2 ? _entitlements.loadEntitlementsV2 : _entitlements.loadEntitlements, | ||
action: useEntitlementsV2 ? noThrowLoadEntitlements : _entitlements.loadEntitlements, | ||
shouldLoad: shouldLoadEntitlements() | ||
@@ -1256,0 +1262,0 @@ }, { |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.57 | ||
/** @license Frontegg v3.1.58 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.1.57", | ||
"version": "3.1.58", | ||
"main": "./node/index.js", | ||
@@ -8,3 +8,3 @@ "license": "MIT", | ||
"@babel/runtime": "^7.17.2", | ||
"@frontegg/entitlements-javascript-commons": "1.0.1" | ||
"@frontegg/entitlements-javascript-commons": "1.1.1" | ||
}, | ||
@@ -11,0 +11,0 @@ "sideEffects": false, |
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
410478
11186
+ Added@frontegg/entitlements-javascript-commons@1.1.1(transitive)
- Removed@frontegg/entitlements-javascript-commons@1.0.1(transitive)