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.45-beta.6 to 0.0.46

1

lib/auth/auth-user.d.ts

@@ -16,2 +16,3 @@ import { SystemRole } from '../types';

isContentEditor(): boolean;
isService(): boolean;
findRole(entityType: 'family' | 'school', id: string | number, ...roles: string[]): RoleRecord | undefined;

@@ -18,0 +19,0 @@ findRoleWithExtra(entityType: 'family' | 'school', id: string | number, role: string, extra: string): RoleRecord | undefined;

@@ -27,2 +27,5 @@ "use strict";

}
isService() {
return this.system === types_1.SystemRole.Service;
}
findRole(entityType, id, ...roles) {

@@ -29,0 +32,0 @@ return this.getRoles(entityType, id).find((r) => roles.indexOf(r.role) > -1);

3

lib/types.d.ts

@@ -5,3 +5,4 @@ export type Maybe<T> = T | null;

Contenteditor = "contenteditor",
User = "user"
User = "user",
Service = "service"
}

@@ -8,0 +9,0 @@ export declare enum Grade {

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

SystemRole["User"] = "user";
SystemRole["Service"] = "service";
})(SystemRole || (exports.SystemRole = SystemRole = {}));

@@ -11,0 +12,0 @@ var Grade;

{
"name": "@colearn/microservices-kit",
"version": "0.0.45-beta.6",
"version": "0.0.46",
"description": "colearn microservice kit",

@@ -37,3 +37,3 @@ "author": "Colearn",

"dependencies": {
"@sentry/node": "^7.54.0",
"@sentry/node": "^7.55.2",
"body-parser": "^1.20.2",

@@ -47,3 +47,3 @@ "express-jwt": "^8.3.0",

"@types/express-jwt": "^7.4.2",
"@types/node": "^20.2.5",
"@types/node": "^20.3.1",
"eslint": "^8.42.0",

@@ -50,0 +50,0 @@ "express": "^4.18.2",

Sorry, the diff of this file is not supported yet

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