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

@colearn/microservices-kit

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colearn/microservices-kit - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

3

lib/auth.d.ts

@@ -6,4 +6,3 @@ import type { Request, Response, NextFunction } from 'express';

scopes: string[];
personId: string;
membeship: string[];
personId?: string;
getToken?: () => string | undefined;

@@ -10,0 +9,0 @@ }

@@ -7,3 +7,3 @@ "use strict";

var _a, _b;
return (_b = (_a = user === null || user === void 0 ? void 0 : user.scopes) === null || _a === void 0 ? void 0 : _a.includes('role:admin')) !== null && _b !== void 0 ? _b : false;
return (_b = (_a = user === null || user === void 0 ? void 0 : user.scopes) === null || _a === void 0 ? void 0 : _a.includes('system:admin')) !== null && _b !== void 0 ? _b : false;
}

@@ -10,0 +10,0 @@ exports.isAdmin = isAdmin;

{
"name": "@colearn/microservices-kit",
"version": "0.0.15",
"version": "0.0.16",
"description": "colearn microservice kit",

@@ -5,0 +5,0 @@ "author": "Colearn",

Sorry, the diff of this file is not supported yet

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