New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

egg-kauth

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-kauth - npm Package Compare versions

Comparing version 2.0.13-alpha.3 to 2.0.13-alpha.4

3

app/lib/index.js

@@ -72,3 +72,6 @@ "use strict";

this.permissionHandler = async (ctx, userId) => {
const startedAt = Date.now();
const permissions = await kauthApi.listPermissionsByUserId(userId);
const expired = Date.now() - startedAt;
ctx.logger.info('[egg-kauth] get %s permissions, expired %sms', permissions?.length, expired);
ctx.permissions = permissions;

@@ -75,0 +78,0 @@ };

2

app/middleware/kauth.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = factory;
const lib_1 = require("../lib");

@@ -17,2 +18,1 @@ function factory(kauthConfig) {

}
exports.default = factory;
{
"name": "egg-kauth",
"version": "2.0.13-alpha.3",
"version": "2.0.13-alpha.4",
"description": "egg kauth plugin",

@@ -5,0 +5,0 @@ "eggPlugin": {

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