@fusebit/everyauth-express
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -89,5 +89,5 @@ "use strict"; | ||
} | ||
// Recursively look upwards for a `.fusebit` directory | ||
// Recursively look upwards for a `.fusebit` directory until the top-most directory is reached. | ||
let settingsDir = '.'; | ||
while (settingsDir != '/') { | ||
while (true) { | ||
try { | ||
@@ -100,3 +100,8 @@ exports.cachedFoundProfile = await loadProfileFromDisk(path.join(settingsDir, '.fusebit'), profileName); | ||
} | ||
settingsDir = path.resolve(path.join(settingsDir, '..')); | ||
// Make sure the parent directory is a different directory. | ||
const parentDir = path.resolve(path.join(settingsDir, '..')); | ||
if (parentDir === settingsDir) { | ||
break; | ||
} | ||
settingsDir = parentDir; | ||
} | ||
@@ -103,0 +108,0 @@ throw new Error(`No ${settingsName} found in this tree.`); |
@@ -55,5 +55,7 @@ "use strict"; | ||
if (userId) { | ||
// eslint-disable-next-line security/detect-object-injection | ||
payload.tags[constants_1.USER_TAG] = userId; | ||
} | ||
if (tenantId) { | ||
// eslint-disable-next-line security/detect-object-injection | ||
payload.tags[constants_1.TENANT_TAG] = tenantId; | ||
@@ -60,0 +62,0 @@ } |
{ | ||
"name": "@fusebit/everyauth-express", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "EveryAuth is the easiest way for your app to access APIs like Slack, Salesforce, or Github.", | ||
@@ -5,0 +5,0 @@ "main": "libc/index.js", |
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
94384
896