Socket
Socket
Sign inDemoInstall

@ahi40/common

Package Overview
Dependencies
8
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.30 to 1.0.31

2

build/middlewares/current-user.d.ts
import { Request, Response, NextFunction } from 'express';
import { UserRoles } from '../rbac/userRoles';
interface UserPayload {

@@ -6,2 +7,3 @@ id: string;

exp: number;
userRole: UserRoles;
}

@@ -8,0 +10,0 @@ declare global {

@@ -16,2 +16,3 @@ "use strict";

req.currentUser = payload;
console.log("received token info: " + payload);
}

@@ -18,0 +19,0 @@ catch (err) {

2

package.json
{
"name": "@ahi40/common",
"version": "1.0.30",
"version": "1.0.31",
"description": "",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc