@nextcloud/auth
Advanced tools
Comparing version 2.1.0 to 2.2.1
@@ -41,3 +41,2 @@ 'use strict'; | ||
/// <reference types="@nextcloud/typings" /> | ||
var getAttribute = function (el, attribute) { | ||
@@ -67,3 +66,3 @@ if (el) { | ||
displayName: getAttribute(head, 'data-user-displayname'), | ||
isAdmin: (typeof OC === 'undefined') ? false : OC.isUserAdmin(), | ||
isAdmin: !!window._oc_isadmin, | ||
}; | ||
@@ -70,0 +69,0 @@ return currentUser; |
{ | ||
"name": "@nextcloud/auth", | ||
"version": "2.1.0", | ||
"version": "2.2.1", | ||
"description": "Nextcloud helpers related to authentication and the current user", | ||
@@ -37,15 +37,15 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@nextcloud/typings": "^1.6.0", | ||
"@rollup/plugin-typescript": "^11.1.1", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"rollup": "^3.22.0", | ||
"tslib": "^2.5.0", | ||
"typedoc": "^0.24.7", | ||
"typescript": "^5.0.4" | ||
"@nextcloud/typings": "^1.7.0", | ||
"@rollup/plugin-typescript": "^11.1.3", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"rollup": "^3.29.2", | ||
"tslib": "^2.6.2", | ||
"typedoc": "^0.25.1", | ||
"typescript": "^5.2.2" | ||
}, | ||
"engines": { | ||
"node": "^16.0.0", | ||
"npm": "^7.0.0 || ^8.0.0" | ||
"node": "^20.0.0", | ||
"npm": "^9.0.0" | ||
} | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
1
49296
10
160