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

@the-libs/auth-shared

Package Overview
Dependencies
Maintainers
0
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-libs/auth-shared - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

2

package.json
{
"name": "@the-libs/auth-shared",
"version": "1.2.5",
"version": "1.2.6",
"dependencies": {},

@@ -5,0 +5,0 @@ "type": "module",

import type { Document as MDocument, Types } from 'mongoose';
type OptionalIfFalse<IsRequired extends boolean, T> = IsRequired extends true ? T : T | undefined;
export interface User<NameRequired extends boolean = false, ProfilePictureUriRequired extends boolean = false, MultyByRole extends boolean = false, USERTYPE = undefined> extends MDocument {
type OptionalIfTrue<IsRequired extends boolean, T> = IsRequired extends false ? T | undefined : T;
export interface User<NameRequired extends boolean = false, ProfilePictureUriRequired extends boolean = false, MultyAtAll extends boolean = false, USERTYPE = undefined> extends MDocument {
_id: Types.ObjectId;

@@ -9,3 +10,3 @@ email: string;

profilePictureUri: OptionalIfFalse<ProfilePictureUriRequired, string>;
userType: OptionalIfFalse<MultyByRole, USERTYPE>;
userType: OptionalIfTrue<MultyAtAll, USERTYPE>;
createdAt: Date;

@@ -12,0 +13,0 @@ updatedAt: Date;

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