@equinor/fusion
Advanced tools
Comparing version 0.1.47 to 0.1.48
export default class AuthApp { | ||
constructor(clientId, resources) { | ||
this.clientId = clientId; | ||
this.resources = resources; | ||
this.resources = resources.map(resource => resource.toLowerCase()); | ||
} | ||
@@ -6,0 +6,0 @@ updateResources(resources) { |
@@ -139,3 +139,3 @@ import AuthApp from "./AuthApp"; | ||
const resourceOrigin = AuthContainer.getResourceOrigin(resource); | ||
const app = this.apps.find(app => app.resources.indexOf(resourceOrigin) > 0 || app.clientId === resourceOrigin); | ||
const app = this.apps.find(app => app.resources.indexOf(resourceOrigin) !== -1 || app.clientId === resourceOrigin); | ||
if (typeof app === "undefined") { | ||
@@ -142,0 +142,0 @@ return null; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.1.47", | ||
"version": "0.1.48", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
117638