Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nextcloud/auth

Package Overview
Dependencies
Maintainers
13
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/auth - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

dist/index.cjs

8

dist/user.d.ts

@@ -0,1 +1,6 @@

declare global {
interface Window {
_oc_isadmin?: boolean;
}
}
export interface NextcloudUser {

@@ -6,2 +11,5 @@ uid: string;

}
/**
* Get the currently logged in Nextcloud user or null if not logged in
*/
export declare function getCurrentUser(): NextcloudUser | null;

45

package.json
{
"name": "@nextcloud/auth",
"version": "2.2.1",
"version": "2.3.0",
"description": "Nextcloud helpers related to authentication and the current user",
"main": "dist/index.js",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.mjs",
"require": "./dist/index.js"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},

@@ -16,8 +17,10 @@ "files": [

"scripts": {
"build": "rollup --config rollup.config.mjs",
"build": "vite --mode production build",
"build:doc": "typedoc --out dist/doc lib/index.ts && touch dist/doc/.nojekyll",
"check-types": "tsc --noEmit",
"dev": "rollup --config rollup.config.mjs --watch",
"test": "jest",
"test:watch": "jest --watchAll"
"dev": "vite --mode development run --watch",
"lint": "eslint lib test *.ts",
"lint:fix": "eslint --fix lib test",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch"
},

@@ -35,18 +38,20 @@ "keywords": [

"dependencies": {
"@nextcloud/event-bus": "^3.1.0"
"@nextcloud/event-bus": "^3.2.0"
},
"devDependencies": {
"@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"
"@nextcloud/eslint-config": "^8.3.0",
"@nextcloud/typings": "^1.8.0",
"@nextcloud/vite-config": "^1.2.2",
"@vitest/coverage-v8": "^1.5.0",
"eslint": "^8.57.0",
"happy-dom": "^14.7.1",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vitest": "^1.5.0"
},
"engines": {
"node": "^20.0.0",
"npm": "^9.0.0"
"npm": "^10.0.0"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc